/* HM-Tech - Modern Professional Styles */

/* Variables */
:root {
  --primary-blue: #293264;
  --accent-red: #ed1c24;
  --neutral-gray: #a4a6a9;
  --light-gray: #f5f7fa;
  --dark-gray: #1a1a1a;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --gradient: linear-gradient(135deg, #ed1c24, #c91118);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bg: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --primary: #0ea5e9;
  --danger: #dc2626;
  --success: #16a34a;
  --border: #e5e7eb;
  --radius: 12px;
  --space: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
a {
  color: var(--text-dark);
  text-decoration: none;
}
/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-blue);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(237, 28, 36, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(237, 28, 36, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-blue);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 0;
  gap: 15px;
}

.nav-wrapper .logo-link {
  flex: 0 0 auto;
}

.nav-wrapper .search-container {
  flex: 0 1 auto;
}

.nav-wrapper .nav-menu {
  flex: 1 1 auto;
}

/* Container for cart and hamburger to keep them in row on mobile */
.nav-actions {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-blue);
}

.logo img {
  height: 45px;
  width: auto;
}
.logo i {
  font-size: 28px;
  color: var(--accent-red);
}

.logo .accent {
  color: var(--accent-red);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu > li {
  display: flex;
  align-items: center;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Ensure hamburger is hidden on larger screens */
@media (min-width: 969px) {
  .hamburger {
    display: none !important;
  }

  .nav-menu {
    display: flex !important;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
  position: relative;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2049 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: radial-gradient(
      circle at 20% 50%,
      var(--accent-red) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 80%, var(--accent-red) 0%, transparent 50%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1.2s ease;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  animation: fadeInUp 1.4s ease;
}

.stat h3 {
  font-size: 2rem;
  color: var(--accent-red);
  margin-bottom: 0.5rem;
}

.stat p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}
.hero-image {
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(237, 28, 36, 0.1);
  color: var(--accent-red);
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--neutral-gray);
  max-width: 600px;
  margin: 0 auto;
}
/* Services Section */
.services {
  padding: 100px 0;
  background: var(--light-gray);
}

.services .container {
  max-width: 1400px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
  align-items: start;
}

/* Karta individuale */
.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Siguron lartësi uniforme në grid */
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-red);
}

.service-image {
  /* position: relative; */
  /* max-width: 20rem; */
  /* width: 18%; */
  /* aspect-ratio: 1 / 1; */
  /* padding: 1rem; */
  /* overflow: hidden; */

  align-items: center;
  justify-content: center;
  /* margin: 0 auto; */

  margin: 0 auto;

  /* aspect-ratio: 1 / 1; */
}

.service-image img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 150px;
  aspect-ratio: 16 / 9;
  object-fit: cover;

  /* width: min(100%, 14rem); */
  /* min-width: 101%; */
  /* max-width: 12rem; */
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

.service-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-content p {
  color: var(--neutral-gray);
  margin-bottom: 0.8rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.product_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Butoni */
.product-link-btn {
  margin: 1rem auto;
  padding: 0.6rem 1.2rem;
  background: var(--accent-red);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.product-link-btn:hover {
  background: #e02424;
}
.products_img img {
  object-fit: contain;
}
.service-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--accent-red), #ff4444);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  font-size: 18px;
  color: var(--white);
}

.service-card h3 {
  color: var(--primary-blue);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.service-card p {
  color: var(--neutral-gray);
  margin-bottom: 0.8rem;
  line-height: 1.5;
  font-size: 0.85rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  padding: 0.3rem 0;
  color: var(--text-dark);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li i {
  color: var(--accent-red);
  font-size: 0.7rem;
}

/* Portfolio Section */
.portfolio {
  padding: 100px 0;
  background: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(41, 50, 100, 0.9), transparent);
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.about {
  padding: 100px 0;
  background: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature i {
  font-size: 24px;
  color: var(--accent-red);
  margin-top: 5px;
}

.feature h4 {
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--neutral-gray);
  margin: 0;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2049 100%);
  color: var(--white);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-description {
  color: rgba(255, 255, 255, 0.8);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-red);
}

.contact-details h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.25rem 0;
}
/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--white);
  font-size: 16px;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-red);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--white);
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-red),
    transparent
  );
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand .logo {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo img {
  height: 40px;
}

.footer-brand .logo span {
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
}

.footer-brand .logo .accent {
  color: var(--accent-red);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-red);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--accent-red);
}

