/* Premium Minimalist Theme (Vercel/Linear Inspired) */

/* Base Reset & Variables */
:root {
  /* Refined neutral palette */
  --bg-main: #fffdf8;
  --bg-soft: #f8f3eb;
  --bg-mute: #f2ebe0;
  --bg-border: #e8dece;

  --text-main: #1f1a17;
  --text-muted: #5f5348;
  --text-subtle: #9b8b7b;

  /* Elegant bronze accent */
  --accent-blue-subtle: #f5ede1;
  --accent-blue-main: #8b5e3c;
  --accent-blue-hover: #6f4a2f;

  /* Other Accents */
  --accent-green: #10b981;
  --accent-red: #ef4444;

  /* Structural Geometry */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Buttery Smooth Animation Curves */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  /* Elevating Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at top right, rgba(139, 94, 60, 0.06), transparent 38%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Base Interactions & Animations */
@keyframes fadeY {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section,
.hero-section,
.product-card,
.category-card {
  animation: fadeY 0.8s var(--ease-out) both;
}

/* -------------------------------------
   NAVIGATION BAR
   ------------------------------------- */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s var(--ease-out);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}

.brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
  width: 26px;
  height: 24px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--text-main);
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.02) inset;
}

.nav-toggle span:not(:last-child) {
  margin-bottom: 4px;
}

.navbar.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.navbar.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-search-item {
  position: relative;
}

.nav-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-search-input {
  width: 170px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--bg-border);
  border-radius: 999px;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.85rem;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.nav-search-input:focus {
  outline: none;
  border-color: var(--accent-blue, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.nav-search-btn {
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: var(--text-main);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-out);
}

.nav-search-btn:hover,
.nav-search-btn:focus {
  opacity: 0.88;
}

.nav-search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 280px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-main);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 120;
  padding: 0.35rem;
}

.nav-search-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease-out);
}

.nav-search-result:hover,
.nav-search-result:focus {
  background: rgba(59, 130, 246, 0.08);
  outline: none;
}

.nav-search-result-code {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.9rem;
}

.nav-search-result-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-search-empty {
  padding: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-card-highlight {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35), var(--shadow-lg);
  transform: translateY(-2px);
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease-out);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: var(--text-main);
}

/* Dropdown styling */
.navbar .dropdown {
  position: relative;
}

.navbar .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-main);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 220px;
  list-style: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.navbar .dropdown:hover .dropdown-menu,
.navbar .dropdown:focus-within .dropdown-menu {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dropdown-toggle::after {
  content: "▾";
  margin-left: 4px;
  font-size: 0.8em;
  opacity: 0.5;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu li a:hover {
  background: var(--bg-soft);
  color: var(--accent-blue-main);
}

/* Cart Badge specifically */
.cart-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-soft);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-border);
  transition: all 0.2s var(--ease-out);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.cart-link:hover {
  background: var(--accent-blue-subtle);
  border-color: var(--accent-blue-subtle);
  color: var(--accent-blue-main);
}

#cart-count {
  font-weight: 600;
  color: var(--accent-blue-main);
}


/* -------------------------------------
   HERO / TYPOGRAPHY PANELS
   ------------------------------------- */

.hero-section {
  padding: 6rem 2rem 5rem 2rem;
  text-align: center;
  background: var(--bg-main);
  border-bottom: 1px solid var(--bg-border);
}

.hero-content {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 1;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('homebg.jpeg') center/cover no-repeat;
  opacity: 0.5;
  z-index: -1;
  border-radius: var(--radius-xl);
}

#report-cover-files-hero .hero-content::before {
  background: url('report cover file cover image.png') center/cover no-repeat;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, var(--text-main) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
}


/* -------------------------------------
   GRID SYSTEMS & CARDS
   ------------------------------------- */

.featured-section,
.products-section,
.about-section,
.testimonials-section,
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.products-section {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  margin: 3rem auto;
}

.category-cards-grid,
.products-grid,
#product-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  align-items: stretch;
}

.product-category .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* Horizontally scrollable featured products */
.featured-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-border) transparent;
  align-items: stretch;
}

.featured-scroll::-webkit-scrollbar {
  height: 8px;
  background: transparent;
  border-radius: var(--radius-pill);
}

.featured-scroll::-webkit-scrollbar-thumb {
  background: var(--bg-border);
  border-radius: var(--radius-pill);
}

.featured-scroll>.product-card {
  min-width: 280px;
  max-width: 460px;
  scroll-snap-align: start;
  flex: 0 0 auto;
  height: auto;
  align-self: stretch;
}

