:root {
  --navy: #234a8c;
  --navy-deep: #152c54;
  --gold: #ffd36b;
  --olive: #6b6f4a;
  --paper: #f7f6f1;
  --card: #fff;
  --ink: #1b2330;
  --muted: #5c6475;
  --line: #e4e1d4;
  --radius: 1.2rem;
  --shadow: 0 20px 42px -26px rgba(21,44,84,.38);
  --display: 'Oswald', 'Montserrat', sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--paper); -webkit-font-smoothing: antialiased; }
section[id] { scroll-margin-top: 110px; }
h1, h2, .section-title, .brand-main, .cart-popup-title, .cart-title { font-family: var(--display); text-transform: uppercase; }

/* Header */
header#main-header { background: rgba(247,246,241,.95); backdrop-filter: blur(6px); box-shadow: none; border-bottom: 3px solid var(--navy); }
.navbar { padding: .8rem 5vw .6rem; }
.logo-img { width: 46px; height: 46px; border-radius: 50%; box-shadow: none; margin-right: .7rem; }
.brand-main { font-size: 1.15rem; letter-spacing: .03em; }
.brand-main .blue { color: var(--navy); }
.brand-main .yellow { color: var(--olive); }
.brand-sub { font-size: .68rem; letter-spacing: .14em; color: var(--muted); }
#navbar-menu a { font-weight: 700; font-size: .85rem; letter-spacing: .03em; color: var(--ink); }
#navbar-menu a:hover, #navbar-menu a.active { color: var(--navy); }

main { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
main > section { margin: 0 0 clamp(3.2rem, 7vw, 5.5rem); }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--navy-deep); letter-spacing: .01em; margin-bottom: 1.3rem; }

/* Hero: full-bleed photo on the right, navy panel cut by a sharp diagonal edge on the left.
   Commits fully to the sharp geometric cut (minimal radius) with a gold pinstripe along the
   diagonal itself, instead of mixing soft rounded corners against a hard angular cut. */
#home {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: .5rem; margin-top: 1.6rem !important; box-shadow: var(--shadow);
  min-height: clamp(400px, 46vw, 520px); display: flex; align-items: stretch;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .refresh-hero-media, .hero-bg .refresh-hero-media img { width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; box-shadow: none; }
.hero-diagonal-panel {
  position: relative; width: min(66%, 640px); background: var(--navy-deep); color: #e7edf7;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0% 100%);
  filter: drop-shadow(5px 0 0 var(--gold));
  padding: clamp(2rem, 5vw, 3.6rem) clamp(2.4rem, 7vw, 4.4rem) clamp(2rem, 5vw, 3.6rem) clamp(1.8rem, 5vw, 3rem);
  display: flex; flex-direction: column; justify-content: center;
}
#home .section-title { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
#home p { color: #cdd8ec; max-width: 42ch; }
#home strong { color: var(--gold); }
#home em { color: var(--gold); font-style: italic; }

