/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background: #fffef8; color: #2b2b2b; }
a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }

/* === HEADER === */
header {
  background: #4b5c09; color: #fff; padding: 15px 20px;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 1000; flex-wrap: wrap;
}
header nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
header nav a { color: #fff; font-weight: 500; text-decoration: none !important; }
header nav a:hover { color: #f2c200; text-decoration: none !important; }

/* === BUTTONS (base) === */
.btn {
  padding: 10px 20px; border-radius: 6px; background: #4b5c09; color: #ffffff;
  border: none; cursor: pointer; font-weight: 600; transition: 0.3s; display: inline-block;
}
.btn:hover { background: #4b5c09; }
.secondary-btn { background: #a67c52; }
.secondary-btn:hover { background: #a67c52; }

/* === HERO SLIDER === */
.hero-slider { position: relative; overflow: hidden; min-height: 550px; height: clamp(300px, 55dvh, 620px); }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transform: scale(1.01);
  transition: opacity .6s ease, visibility .6s ease, transform .8s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; transform: scale(1); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 0 clamp(12px, 3vw, 24px); }
/* safety first-paint */
.hero-slider .hero-slide:first-child { opacity: 1; visibility: visible; }
/* dots (single source of truth) */
}
.slider-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 1;
}
.slider-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.3s;
}
.slider-dots .dot.active {
  background: #ffffff;
}
/* image fill */
.hero-slide, .hero-slide img { width: 100%; }
.hero-slide img { height: clamp(260px, 55vw, 70vh); object-fit: cover; }

/* === TOASTS === */
#toast, .cart-toast, .toast {
  position: fixed; bottom: 30px; right: 30px; background: #4b5c09; color: #fff;
  padding: 12px 20px; border-radius: 10px; opacity: 0; pointer-events: none;
  transform: translateY(20px); transition: 0.4s ease; z-index: 9999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
#toast.show, .cart-toast.show, .toast.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* === CHEFS === */
/* Section background with PNG + readability overlay */
.chef-section {
  position: relative;
  padding: 80px 0;
  background: url('assets/images/ancient-texture.png') center / cover no-repeat;
  isolation: isolate; /* ensures overlay stacking behaves predictably */
}

.chef-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 236, 0.85); /* warm cream veil; tweak 0.7–0.9 */
  z-index: -1; /* keeps overlay behind content */
}

/* Heading */
.chef-section .section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  color: #1f2b14; /* dark moss to contrast */
  text-align: center;
  margin-bottom: 28px;
}

/* Subtle subtitle (optional) */
.chef-section .section-subtitle {
  text-align: center;
  color: #5b6a4a;
  margin: -6px 0 36px;
  font-size: 16px;
}

