/* ================================================================
   LoveladyBread — styles.css
   Mobile-first responsive stylesheet
   Design: warm, rustic, handcrafted
================================================================ */


/* ----------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
---------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary:      #6B3F1F;
  --color-primary-dark: #5a3418;
  --color-accent:       #D4A853;
  --color-accent-dark:  #c49440;
  --color-bg:           #FAF6F0;
  --color-text:         #2C1A0E;
  --color-text-light:   #7A5C44;
  --color-white:        #FFFFFF;
  --color-card-bg:      #FFFFFF;
  --color-border:       #E8DDD0;
  --color-error:        #C0392B;
  --color-success:      #27AE60;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px  rgba(44, 26, 14, 0.08);
  --shadow-md: 0 4px 20px rgba(44, 26, 14, 0.12);
  --shadow-lg: 0 8px 40px rgba(44, 26, 14, 0.18);

  /* Radii */
  --radius:    8px;
  --radius-lg: 16px;
  --radius-pill: 100px;

  /* Transitions */
  --transition: all 0.25s ease;

  /* Layout */
  --max-width:  1200px;
  --nav-height: 70px;
}


/* ----------------------------------------------------------------
   Reset & Base
---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin:     0;
  padding:    0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:      var(--font-body);
  background-color: var(--color-bg);
  color:            var(--color-text);
  line-height:      1.6;
  font-size:        1rem;
}

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

a {
  color:           inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor:      pointer;
  font-family: var(--font-body);
  border:      none;
  background:  none;
}

input,
textarea,
select {
  font-family: var(--font-body);
}


/* ----------------------------------------------------------------
   Typography
---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color:       var(--color-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem,    5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem,  3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }

p {
  color:       var(--color-text-light);
  line-height: 1.8;
}


/* ----------------------------------------------------------------
   Layout Utilities
---------------------------------------------------------------- */
.container {
  width:      100%;
  max-width:  var(--max-width);
  margin:     0 auto;
  padding:    0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2.5rem; }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

.section__header {
  text-align:    center;
  margin-bottom: 3rem;
}

.section__header p {
  max-width:   600px;
  margin:      1rem auto 0;
  font-size:   1.1rem;
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }


/* ----------------------------------------------------------------
   Navigation
---------------------------------------------------------------- */
.nav {
  position:         sticky;
  top:              0;
  z-index:          1000;
  background-color: var(--color-primary);
  height:           var(--nav-height);
  display:          flex;
  align-items:      center;
  box-shadow:       var(--shadow-md);
}

.nav__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  width:           100%;
}

/* Logo */
.nav__logo {
  font-family:   var(--font-heading);
  font-size:     1.5rem;
  color:         var(--color-white);
  letter-spacing: 0.5px;
  line-height:   1;
}

.nav__logo span {
  color: inherit;
}

/* Desktop links */
.nav__links {
  display:     none;
  gap:         2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
}

.nav__links a {
  color:          rgba(255, 255, 255, 0.85);
  font-size:      0.9rem;
  font-weight:    700;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  transition:     var(--transition);
  position:       relative;
  padding-bottom: 4px;
}

.nav__links a::after {
  content:          '';
  position:         absolute;
  bottom:           0;
  left:             0;
  width:            0;
  height:           2px;
  background-color: var(--color-accent);
  transition:       width 0.25s ease;
}