.footer-newsletter h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--accent-red);
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.newsletter-form button:hover {
  background: #c91118;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0.75rem 0;
  }

  .logo-link {
    order: 1;
    flex: 0 0 auto;
  }

  /* Container for cart and hamburger - MUST stay in one row */
  .nav-actions {
    order: 2;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
  }

  .cart {
    order: unset;
    margin-left: 0;
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  .hamburger {
    order: unset;
    display: flex !important;
    flex-direction: column;
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  .search-container {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 120px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s ease-in-out;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    order: 4;
    z-index: 999;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    color: var(--text-dark) !important;
  }

  .nav-menu > li {
    padding: 0.75rem 1rem;
  }

  .cart svg {
    width: 32px;
    height: 32px;
  }

  .quantity {
    font-size: 11px;
    min-width: 18px;
    height: 18px;
  }

  /* Mobile dropdown styles - CLICK ONLY */
  .dropdown {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dropbtn {
    width: auto;
    text-align: center;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .dropdown-content {
    position: static !important;
    opacity: 0;
    max-height: 0;
    transform: none !important;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.03);
    padding: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
    margin-top: 0.5rem;
    width: 100%;
    min-width: unset;
  }

  /* CRITICAL: Override hover behavior on mobile - click only */
  .dropdown:hover .dropdown-content {
    opacity: 0 !important;
    max-height: 0 !important;
    pointer-events: none !important;
    padding: 0 !important;
  }

  /* Show dropdown when dropdown-open class is added via JS */
  .dropdown.dropdown-open .dropdown-content {
    opacity: 1 !important;
    max-height: 500px !important;
    pointer-events: auto !important;
    padding: 0.5rem 0 !important;
  }

  .dropdown.dropdown-open .dropbtn {
    color: var(--accent-red);
  }

  .dropdown-content li {
    padding: 0;
  }

  .dropdown-content li a {
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    display: block;
    text-align: center;
  }

  .dropdown-content li a:hover {
    background: rgba(237, 28, 36, 0.1);
    color: var(--accent-red);
  }

  .dropbtn {
    width: 100%;
    text-align: center;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .dropdown.dropdown-open .dropbtn {
    color: var(--accent-red);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-image {
    display: none;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .feature-showcase {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .feature-showcase.reverse {
    direction: ltr;
  }

  .feature-visual {
    order: -1;
  }

  .feature-title {
    font-size: 2rem;
  }

  .feature-float-card {
    right: 20px;
  }

  .feature-float-card.second {
    left: 20px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-brand {
    order: 1;
  }

  .footer-links {
    order: 2;
  }

  .footer-newsletter {
    order: 3;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}
/* Features Section - Special Showcase */
.features-section {
  padding: 100px 0;
  background: var(--white);
  overflow: hidden;
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 8rem;
}

.feature-showcase.reverse {
  direction: rtl;
}

.feature-showcase.reverse .feature-content {
  direction: ltr;
}

.feature-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent-red), #ff4444);
  color: var(--white);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.feature-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.feature-description {
  font-size: 1.2rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.feature-specs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.spec {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.spec i {
  font-size: 24px;
  color: var(--accent-red);
  width: 50px;
  height: 50px;
  background: rgba(237, 28, 36, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

.spec p {
  color: var(--neutral-gray);
  margin: 0;
}

/* Feature Visuals */
.feature-visual {
  position: relative;
}

.camera-showcase,
.solar-showcase,
.electrical-showcase {
  position: relative;
}

.camera-showcase img,
.solar-showcase img,
.electrical-showcase img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

.feature-float-card {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--white);
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.8s ease;
}

.feature-float-card.second {
  top: auto;
  bottom: 20px;
  right: auto;
  left: -30px;
  animation-delay: 0.3s;
}

.feature-float-card i {
  font-size: 20px;
  color: var(--accent-red);
}

.feature-float-card span {
  font-weight: 600;
  color: var(--primary-blue);
}

/* Energy Meter */
.energy-meter {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
}

.meter-display {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.meter-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-red);
}

.meter-label {
  font-size: 12px;
  color: var(--neutral-gray);
}

.meter-bar {
  width: 100%;
  height: 10px;
  background: var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
}

.meter-fill {
  width: 85%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red), #ff6b6b);
  border-radius: 10px;
  animation: fillBar 2s ease;
}

/* New Contact Cards */
.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(237, 28, 36, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.contact-card-icon.whatsapp {
  background: #25d366;
  color: var(--white);
}

.contact-card-icon.facebook {
  background: #1877f2;
  color: var(--white);
}

.contact-card-icon.instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: var(--white);
}

.contact-card-content h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.contact-card-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.contact-action {
  color: var(--accent-red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.contact-card:hover .contact-action {
  gap: 10px;
}

.contact-map {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.map-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.map-info i {
  font-size: 24px;
  color: var(--accent-red);
}

.map-info h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.map-info p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fillBar {
  from {
    width: 0;
  }
  to {
    width: 85%;
  }
}
@media (max-width: 900px) {
  .contact-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}
/* Navbar adjustments */
.navbar .logo span {
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

.navbar .nav-menu a {
  color: var(--text-dark);
}

.navbar .hamburger span {
  background: var(--primary-blue);
}

/* Update portfolio styles to features */
.features-section {
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Responsive Design */
@media (max-width: 1400px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .container {
    max-width: 1100px;
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer tablet layout - 2 columns */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1rem;
  }

  .footer-links {
    text-align: center;
    justify-self: center;
  }

  .footer-newsletter {
    text-align: center;
    justify-self: center;
  }

  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0.5rem 0;
  }

  .logo-link {
    order: 1;
    flex: 0 0 auto;
  }

  .logo img {
    height: 50px !important;
  }

  /* Container for cart and hamburger - MUST stay in one row */
  .nav-actions {
    order: 2;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
  }

  .cart {
    order: unset;
    margin-left: 0;
    flex: 0 0 auto;
    padding: 0.25rem;
    flex-shrink: 0;
  }

  .cart svg {
    width: 30px;
    height: 30px;
  }

  .quantity {
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    top: -2px;
    right: -2px;
  }

  .hamburger {
    order: unset;
    display: flex !important;
    flex-direction: column;
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  .search-container {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 115px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s ease-in-out;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    order: 4;
    z-index: 999;
    max-height: calc(100vh - 115px);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    color: var(--text-dark) !important;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-image {
    display: none;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    justify-content: space-around;
    gap: 1rem;
  }

  .stat h3 {
    font-size: 1.5rem;
  }

  .stat p {
    font-size: 0.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-showcase.reverse {
    direction: ltr;
  }

  .feature-visual {
    order: -1;
  }

  .feature-title {
    font-size: 1.8rem;
  }

  .feature-description {
    font-size: 1rem;
  }

  .feature-float-card {
    right: 10px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .feature-float-card.second {
    left: 10px;
  }

  .energy-meter {
    right: 15px;
    bottom: 15px;
    min-width: 150px;
    padding: 15px;
  }

  .meter-value {
    font-size: 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .newsletter-form {
    max-width: 300px;
    margin: 1rem auto 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .feature-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  /* Navigation on very small screens */
  .nav-wrapper {
    padding: 0.5rem 0;
    gap: 8px;
  }

  .logo img {
    height: 40px !important;
  }

  /* CRITICAL: Keep cart and hamburger in same row */
  .nav-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap !important;
  }

  .cart {
    margin-right: 0;
    padding: 0.2rem;
    flex-shrink: 0;
  }

  .cart svg {
    width: 26px;
    height: 26px;
  }

  .quantity {
    font-size: 9px;
    min-width: 14px;
    height: 14px;
  }

  .hamburger {
    flex-shrink: 0;
  }

  .hamburger span {
    width: 22px;
    height: 2px;
    margin: 2px 0;
  }

  .nav-menu {
    top: 100px;
    max-height: calc(100vh - 100px);
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  /* Footer mobile layout - items in rows */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 0 1rem;
  }

  .footer-brand {
    order: 1;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-links {
    order: 2;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-newsletter {
    order: 3;
  }

  .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-links ul li {
    margin-bottom: 0;
  }

  .social-links {
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .social-links a:hover {
    transform: translateY(-2px);
  }

  .newsletter-form {
    max-width: 100%;
    margin: 1rem auto 0;
    flex-direction: column;
    gap: 0.5rem;
  }

  .newsletter-form input {
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 25px;
    text-align: center;
  }

  .newsletter-form button {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 25px;
    width: 100%;
    justify-content: center;
  }
}

li {
  list-style-type: none;
}
li img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
#myList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  align-items: start;
  padding: 0;
  margin: 0;
  list-style: none;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.show-btn {
  margin-top: 6px;
  background: #2563eb;
  color: white;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.show-btn:hover {
  background: #1d4ed8; /* blu më e errët në hover */
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.show-btn:active {
  transform: scale(0.97);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.desc-box {
  max-height: 3.5rem; /* ~2 rreshta */
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.desc-box.expanded {
  max-height: 500px;
}
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropbtn {
  background: none;
  border: none;
  color: var(--text-dark);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  height: 100%;
}

.dropbtn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Desktop dropdown menu - shown on hover */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  color: #111;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0.5rem 0;
}

/* Dropdown links */
.dropdown-content li {
  padding: 0;
}

.dropdown-content li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #111;
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-content li a:hover {
  background: #f3f4f6;
  color: var(--accent-red);
}

/* Show on hover (desktop only - above 968px) */
@media (min-width: 969px) {
  .dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mobile adjustments - click only below 968px */
@media (max-width: 968px) {
  /* Hide hover on mobile - click only */
  .dropdown:hover .dropdown-content {
    opacity: 0 !important;
    max-height: 0 !important;
    pointer-events: none !important;
  }

  .dropdown.dropdown-open .dropdown-content {
    opacity: 1 !important;
    max-height: 500px !important;
    pointer-events: auto !important;
    padding: 0.5rem 0 !important;
  }
}
#nav-menu a {
  color: var(--text-color, #333);
  text-decoration: none;

  transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--accent-red);
}

.nav-menu a.active::after {
  width: 100%;
}
.product_text {
  text-align: center;
  padding: 1.5rem;
}

.description {
  overflow: hidden;
  transition: max-height 100.3s ease-in-out; /* ⬅️ e shpejtë dhe e butë */
}

.description.collapsed {
  max-height: 3.2em; /* about 2 lines */
}

.description.expanded {
  max-height: 1000px; /* mjaftueshëm e madhe */
}

#pagination-container {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  font-family: sans-serif;
}

#pagination-container button,
#page-numbers a {
  min-width: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: var(--light-gray);
  cursor: pointer;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: all 0.2s ease;
}

#pagination-container button:hover,
#page-numbers a:hover {
  background: #e2e6ea;
}

#page-numbers a.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
  font-weight: 600;
}

#pagination-container button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#page-numbers {
  padding-top: 0.12rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.product-link-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #007bff;
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.product-link-btn:hover {
  background: #0056b3;
}

.product_card {
  align-items: center;
  justify-content: center;
  display: grid;
  flex-direction: column;
} /* ===== Modal Base ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.modal--active {
  display: flex;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Overlay with backdrop blur */
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

/* Content Container */
.modal__content {
  position: relative;
  z-index: 1001;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2.5rem;
  border-radius: 24px;
  max-width: 580px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  animation: modalEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Close Button - Enhanced */
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
  color: #000;
}

.modal__close:active {
  transform: rotate(90deg) scale(0.9);
}

/* Image Container */
.modal__image {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
  background: white;
  padding: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Title */
.modal__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  text-align: center;
  letter-spacing: -0.02em;
}

/* Description */
.modal__description {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  margin: 0;
  max-width: 100%;
}

/* Price (if needed) */
.modal__price {
  font-weight: 700;
  font-size: 1.5rem;
  color: #0070f3;
  margin: 0.5rem 0;
}

/* Add to Cart Button - Enhanced */
.modal__add {
  padding: 16px 48px;
  background: linear-gradient(135deg, #0070f3 0%, #0051c7 100%);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.3);
  position: relative;
  overflow: hidden;
}

.modal__add::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal__add:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 112, 243, 0.4);
}

.modal__add:hover::before {
  opacity: 1;
}

.modal__add:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 112, 243, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalEnter {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal__content {
    padding: 2rem 1.5rem;
    max-width: 95%;
    gap: 1.25rem;
  }

  .modal__title {
    font-size: 1.5rem;
  }

  .modal__description {
    font-size: 0.9rem;
  }

  .modal__image {
    max-width: 220px;
  }

  .modal__add {
    padding: 14px 36px;
    font-size: 0.95rem;
  }
}
#loading-indicator,
#end-message {
  text-align: center;
  padding: 10px;
  font-style: italic;
  color: #666;
}
.logo_container {
  display: flex;
  margin: 0 auto;
  justify-content: center;
  padding-top: 5rem;
}
.logo_container > img {
  max-height: 12rem;
  padding: 1rem;
}
.no-padding {
  padding: 20px 0 !important;
}
/* Search Container */
.search-container {
  position: relative;
  max-width: 450px;
  width: 100%;
  margin-left: 20px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

#search-input {
  width: 100%;
  padding: 12px 45px 12px 16px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  background: #fff;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
  font-family: inherit;
}

#search-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

#search-input::placeholder {
  color: #999;
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1;
}

.search-btn:hover {
  background: linear-gradient(135deg, #d61a21, #b50e15);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 2px 8px rgba(237, 28, 36, 0.3);
}

.search-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.search-btn i {
  font-size: 14px;
}

.suggestion-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1001;
  display: none;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestion-box.show {
  display: block;
}

.suggestion-box::-webkit-scrollbar {
  width: 6px;
}

.suggestion-box::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.suggestion-box::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.suggestion-box::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.suggestion-box li,
.suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid #f5f5f5;
  color: var(--text-dark);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-box li:last-child,
.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-box li:hover,
.suggestion-item:hover {
  background-color: #f8f9fa;
  padding-left: 24px;
}

.suggestion-box li.active,
.suggestion-item.active {
  background: linear-gradient(90deg, rgba(237, 28, 36, 0.1), transparent);
  color: var(--accent-red);
  font-weight: 600;
  border-left: 3px solid var(--accent-red);
  padding-left: 24px;
}

.suggestion-box li.active::before,
.suggestion-item.active::before {
  content: "→";
  color: var(--accent-red);
  margin-right: 8px;
}

/* Empty state */
.suggestion-box li.no-results {
  padding: 20px;
  text-align: center;
  color: #999;
  cursor: default;
  font-style: italic;
}

.suggestion-box li.no-results:hover {
  background-color: transparent;
  padding-left: 20px;
}

@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
    margin-left: 0;
    margin-top: 10px;
    order: 3;
  }

  #search-input {
    font-size: 14px;
    padding: 10px 40px 10px 14px;
  }

  .search-btn {
    width: 32px;
    height: 32px;
    right: 6px;
  }

  .suggestion-box {
    max-height: 250px;
  }
}

@media (max-width: 310px) {
  .search-btn {
    display: none;
  }

  #search-input {
    padding-right: 14px;
  }
}
.cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
  min-width: 40px;
  flex-shrink: 0;
}

.cart:hover {
  transform: scale(1.05);
}

.cart svg {
  width: 36px;
  height: 36px;
  color: var(--primary-blue);
  transition: var(--transition);
}

.cart:hover svg {
  color: var(--accent-red);
}

.quantity {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent-red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 320px;
  height: 100%;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  padding: 1rem;
  overflow-y: auto;
  z-index: 1000;
}
.cart-panel.hidden {
  display: none;
}
.cart-panel.open {
  display: block;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.cart-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}
.cart-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.remove-item {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent-red), #ff4444);
  color: var(--white);
  border-radius: 30px;
  font-size: 9px;
  font-weight: 600;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}
.close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex; /* To center the SVG if desired */
  align-items: center;
  justify-content: center;
}

.close-icon {
  width: 24px; /* Set desired size */
  height: 24px;
  stroke: #333; /* Color of the lines */
  stroke-width: 2; /* Thickness of the lines */
  stroke-linecap: round; /* Rounded ends for the lines */
}

/* Hover effect */
.close-button:hover .close-icon {
  stroke: #f00; /* Change color on hover */
}
.close {
  display: none;
}

/* ===== Contact block (scoped) ===== */
.touch-wrap {
  /* local tokens to avoid collisions */
  --hm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
    sans-serif;
  --hm-text: #0b0b0c;
  --hm-muted: #6b7280;
  --hm-border: #d1d5db;
  --hm-accent: #2563eb;
  --hm-accent-hover: #1d4ed8;
  --hm-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --hm-radii: 12px;
  --hm-space-s: 0.5rem;
  --hm-space-m: 1rem;
  --hm-space-l: 2rem;
  --hm-space-xl: 3rem;

  background: #ffffff; /* page already white, keeps continuity */
  padding: var(--hm-space-xl) var(--hm-space-m);
  display: flex;
  justify-content: center;
}

.form-shell {
  margin-top: 3rem;
  width: 100%;
  max-width: 560px; /* within 420–560px guidance */
  background: #ffffff;
  color: var(--hm-text);
  font-family: var(--hm-font);
  border-radius: var(--hm-radii);
  box-shadow: var(--hm-shadow);
  padding: clamp(1.25rem, 2.5vw, var(--hm-space-l));
}

.form-title {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 var(--hm-space-s);
}

.form-note {
  margin: 0 0 var(--hm-space-l);
  color: var(--hm-muted);
  font-size: 1rem;
}

/* Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: var(--hm-space-m);
}

.field label {
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--hm-text);
  background: #ffffff;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radii);
  padding: 0.75rem 0.875rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--hm-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

/* Hints & static error placeholders */
.hint {
  color: var(--hm-muted);
  font-size: 0.875rem;
}

/* Button */
.btn-primaryy {
  display: inline-block;
  width: 100%;
  border: none;
  border-radius: var(--hm-radii);
  padding: 0.95rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  background: var(--hm-accent);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.06s ease;
}

.btn-primaryy:hover,
.btn-primaryy:focus {
  background: var(--hm-accent-hover);
}

.btn-primaryy:active {
  transform: scale(0.98);
}
.checkbox-field {
  margin: 1em 0;
  display: flex;

  gap: 0.5em;
}

.checkbox-label {
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;

  user-select: none;
}

.checkbox-field input[type="checkbox"] {
  accent-color: #2563eb; /* blu elegante */
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .field input,
  .field textarea,
  .btn-primary {
    transition: none !important;
  }
}

/* Desktop breathing room */
@media (min-width: 768px) {
  .touch-wrap {
    padding: calc(var(--hm-space-xl) + 0.5rem) var(--hm-space-l);
  }
}

.buttons {
  display: flex;
  margin: 0 auto;
  justify-content: center;
  min-width: 100%;
  flex-wrap: wrap;
  align-items: center;
}
.buttons > button {
  margin: 5px;
}
.offer_btn_text {
  font-size: 12px;
}
.checkout {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent-red), #ff4444);
  color: var(--white);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1rem;

  position: absolute;
  bottom: 8px;
  right: 0;
}
.checkout > btn:hover {
  cursor: pointer;
}
.btn_container {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}
.close {
  display: none;
}

/* ============================================
   NAVBAR FIX - ENSURE CART AND HAMBURGER IN ROW
   ============================================ */

/* Global fix to ensure nav-actions is always a row */
.nav-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px;
}

/* Ensure cart and hamburger don't wrap */
.nav-actions .cart,
.nav-actions .hamburger {
  flex-shrink: 0 !important;
}

/* Extra small screens fix */
@media (max-width: 360px) {
  .nav-wrapper {
    padding: 0.4rem 0;
  }

  .logo img {
    height: 35px !important;
  }

  .nav-actions {
    gap: 4px;
  }

  .cart {
    padding: 0.15rem;
  }

  .cart svg {
    width: 24px;
    height: 24px;
  }

  .quantity {
    font-size: 8px;
    min-width: 12px;
    height: 12px;
    top: -1px;
    right: -1px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
    margin: 2px 0;
  }

  .nav-menu {
    top: 90px;
    max-height: calc(100vh - 90px);
  }

  #search-input {
    font-size: 13px;
    padding: 8px 35px 8px 12px;
  }

  .search-btn {
    width: 28px;
    height: 28px;
  }
}

/* Ensure dropdown arrow indicator */
.dropbtn::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
}

/* Mobile dropdown chevron animation */
@media (max-width: 968px) {
  .dropdown.dropdown-open .dropbtn {
    color: var(--accent-red);
  }
}
