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

:root {
  --primary: #8b5a2b;
  --primary-dark: #6f441f;
  --primary-light: #a06b35;
  --accent: #d4a24e;
  --dark: #14100b;
  --dark-2: #1d1610;
  --brown-bg: #2a1f15;
  --text: #4a3b2c;
  --light: #f7f2ea;
  --cream: #faf6ef;
  --border: #e5d9c8;
  --white: #fff;
  --shadow: 0 4px 20px rgba(40, 25, 10, 0.1);
  --shadow-lg: 0 12px 40px rgba(40, 25, 10, 0.22);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--cream);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 16, 11, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #2a1f15;
  transition: transform 0.3s ease;
}

.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--cream);
}

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

.logo img,
.admin-logo img {
  height: 40px;
  border-radius: 8px;
  display: inline-block;
  vertical-align: middle;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: #cfc4b4;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-link {
  text-decoration: none;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #4a3b2c;
  border-radius: 50px;
  padding: 7px 16px;
  transition: all 0.2s;
}

.admin-link:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.cart-btn:hover {
  background: #2a1f15;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #14100b 0%, #2a1f15 45%, #8b5a2b 100%);
  color: var(--cream);
  padding: 90px 0;
}

.hero-content {
  max-width: 560px;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span {
  display: block;
  font-size: 3.2rem;
  background: linear-gradient(90deg, #d4a24e, #f0d9b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  opacity: 0.95;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== Sections ===== */
.section-title {
  font-size: 1.9rem;
  color: var(--dark);
  text-align: center;
  margin-bottom: 36px;
}

.categories {
  padding: 70px 0 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-emoji {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.category-card h3 {
  color: var(--dark);
}

/* ===== Products ===== */
.products {
  padding: 50px 0 70px;
}

.products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.products-head .section-title {
  margin-bottom: 0;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--light), #efe6d8);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.05rem;
  color: var(--dark);
  margin: 6px 0;
}

.product-rating {
  color: #c9962e;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.product-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.add-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.add-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.04);
}

/* ===== About ===== */
.about {
  padding: 60px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
}

.about-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.about-card h3 {
  color: var(--dark);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: #b0a695;
  padding: 50px 0 0;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
}

.footer-brand .logo {
  color: var(--cream);
}

.footer-brand p {
  margin-top: 10px;
  font-size: 0.9rem;
}

.footer-col h4 {
  color: var(--cream);
  margin-bottom: 14px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: #b0a695;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 18px 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== Cart Drawer ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 200;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 420px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s;
}

.cart-overlay.open .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  color: var(--dark);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.cart-item-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--light);
}

.remove-btn {
  background: none;
  border: none;
  color: #b33a2a;
  font-size: 0.85rem;
  cursor: pointer;
  align-self: flex-start;
  padding: 2px;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: #999;
}

.cart-empty .empty-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 12px;
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.cart-footer .btn {
  width: 100%;
  background: var(--primary);
  color: var(--white);
}

.cart-footer .btn:hover {
  background: var(--primary-dark);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: var(--cream);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s;
  z-index: 300;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero h1 span {
    font-size: 2.4rem;
  }

  .nav {
    display: none;
  }

  .products-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ===== Auth buttons in header ===== */
#authArea {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.auth-btn:hover {
  background: var(--primary-dark);
}

.auth-btn.ghost {
  background: transparent;
  color: var(--cream);
  border-color: #4a3b2c;
}

.auth-btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.auth-link {
  text-decoration: none;
}

.user-chip {
  background: rgba(212, 162, 78, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s;
}

.user-chip:hover {
  background: var(--accent);
  color: var(--dark);
}

/* ===== WhatsApp float (auto-hides after click) ===== */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 400;
  transition: opacity 0.4s, transform 0.4s;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: var(--white);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.whatsapp-float a:hover {
  transform: scale(1.05);
}

.whatsapp-float .wa-label {
  white-space: nowrap;
}

.whatsapp-float.minimized {
  opacity: 0;
  transform: translateY(24px) scale(0.7);
  pointer-events: none;
}

@media (max-width: 768px) {
  .whatsapp-float a {
    padding: 11px;
  }

  .whatsapp-float .wa-label {
    display: none;
  }
}

/* ===== Checkout modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 220;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.checkout-modal {
  background: var(--cream);
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(16px);
  transition: transform 0.3s;
}

.modal-overlay.open .checkout-modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  color: var(--dark);
  font-size: 1.2rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}

.checkout-modal form {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.pay-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  margin: 8px 0 10px;
}

.pay-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  background: var(--white);
  transition: all 0.2s;
}

.pay-option:hover {
  border-color: var(--primary-light);
}

.pay-option input {
  position: absolute;
  opacity: 0;
}

.pay-name {
  font-weight: 800;
  color: var(--dark);
  font-size: 0.95rem;
}

.pay-option small {
  color: #9a8c7a;
  font-size: 0.72rem;
}

.pay-option.selected {
  border-color: var(--primary);
  background: rgba(139, 90, 43, 0.06);
  box-shadow: 0 0 0 1px var(--primary);
}

.pay-info {
  background: #fdf6e3;
  border: 1px solid #e0c080;
  color: #7a5c1a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin: 12px 0;
}

.pay-info.hidden {
  display: none;
}

.order-summary-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.order-summary-box h4 {
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 4px 0;
  color: var(--text);
}

.summary-line.total {
  font-weight: 800;
  color: var(--dark);
  font-size: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 8px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.btn-cancel {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel:hover {
  background: var(--light);
}

.btn-save {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 11px 26px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-save:hover {
  background: var(--primary-dark);
}

/* ===== Auth page (login / signup) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #14100b 0%, #2a1f15 55%, #8b5a2b 100%);
}

.auth-card {
  background: var(--cream);
  border-radius: 18px;
  width: 100%;
  max-width: 430px;
  padding: 34px 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.auth-card .logo {
  display: block;
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.auth-card .logo img {
  height: 46px;
}

.auth-sub {
  text-align: center;
  color: #9a8c7a;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.auth-tabs {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  border: none;
  background: none;
  padding: 9px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--primary);
  color: var(--white);
}

.auth-form .form-group input {
  background: var(--white);
}

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 14px;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.auth-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: #b0a695;
  font-size: 0.85rem;
  text-decoration: none;
}

.auth-back:hover {
  color: var(--accent);
}

.field-error {
  color: var(--danger, #b33a2a);
  font-size: 0.78rem;
  margin-top: 4px;
  display: none;
}

.input-error {
  border-color: var(--danger, #b33a2a) !important;
}

/* ===== Category Slider ===== */
.slider-wrap {
  position: relative;
}

.category-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 16px;
  scrollbar-width: none;
}

.category-slider::-webkit-scrollbar {
  display: none;
}

.category-slider .category-card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow.prev {
  left: -10px;
}

.slider-arrow.next {
  right: -10px;
}

.slider-arrow:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== Stock badges ===== */
.stock-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 4px;
}

.stock-in {
  color: #2e7d32;
  background: #eff8ef;
  border: 1px solid #a8d8ab;
}

.stock-low {
  color: #b8860b;
  background: #fdf6e3;
  border: 1px solid #e0c080;
}

.stock-out {
  color: #b33a2a;
  background: #fdf0ee;
  border: 1px solid #eaa8a0;
}

.add-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.add-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ===== Blog ===== */
.blog {
  padding: 50px 0 30px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--light), #efe6d8);
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

.blog-title {
  font-size: 1rem;
  color: var(--dark);
  margin: 6px 0 4px;
}

.blog-date {
  color: #9a8c7a;
  font-size: 0.8rem;
}

.blog-excerpt {
  font-size: 0.88rem;
  margin: 8px 0 12px;
  flex: 1;
}

.read-more-btn {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.read-more-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* Blog modal content */
.blog-modal-body {
  padding: 22px 24px;
}

.blog-modal-content .blog-tag {
  display: inline-block;
  margin-bottom: 4px;
}

.blog-modal-content .blog-date {
  display: inline-block;
  margin-left: 8px;
}

.blog-modal-content img {
  width: 100%;
  border-radius: 10px;
  margin: 14px 0;
}

.blog-modal-content p {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--text);
}

@media (max-width: 768px) {
  .slider-arrow {
    display: none;
  }

  .pay-options {
    grid-template-columns: 1fr;
  }
}

/* ===== Hero Banner Slider ===== */
.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  min-height: 420px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 420px;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Dark overlay on image banners so text stays readable */
.hero-slide[style*="background-image"] {
  position: relative;
}

.hero-slide[style*="background-image"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

.hero-slide .hero-inner {
  position: relative;
  z-index: 2;
}

.hero-slide:not([style*="background-image"]) {
  background: linear-gradient(135deg, #14100b 0%, #2a1f15 45%, #8b5a2b 100%);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.hero-arrow:hover {
  background: rgba(0,0,0,0.6);
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.hero-dot.active {
  background: var(--accent, #d4a24e);
  border-color: var(--accent, #d4a24e);
}

.hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
  color: rgba(255,255,255,0.9);
}

/* ===== Product Zoom Modal ===== */
.pv-modal {
  background: var(--cream, #faf6ef);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
}

.pv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
}

.pv-left {
  position: relative;
}

.pv-main-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f0ebe3;
  aspect-ratio: 1;
  cursor: crosshair;
}

.pv-main-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.1s ease-out;
}

.pv-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  pointer-events: none;
  opacity: 0.7;
}

.pv-main-wrap:hover .pv-zoom-hint {
  opacity: 0;
}

.pv-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pv-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #f0ebe3;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.pv-thumb.active {
  border-color: var(--primary, #8b5a2b);
}

.pv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-thumb-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
}

.pv-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.pv-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary, #8b5a2b);
  font-weight: 700;
}