.nav__links a:hover {
  color: var(--color-white);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a.active {
  color: var(--color-white);
}

/* CTA button in nav */
.nav__cta {
  background-color: var(--color-accent) !important;
  color:            var(--color-primary) !important;
  padding:          0.5rem 1.25rem;
  border-radius:    var(--radius);
  font-weight:      700 !important;
  transition:       var(--transition) !important;
}

.nav__cta:hover {
  background-color: var(--color-accent-dark) !important;
  transform: translateY(-1px);
}

.nav__cta::after {
  display: none !important;
}

/* Hamburger icon */
.nav__hamburger {
  display:        flex;
  flex-direction: column;
  gap:            5px;
  padding:        8px;
  cursor:         pointer;
}

@media (min-width: 768px) {
  .nav__hamburger { display: none; }
}

.nav__hamburger span {
  display:          block;
  width:            24px;
  height:           2px;
  background-color: var(--color-white);
  border-radius:    2px;
  transition:       var(--transition);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown menu */
.nav__mobile {
  display:          none;
  position:         absolute;
  top:              var(--nav-height);
  left:             0;
  right:            0;
  background-color: var(--color-primary);
  padding:          1.5rem 1.25rem;
  flex-direction:   column;
  gap:              1.25rem;
  border-top:       1px solid rgba(255, 255, 255, 0.1);
  box-shadow:       var(--shadow-md);
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  color:          rgba(255, 255, 255, 0.85);
  font-size:      1rem;
  font-weight:    700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition:     var(--transition);
}

.nav__mobile a:hover,
.nav__mobile a.active {
  color: var(--color-accent);
}

.nav__mobile .nav__cta {
  display:    inline-block;
  text-align: center;
}


/* ----------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             0.5rem;
  padding:         0.75rem 2rem;
  border-radius:   var(--radius);
  font-size:       1rem;
  font-weight:     700;
  letter-spacing:  0.5px;
  transition:      var(--transition);
  min-height:      48px;
  cursor:          pointer;
}

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

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  transform:        translateY(-2px);
  box-shadow:       var(--shadow-md);
}

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

.btn--accent:hover {
  background-color: var(--color-accent-dark);
  transform:        translateY(-2px);
  box-shadow:       var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color:            var(--color-primary);
  border:           2px solid var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color:            var(--color-white);
  transform:        translateY(-2px);
}

.btn:disabled {
  opacity:   0.5;
  cursor:    not-allowed;
  transform: none !important;
}


/* ----------------------------------------------------------------
   Hero Section (Home Page)
---------------------------------------------------------------- */
.hero {
  min-height:        calc(100vh - var(--nav-height));
  background-color:  var(--color-primary);
  background-image:
    linear-gradient(135deg, rgba(107, 63, 31, 0.96) 0%, rgba(44, 26, 14, 0.88) 100%),
    url('../images/hero-bg.jpg');
  background-size:     cover;
  background-position: center;
  display:             flex;
  align-items:         center;
  text-align:          center;
  padding:             4rem 0;
}

.hero__content {
  max-width: 750px;
  margin:    0 auto;
}

.hero__eyebrow {
  display:          inline-block;
  background-color: var(--color-accent);
  color:            var(--color-primary);
  font-size:        0.8rem;
  font-weight:      700;
  letter-spacing:   2px;
  text-transform:   uppercase;
  padding:          0.35rem 1rem;
  border-radius:    var(--radius-pill);
  margin-bottom:    1.5rem;
}

.hero h1 {
  color:         var(--color-white);
  margin-bottom: 1.5rem;
}

.hero > .container > .hero__content > p {
  color:         rgba(255, 255, 255, 0.8);
  font-size:     clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2.5rem;
  max-width:     550px;
  margin-left:   auto;
  margin-right:  auto;
}

.hero__cta {
  display:        flex;
  gap:            1rem;
  justify-content: center;
  flex-wrap:      wrap;
}


/* ----------------------------------------------------------------
   Page Hero (inner pages: Shop, About, Contact)
---------------------------------------------------------------- */
.page-hero {
  background-color: var(--color-primary);
  padding:          4rem 0 3rem;
  text-align:       center;
}

.page-hero h1 {
  color: var(--color-white);
}

.page-hero p {
  color:        rgba(255, 255, 255, 0.75);
  margin-top:   1rem;
  font-size:    1.1rem;
  max-width:    550px;
  margin-left:  auto;
  margin-right: auto;
}

/* Page hero with side-by-side image (About page) */
.page-hero__grid {
  display:     grid;
  grid-template-columns: 1fr;
  gap:         2rem;
  align-items: center;
  text-align:  center;
}

@media (min-width: 768px) {
  .page-hero__grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .page-hero__grid .page-hero__text p {
    margin-left: 0;
  }
}

.page-hero__image {
  border-radius: var(--radius-lg);
  overflow:      hidden;
  box-shadow:    var(--shadow-lg);
}

.page-hero__image img {
  width:      100%;
  height:     auto;
  display:    block;
  border-radius: var(--radius-lg);
}


/* ----------------------------------------------------------------
   Values Strip
---------------------------------------------------------------- */
.values {
  background-color: var(--color-primary);
}

.values-grid {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   2rem;
  text-align:            center;
}

@media (min-width: 600px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.value-item__icon {
  font-size:     2.5rem;
  margin-bottom: 1rem;
}

.value-item h3 {
  color:         var(--color-white);
  margin-bottom: 0.5rem;
  font-size:     1.2rem;
}

.value-item p {
  color:     rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}


/* ----------------------------------------------------------------
   Product Grid & Cards
---------------------------------------------------------------- */
.product-grid {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   1.75rem;
}

@media (min-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.product-card {
  background-color: var(--color-card-bg);
  border-radius:    var(--radius-lg);
  overflow:         hidden;
  box-shadow:       var(--shadow-sm);
  transition:       var(--transition);
  display:          flex;
  flex-direction:   column;
  border:           1px solid var(--color-border);
}

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

/* Card image */
.product-card__image {
  aspect-ratio: 1 / 1;
  overflow:     hidden;
  background-color: var(--color-border);
  position:     relative;
}

.product-card__image img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

/* Card badge */
.product-card__badge {
  position:         absolute;
  top:              0.75rem;
  left:             0.75rem;
  background-color: var(--color-accent);
  color:            var(--color-primary);
  font-size:        0.7rem;
  font-weight:      700;
  letter-spacing:   1px;
  text-transform:   uppercase;
  padding:          0.25rem 0.65rem;
  border-radius:    var(--radius-pill);
}

.product-card__badge--soldout {
  background-color: var(--color-text-light);
  color:            var(--color-white);
}

/* Card body */
.product-card__body {
  padding:        1.5rem;
  flex:           1;
  display:        flex;
  flex-direction: column;
}

.product-card__category {
  font-size:      0.72rem;
  font-weight:    700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color:          var(--color-accent);
  margin-bottom:  0.4rem;
}

.product-card__name {
  font-family:   var(--font-heading);
  font-size:     1.2rem;
  color:         var(--color-primary);
  margin-bottom: 0.6rem;
}

.product-card__desc {
  font-size:     0.9rem;
  color:         var(--color-text-light);
  line-height:   1.65;
  flex:          1;
  margin-bottom: 1.25rem;
}

.product-card__footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1rem;
  margin-top:      auto;
}

.product-card__price {
  font-family: var(--font-heading);
  font-size:   1.5rem;
  font-weight: 700;
  color:       var(--color-primary);
}

.product-card__btn {
  background-color: var(--color-primary);
  color:            var(--color-white);
  padding:          0.6rem 1.25rem;
  border-radius:    var(--radius);
  font-size:        0.9rem;
  font-weight:      700;
  transition:       var(--transition);
  min-height:       44px;
  min-width:        44px;
  white-space:      nowrap;
}

.product-card__btn:hover:not(:disabled) {
  background-color: var(--color-accent);
  color:            var(--color-primary);
  transform:        translateY(-1px);
}

.product-card__btn:disabled {
  background-color: var(--color-border);
  color:            var(--color-text-light);
  cursor:           not-allowed;
}

/* No products message */
.no-products {
  text-align:   center;
  padding:      3rem 1rem;
  grid-column:  1 / -1;
}

.no-products p {
  font-size: 1.1rem;
}


/* ----------------------------------------------------------------
   Filter Bar (Shop Page)
---------------------------------------------------------------- */
.filter-bar {
  display:       flex;
  gap:           0.75rem;
  flex-wrap:     wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding:       0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  border:        2px solid var(--color-border);
  background:    var(--color-white);
  color:         var(--color-text-light);
  font-size:     0.9rem;
  font-weight:   700;
  transition:    var(--transition);
  min-height:    44px;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color:        var(--color-primary);
}

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


/* ----------------------------------------------------------------
   About Page
---------------------------------------------------------------- */
.about-grid {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   3rem;
  align-items:           start;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-image {
  border-radius: var(--radius-lg);
  overflow:      hidden;
  box-shadow:    var(--shadow-lg);
  background-color: var(--color-border);
}

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

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Story timeline */
.story-list {
  margin-top:     1.5rem;
  display:        flex;
  flex-direction: column;
  gap:            1.25rem;
}

.story-item {
  display:     flex;
  gap:         1rem;
  align-items: flex-start;
}

.story-item__icon {
  font-size:   1.5rem;
  flex-shrink: 0;
  margin-top:  2px;
}

.story-item__text strong {
  display:    block;
  color:      var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.2rem;
}


/* ----------------------------------------------------------------
   Contact Page
---------------------------------------------------------------- */
.contact-grid {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   3rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.5fr; }
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info__item {
  display:       flex;
  gap:           1rem;
  align-items:   flex-start;
  margin-bottom: 1.5rem;
}

.contact-info__icon {
  font-size:   1.4rem;
  flex-shrink: 0;
  margin-top:  2px;
}

.contact-info__label {
  font-weight:   700;
  color:         var(--color-primary);
  display:       block;
  margin-bottom: 0.2rem;
  font-size:     0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info__value {
  color:     var(--color-text-light);
  font-size: 0.95rem;
}

/* Contact form card */
.contact-form {
  background-color: var(--color-white);
  border-radius:    var(--radius-lg);
  padding:          2rem;
  box-shadow:       var(--shadow-sm);
  border:           1px solid var(--color-border);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display:       block;
  font-weight:   700;
  color:         var(--color-text);
  margin-bottom: 0.4rem;
  font-size:     0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width:            100%;
  padding:          0.75rem 1rem;
  border:           2px solid var(--color-border);
  border-radius:    var(--radius);
  font-family:      var(--font-body);
  font-size:        1rem;
  color:            var(--color-text);
  background-color: var(--color-bg);
  transition:       border-color 0.2s ease;
  min-height:       48px;
}

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

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

#form-status {
  margin-top: 1rem;
  font-size:  0.95rem;
  min-height: 1.5em;
}


/* ----------------------------------------------------------------
   Order Modal / Overlay
---------------------------------------------------------------- */
.modal-overlay {
  display:         none;
  position:        fixed;
  inset:           0;
  background-color: rgba(44, 26, 14, 0.72);
  z-index:         2000;
  align-items:     center;
  justify-content: center;
  padding:         1rem;
  backdrop-filter: blur(2px);
}

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

.modal {
  background-color: var(--color-white);
  border-radius:    var(--radius-lg);
  padding:          2rem;
  width:            100%;
  max-width:        480px;
  box-shadow:       var(--shadow-lg);
  position:         relative;
  max-height:       92vh;
  overflow-y:       auto;
}

.modal__close {
  position:    absolute;
  top:         1rem;
  right:       1rem;
  font-size:   1.75rem;
  line-height: 1;
  color:       var(--color-text-light);
  transition:  var(--transition);
  min-width:   44px;
  min-height:  44px;
  display:     flex;
  align-items: center;
  justify-content: center;
}

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

.modal__product-name {
  font-family:   var(--font-heading);
  font-size:     1.5rem;
  color:         var(--color-primary);
  margin-bottom: 0.25rem;
  padding-right: 2.5rem; /* avoid overlap with close button */
}

.modal__product-price {
  font-size:     1.15rem;
  font-weight:   700;
  color:         var(--color-accent);
  margin-bottom: 1.5rem;
}

.modal__qty-label {
  font-weight:   700;
  color:         var(--color-text);
  margin-bottom: 0.4rem;
  display:       block;
  font-size:     0.9rem;
}

.modal__qty {
  width:            100%;
  padding:          0.75rem 1rem;
  border:           2px solid var(--color-border);
  border-radius:    var(--radius);
  font-size:        1rem;
  background-color: var(--color-bg);
  color:            var(--color-text);
  margin-bottom:    1.5rem;
  min-height:       48px;
  transition:       border-color 0.2s ease;
}

.modal__qty:focus {
  outline:      none;
  border-color: var(--color-accent);
}

/* ---- Tip selector ---- */

.modal__tip {
  margin-bottom: 1rem;
}

.modal__tip-label {
  display:       block;
  font-weight:   600;
  margin-bottom: 0.5rem;
  color:         var(--color-text);
  font-size:     0.95rem;
}

.modal__tip-buttons {
  display:   flex;
  gap:       0.4rem;
  flex-wrap: wrap;
}

.tip-btn {
  flex:            1 1 auto;
  min-width:       3.5rem;
  padding:         0.5rem 0.25rem;
  border:          2px solid var(--color-border);
  border-radius:   8px;
  background:      #fff;
  color:           var(--color-text);
  font-size:       0.85rem;
  font-weight:     600;
  font-family:     inherit;
  cursor:          pointer;
  transition:      border-color 0.2s ease, background 0.2s ease;
}

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

.tip-btn.active {
  border-color: var(--color-primary);
  background:   var(--color-primary);
  color:        #fff;
}

.modal__tip-custom {
  display:        flex;
  align-items:    center;
  gap:            0.25rem;
  margin-top:     0.5rem;
}

.modal__tip-custom-dollar {
  font-weight: 600;
  font-size:   1rem;
  color:       var(--color-text);
}

.modal__tip-custom-input {
  width:         6rem;
  padding:       0.5rem 0.75rem;
  border:        2px solid var(--color-border);
  border-radius: 8px;
  font-size:     0.95rem;
  font-family:   inherit;
}

.modal__tip-custom-input:focus {
  outline:      none;
  border-color: var(--color-accent);
}

/* ---- Order summary ---- */

.modal__summary {
  background:    var(--color-bg);
  border:        1px solid var(--color-border);
  border-radius: 10px;
  padding:       0.75rem 1rem;
  margin-bottom: 1rem;
  font-size:     0.9rem;
}

.modal__summary-row {
  display:         flex;
  justify-content: space-between;
  padding:         0.3rem 0;
  color:           var(--color-text-light);
}

.modal__summary-row--total {
  border-top:  1px solid var(--color-border);
  margin-top:  0.3rem;
  padding-top: 0.5rem;
  font-weight: 700;
  font-size:   1.05rem;
  color:       var(--color-text);
}

#card-container {
  margin-bottom: 1.25rem;
  min-height:    90px;
}

#payment-status {
  font-size:  0.9rem;
  margin-top: 0.75rem;
  min-height: 1.5em;
  text-align: center;
}

#payment-status.error {
  color: var(--color-error);
}

#payment-status.success {
  color: var(--color-success);
}


