:root {
  --gold: #d4af37;
  --gold-light: #e8d4a2;
  --gold-dark: #b8941f;
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --cream: #f5f1e8;
  --ivory: #fffaf0;
  --rose-gold: #b76e79;
  --accent-burgundy: #8b3a3a;
  --text-dark: #2a2a2a;
  --text-muted: #666666;
  --border-light: #e8dcc8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
  background: var(--cream);
  margin: 0;
  color: var(--text-dark);
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8em;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  letter-spacing: 2px;
}

.logo-area img {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.search-box {
  flex: 1;
  max-width: 500px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  font-size: 1em;
  background: var(--ivory);
  color: var(--text-dark);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
  background: #fff;
}

.header-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.social-icons a:hover {
  transform: scale(1.15);
  border-color: var(--gold);
}

.social-icons a.facebook { 
  background: linear-gradient(135deg, #1877f3 0%, #0a66c2 100%);
}

.social-icons a.youtube { 
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.social-icons a.instagram { 
  background: linear-gradient(135deg, #E4405F 0%, #c13584 100%);
}

.social-icons svg { 
  width: 20px; 
  height: 20px; 
  fill: currentColor; 
}

.order-track-btn {
  padding: 10px 18px;
  border-radius: 6px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95em;
  transition: all 0.3s;
}

.order-track-btn:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.cart-icon-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--rose-gold) 100%);
  border: none;
  position: relative;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

.cart-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.cart-icon-btn svg { 
  width: 24px; 
  height: 24px; 
  fill: var(--navy); 
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-burgundy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 50%;
  padding: 3px 5px;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== MARQUEE ===== */
.marquee-area {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.95em;
  height: 45px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee {
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  animation: marquee 45s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ===== HERO SECTION ===== */
.hero-section {
  margin: 20px auto;
  max-width: 1400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold) 0%, var(--rose-gold) 100%);
}

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
}

.hero-slide.active { 
  opacity: 1; 
}

.hero-slide-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(26, 26, 46, 0.85);
  color: var(--gold-light);
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  z-index: 3;
  border-left: 4px solid var(--gold);
  backdrop-filter: blur(8px);
}

/* ===== CATEGORY MENU ===== */
.category-menu {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(183, 110, 121, 0.1) 100%);
  margin: 0 auto;
  max-width: 1400px;
  border-radius: 8px;
  scroll-behavior: smooth;
}

.category-menu::-webkit-scrollbar {
  height: 6px;
}

.category-menu::-webkit-scrollbar-track {
  background: transparent;
}

.category-menu::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.category-menu button {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold-light);
  border: 2px solid var(--gold);
  padding: 11px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.category-menu button.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  border-color: var(--gold-dark);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.category-menu button:hover {
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--accent-burgundy) 100%);
  border-color: var(--rose-gold);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== MAIN SECTION ===== */
.main-section {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 12px;
}

.category-section {
  margin: 32px 0;
  background: transparent;
  border-radius: 12px;
  padding: 0;
}

.category-title {
  font-size: 1.4em;
  font-weight: 900;
  margin: 0 0 22px 0;
  color: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 12px;
  letter-spacing: 1px;
  position: relative;
}

.category-title::after {
  content: '✦';
  color: var(--gold);
  margin-left: 8px;
}

/* ===== PRODUCTS GRID ===== */
.products-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.product-card {
  background: linear-gradient(135deg, var(--ivory) 0%, #faf8f5 100%);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.25);
  border-color: var(--gold);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent-burgundy) 0%, #6b2a2a 100%);
  color: #fff;
  padding: 7px 12px;
  font-size: 0.75em;
  font-weight: 800;
  border-radius: 8px;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(139, 58, 58, 0.3);
  letter-spacing: 0.5px;
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gold) 0%, var(--rose-gold) 100%);
}

.product-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card .name {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .desc {
  font-size: 0.8em;
  color: var(--text-muted);
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .price-section {
  margin: 12px 0;
}

.product-card .price-new {
  font-size: 1.5em;
  font-weight: 900;
  color: var(--gold-dark);
  margin: 0;
  line-height: 1;
  letter-spacing: 0.5px;
}

.delivery-note {
  font-size: 0.8em;
  color: var(--rose-gold);
  font-weight: 700;
  margin: 8px 0 0 0;
  letter-spacing: 0.3px;
}

.buy-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  border: none;
  padding: 13px 0;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  margin-top: auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
  letter-spacing: 0.5px;
}

.buy-btn:hover {
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--accent-burgundy) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(183, 110, 121, 0.4);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold-light);
  padding: 48px 20px 24px;
  margin-top: 48px;
  border-top: 3px solid var(--gold);
}