@media (max-width: 768px) {
  /* Ensure hamburger bars are visible on mobile: force high-contrast color and top stacking */
  .nav-toggle {
    z-index: 120 !important;
  }

  .nav-toggle span {
    background: #111 !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.03) inset;
    opacity: 1 !important;
  }

  /* Slightly increase thickness for better visibility on small screens */
  .nav-toggle span {
    height: 3px !important;
  }

  .featured-scroll {
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* Category Card Styling (Geometric & Crisp) */
.category-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Minimal Subtle Colors for Categories */
.category-card:nth-child(4n+1) {
  background: linear-gradient(180deg, #fbf5ec 0%, #fffdf8 100%);
}

.category-card:nth-child(4n+2) {
  background: linear-gradient(180deg, #f8efe6 0%, #fffdf8 100%);
}

.category-card:nth-child(4n+3) {
  background: linear-gradient(180deg, #f4efe8 0%, #fffdf8 100%);
}

.category-card:nth-child(4n+4) {
  background: linear-gradient(180deg, #fbf1e8 0%, #fffdf8 100%);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 94, 60, 0.35);
}

.category-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: transform 0.5s var(--ease-out);
}

.category-card:hover .category-img {
  transform: scale(1.02);
}

.category-title {
  font-family: 'Outfit', 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: #2d241d;
}

.category-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Product Card Styling */
.product-card {
  background: var(--bg-main);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  transition: all 0.3s var(--ease-out);
}

.product-card > .product-title,
.product-card > .product-desc,
.product-card > .product-description-box,
.product-card > .product-spec-card,
.product-card > .item-code-label,
.product-card > .item-code-select {
  width: 100%;
}

.product-card > .item-code-label:first-of-type {
  margin-top: auto;
  padding-top: 0.85rem;
}

.product-card > .quantity-group {
  width: 100%;
  max-width: 220px;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0;
}

.product-card:not(:has(.item-code-label)) > .quantity-group {
  margin-top: auto;
  padding-top: 0.85rem;
}

.product-card > .add-to-cart {
  flex-shrink: 0;
  margin-top: 0;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: rgba(37, 99, 235, 0.3);
}

.product-image {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  transition: transform 0.5s var(--ease-out);
}

.product-image:hover {
  transform: scale(1.12);
}

.product-image-tight {
  width: 190px;
  height: 190px;
  object-fit: cover;
  object-position: center;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.75rem;
  flex-grow: 0;
}

.product-description-box {
  width: 100%;
  background: #fffdf8;
  border: 1px solid #e8dece;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  min-height: 3.5rem;
  box-shadow: 0 1px 3px rgba(45, 36, 29, 0.04);
}

.product-description-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: left;
  margin: 0;
  white-space: pre-wrap;
}

.product-spec-card {
  width: 100%;
  background: #fffdf8;
  border: 1px solid #e8dece;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 1.2rem;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(45, 36, 29, 0.04);
}

.product-spec-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.product-spec-header {
  display: inline-block;
  background: #f5ede1;
  color: #6f4a2f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  margin-bottom: 0.55rem;
}

.product-spec-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 100%;
}

.product-spec-table th,
.product-spec-table td {
  padding: 0.55rem 0.5rem;
  border-right: 1px solid #e8dece;
  border-bottom: 1px solid #e8dece;
  vertical-align: middle;
  line-height: 1.35;
  word-break: break-word;
}

.product-spec-table th:last-child,
.product-spec-table td:last-child {
  border-right: none;
}

.product-spec-table thead th {
  background: #f8f3eb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5f5348;
  text-align: center;
  border-bottom: 2px solid #d9cbb8;
}

.product-spec-table tbody td {
  font-size: 0.74rem;
  color: #2d241d;
  text-align: center;
  background: #fffdf8;
}

.product-spec-table tbody tr:last-child td {
  border-bottom: none;
}

.product-spec-table tbody tr:nth-child(even) td {
  background: #faf6f0;
}

.product-spec-colour {
  font-size: 0.82rem;
  color: #374151;
  padding: 0.75rem 1rem 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-top: 1px solid #e8dece;
}

.product-spec-colour span {
  font-weight: 600;
  margin-right: 0.2rem;
}

.colour-label {
  font-weight: 500;
  color: #374151;
}

.item-code-label {
  width: 100%;
  display: block;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.3rem;
  font-family: 'Inter', sans-serif;
}

.item-code-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.9rem;
  background: #fff;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.item-code-select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Quantity Adjuster */
.quantity-group {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--bg-border);
}

.quantity-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.quantity-btn:hover {
  background: var(--bg-border);
  color: var(--text-main);
}

.quantity-input {
  width: 40px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 500;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
}

.quantity-input:focus {
  outline: none;
}


/* -------------------------------------
   BUTTONS (Linear Style)
   ------------------------------------- */

.cta-btn,
.add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  background: var(--text-main);
  border: 1px solid var(--text-main);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  width: 100%;
}

.cta-btn:hover,
.add-to-cart:hover {
  background: var(--text-muted);
  border-color: var(--text-muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.cta-btn:active,
.add-to-cart:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.hero-content .cta-btn {
  width: auto;
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--bg-border);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-content .cta-btn:hover {
  background: var(--bg-mute);
  border-color: var(--text-subtle);
}


/* -------------------------------------
   CART SECTION & NOTIFICATIONS
   ------------------------------------- */

.cart-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 3rem;
  background: var(--bg-main);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

#cart-items {
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-border);
  overflow: hidden;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--bg-border);
  background: var(--bg-main);
  transition: background 0.2s;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item:hover {
  background: var(--bg-soft);
}

.cart-item-title {
  font-weight: 500;
  flex: 1;
}

.cart-item-qty {
  font-family: monospace;
  color: var(--text-muted);
  margin: 0 1rem;
}

.cart-item-remove {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-item-remove:hover {
  background: var(--accent-red);
  color: white;
}

#send-whatsapp {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

#send-whatsapp:hover {
  background: #0ea5e9;
  /* a sleek teal/blue */
  border-color: #0ea5e9;
}

/* Toast Notifications */
.cart-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-main);
  color: var(--bg-main);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.cart-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* -------------------------------------
   ABOUT, TESTIMONIALS & CONTACT
   ------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.about-main h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-main p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-border);
  margin-bottom: 1rem;
  transition: transform 0.2s;
}