/* About */
#about { background: var(--card); border: 1px solid var(--line); border-radius: 1.6rem; padding: clamp(1.8rem,4vw,3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.about-details { font-size: .95rem; }
.about-details strong { color: var(--navy); display: block; margin-bottom: .4rem; font-size: 1.05rem; }
.about-details ul { margin: .6rem 0 0 1.1rem; }
.mission-vision { grid-column: 1 / -1; background: var(--paper); border-left: 4px solid var(--gold); border-radius: 0 .9rem .9rem 0; padding: 1.1rem 1.3rem; font-size: .92rem; }
.mission-vision strong { color: var(--navy); }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.product-card { border: none; border-radius: 1.1rem; background: var(--card); box-shadow: var(--shadow); padding: 0 0 1.2rem; overflow: hidden; transition: transform .2s; }
.product-card:hover { transform: translateY(-5px); }
.product-img { background: var(--paper); margin-bottom: .8rem; }
.product-img img { width: 100%; height: 190px; object-fit: contain; padding: 1rem; }
.product-title { font-family: var(--display); color: var(--navy-deep); font-size: 1rem; padding: 0 1rem; text-transform: none; }
.product-desc { color: var(--muted); font-size: .82rem; padding: .3rem 1rem 0; }
.product-info { color: var(--olive); font-size: .76rem; font-weight: 700; padding: .4rem 1rem 0; }
.product-price { color: var(--navy); font-weight: 800; font-size: 1.15rem; padding: .3rem 1rem .7rem; }
.add-cart-btn { margin: 0 1rem; width: calc(100% - 2rem); background: var(--navy); color: #fff; border: none; border-radius: 999px; padding: .65rem; font-weight: 700; cursor: pointer; }
.add-cart-btn:hover { background: var(--gold); color: var(--navy-deep); }

/* Cart section + popup */
#cart-section, .cart-popup, #products + section { background: var(--card); border: 1px solid var(--line); border-radius: 1.3rem; padding: 1.8rem; }
.cart-title { color: var(--navy-deep); font-size: 1.3rem; }
.checkout-btn, .cart-popup-checkout-btn { background: var(--navy); color: #fff; border: none; border-radius: 999px; padding: .75rem 1.4rem; font-weight: 700; cursor: pointer; }
.checkout-btn:hover, .cart-popup-checkout-btn:hover { background: var(--gold); color: var(--navy-deep); }
.cart-popup-btn { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 999px; padding: .7rem 1.2rem; font-weight: 700; }
.floating-cart-btn { background: #fff; box-shadow: 0 14px 28px -8px rgba(21,44,84,.5), 0 0 0 2px var(--navy) inset; }

/* Contact */
#contact { background: var(--navy-deep); color: #dbe4f3; border-radius: 1.6rem; padding: clamp(1.8rem,4vw,3rem); }
#contact .section-title { color: #fff; }
#contact ul { list-style: none; display: grid; gap: .7rem; }
#contact > ul > li { font-size: .95rem; }
#contact strong { color: var(--gold); }
#contact a { color: #fff; text-decoration: underline; }
#contact ul ul { margin-top: .3rem; }

/* Testimonials */
#testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
#testimonials .section-title { grid-column: 1 / -1; }
blockquote { background: var(--card); border-top: 4px solid var(--gold); border-radius: 0 1rem 1rem 1rem; box-shadow: var(--shadow); padding: 1.3rem 1.3rem; margin: 0; font-size: .92rem; font-style: italic; color: var(--ink); }

/* FAQ / Delivery / Legal: plain uls -> cards */
#faq ul, #delivery ul, #legal ul { list-style: none; margin: 0; display: grid; gap: .7rem; }
#faq li, #delivery li { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.2rem; font-size: .9rem; }
#faq strong, #delivery strong { color: var(--navy); }
#legal { background: var(--card); border: 1px dashed var(--navy); border-radius: 1.3rem; padding: clamp(1.6rem,4vw,2.4rem); }
#legal ul { grid-template-columns: 1fr 1fr; }
#legal li { border-bottom: 1px solid var(--line); padding: .5rem 0; font-size: .88rem; }
#legal strong { color: var(--navy); }

/* Footer */
footer { background: var(--navy-deep); color: #c6d3e8; border-radius: 1.8rem 1.8rem 0 0; }
.footer-links a { color: var(--gold); }

@media (max-width: 1000px) {
  #home { min-height: 0; display: block; }
  .hero-bg { position: relative; inset: auto; height: 240px; }
  .hero-diagonal-panel {
    width: 100%; margin-top: -32px; clip-path: polygon(0 32px, 100% 0, 100% 100%, 0% 100%);
    filter: drop-shadow(0 -5px 0 var(--gold)); text-align: center; align-items: center; padding: 2.6rem 1.6rem 2rem;
  }
  #home p { max-width: 54ch; }
  #about { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  #testimonials { grid-template-columns: 1fr; }
  #legal ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  #home { border-radius: 1.3rem; }
  .hero-bg { height: 180px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* === Quick fix 2026-11-07: layout cleanup === */
/* Product photos fill the card; buttons line up */
.product-card { align-items: stretch !important; text-align: center; }
.product-img { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; padding: 0 !important; overflow: hidden; }
.product-img img { width: 100% !important; height: 100% !important; object-fit: cover; }
.product-card button { margin-top: auto; }
/* Mobile: visible burger, menu inside the screen */
@media (max-width: 700px) {
  #main-header, .navbar { position: relative; }
  nav { position: static; }
  .burger { display: flex !important; position: absolute !important; top: 18px !important; right: 16px !important; }
  nav ul { box-sizing: border-box; width: 100% !important; left: 0 !important; right: 0 !important; }
}