.footer .container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer h4 {
  font-size: 1.1em;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.footer p {
  line-height: 1.8;
  color: var(--gold-light);
}

.footer a {
  color: var(--gold-light);
  text-decoration: none;
  transition: all 0.2s;
}

.footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer small {
  display: block;
  margin-top: 12px;
  color: rgba(232, 212, 162, 0.8);
  font-size: 0.9em;
}

/* ===== MOBILE FOOTER BAR ===== */
.mobile-footer-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-top: 2px solid var(--gold);
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 -4px 12px rgba(212, 175, 55, 0.15);
  }

  .mobile-footer-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7em;
    color: var(--gold-light);
    text-decoration: none;
    transition: all 0.2s;
  }

  .mobile-footer-bar a:hover {
    color: var(--gold);
  }

  .mobile-footer-bar i { 
    font-size: 20px; 
  }
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  padding: 14px 24px;
  border-radius: 8px;
  z-index: 10000;
  display: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  border-left: 4px solid var(--accent-burgundy);
}

.toast.show { 
  display: block; 
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .products-row {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .hero-slider { 
    height: 320px; 
  }
}

@media (max-width: 768px) {
  .social-icons { 
    display: none; 
  }

  .order-track-btn { 
    display: none; 
  }
  
  .nav-container {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .logo-area {
    font-size: 1.4em;
    width: 100%;
  }

  .logo-area img { 
    height: 50px;
    width: 50px;
  }

  .search-box {
    width: 100%;
    max-width: 100%;
  }

  .header-btns {
    width: 100%;
    justify-content: flex-end;
  }

  .hero-slider { 
    height: 240px; 
  }

  .hero-slide-caption {
    bottom: 16px;
    left: 16px;
    font-size: 0.95em;
    padding: 10px 14px;
  }

  .main-section { 
    padding-bottom: 90px; 
    padding: 0 8px;
  }

  .footer { 
    padding: 32px 12px 20px; 
  }

  .products-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .product-card img { 
    height: 200px; 
  }

  .product-card .name { 
    font-size: 0.9em; 
  }

  .product-card-content { 
    padding: 10px; 
  }

  .buy-btn { 
    padding: 10px 0; 
    font-size: 0.9em; 
  }

  .product-card .price-new { 
    font-size: 1.2em; 
  }

  .discount-badge {
    top: 8px;
    right: 8px;
    padding: 5px 10px;
    font-size: 0.7em;
  }
}

@media (max-width: 600px) {
  .products-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card img { 
    height: 170px; 
  }

  .product-card .name { 
    font-size: 0.85em; 
  }

  .buy-btn { 
    padding: 10px 0; 
    font-size: 0.85em; 
  }

  .product-card .price-new { 
    font-size: 1.1em; 
  }

  .category-title {
    font-size: 1.2em;
    margin-bottom: 16px;
  }

  .hero-slider { 
    height: 200px; 
  }

  .logo-area { 
    font-size: 1.3em; 
  }

  .delivery-note { 
    font-size: 0.75em; 
  }
}

@media (max-width: 480px) {
  .products-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .product-card img { 
    height: 150px; 
  }

  .product-card .name { 
    font-size: 0.8em; 
  }

  .product-card-content { 
    padding: 8px; 
  }

  .hero-slider { 
    height: 180px; 
  }

  .logo-area { 
    font-size: 1.2em; 
  }

  .logo-area img { 
    height: 45px;
    width: 45px;
  }

  .buy-btn { 
    padding: 9px 0; 
    font-size: 0.8em; 
  }

  .delivery-note { 
    font-size: 0.7em; 
  }

  .hero-slide-caption {
    font-size: 0.9em;
  }
}

@media (max-width: 360px) {
  .products-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .product-card img { 
    height: 130px; 
  }

  .product-card .name { 
    font-size: 0.75em; 
  }

  .product-card-content { 
    padding: 6px; 
  }

  .buy-btn { 
    padding: 8px 0; 
    font-size: 0.75em; 
  }

  .product-card .price-new { 
    font-size: 1em; 
  }

  .logo-area {
    font-size: 1.1em;
  }
}