/* ----------------------------------------------------------------
   Home — About Snippet
---------------------------------------------------------------- */
.home-about {
  background-color: var(--color-white);
}


/* ----------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.footer {
  background-color: var(--color-text);
  color:            rgba(255, 255, 255, 0.65);
  padding:          3.5rem 0 1.5rem;
}

.footer-grid {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   2.5rem;
  margin-bottom:         2.5rem;
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand h3 {
  font-family:   var(--font-heading);
  color:         var(--color-white);
  font-size:     1.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand h3 span {
  color: var(--color-accent);
}

.footer-brand p {
  color:       rgba(255, 255, 255, 0.55);
  font-size:   0.9rem;
  line-height: 1.7;
}

.footer-social {
  display:    flex;
  gap:        0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  color:            rgba(255, 255, 255, 0.7);
  font-size:        0.9rem;
  font-weight:      700;
  transition:       var(--transition);
}

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

.footer-col h4 {
  color:          var(--color-white);
  font-family:    var(--font-heading);
  font-size:      1rem;
  margin-bottom:  1rem;
  font-weight:    700;
}

.footer-col ul {
  display:        flex;
  flex-direction: column;
  gap:            0.65rem;
}

.footer-col ul li a,
.footer-col ul li span {
  color:      rgba(255, 255, 255, 0.55);
  font-size:  0.9rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top:  1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align:  center;
  font-size:   0.85rem;
  color:       rgba(255, 255, 255, 0.35);
}


/* ----------------------------------------------------------------
   Placeholder image fallback (shown when no image file exists yet)
---------------------------------------------------------------- */
.product-card__image img[style*="display: none"] + .img-placeholder,
.product-card__image:not(:has(img[style])) .img-placeholder {
  display: none;
}

