/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --gold: #d4af37;
  --gold-glow: #f3e098;
  --gold-border: rgba(212, 175, 55, 0.6);
  --bg-gradient: linear-gradient(180deg, #f5f0eb 0%, #e2d7cd 100%);
  --surface-white: #ffffff;
  --surface-card: rgba(255, 255, 255, 0.85);
  --dark-hero: rgba(15, 15, 15, 0.88);
  --text-dark: #111827;
  --text-gold: #e6c667;
  --muted: #6b7280;
  --radius-pill: 30px;
  --radius-card: 16px;
}

/* Global Reset & Base Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #eae2d6 url(https://i.imgur.com/axF5ri7.png)center/cover fixed no-repeat;
  color: var(--text-dark);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 auto;
}

/* Glassmorphism Top Bar */
.announcement-bar,
.whatsapp-top-bar {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--gold);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-weight: 600;
}

.announcement-bar a,
.whatsapp-top-bar a {
  color: #25d366;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Transparent Header Navigation */
header, .main-header {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.header-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
}

.brand-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #000000;
  text-decoration: none;
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  z-index: 1;
}

.menu-toggle-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #000000;
  display: flex;
  align-items: center;
  padding: 4px;
  z-index: 2;
}

/* Pill Curved Search Bar Setup */
.search-form {
  display: flex;
  flex: 1;
  min-width: 200px;
  max-width: 450px;
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 2;
}

.search-form input {
  width: 100%;
  padding: 9px 90px 9px 18px;
  border: none;
  border-radius: var(--radius-pill);
  outline: none;
  font-size: 13px;
  background: transparent;
  color: #000000;
}

.search-form button {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  border: none;
  background: #000000;
  color: #ffffff;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cart-btn {
  text-decoration: none;
  color: #000000;
  font-weight: 700;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--gold);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 2;
}

/* Sliding Drawer Categories */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 290px;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-right: 2px solid var(--gold);
  z-index: 999;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.sidebar-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.close-sidebar-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-menu a, .sidebar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: #000000;
  color: var(--text-gold);
  border-color: var(--gold);
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed #e5e7eb;
}

.btn-add-product {
  background: linear-gradient(180deg, #f3e098, #d4af37) !important;
  color: #000000 !important;
  border: 1px solid var(--gold) !important;
  font-weight: 700;
  text-align: center;
  justify-content: center !important;
}

/* Image Hero Section Banner Update */
.hero-banner {
  max-width: 1000px;
  min-height: 280px;
  margin: 24px auto;
  padding: 0 0 24px 0;
  background: url('https://i.imgur.com/wmJvQDM.png') center/cover no-repeat;
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.hero-banner h1, .hero-banner h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-gold);
  letter-spacing: 1px;
}

.hero-banner p {
  font-size: 14px;
  color: #e5e7eb;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #f3e098 0%, #d4af37 100%);
  color: #000000;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

/* Trending Masterpieces Title */
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #000000;
  margin: 24px 0 16px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Product Cards Layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.product-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  height: 34px;
  overflow: hidden;
}

.product-title a {
  color: #111827;
  text-decoration: none;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
}

.sale-price {
  font-size: 15px;
  font-weight: 800;
  color: #000000;
}

.regular-price.strike {
  font-size: 12px;
  color: #6b7280;
  text-decoration: line-through !important;
}

.card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.btn-add-bag {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.btn-wa-card {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Admin Card Actions */
.admin-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
}

.btn-edit-pill, .btn-remove-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
}

.btn-edit-pill {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.btn-remove-pill {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Toast Notification */
.custom-toast-notification {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #ffffff;
  border: 1px solid var(--gold);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 13px;
  transition: top 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.custom-toast-notification.show {
  top: 16px;
}

/* Footer Section */
footer {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--gold);
  padding: 32px 16px 20px;
  margin-top: 40px;
  color: #d1d5db;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-gold);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #222222;
  font-size: 12px;
  color: #6b7280;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .header-body {
    padding: 8px 12px;
  }

  .brand-logo {
    font-size: 16px;
  }

  .search-form {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-info {
    padding: 8px;
  }

  .product-title {
    font-size: 12px;
  }

  .sale-price {
    font-size: 13px;
  }

  .hero-banner {
    min-height: 200px;
    padding-bottom: 16px;
  }
}
