/* ==============================================
   Mirabelle Nurseries — Main Stylesheet
   ============================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --green-dark:   #1a3c25;
  --green-mid:    #2d6a4f;
  --green-light:  #52b788;
  --green-pale:   #d8f3dc;
  --cream:        #faf8f0;
  --white:        #ffffff;
  --text-dark:    #1c1c1c;
  --text-mid:     #5a5a5a;
  --text-light:   #9a9a9a;
  --gold:         #c9a030;
  --border:       #e2ddd0;
  --card-shadow:  0 2px 12px rgba(0, 0, 0, 0.08);
  --header-h:     80px;
  --section-pad:  72px;
  --radius:       8px;
  --transition:   0.25s ease;
}

/* ---- Reset / Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Lato', Arial, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
}
button {
  font-family: inherit;
}

/* ---- Container ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ==============================================
   HEADER
   ============================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green-dark);
  height: var(--header-h);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* Logo */
.header-logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

/* Title */
.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  white-space: nowrap;
  pointer-events: none;
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Nav */
.header-nav { flex-shrink: 0; margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  outline: none;
}

/* Cart link & badge */
.cart-link { position: relative; }
.cart-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.cart-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
.cart-badge.hidden {
  display: none;
}


/* ==============================================
   HERO
   ============================================== */
.hero {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-light) 100%);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  padding: 24px;
}
.hero-slogan {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
  max-width: 780px;
  line-height: 1.25;
}


/* ==============================================
   SECTIONS — shared styles
   ============================================== */
.page-section {
  padding: var(--section-pad) 0;
}
.section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.section-heading::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--green-light);
  border-radius: 2px;
  margin: 12px auto 0;
}


/* ==============================================
   BOUQUETS COLLECTION
   ============================================== */
.bouquets-section {
  background: var(--white);
}
.bouquets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Bouquet Card */
.bouquet-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bouquet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.bouquet-card-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bouquet-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.bouquet-card:hover .bouquet-card-img {
  transform: scale(1.05);
}
.bouquet-card-img-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--green-pale) 0%, #b7e4c7 100%);
}
.bouquet-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bouquet-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}
.bouquet-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-mid);
  text-align: center;
}
.btn-add-to-cart {
  margin-top: auto;
  width: 100%;
  padding: 10px 16px;
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-add-to-cart:hover {
  background: var(--white);
  color: var(--green-dark);
}
.btn-add-to-cart.added {
  background: var(--green-light);
  border-color: var(--green-light);
  color: var(--white);
  cursor: default;
}
.btn-add-to-cart:disabled {
  cursor: default;
}


/* ==============================================
   CONTACT US
   ============================================== */
.contact-section {
  background: var(--cream);
}
.contact-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.contact-map-wrapper {
  flex: 1.1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}
.contact-map-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 420px;
}
.contact-info-panel {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}
.hours-table td:first-child {
  font-weight: 600;
  color: var(--green-mid);
  width: 130px;
}
.hours-table tr:last-child td {
  border-bottom: none;
}
.holidays-note {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  padding: 2px 0;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-mid);
}
.detail-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--green-mid);
  margin-top: 2px;
}


/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  background: var(--green-dark);
  padding: 28px 24px;
  text-align: center;
}
.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}


/* ==============================================
   ABOUT PAGE
   ============================================== */
.about-hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: var(--green-dark);
}
.about-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 12px;
}
.about-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  text-align: center;
}
.about-hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.88);
  text-align: center;
  font-style: italic;
}

.about-intro {
  background: var(--white);
}
.about-intro-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-lead {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.35;
}
.about-body {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.about-highlights {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.about-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}
.highlight-icon {
  font-size: 2.2rem;
}
.highlight-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--green-mid);
  text-transform: uppercase;
}

.about-gallery {
  background: var(--cream);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.gallery-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-pale);
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.04);
}
.gallery-caption {
  padding: 16px 20px 20px;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
  font-style: italic;
}
.gallery-caption strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .about-hero { height: 280px; }
  .gallery-grid { grid-template-columns: 1fr; }
}


/* ==============================================
   CART PAGE
   ============================================== */
.cart-page {
  min-height: 60vh;
  background: var(--cream);
}
.cart-empty {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cart-empty-icon {
  font-size: 4rem;
  opacity: 0.4;
}
.cart-empty-msg {
  font-size: 1.2rem;
  color: var(--text-mid);
}

/* Cart item list */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.cart-item-img-wrapper {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-pale);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}
.cart-item-unit-price {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-top: 4px;
}
.cart-item-qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  line-height: 1;
  flex-shrink: 0;
}
.qty-btn:hover {
  background: var(--green-pale);
  border-color: var(--green-light);
}
.qty-value {
  font-size: 1rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.cart-item-subtotal {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-mid);
  min-width: 72px;
  text-align: right;
}
.btn-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--text-light);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-remove:hover {
  background: #ffe4e4;
  color: #cc2222;
}