.img-placeholder {
  position:         absolute;
  inset:            0;
  display:          flex;
  flex-direction:   column;
  align-items:      center;
  justify-content:  center;
  background-color: var(--color-border);
  color:            var(--color-text-light);
  font-size:        0.85rem;
  gap:              0.5rem;
}

.img-placeholder span {
  font-size: 2.5rem;
}


/* ----------------------------------------------------------------
   Accessibility — focus-visible ring
---------------------------------------------------------------- */
:focus-visible {
  outline:        3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius:  2px;
}

/* ----------------------------------------------------------------
   Print — hide non-essential chrome
---------------------------------------------------------------- */
@media print {
  .nav,
  .footer,
  .modal-overlay,
  .filter-bar,
  .hero__cta { display: none; }
}

/* ================================================================
   BAGEL PAGE
   ================================================================ */

/* ---- Hero ---- */

.bagel-hero {
  background:  var(--color-primary);
  color:       #fff !important;
  padding:     0;
  overflow:    hidden;
}

.bagel-hero * {
  color: #fff;
}

.bagel-hero__grid {
  display:     grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.bagel-hero__photo {
  display: none;
}

.bagel-hero__photo img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.bagel-hero__content {
  text-align: center;
  padding:    3rem 1.5rem;
}

/* Tablet: show one photo */
@media (min-width: 768px) {
  .bagel-hero__grid {
    grid-template-columns: 1fr 1fr;
  }

  .bagel-hero__photo:first-child {
    display: block;
    height:  100%;
  }

  .bagel-hero__photo:last-child {
    display: none;
  }

  .bagel-hero__content {
    padding: 3rem 2rem;
  }
}

/* Desktop: photos on both sides */
@media (min-width: 1024px) {
  .bagel-hero__grid {
    grid-template-columns: 1fr 1.2fr 1fr;
  }

  .bagel-hero__photo,
  .bagel-hero__photo:first-child,
  .bagel-hero__photo:last-child {
    display: block;
    height:  100%;
    min-height: 380px;
  }

  .bagel-hero__content {
    padding: 3.5rem 2.5rem;
  }
}

.bagel-hero__title {
  font-family: var(--font-heading);
  font-size:   2.8rem;
  margin-bottom: 0.25rem;
  color:       #fff;
}

.bagel-hero__subtitle {
  font-size:     1rem;
  opacity:       0.85;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.bagel-hero__tagline {
  font-style:  italic;
  font-size:   1.15rem;
  opacity:     0.9;
  margin-bottom: 1rem;
}

.bagel-hero__flavors {
  display:     flex;
  justify-content: center;
  flex-wrap:   wrap;
  gap:         0.5rem;
  font-size:   1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.bagel-hero__dot {
  opacity: 0.5;
}

.bagel-hero__note {
  font-size: 0.9rem;
  opacity:   0.8;
  line-height: 1.6;
}

/* ---- Sections & Steps ---- */

.bagel-section {
  padding: 3rem 0 4rem;
}

.bagel-step {
  margin-bottom: 2.5rem;
}

.bagel-step--hidden {
  display: none;
}

.bagel-step__title {
  font-family:   var(--font-heading);
  font-size:     1.5rem;
  color:         var(--color-text);
  margin-bottom: 0.75rem;
  display:       flex;
  align-items:   center;
  gap:           0.75rem;
}

.bagel-step__number {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           2rem;
  height:          2rem;
  border-radius:   50%;
  background:      var(--color-primary);
  color:           #fff;
  font-size:       0.9rem;
  font-weight:     700;
  font-family:     var(--font-body);
  flex-shrink:     0;
}

.bagel-step__hint {
  color:         var(--color-text-light);
  font-size:     0.9rem;
  margin-bottom: 1rem;
}

/* ---- Tier Cards ---- */

.bagel-tiers {
  display:   grid;
  grid-template-columns: repeat(2, 1fr);
  gap:       0.75rem;
}

.bagel-tier {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  padding:        1.25rem 0.75rem;
  border:         2px solid var(--color-border);
  border-radius:  12px;
  background:     #fff;
  cursor:         pointer;
  transition:     border-color 0.2s, background 0.2s, transform 0.2s;
  font-family:    inherit;
}

.bagel-tier:hover {
  border-color: var(--color-accent);
  transform:    translateY(-2px);
}

.bagel-tier.active {
  border-color: var(--color-primary);
  background:   var(--color-primary);
  color:        #fff;
}

.bagel-tier__label {
  font-weight: 700;
  font-size:   1.1rem;
}

.bagel-tier__qty {
  font-size: 0.8rem;
  opacity:   0.7;
  margin:    0.15rem 0;
}

.bagel-tier__price {
  font-weight: 700;
  font-size:   1.25rem;
  margin-top:  0.25rem;
}

.bagel-tier.active .bagel-tier__qty {
  opacity: 0.85;
}

@media (min-width: 600px) {
  .bagel-tiers {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Flavor Picker ---- */

.bagel-flavors {
  display:        flex;
  flex-direction: column;
  gap:            0.75rem;
}

.bagel-flavor {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  padding:         0.75rem 1rem;
  border:          1px solid var(--color-border);
  border-radius:   10px;
  background:      #fff;
}

.bagel-flavor__name {
  font-weight: 600;
  font-size:   1rem;
}

/* ---- Shared Stepper ---- */

.bagel-stepper {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
}

.bagel-stepper__btn {
  width:          36px;
  height:         36px;
  border:         2px solid var(--color-border);
  border-radius:  50%;
  background:     #fff;
  font-size:      1.1rem;
  font-weight:    700;
  font-family:    inherit;
  color:          var(--color-primary);
  cursor:         pointer;
  display:        inline-flex;
  align-items:    center;
  justify-content: center;
  transition:     border-color 0.2s, background 0.2s;
  line-height:    1;
}

.bagel-stepper__btn:hover {
  border-color: var(--color-primary);
  background:   var(--color-bg);
}

.bagel-stepper__count {
  font-weight: 700;
  font-size:   1.1rem;
  min-width:   1.5rem;
  text-align:  center;
}

/* ---- Cream Cheese ---- */

.bagel-cc {
  display:        flex;
  flex-direction: column;
  gap:            0.75rem;
}

.bagel-cc__row {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  padding:         0.75rem 1rem;
  border:          1px solid var(--color-border);
  border-radius:   10px;
  background:      #fff;
}

.bagel-cc__info {
  display:        flex;
  flex-direction: column;
}

.bagel-cc__label {
  font-weight: 600;
  font-size:   1rem;
}

.bagel-cc__price {
  font-size: 0.85rem;
  color:     var(--color-text-light);
}

/* ---- Order Summary ---- */

.bagel-summary {
  background:    var(--color-bg);
  border:        1px solid var(--color-border);
  border-radius: 10px;
  padding:       0.75rem 1rem;
  margin-bottom: 1rem;
}

.bagel-summary--total {
  background: #fff;
}

.bagel-summary__row {
  display:         flex;
  justify-content: space-between;
  padding:         0.35rem 0;
  font-size:       0.9rem;
  color:           var(--color-text-light);
}

.bagel-summary__row--tip {
  color: var(--color-text-light);
}

.bagel-summary__row--total {
  border-top:  1px solid var(--color-border);
  margin-top:  0.3rem;
  padding-top: 0.5rem;
  font-weight: 700;
  font-size:   1.15rem;
  color:       var(--color-text);
}

/* ---- Pay Button ---- */

.bagel-pay-btn {
  width:      100%;
  margin-top: 0.5rem;
}

.bagel-pay-btn:disabled {
  opacity: 0.5;
  cursor:  not-allowed;
}

#bagel-card-container {
  margin-bottom: 1rem;
  min-height:    90px;
}

#bagel-payment-status {
  font-size:  0.9rem;
  margin-top: 0.75rem;
  min-height: 1.5em;
  text-align: center;
}

#bagel-payment-status.error {
  color: var(--color-error);
}

#bagel-payment-status.success {
  color: var(--color-success);
}

/* ================================================================
   CART ICON & BADGE (in nav)
   ================================================================ */

.nav__cart {
  position:    relative;
  display:     inline-flex;
  align-items: center;
  color:       inherit;
  text-decoration: none;
}

.nav__cart svg {
  vertical-align: middle;
}

.nav__cart-mobile {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  font-weight: 600;
}

.cart-badge {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  min-width:       18px;
  height:          18px;
  padding:         0 5px;
  border-radius:   9px;
  background:      var(--color-accent);
  color:           #fff;
  font-size:       0.7rem;
  font-weight:     700;
  line-height:     1;
  position:        absolute;
  top:             -6px;
  right:           -8px;
}

.nav__cart-mobile .cart-badge {
  position: static;
}

/* ================================================================
   TOAST NOTIFICATION
   ================================================================ */

.toast {
  position:      fixed;
  bottom:        -80px;
  left:          50%;
  transform:     translateX(-50%);
  background:    var(--color-primary);
  color:         #fff;
  padding:       0.75rem 1.25rem;
  border-radius: 10px;
  font-size:     0.9rem;
  font-weight:   600;
  display:       flex;
  align-items:   center;
  gap:           1rem;
  z-index:       9999;
  box-shadow:    0 4px 16px rgba(0,0,0,0.2);
  transition:    bottom 0.3s ease;
  white-space:   nowrap;
}

.toast--visible {
  bottom: 2rem;
}

.toast__link {
  color:           var(--color-accent);
  text-decoration: underline;
  font-weight:     700;
}

/* ================================================================
   CART PAGE
   ================================================================ */

.cart-empty {
  text-align:  center;
  padding:     3rem 0;
  font-size:   1.1rem;
  color:       var(--color-text-light);
}

/* ---- Cart Items ---- */

.cart-item {
  display:         flex;
  gap:             1rem;
  padding:         1.25rem 0;
  border-bottom:   1px solid var(--color-border);
  align-items:     flex-start;
}

.cart-item__image {
  width:         80px;
  height:        80px;
  border-radius: 8px;
  object-fit:    cover;
  flex-shrink:   0;
}

.cart-item__body {
  flex: 1;
}

.cart-item__name {
  font-weight:   700;
  font-size:     1rem;
  color:         var(--color-text);
  margin-bottom: 0.15rem;
}

.cart-item__details {
  font-size: 0.85rem;
  color:     var(--color-text-light);
  line-height: 1.5;
}

.cart-item__price {
  font-weight: 700;
  font-size:   1rem;
  color:       var(--color-primary);
  margin-top:  0.5rem;
}

.cart-item__actions {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  margin-top:  0.5rem;
}

.cart-item__remove {
  background:  none;
  border:      none;
  color:       var(--color-error);
  font-size:   0.85rem;
  cursor:      pointer;
  padding:     0.25rem 0.5rem;
  font-family: inherit;
  font-weight: 600;
}

.cart-item__remove:hover {
  text-decoration: underline;
}

/* ---- Cart Totals ---- */

.cart-totals {
  background:    var(--color-bg);
  border:        1px solid var(--color-border);
  border-radius: 10px;
  padding:       0.75rem 1rem;
  margin-top:    1.5rem;
  margin-bottom: 1rem;
}

.cart-totals--final {
  background: #fff;
}

.cart-totals__row {
  display:         flex;
  justify-content: space-between;
  padding:         0.35rem 0;
  font-size:       0.9rem;
  color:           var(--color-text-light);
}

.cart-totals__row--total {
  border-top:  1px solid var(--color-border);
  margin-top:  0.3rem;
  padding-top: 0.5rem;
  font-weight: 700;
  font-size:   1.15rem;
  color:       var(--color-text);
}

.cart-pay-btn {
  width:      100%;
  margin-top: 0.5rem;
}

#cart-card-container {
  margin-bottom: 1rem;
  min-height:    90px;
}