.chefs-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-top: 40px; }
.chef-card { width: 220px; height: 300px; perspective: 1000px; }
.chef-inner {
  width: 100%; height: 100%; position: relative; transition: transform 0.8s;
  transform-style: preserve-3d;
}
.chef-card:hover .chef-inner { transform: rotateY(180deg); }
.chef-front, .chef-back {
  position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
  border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.chef-front img { width: 100%; height: 100%; object-fit: cover; }
.chef-back {
  background: #4b5c09; color: #fff; display: flex; flex-direction: column;
  justify-content: center; align-items: center; transform: rotateY(180deg);
}
.chef-modal {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  justify-content: center; align-items: center; z-index: 9999; padding: 20px;
}
.chef-modal-content {
  background: #ffffff; padding: 30px 20px; border-radius: 16px; text-align: center;
  max-width: 380px; width: 90%; position: relative; animation: fadeIn 0.4s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); border: 2px solid #4b5c09;
}
.chef-modal-content img {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.chef-modal-content h3 { margin-top: 15px; color: #4b5c09; font-size: 22px; }
.chef-modal-content p { margin-top: 10px; font-size: 15px; color: #4a4a4a; line-height: 1.4; }
.close-btn {
  position: absolute; top: 12px; right: 15px; font-size: 26px; color: #2b2b2b;
  cursor: pointer; transition: color 0.3s;
}
.close-btn:hover { color: #e60000; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

/* === SHOP / PRODUCTS === */
.shop-section { padding: 60px 20px; background: rgba(242, 194, 0, 0.7); }
.section-title { text-align: center; font-size: 2rem; color: #2b2b2b; margin-bottom: 40px; }

.product-grid, .grid, .products-grid {
  display: grid; gap: clamp(12px, 2.5vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
@media (max-width: 420px){ .product-grid, .grid, .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 768px){ .product-card { width: 90%; } }

/* === PRODUCT CARD (merged; keeps computed result) === */
.product-card {
  display: block;
  background: #ffffff;
  border-radius: 12px;
  padding: 3px;                     /* last-wins padding */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;   /* last-wins transition */
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  width: 260px;                      /* preserved from earlier block */
  opacity: 1 !important;             /* preserved from earlier block */
}
.product-card:hover { transform: translateY(-3px); }
.product-card img {
  opacity: 1 !important;
  width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 15px;
}
.product-card h3, .product-card .price, .product-card .btn-group { opacity: 1 !important; }

/* === BUTTON VARIANTS (keep both systems you use) === */
.btn.secondary-btn {
  background: linear-gradient(135deg, #4b5c09, #4b5c09); color: #2b2b2b;
  border: none; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-weight: 300;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: all 0.3s ease;
}
.btn.secondary-btn:hover {
  background: linear-gradient(135deg, #f2c200, #d4aa00);
  transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}
.btn.primary-btn {
  background: linear-gradient(135deg, #4b5c09, #3e4807); color: #2b2b2b;
  border: none; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-weight: 300;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: all 0.3s ease;
}
.btn.primary-btn:hover {
  background: linear-gradient(135deg, #3e4807, #2d3605);
  transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* === PRODUCT PAGE === */
.product-page {
  display: grid; gap: 40px; max-width: 1200px; margin: 60px auto; padding: 20px; align-items: flex-start;
}
.product-images { flex: 1 1 400px; text-align: center; }
.product-images img {
  width: 100%; max-width: 450px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); margin-bottom: 20px;
}
.thumb-gallery { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.thumb-gallery img {
  width: 60px; height: 60px; border-radius: 8px; object-fit: cover; cursor: pointer; transition: transform 0.3s;
}
.thumb-gallery img:hover { transform: scale(1.1); }
.product-details { flex: 1 1 400px; }
.product-details h1 { font-size: 28px; margin-bottom: 15px; }
.product-details .price { font-size: 22px; color: #4b5c09; margin-bottom: 15px; font-weight: bold; }
.product-details p { margin-bottom: 10px; font-size: 15px; }
.ingredients-box { background: #3e4807; padding: 15px; border-radius: 8px; margin-top: 15px; border: 1px solid #e4d7c6; }
.btns { display: flex; gap: 15px; margin: 20px 0; }

/* === RELATED PRODUCTS (merged; keeps border + newer look) === */
.related-products { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; padding: 20px; }
.related-card {
  width: 220px; text-align: center; background: #ffffff; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s; overflow: hidden;
  border: 1px solid #e4d7c6; /* preserved from earlier block */
}
.related-card img { width: 100%; height: 150px; object-fit: cover; }
.related-card h4 { margin: 10px 0 5px; color: #2b2b2b; }
.related-card p { margin-bottom: 15px; color: #4b5c09; font-weight: bold; }
.related-card:hover { transform: translateY(-5px); }

/* === MODAL (product preview) === */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  justify-content: center; align-items: center; z-index: 9999; padding: 20px;
}
.modal-card {
  width: 320px; height: 420px; perspective: 1000px; position: relative; background: transparent;
}
.card-inner {
  width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.8s ease; position: relative;
}
.modal-card.flip .card-inner { transform: rotateY(180deg); }
.card-front, .card-back {
  position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
  border-radius: 14px; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.card-front img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.card-back {
  background: #ffffff; display: flex; flex-direction: column; justify-content: center; align-items: center;
  transform: rotateY(180deg); padding: 25px; text-align: center; box-sizing: border-box; border: 2px solid #4b5c09;
}
#modal-product-name { font-size: 22px; color: #4b5c09; margin-bottom: 15px; font-weight: 600; }
#modal-back-text { font-size: 15px; color: #2b2b2b; line-height: 1.4; margin-bottom: 20px; }
#flip-back-btn {
  padding: 8px 18px; background: linear-gradient(135deg, #4b5c09, #3e4807); color: #fff; border: none;
  border-radius: 8px; cursor: pointer; font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: all 0.3s ease;
}
#flip-back-btn:hover { background: linear-gradient(135deg, #3e4807, #2d3605); transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 15px rgba(0,0,0,0.25); }
#product-close-btn {
  position: absolute; top: -12px; right: -12px; background: red; color: #fff; width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; border: none; cursor: pointer; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: background 0.3s ease;
}
#product-close-btn:hover { background: #e60000; }
@media (max-width: 500px) { .modal-card { width: 90%; height: 360px; } }

/* === SPICE PARTICLES / STRIP / FRAME === */
.spice-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.spice-particles span {
  position: absolute; width: 6px; height: 6px; background: rgba(242, 194, 0, 0.7);
  border-radius: 50%; animation: floatSpices 10s linear infinite;
}
@keyframes floatSpices { 0% { transform: translateY(100%); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-100%); opacity: 0; } }
.order-modal .modal-content::before {
  content: ''; background: url('assets/images/spice-particles.png') center/contain no-repeat;
  opacity: 0.03; position: absolute; inset: 0; z-index: 0;
}
.graphic-strip { background: #4b5c09; padding: 5px 0; text-align: center; }
.strip-content {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center;
}
.strip-content img { height: 60px; max-width: auto; transition: transform 0.3s ease; }
.strip-content img:hover { transform: scale(1.5); }
.spice-framed {
  position: relative; padding: 20px; border-radius: 20px; background: #fff; overflow: hidden; z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.spice-framed::before {
  content: ""; background: url('assets/images/spice-frame.png') center/cover no-repeat;
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.85; pointer-events: none; border-radius: 20px;
}
.spice-framed > * { position: relative; z-index: 2; }

/* === SEARCH DRAWER === */
.search-drawer {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; display: none;
  padding: 40px 20px; overflow-y: auto; background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.18);
  animation: slideDown 0.4s ease-in-out; transition: all 0.3s ease;
}
.search-drawer.open { display: block; }
.search-drawer-content { max-width: 900px; margin: auto; position: relative; pointer-events: auto; z-index: 1002; }
.search-drawer::before { pointer-events: none; }
.search-close {
  position: absolute; right: 10px; top: 10px; background: none; border: none; font-size: 26px;
  cursor: pointer; color: #4b5c09; font-weight: bold;
}
.search-input {
  width: 100%; padding: 14px 18px; font-size: 1rem; border: 2px solid #e4d7c6;
  border-radius: 12px; margin-bottom: 30px; outline: none; transition: border 0.3s ease;
}
.search-input:focus { border-color: #4b5c09; }
.search-section h4 {
  margin-top: 30px; font-size: 18px; color: #4b5c09; border-bottom: 1px solid #e4d7c6; padding-bottom: 5px;
}
.search-section ul { list-style: none; padding: 0; margin: 10px 0; }
.search-section ul li {
  padding: 8px 10px; border-bottom: 1px solid #e4d7c6; font-size: 15px; cursor: pointer; transition: background 0.2s;
}
.search-section ul li:hover { background: #fffef8; }
.product-grid, .recipe-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.search-product, .search-recipe {
  width: calc(50% - 8px); background: #fffef8; border: 1px solid #e4d7c6; border-radius: 12px;
  padding: 10px; text-align: center; transition: transform 0.2s ease;
}
.search-product:hover, .search-recipe:hover { transform: translateY(-3px); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.search-product img, .search-recipe img { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 8px; }
.search-product p, .search-recipe p { font-size: 15px; color: #2b2b2b; margin: 0 0 6px; }
.search-product span { font-size: 14px; color: #666; }
.see-all-btn {
  display: block; width: fit-content; margin: 40px auto 20px; background: #4b5c09; color: white;
  padding: 12px 24px; font-size: 15px; border-radius: 25px; text-decoration: none; transition: background 0.3s;
}
.see-all-btn:hover { background: #3e4807; }
@keyframes slideDown { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 600px) {
  .search-product, .search-recipe { width: 100%; }
  .search-close { top: 6px; right: 6px; }
}
#productList { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }

/* === LOGO === */
.logo img { height: 50px; }
.logo span { color: white; font-size: 20px; font-weight: bold; }

/* === DÉCOR MEGAMENU (kept values, removed invalid) === */
:root{
  --brand:#04491a; --ink:#222; --line:#ece3d6; --card:#ffffff; --paper:#fffef8;
}
.menu-item.decor { position: relative; } /* fixed invalid 'position: margin-left' */
.menu-item.decor .menu-trigger{
  display: flex; gap: 8px;
  background: transparent; border: 0; color: #fff; cursor: pointer;
  padding: 10px 12px; border-radius: 10px;
}
.menu-item.decor .menu-trigger:hover{ background: rgba(255,255,255,.09); }
.menu-item.decor .chev{
  width:10px;height:10px;border:solid #fff;border-width:0 2px 2px 0;display:inline-block;transform:rotate(45deg);margin-left:6px
}
/* dropdown */
.mega-decor{
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 12px);
  width: clamp(720px, 70vw, 1100px); max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid #ece3d6; border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,.22); padding: 14px; margin-top: 10px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s; z-index: 1000;
}
.menu-item.decor { display: flex; align-items: center; gap: .25rem; }
.menu-item.decor .menu-link { text-decoration: none; }
.menu-item.decor .menu-trigger { background: transparent; border: 0; cursor: pointer; line-height: 1; color: inherit; padding: 2px 4px; border-radius: 6px; }
.menu-item.decor .menu-trigger[aria-expanded="true"] { outline: 2px solid #ffe600; outline-offset: 2px; }
/* visibility helpers */
.mega-decor { opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
.mega-decor[data-open="true"] { opacity: 1; visibility: visible; }
/* (kept original transform values as-is) */
.menu-item.decor:hover .mega-decor,
.menu-item.decor:focus-within .mega-decor{
  opacity: 1; visibility: visible;
  transform: translate(-10%, 6px) scale(.10);
}
/* grid/cards */
.decor-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.decor-card{
  display:block; border-radius:16px; overflow:hidden; border:1px solid #f0e7d8; background:#fff;
  text-decoration:none; color:#222; transition:transform .18s, box-shadow .18s, border-color .18s;
}
.decor-card:hover{ transform:translateY(-2px); box-shadow:0 14px 26px rgba(4,73,26,.18); border-color:#eadfcb; }
.decor-card h5{ margin:10px 12px 4px; font-size:14px; font-weight:700 }
.decor-card p{ margin:0 12px 12px; color:#666; font-size:12px }
/* thumbs */
.thumb{ display:block; height:110px; background:linear-gradient(135deg,#efe3c9,#fff); position:relative; }
.thumb::after{ content:""; position:absolute; inset:auto 15% 15% 15%; border-radius:14px; background:radial-gradient(closest-side,#fff 0%, #ffffff66 60%, transparent 70%); }
.thumb-baskets{ background-image: radial-gradient(circle at 30% 30%, #daba8a, transparent 40%), linear-gradient(135deg,#f1e4cc,#fff); background-size:cover; }
.thumb-brass{ background: radial-gradient(circle at 60% 40%, #caa75e, transparent 40%), linear-gradient(135deg,#f6edd7,#fff); }
.thumb-terracotta{ background: radial-gradient(circle at 50% 50%, #c46a3b, transparent 40%), linear-gradient(135deg,#efe2cf,#fff); }
.thumb-runners{ background: radial-gradient(circle at 50% 40%, #7a9e7e, transparent 40%), linear-gradient(135deg,#eef3ea,#fff); }
.thumb-cushions{ background: radial-gradient(circle at 40% 50%, #b86a97, transparent 40%), linear-gradient(135deg,#f2e5ee,#fff); }
.thumb-dabba{ background: radial-gradient(circle at 50% 45%, #8b6b3f, transparent 40%), linear-gradient(135deg,#efe5d6,#fff); }
.thumb-wallart{ background: radial-gradient(circle at 60% 50%, #3b4d74, transparent 40%), linear-gradient(135deg,#e6ebf3,#fff); }
.thumb-serveware{ background: radial-gradient(circle at 40% 50%, #5f8d6a, transparent 40%), linear-gradient(135deg,#eaf2ec,#fff); }
/* nav link normalization */
.nav a.nav-link.has-mega, .nav .decor > a {
  font: inherit !important; color: inherit !important; padding: inherit !important; margin: 0 !important;
  display: inline-flex; align-items: center; gap: 6px; background: transparent !important; border: 0 !important;
}
.nav a.nav-link.has-mega::after, .nav .decor > a::after {
  content: ""; width: 8px; height: 8px; border: 2px solid currentColor; border-top: 0; border-left: 0;
  transform: rotate(45deg); margin-left: .4em; position: relative; top: -1px; opacity: .9;
}
.menu-item.decor:hover > a, .menu-item.decor:focus-within > a { color: inherit; text-decoration: inherit; }
@media (max-width: 900px){ .decor-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px){
  .mega-decor{ left:50%; transform:translate(-50%,12px); }
  .menu-item.decor:hover .mega-decor, .menu-item.decor:focus-within .mega-decor{ transform:translate(-50%,6px); }
}
/* safety */
.site-header, .nav, .menu-item.decor { overflow: visible; }
.category-list a.active { background:#04491a; color:#fff; }

/* === FOOTER (single source) === */
.site-footer { background: #4b5c09; color: #fff; padding: 40px 20px; text-align: center; }
.footer-container {
  max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
}
.footer-column { flex: 1 1 200px; }
.footer-column h3, .footer-column h4 { margin-bottom: 10px; color: #f2c200; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li a { color: #fff; text-decoration: none; }
.footer-column ul li a:hover { color: #f2c200; text-decoration: underline; }
.footer-column .social-icons a { margin: 0 8px; color: #fff; font-size: 20px; transition: color 0.3s; }
.footer-column .social-icons a:hover { color: #f2c200; }
.newsletter-form { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.newsletter-form input[type="email"] {
  width: 220px; padding: 10px 15px; border-radius: 6px; border: 1px solid #e4d7c6; outline: none; font-size: 14px;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.newsletter-form input[type="email"]:focus { border-color: #f2c200; box-shadow: 0 0 8px rgba(242, 194, 0, 0.6); }
#newsletter-btn {
  background: #f2c200; color: #2b2b2b; border: none; padding: 10px 25px; border-radius: 6px; cursor: pointer; font-weight: 900;
  transition: background 0.3s, transform 0.3s;
}
#newsletter-btn:hover { background: #d4aa00; transform: scale(1.05); }
.footer-bottom {
  width: 100%; margin-top: 20px; text-align: center; font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 10px;
}
@media (max-width: 768px) {
  .footer-container, header { flex-direction: column; align-items: center; text-align: center; }
  .search-form { max-width: 100%; }
}

/* ===== Mobile Compatibility Patch (kept values) ===== */
:root{ --container-pad: clamp(12px, 3vw, 24px); --radius: 12px; }
html, body { height: 100%; max-width: 100%; overflow-x: hidden; }
body { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
h1{ font-size: clamp(24px, 4.8vw, 40px); }
h2{ font-size: clamp(20px, 4vw, 32px); }
p, li, input, textarea, button{ font-size: clamp(14px, 3.8vw, 16px); }
button, .btn, a.btn{ min-height: 28px; padding: 6px 10px; }
.img-cover{ width:100%; height:100%; object-fit:cover; }
.img-contain{ width:100%; height:100%; object-fit:contain; }
.site-header, .navbar, .hero, .hero-slider { max-width: 100vw; overflow-x: clip; }
@media (max-width: 768px){
  #searchDrawer{ inset:0; width:100%; max-width:none; }
  #searchDrawer .panel{ height:100%; overflow:auto; -webkit-overflow-scrolling:touch; }
}
.table-wrap{ width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
table{ min-width:640px; }
.footer{ padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.hide-md{ display:none !important; }
@media (min-width:768px){ .hide-md{ display:initial !important; } }

/* === Modal flip essentials (strong, safe overrides) === */
#product-modal .modal-card{ perspective:1000px; }
#product-modal .card-inner{
  position:relative; width:100%; transform-style:preserve-3d; transition:transform .8s ease;
}
#product-modal .card-front, #product-modal .card-back{
  position:absolute; inset:0; border-radius:inherit; backface-visibility:hidden; -webkit-backface-visibility:hidden;
}
#product-modal .card-back{ transform:rotateY(180deg); }
#product-modal .modal-card.flip .card-inner,
#product-modal .card-inner.flipped{ transform:rotateY(180deg); }

/* Summary card */
.oms-cart-summary{
  display:flex; gap:20px; align-items:flex-start; justify-content:space-between;
  background:#fff; border:1px solid #eceadf; border-radius:16px;
  padding:16px 18px; margin:16px 0 24px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}
.oms-summary-left { display:flex; align-items:center; }
.btn.btn-outline-oms{
  border:1px solid #04491a; background:#fff; color:#04491a; border-radius:10px; padding:10px 14px;
}
.btn.btn-outline-oms:hover{ background:#04491a; color:#fff; }

.oms-summary-right{ display:flex; gap:18px; align-items:center; }
.oms-totals{ min-width:260px; }
.oms-totals > div{ display:flex; justify-content:space-between; margin:6px 0; }
.oms-totals .grand{ font-weight:700; font-size:18px; border-top:1px solid #eee; padding-top:8px; }
.oms-totals .muted{ color:#6b705f; }

.btn-success-oms{
  background:#04491a; color:#fff; border:none; border-radius:12px; padding:12px 18px;
  box-shadow:0 6px 16px rgba(4,73,26,.18); font-weight:700;
}
.btn-success-oms[disabled]{ opacity:.5; cursor:not-allowed; }

/* Mobile sticky checkout bar */
.oms-sticky-checkout{
  position:sticky; bottom:0; z-index:30;
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; padding:10px 14px; margin-top:14px;
  background:rgba(255,255,255,.92); backdrop-filter:blur(8px);
  border-top:1px solid #eceadf;
}
.oms-sticky-checkout .price{ font-weight:800; font-size:18px; color:#1f2b14; }
@media (min-width: 768px){
  .oms-sticky-checkout{ display:none; }
}
@media (max-width: 768px){
  .oms-cart-summary{ flex-direction:column; }
  .oms-summary-right{ width:100%; justify-content:space-between; }
  .oms-totals{ flex:1; }
}