.pv-name {
  font-size: 1.4rem;
  color: var(--dark, #14100b);
  line-height: 1.3;
}

.pv-rating {
  color: #c9962e;
  font-size: 0.95rem;
}

.pv-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark, #14100b);
}

.pv-desc {
  font-size: 0.9rem;
  color: var(--text, #4a3b2c);
  line-height: 1.6;
}

.pv-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.pv-qty-row label {
  font-weight: 700;
  font-size: 0.9rem;
}

.pv-qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border, #e5d9c8);
  border-radius: 8px;
  padding: 6px 12px;
}

.pv-qty-controls button {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--light, #f7f2ea);
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark, #14100b);
}

.pv-qty-controls button:hover {
  background: var(--primary, #8b5a2b);
  color: #fff;
}

.pv-qty-controls span {
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  font-size: 1.1rem;
}

.pv-add-btn {
  margin-top: 12px;
  width: 100%;
  padding: 13px;
  font-size: 1rem;
}

/* Product card image clickable */
.product-img {
  cursor: pointer;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img .zoom-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 2;
}

.product-img:hover .zoom-icon {
  opacity: 1;
}

/* ===== Banner Manager (Admin Settings) ===== */
.banner-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.banner-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--light, #f7f2ea);
  border: 1px solid var(--border, #e5d9c8);
  border-radius: 10px;
  padding: 12px;
}

.banner-preview {
  width: 100px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.banner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-preview .banner-add-text {
  font-size: 0.7rem;
  color: #999;
  text-align: center;
}

.banner-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.banner-fields input {
  padding: 8px 10px;
  border: 1px solid var(--border, #e5d9c8);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  width: 100%;
}

.banner-fields input:focus {
  outline: none;
  border-color: var(--primary, #8b5a2b);
}

.banner-remove {
  background: none;
  border: none;
  color: #b33a2a;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.banner-remove:hover {
  background: #fdf0ee;
}

/* ===== Product Gallery (Admin) ===== */
.gallery-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.gallery-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border, #e5d9c8);
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb .gallery-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: #b33a2a;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== Responsive additions ===== */
@media (max-width: 768px) {
  .pv-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: 300px;
  }
  
  .hero-slides {
    min-height: 300px;
  }
  
  .hero-slide {
    min-height: 300px;
  }
}