#cart-payment-status {
  font-size:  0.9rem;
  margin-top: 0.75rem;
  min-height: 1.5em;
  text-align: center;
}

#cart-payment-status.error {
  color: var(--color-error);
}

#cart-payment-status.success {
  color: var(--color-success);
}

/* ================================================================
   THANK YOU PAGE
   ================================================================ */

/* ================================================================
   FEATURED SLIDER
   ================================================================ */

.slider {
  position: relative;
}

.slider__track {
  display:         flex;
  gap:             1.25rem;
  overflow-x:      auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding:         0.5rem 0 1.5rem;
  /* Hide scrollbar but keep scroll */
  scrollbar-width: none;
}

.slider__track::-webkit-scrollbar {
  display: none;
}

.slider__track .product-card {
  flex:            0 0 280px;
  scroll-snap-align: start;
  min-width:       280px;
}

/* Slider arrows */

.slider__arrow {
  position:    absolute;
  top:         50%;
  transform:   translateY(-50%);
  z-index:     2;
  width:       40px;
  height:      40px;
  border-radius: 50%;
  border:      none;
  background:  var(--color-primary);
  color:       #fff;
  font-size:   1.5rem;
  cursor:      pointer;
  display:     flex;
  align-items: center;
  justify-content: center;
  box-shadow:  0 2px 8px rgba(0,0,0,0.2);
  transition:  background 0.2s;
  line-height: 1;
}

