/* ==========================================================================
   HEADWAY EXPERTS LTD - Components Stylesheet
   Navigation, Hero, Trust Bar, Brand Story, Modals, Drawer, Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Announcement Bar & Sticky Header
   -------------------------------------------------------------------------- */
.announcement-bar {
  background-color: var(--ink);
  color: var(--dark-text);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1002;
}

.announcement-bar .highlight {
  color: #79D4B8;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(26, 36, 33, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.site-logo svg {
  color: var(--accent);
}

.site-logo span {
  display: inline-block;
  line-height: 1.1;
}

.site-logo small {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

/* Nav Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  padding: 8px 4px;
  position: relative;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Utilities (Search & Cart) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.header-icon-btn:hover {
  background-color: var(--support);
  border-color: var(--border);
  color: var(--accent);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid var(--bg-white);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 85vw);
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 1050;
  box-shadow: var(--shadow-drawer);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 0;
  display: block;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--accent);
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   2. Full-Bleed Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-color: var(--ink);
  color: #FFFFFF;
  overflow: hidden;
  /* Ensure generous clearance for sticky header */
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 1;
}

.hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(26,36,33,0.92) 0%, rgba(26,36,33,0.72) 48%, rgba(26,36,33,0.25) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
}

.hero-content .eyebrow {
  color: #79D4B8;
  font-size: 22px;
  margin-bottom: 10px;
}

.hero-content h1 {
  color: #FFFFFF;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--dark-text);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 520px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(26,36,33,0.88) 0%, rgba(26,36,33,0.85) 60%, rgba(26,36,33,0.6) 100%);
  }
}

/* --------------------------------------------------------------------------
   3. Slim Trust Bar
   -------------------------------------------------------------------------- */
.trust-bar {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 16px;
  position: relative;
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--border);
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--support);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.trust-text h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 0.8rem;
  color: var(--body);
  line-height: 1.2;
}

@media (max-width: 900px) {
  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }
  .trust-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 500px) {
  .trust-bar-grid {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
  .trust-item::after {
    display: none !important;
  }
  .trust-item {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   4. Brand Story Split Section
   -------------------------------------------------------------------------- */
.brand-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.story-media-wrap {
  position: relative;
  padding: 24px;
}

.story-backdrop-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  height: 85%;
  background-color: var(--support);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  z-index: 1;
}

.story-img-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  background-color: #F4F6F5;
  aspect-ratio: 4 / 3.4;
}

.story-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content h2 {
  margin-top: 4px;
  margin-bottom: 20px;
}

.story-content p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.story-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 32px 0;
  padding: 16px;
  background-color: var(--bg-cream);
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
}

.story-stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.story-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .brand-story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   5. Why Pet Owners Choose Us
   -------------------------------------------------------------------------- */
.reasons-container {
  background-color: var(--support);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 48px;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reason-tile {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reason-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.reason-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--support);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.reason-tile h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.reason-tile p {
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--body);
}

@media (max-width: 1024px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reasons-container {
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .reasons-grid {
    grid-template-columns: 1fr;
  }
  .reasons-container {
    padding: 24px 16px;
  }
}

/* --------------------------------------------------------------------------
   6. How It Works (3 Steps with clean arrows)
   -------------------------------------------------------------------------- */
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  gap: 20px;
}

.step-card {
  flex: 1;
  background-color: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.step-card p {
  font-size: 0.925rem;
  color: var(--body);
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 55px;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .steps-row {
    flex-direction: column;
    align-items: stretch;
  }
  .step-arrow {
    margin: 4px auto;
    transform: rotate(90deg);
  }
}

/* --------------------------------------------------------------------------
   7. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-subtle);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--support);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 24px;
  color: var(--body);
  font-size: 0.975rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  padding-bottom: 22px;
}

/* --------------------------------------------------------------------------
   8. Dark Closing CTA Band
   -------------------------------------------------------------------------- */
.cta-band {
  background-color: var(--ink);
  color: var(--dark-text);
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.cta-band-content {
  max-width: 680px;
  margin: 0 auto;
}

.cta-band h2 {
  color: #FFFFFF;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--dark-text);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   9. Global Footer (#1A2421, high contrast)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--ink);
  color: var(--dark-text);
  padding: 72px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: auto;
}

.site-footer p {
  color: var(--dark-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-col p,
.footer-col div,
.footer-col span {
  color: var(--dark-text);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--dark-text);
  font-size: 0.925rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.footer-address {
  font-style: normal;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--dark-text);
}

.footer-address p {
  color: var(--dark-text);
  margin-bottom: 8px;
}

.footer-address a {
  color: #79D4B8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--dark-text);
}

.payment-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   10. Cart Drawer & Overlay
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 36, 33, 0.6);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: min(440px, 94vw);
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 1200;
  box-shadow: var(--shadow-drawer);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 1.25rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.close-btn:hover {
  background-color: var(--support);
}

/* Free Shipping Goal Bar */
.shipping-progress-wrap {
  padding: 14px 24px;
  background-color: var(--bg-cream);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.shipping-progress-text {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.progress-bar-bg {
  width: 100%;
  height: 7px;
  background-color: #E2ECE8;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}

.cart-drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: #F4F6F5;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-details h4 {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-item-custom-text {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background-color: var(--support);
}

.qty-count {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #8C9E98;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.cart-item-remove:hover {
  color: #C0392B;
}

.cart-empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--body);
}

.cart-empty-state svg {
  margin: 0 auto 16px auto;
  color: #8C9E98;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background-color: var(--bg-cream);
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--body);
}

.cart-totals-row.subtotal {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   11. Quick View Modal
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 36, 33, 0.65);
  z-index: 1250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.quick-view-modal {
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-modal);
  width: min(840px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: var(--bg-white);
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #F4F6F5;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-thumbs {
  display: flex;
  gap: 10px;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: #F4F6F5;
  padding: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.modal-thumb.active {
  border-color: var(--accent);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-details h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 20px;
}

.custom-option-field {
  background-color: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 16px;
  margin-bottom: 20px;
}

.custom-option-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.custom-option-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #FFFFFF;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}

/* --------------------------------------------------------------------------
   12. Search Modal
   -------------------------------------------------------------------------- */
.search-modal {
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-modal);
  width: min(600px, 92vw);
  padding: 24px;
  position: relative;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--accent);
  border-radius: var(--radius-btn);
  padding: 8px 14px;
  gap: 10px;
}

.search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.1rem;
}

.search-results-list {
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   13. Toast Notification
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--ink);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-lift);
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.925rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   14. Form & Input Elements
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background-color: var(--bg-white);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 107, 82, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   15. Shop Page Filters & Controls
   -------------------------------------------------------------------------- */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding: 16px 20px;
  background-color: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background-color: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.shop-search-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-search-input {
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--bg-white);
  font-size: 0.9rem;
  width: 200px;
}

.shop-sort-select {
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--bg-white);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   16. Contact Page 2-Column Grid
   -------------------------------------------------------------------------- */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.contact-card {
  background-color: var(--support);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-content h4 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.contact-info-content p {
  font-size: 0.925rem;
  color: var(--body);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   17. Legal Policy Content (Readable single column max-width: 780px)
   -------------------------------------------------------------------------- */
.legal-container {
  max-width: 780px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.legal-section h3 {
  font-size: 1.2rem;
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 14px;
}

.legal-section ul {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--body);
  line-height: 1.6;
}

.legal-section li {
  margin-bottom: 6px;
}