/* Cart footer / totals */
.cart-footer {
  border-top: 2px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

/* Tax/total summary block inside cart footer */
.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.93rem;
  color: var(--text-mid);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 8px;
}
.cart-total-amount {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green-dark);
}
.cart-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* ==============================================
   CHECKOUT PAGE
   ============================================== */

.co-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.co-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 14px;
}

/* Order summary (left column) */
.co-summary {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.co-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.co-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.co-item-name { font-weight: 500; }
.co-item-price { white-space: nowrap; color: var(--text-mid); }
.co-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.co-total-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.93rem;
  color: var(--text-mid);
}
.co-grand-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 8px;
}
.co-pickup-address {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.co-pickup-note {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* Customer form (right column) */
.co-form-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.co-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.co-form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3px;
}
.co-form-row input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.97rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
  width: 100%;
}
.co-form-row input:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}
.co-form-hint {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-top: 2px;
}

/* reCAPTCHA widget spacing */
.co-recaptcha-widget {
  min-height: 78px; /* prevents layout shift while the iframe loads */
}

.co-error {
  color: #cc2222;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 14px;
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  border-radius: var(--radius);
}
.co-error.hidden { display: none; }

.co-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.co-disclaimer {
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* Order confirmation state */
.co-confirmation {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  padding: 40px 32px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.co-confirmation-icon {
  font-size: 3rem;
  color: var(--green-mid);
  margin-bottom: 12px;
}
.co-confirmation-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.co-confirmation-num {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 18px;
}
.co-confirmation-msg {
  font-size: 0.97rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Responsive checkout */
@media (max-width: 768px) {
  .co-layout {
    grid-template-columns: 1fr;
  }
}


.btn-primary {
  padding: 12px 28px;
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
}
.btn-outline {
  padding: 12px 28px;
  background: transparent;
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-outline:hover {
  background: var(--green-dark);
  color: var(--white);
}


/* ==============================================
   RESPONSIVE BREAKPOINTS
   ============================================== */

/* --- Large Desktop (1280px+): defaults are 4-col grid --- */

/* --- Laptop (1025px–1279px): keep 4-col grid --- */

/* --- Tablet (769px–1024px): 2-col grid --- */
@media (max-width: 1024px) {
  .bouquets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Below 768px: stack contact layout --- */
@media (max-width: 768px) {
  :root { --section-pad: 52px; }

  .contact-layout {
    flex-direction: column;
  }
  .contact-map-wrapper,
  .contact-info-panel {
    width: 100%;
    flex: none;
  }
}

/* --- Mobile (≤640px) --- */
@media (max-width: 640px) {
  :root {
    --section-pad: 40px;
    --header-h: 64px;
  }

  .header-title  { font-size: 1.05rem; }
  .header-logo   { height: 40px; width: 40px; }

  /* Show hamburger, hide nav by default */
  .hamburger { display: flex; }

  .header-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--green-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px 20px;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  .header-nav.nav-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 6px;
  }

  .hero { height: 280px; }
  .hero-slogan { font-size: 1.3rem; }

  .bouquets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Cart page mobile */
  .cart-item {
    flex-wrap: wrap;
    gap: 12px;
  }
  .cart-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-actions {
    width: 100%;
  }
  .btn-primary,
  .btn-outline {
    flex: 1;
  }
}

/* --- Very small phones (≤360px): single column bouquets --- */
@media (max-width: 360px) {
  .bouquets-grid {
    grid-template-columns: 1fr;
  }
}


/* ==============================================
   PAYMENT PAGE
   ============================================== */

.pay-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Loading spinner */
.pay-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 24px;
  color: var(--text-mid);
  font-size: 1rem;
}
.pay-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--green-mid);
  border-radius: 50%;
  animation: pay-spin 0.8s linear infinite;
}
@keyframes pay-spin {
  to { transform: rotate(360deg); }
}

/* Error / status cards */
.pay-state-card {
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
  padding: 48px 36px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pay-state-icon {
  font-size: 3rem;
  line-height: 1;
}
.pay-state-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--green-dark);
}
.pay-state-msg {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 400px;
}

/* Expiry note */
.pay-expiry-note {
  font-size: 0.83rem;
  color: var(--text-mid);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* Payment options panel */
.pay-options-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pay-options-intro {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Shared payment button base */
.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.2px;
}
.pay-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.pay-btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.pay-btn-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* PayPal — gold/yellow brand */
.pay-btn-paypal {
  background: #ffc439;
  color: #003087;
  border-color: #ffc439;
}
.pay-btn-paypal:hover {
  background: #f0b429;
  border-color: #f0b429;
}

/* Stripe — indigo brand */
.pay-btn-stripe {
  background: #635bff;
  color: #ffffff;
  border-color: #635bff;
}
.pay-btn-stripe:hover {
  background: #5144e8;
  border-color: #5144e8;
}

/* Security note */
.pay-secure-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}
.pay-lock-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green-mid);
}

/* Responsive */
@media (max-width: 768px) {
  .pay-layout {
    grid-template-columns: 1fr;
  }
}