.slider__arrow:hover {
  background: var(--color-primary-dark);
}

.slider__arrow--left {
  left: -16px;
}

.slider__arrow--right {
  right: -16px;
}

/* Hide arrows on mobile — swipe is natural */
@media (max-width: 767px) {
  .slider__arrow {
    display: none;
  }
}

/* ================================================================
   THANK YOU PAGE
   ================================================================ */

.thankyou {
  padding:    4rem 0;
  text-align: center;
}

.thankyou__content {
  max-width: 560px;
  margin:    0 auto;
}

.thankyou__icon {
  width:           64px;
  height:          64px;
  border-radius:   50%;
  background:      var(--color-success);
  color:           #fff;
  font-size:       2rem;
  font-weight:     700;
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   1.25rem;
}

.thankyou__title {
  font-family:   var(--font-heading);
  font-size:     2.2rem;
  color:         var(--color-text);
  margin-bottom: 1rem;
}

.thankyou__message {
  font-size:     1.1rem;
  line-height:   1.7;
  color:         var(--color-text);
  margin-bottom: 0.5rem;
}

.thankyou__submessage {
  font-size:     0.95rem;
  color:         var(--color-text-light);
  margin-bottom: 1.5rem;
}

.thankyou__actions {
  display:     flex;
  justify-content: center;
  gap:         0.75rem;
  flex-wrap:   wrap;
  margin-bottom: 2rem;
}

.thankyou__social {
  border-top:  1px solid var(--color-border);
  padding-top: 1.5rem;
  font-size:   0.9rem;
  color:       var(--color-text-light);
}

.thankyou__instagram {
  display:     inline-block;
  margin-top:  0.5rem;
  font-weight: 700;
  color:       var(--color-primary);
  text-decoration: underline;
}
