:root {
  --primary: #d60000;
  --secondary: #002b5c;
  --accent: #ffcc00;
  --bg: #ffffff;
  --text: #000000;
  --muted: #6c727f;
  --surface: #f7f9fc;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(0, 22, 58, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92vw); margin: 0 auto; }
.section-title { font-size: clamp(1.4rem, 2.2vw, 2rem); margin: 0 0 .4rem; }
.section-sub { color: var(--muted); margin-top: 0; }

.site-header {
  position: sticky; top: 0; z-index: 1200; background: #fff;
  border-bottom: 1px solid #ebedf2;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .7rem; font-weight: 800; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--primary), #8f0000); color: #fff;
}
.logo-text { color: var(--secondary); font-weight: 800; }
.desktop-nav { display: flex; gap: 1rem; align-items: center; }
.desktop-nav a { padding: .45rem .75rem; border-radius: 999px; font-weight: 600; }
.desktop-nav a:hover, .desktop-nav a.active { background: var(--secondary); color: #fff; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { border: 1px solid #d8dde7; background: #fff; border-radius: 10px; padding: .5rem .7rem; cursor: pointer; }
.menu-toggle { display: none; background: transparent; border: 0; padding: .2rem; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--secondary); transition: .3s; }
.mobile-nav {
  position: fixed; inset: 76px auto 0 0; width: min(78vw, 320px); background: #fff; border-right: 1px solid #eaedf3;
  transform: translateX(-105%); transition: transform .35s ease; padding: 1rem;
  display: flex; flex-direction: column; gap: .5rem; z-index: 1300;
}
.mobile-nav a { padding: .75rem .7rem; border-radius: 10px; font-weight: 600; }
.mobile-nav a:hover { background: #f1f4f9; }
.mobile-nav.open { transform: translateX(0); }

.hero { position: relative; overflow: hidden; background: #081a33; color: #fff; }
.hero-slider { position: relative; min-height: clamp(420px, 68vh, 680px); }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease;
  background-size: cover; background-position: center;
}
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(0,0,0,.7), rgba(0,0,0,.35)); }
.slide.active { opacity: 1; }
.slide-content {
  position: relative; z-index: 2; max-width: 680px; padding: 5rem 0 2rem;
}
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin: .3rem 0 .7rem; }
.hero p { max-width: 58ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.slider-controls { position: absolute; right: 4%; bottom: 1.2rem; display: flex; gap: .5rem; z-index: 3; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); }
.slider-dot.active { background: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: 0; border-radius: 10px; padding: .7rem 1.1rem; font-weight: 700; cursor: pointer; transition: transform .2s ease, filter .2s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-light { background: #fff; color: var(--secondary); }

.feature-strip { background: #f8fbff; border-top: 1px solid #e5edf7; border-bottom: 1px solid #e5edf7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem 0; }
.feature-grid article { background: #fff; border-radius: 12px; padding: 1rem; box-shadow: 0 2px 12px rgba(11,34,68,.08); }

.delivery, .fresh-section, .product-section, .brands, .help, .video-gallery { padding: 3.2rem 0; }
.panel { background: var(--secondary); color: #fff; border-radius: 16px; padding: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fresh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; }
.fresh-image { min-height: 320px; border-radius: var(--radius); background: linear-gradient(145deg,#2d3f57,#0d1f3f); box-shadow: var(--shadow); position: relative; }
.fresh-image::after { content: 'Fresh produce & pantry supplies'; position: absolute; bottom: 14px; left: 14px; background: rgba(255,255,255,.9); color: var(--secondary); border-radius: 8px; padding: .5rem .7rem; font-weight: 700; }

.video-gallery { background: var(--surface); overflow: hidden; }
.video-track {
  display: flex; gap: 1rem; width: max-content; animation: scrollGallery 45s linear infinite;
}
.video-gallery:hover .video-track { animation-play-state: paused; }
.video-card {
  width: 260px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,.09);
  cursor: pointer;
  transition: transform 0.2s;
}
.video-card:hover {
  transform: scale(1.02);
}
.video-thumb {
  width: 100%;
  height: 146px; /* 16:9 aspect */
  overflow: hidden;
  background: #000;
}
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* ensures clicks go to card */
}
.video-meta {
  padding: .7rem;
}
.video-meta h3 {
  font-size: .95rem;
  margin: 0 0 .3rem;
}
.video-meta p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}
@keyframes scrollGallery { from { transform: translateX(0);} to { transform: translateX(-50%);} }

.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.product-card { border: 1px solid #e6ebf2; border-radius: 12px; padding: 1rem; box-shadow: 0 5px 20px rgba(9,26,53,.05); background: #fff; }
.badge { font-size: .75rem; background: var(--accent); border-radius: 999px; padding: .2rem .55rem; font-weight: 700; }
.price { font-size: 1.2rem; font-weight: 800; color: var(--secondary); }

.brand-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.brand-strip span { border: 1px dashed #ccd7e7; border-radius: 12px; padding: .9rem; text-align: center; font-weight: 700; color: #2e4668; }
.help-card { background: linear-gradient(130deg,var(--secondary),#061c3a); color:#fff; border-radius: 16px; padding: 1.4rem; display:flex; justify-content:space-between; gap:1rem; align-items:center; }

.site-footer { background: #061123; color: #dce5f3; padding: 3rem 0 1rem; }
.footer-grid { display: grid; gap: 1.2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer h3, .site-footer h4 { color: #fff; margin: 0 0 .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: #dce5f3; }
.site-footer a:hover { color: var(--accent); }
.newsletter { display: flex; gap: .5rem; }
.newsletter input { flex:1; border-radius: 10px; border: 1px solid #274364; background: #081a33; color: #fff; padding: .65rem; }
.payments { display: flex; gap: .5rem; flex-wrap: wrap; font-size: 1.5rem; }
.copyright { text-align: center; margin-top: 1rem; border-top: 1px solid #133156; padding-top: 1rem; font-size: .9rem; }

.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(400px, 92vw); background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.2);
  transform: translateX(104%); transition: transform .35s; z-index: 1400; padding: 1rem; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-list { flex:1; overflow: auto; display: flex; flex-direction: column; gap: .6rem; }
.cart-item { display:flex; justify-content: space-between; gap: .5rem; border:1px solid #e7ebf2; border-radius:10px; padding:.55rem; }
.overlay { position: fixed; inset: 0; background: rgba(6,18,35,.5); opacity: 0; pointer-events: none; transition: .3s; z-index: 1300; }
.overlay.show { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: .3s; z-index: 1500;
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal-box { width: min(460px, 92vw); background: #fff; border-radius: 14px; padding: 1.1rem; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: .7rem; }
.input { width: 100%; border: 1px solid #d4dceb; border-radius: 10px; padding: .7rem; }

.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; background: #fff; border:1px solid #dbe2ef; box-shadow: var(--shadow); border-radius: 12px; padding: .8rem; display:none; z-index: 1600; }
.cookie-banner.show { display: flex; justify-content: space-between; gap: .8rem; align-items: center; }

.whatsapp-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 1250; width: 56px; height: 56px; border-radius: 50%; border: 0; color: #fff; background: #1db954; font-size: 1.6rem; box-shadow: var(--shadow); touch-action: none; }
.chat-widget { position: fixed; right: 1rem; bottom: 4.8rem; width: min(340px, 92vw); background:#fff; border-radius: 14px; box-shadow: var(--shadow); display:none; z-index: 1250; }
.chat-widget.open { display:block; }
.chat-head { background: #1db954; color: #fff; padding: .7rem .8rem; border-radius: 14px 14px 0 0; }
.chat-body { padding: .8rem; }
.chat-body a { color: var(--secondary); font-weight: 700; }

.page-hero { background: linear-gradient(120deg,#071a35,#123f7e); color:#fff; padding: 3rem 0; }
.page-content { padding: 2.2rem 0 3rem; }
.grid-2 { display:grid; grid-template-columns: repeat(2,1fr); gap:1rem; }
.card { background:#fff; border:1px solid #e7edf5; border-radius: 12px; padding:1rem; box-shadow:0 4px 20px rgba(6,30,68,.06); }
.map-placeholder { min-height: 250px; border-radius: 12px; background: #e9eff8; display:grid; place-items:center; color:#234068; font-weight:700; }
.not-found { min-height: 70vh; display:grid; place-items:center; text-align:center; }
.not-found h1 { font-size: clamp(4rem, 12vw, 8rem); margin:0; color: var(--primary); animation: float 2s ease-in-out infinite; }
@keyframes float { 0%,100%{transform: translateY(0);}50%{transform:translateY(-8px);} }

[data-animate] { opacity: 0; transform: translateY(24px); transition: .6s ease; }
[data-animate].show { opacity:1; transform: translateY(0); }

.rotating-foodstuff { padding: 0 0 3.2rem; }
.foodstuff-stage {
  min-height: 340px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  display: flex;
  align-items: end;
  transition: background-image .7s ease-in-out;
}
.foodstuff-overlay {
  width: 100%;
  color: #fff;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72));
  border-radius: 0 0 16px 16px;
}
.designer-credit {
  text-align: center;
  margin: .4rem 0 0;
  font-size: .92rem;
}
.designer-credit a { color: var(--accent); font-weight: 700; }

/* ========== VIDEO MODAL (LIGHTBOX) ========== */
.video-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.video-modal.show {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: min(90%, 1000px);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.video-modal-close:hover {
  color: var(--accent);
}

#modalVideo {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
}

/* ========== ANNOUNCEMENT POPUP CAROUSEL ========== */
.announcement-popup {
  display: none;
  position: fixed;
  z-index: 1700;
  left: 20px;
  bottom: 20px;
  width: 340px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--accent);
  animation: slideUp 0.5s ease;
  overflow: hidden;
}

.announcement-popup.show {
  display: block;
}

.popup-content {
  position: relative;
  padding: 1rem 1rem 0.5rem 1rem;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.6rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
  z-index: 10;
}

.popup-close:hover {
  color: var(--primary);
}

.popup-slides {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 12px;
}

.popup-slide {
  display: none;
  text-align: center;
  transition: opacity 0.3s ease;
}

.popup-slide.active {
  display: block;
}

.popup-slide img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

.popup-slide h3 {
  margin: 0 0 0.4rem 0;
  color: var(--secondary);
  font-size: 1.2rem;
}

.popup-slide p {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 0.9rem;
}

.popup-slide .btn {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.popup-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.8rem 0 0.2rem;
}

.popup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}

.popup-dot.active {
  background: var(--primary);
}

.popup-dot:hover {
  background: var(--secondary);
}

/* Pause animation on hover */
.announcement-popup:hover .popup-slides {
  animation-play-state: paused;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1024px){
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 820px){
  .desktop-nav, .header-actions .desktop-only { display:none; }
  .menu-toggle { display:block; }
  .feature-grid, .fresh-grid, .product-grid, .brand-strip, .grid-2 { grid-template-columns: 1fr 1fr; }
  .panel, .help-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px){
  .feature-grid, .fresh-grid, .product-grid, .brand-strip, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .slide-content { padding-top: 4rem; }
  .newsletter { flex-direction: column; }
}