.highlight-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-blue-subtle);
}

.highlight-icon {
  font-size: 1.5rem;
  background: var(--bg-main);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--accent-blue-main);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2.5rem 2rem;
  background: var(--bg-main);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: 'Outfit', sans-serif;
  font-size: 6rem;
  color: var(--bg-border);
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  z-index: 0;
  opacity: 0.5;
}

.testimonial-card p {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.testimonial-card span {
  display: block;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Contact */
.contact-form {
  max-width: 500px;
  margin: 0 auto 3rem auto;
  background: var(--bg-main);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--bg-border);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--bg-main);
  border-color: var(--accent-blue-main);
  box-shadow: var(--shadow-glow);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.contact-details p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-details strong {
  color: var(--text-main);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid var(--bg-border);
  color: var(--text-subtle);
  font-size: 0.9rem;
}

/* -------------------------------------
   RESPONSIVE OVERRIDES
   ------------------------------------- */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 1.5rem 3rem 1.5rem;
  }

  .navbar {
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
  }

  .nav-links {
    margin-top: 1rem;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    gap: 1rem;
  }

  .nav-search-item {
    order: -1;
    width: 100%;
    flex: 1 1 100%;
  }

  .nav-search-form {
    width: 100%;
  }

  .nav-search-input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .nav-search-results {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .dropdown-menu {
    position: fixed;
    top: auto;
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .navbar {
    flex-wrap: nowrap;
    align-items: center;
    padding: 1rem 1rem;
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    margin: 0;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    z-index: 40;
  }

  .navbar.nav-open .nav-links {
    display: flex;
    max-height: 90vh;
    opacity: 1;
  }

  .nav-links a,
  .dropdown-toggle {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
    white-space: normal;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-muted);
  }

  .nav-links a:hover,
  .nav-links a:focus,
  .nav-links a.active {
    color: var(--text-main);
  }

  .dropdown-menu {
    position: static;
    transform: none;
    display: none;
    opacity: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin: 0;
  }

  .dropdown-open .dropdown-menu {
    display: flex;
    opacity: 1;
    flex-direction: column;
    gap: 0.2rem;
  }

  .dropdown-menu li a {
    padding-left: 1.25rem;
  }

  .hero-section {
    padding: 3rem 1rem 2rem;
  }

  .hero-content {
    padding: 2rem 1.25rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .featured-section,
  .products-section,
  .about-section,
  .testimonials-section,
  .contact-section {
    padding: 3rem 1rem;
  }

  .category-cards-grid,
  .products-grid,
  .product-category .products {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .category-card {
    padding: 1.5rem;
  }

  .category-img {
    height: 140px;
  }

  .product-card {
    padding: 1.5rem;
  }

  .product-image,
  .product-image-tight {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .cart-section,
  .contact-form {
    padding: 2rem 1rem;
  }
}

@media (max-width: 520px) {
  .navbar {
    padding: 1rem 0.9rem;
  }

  .nav-logo {
    justify-content: space-between;
  }

  .nav-links {
    padding: 0.7rem 0.6rem;
  }

  .nav-links a,
  .dropdown-toggle {
    padding: 0.8rem 0.9rem;
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    margin-bottom: 2rem;
  }

  .featured-scroll {
    gap: 1rem;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-detail-actions .quantity-group,
  .view-details-btn {
    width: 100%;
  }

  .cart-item {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-item-title {
    margin-bottom: 0.75rem;
  }

  .contact-details {
    flex-direction: column;
    gap: 1rem;
  }

  footer {
    padding: 2rem 1rem;
  }
}

.product-image-large {
  width: 270px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

.product-image-large1 {
  width: 400px;
  height: 163px;
  object-fit: contain;
}

.product-image-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.product-image-row .product-image {
  margin-bottom: 0;
  flex: 1 1 0;
  min-width: 0;
}

.product-image-row .product-image-large {
  width: 100%;
  max-width: 200px;
  max-height: 180px;
}

/* Product detail page */
.product-detail-page .product-detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.product-detail-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

.product-detail-back:hover {
  color: var(--text-main);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-gallery {
  position: sticky;
  top: 6rem;
}

.product-detail-image-stage {
  position: relative;
  background: #fff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
}

.product-detail-image {
  width: 100%;
  max-height: min(72vh, 640px);
  object-fit: contain;
  transition: transform 0.25s var(--ease-out);
}

.product-detail-image-stage:hover .product-detail-image {
  transform: scale(1.04);
}

.product-detail-zoom-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--bg-border);
}

.product-detail-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.product-detail-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  background: #fff;
  cursor: pointer;
}

.product-detail-thumb.active {
  border-color: var(--text-main);
}

.product-detail-thumb img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.product-detail-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.product-detail-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.product-detail-desc,
.product-detail-long-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.product-detail-options {
  margin: 1.5rem 0;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.product-detail-actions .quantity-group {
  margin: 0;
}

.product-detail-empty {
  text-align: center;
  padding: 4rem 1rem;
}

.product-image-link {
  display: block;
  text-decoration: none;
}

.product-title-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-title-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.product-card-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.view-details-btn {
  flex: 1;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--bg-border);
  background: #fff;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s var(--ease-out);
}

.view-details-btn:hover {
  background: rgba(59, 130, 246, 0.08);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.75rem;
  cursor: pointer;
}

body.lightbox-open,
body.auth-modal-open {
  overflow: hidden;
}

/* Auth nav + modal */
.nav-auth-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-auth-greeting {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-auth-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent-blue-main);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.nav-auth-btn:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-auth-btn-ghost {
  background: transparent;
  color: var(--accent-blue-main);
  border: none;
}

.nav-auth-btn-ghost:hover {
  background: var(--accent-blue-subtle);
}

.nav-auth-btn-ghost:hover {
  background: var(--bg-soft);
  transform: none;
  box-shadow: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.auth-modal-panel {
  position: relative;
  width: min(100%, 420px);
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--bg-border);
}

.auth-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.auth-modal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-tab {
  flex: 1;
  border: 1px solid var(--bg-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}

.auth-tab.active {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

.auth-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.auth-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.auth-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-detail-gallery {
    position: static;
  }
}

/* Mobile: fixed black hamburger button at top-right */
@media (max-width: 768px) {
  .nav-toggle {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    padding: 6px !important;
    background: transparent !important;
    border-radius: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    display: inline-flex !important;
    box-shadow: none !important;
    z-index: 99999 !important;
    border: 0;
  }

  .nav-toggle span {
    width: 18px !important;
    height: 2.5px !important;
    background: #111 !important;
    border-radius: 2px !important;
    margin-bottom: 3px !important;
    box-shadow: none !important;
  }

  .nav-toggle span:last-child {
    margin-bottom: 0 !important;
  }

  .nav-toggle:focus {
    outline: 2px solid rgba(0,0,0,0.06) !important;
    outline-offset: 2px !important;
  }
}
