:root {
  --cream: #fdf6ec;
  --cream-dark: #f5e9d6;
  --red: #c8102e;
  --red-dark: #9e0b22;
  --brown: #3f2a24;
  --brown-light: #6b4c42;
  --green: #3cae66;
  --green-dark: #2c8a4e;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(63, 42, 36, 0.12);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 0.4em;
  color: var(--brown);
}

p {
  line-height: 1.6;
  margin: 0 0 1em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.tricolor-bar {
  height: 5px;
  display: flex;
  position: sticky;
  top: 0;
  z-index: 51;
}

.tricolor-bar span {
  flex: 1;
}

.tricolor-bar .tc-green { background: var(--green); }
.tricolor-bar .tc-white { background: var(--white); }
.tricolor-bar .tc-red { background: var(--red); }

.site-header {
  position: sticky;
  top: 5px;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brown);
  padding: 6px 2px;
}

nav.main-nav a.active,
nav.main-nav a:hover {
  color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

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

.btn-outline {
  background: transparent;
  border-color: var(--brown);
  color: var(--brown);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.cart-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brown);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-pill .count {
  background: var(--green);
  color: var(--brown);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0 4px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(90deg, rgba(20,13,11,0.66) 0%, rgba(20,13,11,0.4) 55%, rgba(20,13,11,0.12) 85%),
    url("../images/hero/hero-shop-crop.jpg") center/cover no-repeat;
}

.hero .container {
  padding-top: 70px;
  padding-bottom: 70px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 12px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 700px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.hero p {
  font-size: 1.1rem;
  max-width: 520px;
  color: #f6ece0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-actions .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero-actions .btn-outline:hover {
  background: var(--white);
  color: var(--brown);
}

/* Info strip */
.info-strip {
  background: var(--brown);
  color: var(--cream);
}

.info-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  justify-content: space-between;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  min-width: 220px;
}

.info-item .icon {
  font-size: 1.2rem;
  line-height: 1;
}

.info-item strong {
  display: block;
  color: var(--green);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

/* Section */
.section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--red);
}

.section-alt {
  background: var(--cream-dark);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* CTA banner */
.cta-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 56px 20px;
  border-radius: var(--radius);
  margin: 0 20px;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: #ffe9da;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Map */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* Footer */
footer.site-footer {
  background: var(--brown);
  color: #e9dccd;
  padding: 40px 0 24px;
}

footer.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

footer.site-footer h3 {
  color: var(--white);
  font-size: 1.1rem;
}

footer.site-footer a {
  text-decoration: none;
  color: #e9dccd;
}

footer.site-footer a:hover {
  color: var(--green);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #b6a495;
  margin-top: 30px;
}

/* ---------- Shop page ---------- */

.shop-header {
  padding: 30px 0 10px;
  text-align: center;
}

.shop-header .eyebrow {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.78rem;
}

.notice-banner {
  background: var(--green);
  color: var(--brown);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 16px;
}

.category-tabs {
  position: sticky;
  top: 70px;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.category-tabs .container {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.tab-btn {
  flex: 0 0 auto;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  color: var(--brown);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: flex-start;
  padding-top: 30px;
}

.category-block {
  margin-bottom: 46px;
}

.category-block h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--green);
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.category-sub {
  color: var(--brown-light);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.product-card .product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card h3 {
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  margin: 0;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--brown-light);
  margin: 0;
  flex: 1;
}

.product-price {
  font-weight: 700;
  color: var(--red);
  font-size: 0.95rem;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream-dark);
  border-radius: 999px;
  padding: 4px 6px;
}

.qty-stepper button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: var(--brown);
}

.qty-stepper span {
  min-width: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.add-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.add-btn:hover {
  background: var(--red-dark);
}

/* Custom cakes */
.custom-card {
  grid-column: 1 / -1;
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.custom-note {
  background: var(--white);
  border: 1px dashed var(--green);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--brown-light);
  margin-bottom: 20px;
}

.enquire-btn {
  background: var(--brown);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  width: 100%;
}

.enquire-btn:hover {
  background: var(--red);
}

.from-price {
  font-size: 0.75rem;
  color: var(--brown-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cart panel */
.cart-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 130px;
}

.cart-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.cart-empty {
  font-size: 0.9rem;
  color: var(--brown-light);
  text-align: center;
  padding: 30px 10px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
}

.cart-line .cl-name {
  font-weight: 600;
  font-size: 0.88rem;
}

.cart-line .cl-meta {
  font-size: 0.78rem;
  color: var(--brown-light);
}

.cart-line .cl-remove {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 0.78rem;
  text-decoration: underline;
  padding: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  padding-top: 14px;
  margin-top: 4px;
}

.cart-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-form label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brown-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cart-form input,
.cart-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--cream-dark);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--cream);
}

.cart-form textarea {
  resize: vertical;
  min-height: 60px;
}

.place-order-btn {
  margin-top: 8px;
  width: 100%;
  padding: 13px;
  font-size: 1rem;
}

.hint {
  font-size: 0.75rem;
  color: var(--brown-light);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(63, 42, 36, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 26px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--brown-light);
  line-height: 1;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brown);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
  text-align: center;
}

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

/* Mobile cart bar */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--red);
  color: var(--white);
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  z-index: 60;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.mobile-cart-bar span.small {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid img {
    height: 260px;
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .cart-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(105%);
    transition: transform 0.3s ease;
    z-index: 90;
  }
  .cart-panel.open {
    transform: translateY(0);
  }
  .mobile-cart-bar {
    display: flex;
  }
  .custom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  nav.main-nav a.nav-link {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid img {
    height: 160px;
  }
  .product-grid,
  .custom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    min-height: 50vh;
  }
  .cta-banner {
    margin: 0 12px;
  }
}

@media (max-width: 420px) {
  .product-grid,
  .custom-grid {
    grid-template-columns: 1fr;
  }
}
