﻿/* ==========================================================================
   ALZALUX E-COMMERCE DESIGN SYSTEM (MEGATRADING.BE STYLE)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-main: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-primary: #123c34;       /* Deep Forest Teal / Green (Megatrading style) */
  --color-primary-hover: #0e2e28;
  --color-accent: #1b5e50;
  --color-text-main: #1e293b;     /* Dark Charcoal */
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-bg-page: #ffffff;
  --color-bg-light: #f8fafc;
  --color-border: #f1f5f9;
  --color-border-subtle: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.06);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   MINIMALIST TOP HEADER (EXACT MEGATRADING LAYOUT)
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 70px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Hamburger toggle icon */
.nav-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  margin-right: -0.5rem;
}

.nav-toggle-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text-main);
}

.brand-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

.brand-logo span {
  color: var(--color-primary);
}

/* Top Horizontal Nav Links (Megatrading style) */
.header-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

@media (max-width: 1024px) {
  .header-nav-links {
    display: none;
  }
}

.header-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-main);
  transition: var(--transition);
  white-space: nowrap;
}

.header-nav-link:hover {
  color: var(--color-primary);
}

/* Right header tools */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Minimal search pill */
.search-pill-wrap {
  position: relative;
  width: 240px;
}

@media (max-width: 768px) {
  .search-pill-wrap {
    display: none;
  }
}

.search-pill-input {
  width: 100%;
  background: #f4f5f7;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem 0.45rem 2.2rem;
  font-size: 0.8125rem;
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition);
}

.search-pill-input:focus {
  background: #ffffff;
  border-color: var(--color-border-subtle);
  box-shadow: 0 0 0 3px rgba(18, 60, 52, 0.06);
}

.search-pill-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 0.8125rem;
  pointer-events: none;
}

/* Search Dropdown */
.search-live-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 0.75rem;
  display: none;
  z-index: 120;
}

.search-live-dropdown.active {
  display: block;
}

.search-drop-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.search-drop-item:hover {
  background: var(--color-bg-light);
}

.search-drop-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.search-drop-info h4 {
  font-size: 0.8125rem;
  font-weight: 600;
}

.search-drop-info p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.search-drop-price {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Icons on right */
.header-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-main);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}

.header-icon-btn:hover {
  color: var(--color-primary);
}

.icon-svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
  stroke: currentColor;
  fill: none;
}

.cart-bubble {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Flag selector */
.header-lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
}

.flag-round {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.08);
}

/* ==========================================================================
   FULL-WIDTH EDITORIAL HERO (EXACT MEGATRADING BANNER)
   ========================================================================== */
.hero-fullwidth {
  position: relative;
  width: 100%;
  height: 560px;
  background-color: #e5e5e5;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0) 100%),
                    url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: center;
}

.hero-content-box {
  max-width: 580px;
  color: #ffffff;
  padding-left: 2rem;
}

@media (max-width: 768px) {
  .hero-fullwidth {
    height: 440px;
  }
  .hero-content-box {
    padding-left: 1rem;
    max-width: 90%;
  }
}

.hero-main-heading {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .hero-main-heading {
    font-size: 2rem;
  }
}

.hero-sub-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.65rem 1.65rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hero-action-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   CATEGORIES GRID (EXACT MEGATRADING PASTEL CARDS)
   ========================================================================== */
.categories-section {
  padding: 4rem 0 3.5rem;
}

.section-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-title-clean {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

.section-link-all {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.section-link-all:hover {
  color: var(--color-primary);
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 992px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Pastel Card */
.cat-card-pastel {
  height: 155px;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.cat-card-pastel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Pastel Card Background Colors (Matching Megatrading exactly) */
.cat-card-pastel.blue {
  background-color: #dbeafe; /* Soft sky blue */
}

.cat-card-pastel.purple {
  background-color: #ede9fe; /* Soft lavender */
}

.cat-card-pastel.sand {
  background-color: #fef3c7; /* Soft warm sand */
}

.cat-card-pastel.rose {
  background-color: #ffe4e6; /* Soft pastel rose */
}

.cat-card-pastel.mint {
  background-color: #dcfce7; /* Soft pastel mint */
}

.cat-card-pastel.yellow {
  background-color: #fef9c3; /* Soft pastel yellow */
}

.cat-card-text-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  z-index: 2;
  max-width: 60%;
}

.cat-card-title {
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--color-text-main);
  font-weight: 400;
}

.cat-card-title strong {
  font-weight: 700;
}

.cat-card-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cat-card-img-wrap {
  width: 125px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cat-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.08));
  transition: transform 0.3s ease;
}

.cat-card-pastel:hover .cat-card-img {
  transform: scale(1.06);
}

/* ==========================================================================
   PRODUCT SHOWCASE SECTION
   ========================================================================== */
.products-section {
  padding: 1rem 0 4rem;
}

.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .product-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .product-cards-grid {
    grid-template-columns: 1fr;
  }
}

.product-item-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.product-item-card:hover {
  border-color: var(--color-border-subtle);
  box-shadow: var(--shadow-hover);
}

.product-photo-wrap {
  width: 100%;
  height: 220px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.85rem;
  position: relative;
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-item-card:hover .product-photo {
  transform: scale(1.05);
}

.product-card-category {
  font-size: 0.6875rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  min-height: 2.7em;
}

.product-card-rating {
  font-size: 0.6875rem;
  color: #f59e0b;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-card-rating span {
  color: var(--color-text-light);
}

.product-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.product-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.product-add-btn {
  background: #f4f5f7;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-main);
  transition: var(--transition);
}

.product-add-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* ==========================================================================
   MINIMALIST FOOTER
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--color-border-subtle);
  padding: 3.5rem 0 2rem;
  color: var(--color-text-muted);
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .footer-columns-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 550px) {
  .footer-columns-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-list a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-nav-list a:hover {
  color: var(--color-primary);
}

.footer-bottom-bar {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-light);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Slide-out Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  z-index: 210;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-slide-panel.active {
  transform: translateX(0);
}

.cart-panel-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-panel-head h3 {
  font-size: 1rem;
  font-weight: 700;
}

.cart-panel-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.cart-panel-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cart-panel-foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.cart-checkout-btn {
  width: 100%;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: var(--transition);
}

.cart-checkout-btn:hover {
  background: var(--color-primary-hover);
}
