/* ------------------------------
   Global Styles
--------------------------------*/
:root {
  --navy: #0a2540;
  --sky: #4db7ff;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #555;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  --max-width: 1200px;
  --radius: 12px;
  --transition: 0.3s ease;
}

h1, h2, h3 {
  color: var(--navy);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Fredoka", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);

  /* soft gradient background instead of plain white */
  background:
    radial-gradient(1600px 800px at 100% -10%, rgba(77,183,255,.10) 0%, transparent 60%),
    radial-gradient(1200px 600px at -10% 110%, rgba(10,37,64,.06) 0%, transparent 60%),
    #ffffff;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

h1, h2, h3 {
  line-height: 1.2;
}

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

button, input, textarea {
  font-family: inherit;
}

.section {
  padding: 4rem 1rem;
  max-width: var(--max-width);
  margin: auto;
}

.btn-primary {
  display: inline-block;
  background: var(--sky);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover,
button:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

/* ------------------------------
   Header & Navigation
--------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1rem;  /* reduced top/bottom padding */
}

.site-header .logo img {
  height: 40px;  /* smaller logo */
}

.main-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.main-nav a {
  font-weight: 500;
  padding: 0.5rem;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--sky);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
}

/* ------------------------------
   Hero
--------------------------------*/
.hero {
  background: linear-gradient(to right, var(--sky), var(--navy));
  color: var(--white);
  text-align: center;
  padding: 6rem 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 2rem;
}

.search-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.search-bar input {
  padding: 0.6rem 0.9rem;
  border: none;
  border-radius: var(--radius);
  width: clamp(200px, 32vw, 320px);
  max-width: 340px;
  font-size: 0.95rem;
}

.search-bar .btn-primary {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .search-bar {
    flex-wrap: wrap;
    width: 100%;
  }

  .search-bar input {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .search-bar .btn-primary {
    width: auto;
    justify-content: center;
  }

  .search-bar .btn-primary {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* ------------------------------
   Cards & Grids
--------------------------------*/
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 500;
}

/* Product grids: 4 on desktop, 2 on mobile, no overflow */
.product-grid {
  display: grid;
  gap: 1rem; /* slightly smaller gap helps on phones */
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Prevent horizontal overflow in grid children */
.product-card {
  min-width: 0;                /* critical for CSS Grid to allow shrink */
  overflow: hidden;            /* hide any tiny overflows from shadows etc. */
}

.product-card h3,
.product-card p {
  word-wrap: break-word;
  overflow-wrap: anywhere;     /* long words/titles won’t push the layout */
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
}

/* ===== Cards: Brand Styling ===== */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 280px)); /* slimmer */
  justify-content: center;
}

.cards .card {
  background: var(--navy); /* brand blue */
  color: #fff;             /* white text */
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1rem;
  text-align: center;
  max-width: 280px;        /* prevents “too wide” look */
  margin-inline: auto;
  font-weight: 500;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.cards .card img {
  height: 60px;            /* consistent icon size */
  margin-bottom: 0.8rem;
}

/* Section spacing for headings + cards */
#classes h2,
#classes p {
  text-align: center;   /* keep heading/paragraph centred */
  margin-bottom: 1.5rem;
}

#classes .cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;           /* more space between cards */
  margin-top: 1rem;      /* push cards away from heading */
}

/* Individual cards */
#classes .card {
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.5rem;
  text-align: center;
  max-width: 260px;
  min-width: 200px;
  font-weight: 500;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* ------------------------------
   Carousels
--------------------------------*/
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--sky);
  border: none;
  color: var(--white);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.carousel-control.prev { left: 1rem; }
.carousel-control.next { right: 1rem; }

/* ------------------------------
   FAQs
--------------------------------*/
.accordion-item {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.accordion-header {
  width: 100%;
  background: var(--sky);
  color: var(--white);
  padding: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  padding: 0 1rem;
  transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  padding: 1rem;
}

/* ------------------------------
   CTA Banner
--------------------------------*/
.cta-banner {
  background: var(--sky);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
}

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

/* ------------------------------
   Newsletter
--------------------------------*/
.newsletter form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter input {
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  min-width: 250px;
}

/* ------------------------------
   Contact
--------------------------------*/
#contact form {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

#contact input,
#contact textarea {
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  width: 100%;
}

/* ------------------------------
   Footer
--------------------------------*/
.site-footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
}

.payment-badges img {
  height: 30px;
  margin: 0.5rem;
}

/* ------------------------------
   Floating Buttons
--------------------------------*/
.whatsapp-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #25d366;
  color: var(--white);
  padding: 1rem;
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-size: 1.5rem;
  z-index: 999;
}

.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--sky);
  color: var(--white);
  padding: 0.75rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 999;
}

/* Compact mobile menu */
@media (max-width: 768px) {
  .hamburger { display: block; position: relative; z-index: 1001; }

  .main-nav {
    position: absolute;
    top: 58px;                 /* just under the header */
    right: 12px;
    width: 230px;              /* compact panel */
    max-height: 70vh;          /* never too tall */
    overflow-y: auto;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    padding: 10px;
    opacity: 0;
    transform: scale(.96) translateY(-6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 1000;
  }
  .main-nav.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 4px;                  /* tighter list */
  }
  .main-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
  }
  .main-nav a:hover,
  .main-nav a:focus {
    background: #f0f6ff;
    color: var(--navy);
  }

  /* dim the page when menu is open */
  .nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
    z-index: 950;
  }
  .nav-overlay.show { opacity: 1; pointer-events: auto; }
}

/* ------------------------------
   Shop & Cart Drawer
--------------------------------*/
.shop-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.shop-filters input,
.shop-filters select {
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: right 0.3s ease;
  z-index: 1000;
}

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

.cart-drawer h2 {
  margin-bottom: 1rem;
}

.cart-drawer ul {
  list-style: none;
  padding: 0;
}

.cart-drawer li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.cart-footer {
  margin-top: 1rem;
}

.cart-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
}
.cart-toggle .cart-icon {
  font-size: 1.5rem;
  background: var(--sky);
  color: var(--white);
  padding: 0.75rem;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
}

/* ------------------------------
   Cart Page
--------------------------------*/
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.cart-table th,
.cart-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center;
}

.cart-table th {
  background: var(--sky);
  color: var(--white);
}

.cart-table input[type="number"] {
  width: 60px;
  padding: 0.25rem;
  text-align: center;
}

.cart-summary {
  text-align: right;
}
.cart-summary h3 {
  margin-bottom: 1rem;
}

/* ------------------------------
   Checkout Page
--------------------------------*/
.checkout-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

.order-summary, .checkout-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.order-summary ul {
  list-style: none;
  margin-bottom: 1rem;
}

.checkout-form input {
  display: block;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  width: 100%;
}

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

/* ------------------------------
   Reveal Animations
--------------------------------*/
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Alternate section backgrounds */
.section--alt {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-radius: 24px;
  box-shadow: 0 8px 26px rgba(10,37,64,.06);
}

#kits {
  display: block !important;
}
#kits .product-card {
  min-width: 200px;  /* prevents collapsing too small */
}

/* === KITS: tidy 4→2 grid and stop overlap === */
#kits .product-grid{
  display:grid;
  gap:1rem;                               /* space between cards */
  grid-template-columns:repeat(4,minmax(0,1fr)); /* desktop: 4 */
}

@media (max-width:768px){
  #kits .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)); /* mobile: 2 */
    padding:0 .5rem;                     /* tiny side breathing room */
  }
}

/* Cards must be allowed to shrink inside a CSS grid */
#kits .product-card{
  min-width:0;                           /* CRITICAL: prevents overflow */
  display:flex; flex-direction:column;   /* keeps button at bottom */
  background:#fff;
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:12px;
  overflow:hidden;                        /* hides any tiny spill */
  position:relative; z-index:0;
}

/* Images consistent and not pushing layout */
#kits .product-card img{
  width:100%;
  aspect-ratio:3/4;                      /* consistent card height */
  object-fit:cover;
  border-radius:12px;
  display:block;
}

/* Text should wrap, not push */
#kits .product-card h3{
  margin:.6rem 0 .25rem;
  font-size:1rem;
  line-height:1.2;
  overflow-wrap:anywhere;                 /* long words break */
}
#kits .product-card p{ margin:0 0 .6rem; }

/* Keep CTAs aligned neatly */
#kits .product-card button{ margin-top:auto; }

/* Belt-and-braces: kill any stray horizontal scroll */
html,body{ overflow-x:hidden; }

/* Background for Kits section */
#kits {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  padding: 2rem 1rem;
  border-radius: 24px;
}

/* Background for cards inside Kits */
#kits .product-card {
  background: #f0f6ff; /* light sky-blue background */
  border: 1px solid #dceaff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* Add space under Kits heading */
#kits h2 {
  margin-bottom: 2rem; /* pushes cards down */
  text-align: center;  /* optional: centers heading */
}

/* Shop Now buttons inside product cards */
.product-card button {
  background: var(--sky);        /* brand sky blue */
  color: #fff;                   /* white text */
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover effect */
.product-card button:hover {
  background: var(--navy);       /* darker blue on hover */
  transform: translateY(-2px);   /* slight lift */
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card button {
  margin-top: auto;   /* pushes button to bottom */
}

/* === Mobile header: shorter height === */
@media (max-width: 768px) {
  .site-header{
    padding: 6px 12px !important;   /* less top/bottom padding */
  }
  .site-header .logo img{
    height: 32px !important;         /* smaller logo */
    display: block;                   /* removes extra baseline gap */
  }
  .hamburger{
    font-size: 22px;                  /* a bit smaller icon */
    line-height: 1;                   /* no extra vertical space */
    padding: 0; margin: 0;
  }
}

/* Keep hamburger above the sliding drawer */
.hamburger { position: relative; z-index: 1001; }

/* Make sure the drawer sits below the header */
@media (max-width: 768px){
  .main-nav{ z-index: 960; }
}

/* Click-away overlay */
.nav-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  z-index: 950; /* below header(1000), above page */
}
.nav-overlay.show{ opacity: 1; pointer-events: auto; }

/* === KITS (mobile): equal-height cards + aligned buttons === */
@media (max-width: 768px) {
  #kits .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;                 /* each card fills the row height */
  }

  /* Use a 4-row grid inside each card so the button is always at the bottom */
  #kits .product-card {
    display: grid !important;
    grid-template-rows: auto auto 1fr auto; /* image | title | flex text | button */
    height: 100%;
    padding-bottom: 14px;                   /* consistent bottom padding */
  }

  /* Consistent image box so heights match */
  #kits .product-card img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    width: 100%;
    display: block;
    border-radius: 12px;
  }

  /* Reserve space for text so short/long copies don't shift the layout */
  #kits .product-card h3 {
    margin: .6rem 0 .25rem;
    line-height: 1.2;
    min-height: 2.6em;                      /* ~2 lines */
  }
  #kits .product-card p {
    margin: 0 0 .6rem;
    min-height: 3.6em;                      /* ~3 lines */
  }

  /* Button row sits at the bottom across both columns */
  #kits .product-card a,
  #kits .product-card button {
    align-self: end;                         /* stick to the card bottom */
    margin-top: 0 !important;                /* override previous auto margins */
  }
}

/* === KITS (mobile): equal text heights === */
@media (max-width: 768px) {
  #kits .product-card h3 {
    min-height: 2.8em;     /* force ~2 lines space */
    line-height: 1.3;
  }
  #kits .product-card p {
    min-height: 3.8em;     /* force ~3 lines space */
  }
}

/* === All product grids (mobile): align texts + buttons === */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;   /* stretch cards equally */
  }

  .product-card {
    display: grid !important;
    grid-template-rows: auto auto 1fr auto; /* image | title | desc flex | button */
    height: 100%;
  }

  .product-card img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    width: 100%;
    display: block;
  }

  /* Keep titles and descriptions the same height */
  .product-card h3 {
    min-height: 2.8em;   /* ~2 lines */
    line-height: 1.3;
  }

  .product-card p {
    min-height: 3.8em;   /* ~3 lines */
  }

  /* Buttons always at bottom */
  .product-card a,
  .product-card button {
    align-self: end;
    margin-top: 0 !important;
  }
}

/* Add space between section headings and their grids */
.section h2 {
  margin-bottom: 2rem;  /* consistent gap before cards */
  text-align: center;   /* optional: keep all section headings centered */
}

/* Global style for all product cards */
.product-card {
  background: #f0f6ff;        /* light sky-blue background */
  border: 1px solid #dceaff;  /* subtle border */
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);             /* lift up */
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); /* stronger shadow */
  border-color: var(--sky);                /* darker blue border */
}

/* === Featured Products: scroll-snap carousel === */
#featured .carousel {
  overflow-x: auto;                   /* swipeable */
  scroll-snap-type: x mandatory;      /* snap to each card */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;              /* hide scrollbars */
}
#featured .carousel::-webkit-scrollbar { display: none; }

#featured .carousel-track {
  display: flex;
  gap: 12px;
}

#featured .product-card {
  flex: 0 0 45%;              /* ~2 per screen on mobile */
  max-width: 240px;
  scroll-snap-align: start;
  display: grid;              /* equal layout inside */
  grid-template-rows: auto auto 1fr auto; /* image | title | desc flex | button */
  height: 100%;
  padding: 0.8rem;
}

@media (min-width: 768px) {
  #featured .product-card {
    flex: 0 0 22%;            /* ~4 per screen on desktop */
  }
}

/* Consistent image box */
#featured .product-card img {
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

/* Equal title + desc height */
#featured .product-card h3 {
  min-height: 2.6em;          /* reserve ~2 lines */
  line-height: 1.2;
}
#featured .product-card p {
  min-height: 3.6em;          /* reserve ~3 lines */
  max-height: 3.6em;          /* stop very long text */
  overflow: hidden;           /* truncate overflow */
}

/* Button at bottom */
#featured .product-card a {
  margin-top: auto;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
  #featured .carousel-control { display: none; }
}

/* Match online section buttons to product card buttons */
#classes .btn-primary,
#classes button,
#classes a {
  background: var(--sky);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

#classes .btn-primary:hover,
#classes button:hover,
#classes a:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* === 1) Online section (below hero): make its buttons match Shop Now === */
/* Cover anchors or buttons you used there */
#classes .btn-primary,
#classes a.btn-primary,
#classes .cards .card a,
#classes .cards .card button,
#classes button {
  background: var(--sky) !important;   /* same as Shop Now */
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  transition: background .3s ease, transform .2s ease;
}
#classes .btn-primary:hover,
#classes .cards .card a:hover,
#classes .cards .card button:hover,
#classes button:hover {
  background: var(--navy) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* === 2) Headings: navy everywhere... */
h1, h2, h3 {
  color: var(--navy) !important;
}
/* ...except inside the hero (keep them white) */
.hero h1, .hero h2, .hero h3 {
  color: #fff !important;
}

/* === Online Classes: make the 3 cards use the Shop-Now blue === */
#classes .cards .card{
  background: var(--sky) !important;  /* same as Shop Now */
  color: #fff !important;             /* white text */
  border: none !important;
}
#classes .cards .card *{ color: inherit; } /* keep all text/icons white */
#classes .cards .card:hover{
  background: var(--navy) !important; /* darker on hover */
  box-shadow: var(--shadow);
}

/* Headings navy everywhere, but keep hero headings white */
h1, h2, h3{ color: var(--navy) !important; }
.hero h1, .hero h2, .hero h3{ color: #fff !important; }

/* === Resources section layout === */
#resources .product-grid {
  display: flex;
  justify-content: center;  /* center the 2 cards */
  gap: 2rem;                /* space between them */
  flex-wrap: wrap;          /* wrap nicely on small screens */
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Equal-height cards */
#resources .product-card {
  flex: 0 1 280px;           /* each card ~280px wide */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f0f6ff;
  border: 1px solid #dceaff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
}

#resources .product-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  width: 100%;
}

#resources .product-card h3 {
  min-height: 2.4em;         /* reserve ~2 lines */
  margin-bottom: 0.5rem;
}

#resources .product-card p {
  flex-grow: 1;              /* stretch desc to align */
  min-height: 2.6em;
  margin-bottom: 0.8rem;
}

#resources .product-card a {
  margin-top: auto;          /* button at bottom */
}

/* === Why Choose Kids Nurturer section cards === */
#why .card {
  background: var(--sky) !important;   /* Shop Now blue */
  color: #fff !important;              /* white text */
  border: none !important;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, transform 0.2s ease;
}

#why .card * {
  color: inherit !important; /* force icons + text inside to stay white */
}

#why .card:hover {
  background: var(--navy) !important;  /* darker blue on hover */
  transform: translateY(-3px);
}

/* === Why Choose Kids Nurturer: responsive grid === */
#why .cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

/* Make all cards equal height */
#why .card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80px;         /* adjust height as needed */
  font-weight: 600;
}

/* === WHY section (mobile): 2 per row, equal heights === */
@media (max-width: 768px) {
  #why .cards{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* Make every pill the same size */
  #why .card{
    height: 92px;                   /* <- fixed, equal height */
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
  }

  /* Remove stray margins inside (e.g., if there are <p> or <span>) */
  #why .card > *{ margin: 0; }

  /* If any label still tries to overflow, hide the extra safely */
  #why .card{
    overflow: hidden;               /* clips extra lines instead of stretching */
    line-height: 1.2;
  }
}

/* === How It Works: timeline style === */
#how .how-steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}

#how .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

#how .step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--sky);   /* Shop Now blue */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

#how .step p {
  color: var(--navy);
  font-weight: 500;
}

/* === Testimonials carousel === */
#testimonials .carousel {
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
}

#testimonials .carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
}

/* Testimonial images */
#testimonials .carousel-track img {
  width: 180px;          /* slimmer cards so more can fit */
  height: 320px;         /* consistent shorter height */
  object-fit: contain;   /* show full screenshot, no cropping */
  background: #fff;      /* white behind images */
  border-radius: 12px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  padding: 8px;          /* little breathing room */
}

/* Carousel controls */
#testimonials .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--sky);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2;
}
#testimonials .carousel-control.prev { left: 10px; }
#testimonials .carousel-control.next { right: 10px; }

/* Hide controls on mobile */
@media (max-width: 768px) {
  #testimonials .carousel-control { display: none; }
}

/* Testimonials section background */
#testimonials {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-radius: 24px;
  padding: 3rem 1rem;
  box-shadow: 0 8px 26px rgba(10,37,64,.06);
}

/* === Testimonials section === */
#testimonials {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%); /* light gradient */
  border-radius: 24px;
  padding: 3rem 1rem;
  box-shadow: 0 8px 26px rgba(10,37,64,.06);
}

#testimonials .carousel-track img {
  width: auto;             /* let image keep its natural width ratio */
  max-width: 200px;        /* never too wide */
  height: auto;            /* let height scale naturally */
  max-height: 360px;       /* limit so they don’t get too tall */
  object-fit: contain;     /* no cropping */
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  padding: 6px;
}

/* Testimonials responsive sizing */
#testimonials .carousel-track img {
  max-width: 200px;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  padding: 6px;
}

/* Mobile: one image per view, larger */
@media (max-width: 768px) {
  #testimonials .carousel-track img {
    max-width: 90%;   /* take almost full width */
    max-height: 80vh; /* not taller than viewport */
    margin: 0 auto;   /* center the image */
  }

  #testimonials .carousel-track {
    justify-content: center;
  }
}

/* === Testimonials Section Background === */
#testimonials {
  background: #eaf5ff; /* solid pale blue */
  border-radius: 24px;
  padding: 3rem 1rem;
  margin: 2rem auto;
  max-width: var(--max-width);
  box-shadow: 0 8px 26px rgba(10,37,64,.08);
}


#testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--navy);
}

#testimonials .carousel {
  background: transparent; /* let section background show through */
  position: relative;
  overflow: hidden;
}

/* === FAQ Accordion === */
#faqs .accordion {
  max-width: 800px;
  margin: 2rem auto;
}

#faqs .accordion-item {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

#faqs .accordion-header {
  width: 100%;
  background: var(--sky);
  color: #fff;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

#faqs .accordion-header:hover {
  background: var(--navy);
}

#faqs .accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  padding: 0 1rem;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

/* When active, open fully */
#faqs .accordion-item.active .accordion-content {
  max-height: 500px; /* large enough for your text */
  padding: 1rem;
}

/* FAQ — clean base */
#faqs .accordion{max-width:800px;margin:2rem auto;}
#faqs .accordion-item{margin-bottom:1rem;border-radius:12px;overflow:hidden;box-shadow:var(--shadow);}
#faqs .accordion-header{
  width:100%;background:var(--sky);color:#fff;font-weight:600;padding:1rem;text-align:left;border:0;cursor:pointer;
  transition:background .25s ease;
}
#faqs .accordion-header:hover{background:var(--navy);}

/* Animated panel (JS sets max-height dynamically) */
#faqs .accordion-content{
  max-height:0; overflow:hidden; background:#fff; padding:0 1rem;
  transition:max-height .35s ease, padding .35s ease;
}
#faqs .accordion-item.active .accordion-content{ padding:1rem; } /* padding only when open */

/* Contact Form */
#contact form {
  max-width: 600px;
  margin: 0 auto;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact input:focus,
#contact textarea:focus {
  border-color: var(--sky);
  outline: none;
  box-shadow: 0 0 8px rgba(77, 183, 255, 0.3);
}

#contact textarea {
  min-height: 120px;
  resize: vertical;
}

/* Contact Button */
#contact button {
  width: 100%;
  background: var(--sky);
  color: #fff;
  padding: 0.9rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#contact button:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-brand h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.footer-brand p,
.footer-brand a {
  font-size: 0.95rem;
  color: #ddd;
}

.footer-brand a {
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--sky);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: background 0.3s ease;
}

.footer-social a:hover {
  background: var(--sky);
}

/* WhatsApp Floating Button */
.whatsapp-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #25d366; /* WhatsApp green */
  color: #fff;
  padding: 1rem;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  font-size: 1.5rem;
  z-index: 999;
  cursor: pointer;
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* Pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Scroll-to-Top Button */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--sky);
  color: #fff;
  padding: 0.8rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, transform 0.3s ease;
}

.scroll-top:hover {
  background: var(--navy);
  transform: translateY(-3px);
}

/* WhatsApp Floating Button */
.whatsapp-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #25d366; /* WhatsApp green */
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px; /* icon size */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  cursor: pointer;
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* Scroll-to-Top Button */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--sky);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, transform 0.3s ease;
}

.scroll-top:hover {
  background: var(--navy);
  transform: translateY(-3px);
}

/* spacing below subtitle */
.shop-subtitle {
  margin-bottom: 1rem; /* reduce gap under subtitle */
}

/* spacing for filters */
.shop-filters {
  margin-bottom: 1rem; /* tighten gap before cards */
}

/* make sure product grid follows closely */
#product-list {
  margin-top: 0; /* remove any extra top margin */
  padding-top: 0;
}

/* Shop section wrapper */
#shop {
  padding-top: 2rem;   /* keep small padding for breathing space */
  padding-bottom: 2rem;
}

/* Subtitle spacing */
.shop-subtitle {
  margin-bottom: 1rem;
}

/* Filters wrapper */
.shop-filters {
  margin-bottom: 1rem;
}

/* Product list */
#product-list {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.product-card button {
  background: var(--sky);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  width: 100%;                /* full width for neat alignment */
  max-width: 160px;           /* prevents being too wide */
  margin: 0.5rem auto 0;      /* center it */
  display: block;
}

.product-card button:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* when clicked (feedback flash) */
.product-card button.added {
  background: #28a745; /* success green */
}

#cart-count {
  background: #00bfff; /* Light Blue */
  color: #001f54;      /* Navy text */
  font-size: 0.8rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 6px;
  min-width: 20px;
  text-align: center;
}

#open-cart {
  background: #001f54; /* Navy Blue */
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#open-cart:hover {
  background: #003580; /* Slightly lighter navy */
}

/* Badge pulse */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
#cart-count.pulse {
  animation: pulse 0.4s ease;
}

/* Cart button bounce */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  30%      { transform: translateY(-4px); }
  60%      { transform: translateY(2px); }
}
#open-cart.bounce {
  animation: bounce 0.5s ease;
}

/* Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 999;
}
.cart-overlay.show {
  display: block;
}

/* Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 340px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.cart-drawer.open {
  right: 0;
}

/* Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy, #002147);
  color: #fff;
  padding: 1rem;
}
.cart-header h2 {
  font-size: 1.2rem;
  margin: 0;
}
.cart-header button {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

/* Items */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  list-style: none;
  margin: 0;
}
.cart-items li {
  background: #f9f9f9;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.cart-items li img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}
.cart-items li strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item-info div span {
  display: block;
  font-size: 0.85rem;
  color: #555;
}
.cart-remove {
  border: none;
  background: var(--sky);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}
.cart-remove:hover,
.cart-remove:focus-visible {
  background: var(--navy);
}

/* Footer */
.cart-footer {
  padding: 1rem;
  border-top: 1px solid #eee;
  text-align: center;
}
.cart-footer p {
  margin: 0.5rem 0;
  font-weight: bold;
}
.btn-checkout {
  width: 100%;
  background: var(--sky, #3bb3ff);
  color: #fff;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-checkout:hover {
  background: #2096e0;
}

/* Cart Drawer */
#cart-drawer {
  position: fixed;
  top: 0;
  right: -400px; /* hidden by default */
  width: 360px;
  max-width: 90%;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  z-index: 1200;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

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

/* Cart items list (scrollable) */
#cart-items {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 8px; /* space for scrollbar */
  max-height: calc(100vh - 160px); /* prevents overflowing */
}

/* Hide scrollbar look (optional) */
#cart-items::-webkit-scrollbar {
  width: 6px;
}
#cart-items::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
#cart-items::-webkit-scrollbar-track {
  background: transparent;
}

/* Cart list */
#cart-items {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 5px;
}

#cart-items li {
  background: #f8faff;
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#cart-items img {
  border-radius: 6px;
}

/* Cart buttons inside list */
#cart-items button {
  border: none;
  background: var(--sky, #3bb3ff);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

#cart-items button:hover {
  background: var(--navy, #002147);
}

/* Cart total */
.cart-footer {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.cart-footer strong {
  font-size: 1.1rem;
  color: var(--navy, #002147);
}

.checkout-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem;
  text-align: center;
  background: var(--navy, #002147);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.checkout-btn:hover {
  background: var(--sky, #3bb3ff);
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1100;
}

.cart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.cart-footer {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  background: #fff; /* keep footer clean */
  position: sticky;
  bottom: 0;
}

/* Cart close button */
#close-cart {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--navy); /* your brand navy */
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  font-weight: bold;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 20;
}

#close-cart:hover {
  background: var(--sky); /* your light blue brand color */
}

#close-cart {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.order-summary {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 600px;
  max-height: 70vh;
  overflow-y: auto;
}

.order-summary h2 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-weight: 700;
}

.order-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}

.checkout-item:last-child {
  border-bottom: none;
}

.item-title {
  font-weight: 600;
  color: #333;
}

.item-meta {
  color: #555;
  font-size: 0.95rem;
}

.order-summary .total {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 1rem;
  text-align: right;
  color: var(--navy);
}

/* Checkout section adjustments */
.checkout-section h2 {
  text-align: center;          /* center the heading */
  margin-bottom: 1.5rem;       /* add space below the heading */
  font-size: 1.6rem;           /* make it a bit larger */
  color: var(--navy);          /* use your brand navy */
}

.checkout-section form {
  margin-top: 1rem;            /* extra space before form if needed */
}

/* Customer Details heading */
.section h2 {
  text-align: center;      /* center the text */
  margin-bottom: 1.5rem;   /* add space under heading */
  font-size: 1.6rem;       /* slightly bigger */
  color: var(--navy);      /* use brand navy */
}

/* Space above the form */
#checkout-form {
  margin-top: 1rem;
}

/* Customer Details heading */
.section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  color: var(--navy);
}

/* Checkout form styling */
#checkout-form {
  max-width: 500px;
  margin: 0 auto;               /* center form */
  display: flex;
  flex-direction: column;
  gap: 1rem;                    /* space between inputs */
}

#checkout-form input {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: var(--radius); /* same rounded corners as site */
  font-size: 1rem;
  font-family: "Fredoka", sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Input focus effect */
#checkout-form input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 4px 12px rgba(77,183,255,0.2);
}

/* Pay button */
#checkout-form button {
  margin-top: 1rem;
  background: var(--sky);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#checkout-form button:hover {
  background: var(--navy);
  transform: translateY(-2px);
}
/* === Buttons === */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--navy);
  color: var(--white);
}

/* === Shop Product Card Enhancements === */
#product-list .product-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  overflow: hidden;
}

#product-list .product-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(77, 183, 255, 0.08);
}

#product-list .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#product-list .product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.4rem;
}

#product-list .product-card__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sky);
  font-weight: 600;
}

#product-list .product-card__title {
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.35;
}

#product-list .product-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

#product-list .product-card__summary {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
  min-height: 3.2rem;
}

#product-list .product-card__stock {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}

#product-list .product-card__stock--out {
  color: #c62828;
}

#product-list .product-card__actions {
  margin-top: auto;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr);
}

#product-list .product-card__actions .btn-primary,
#product-list .product-card__actions .btn-secondary {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  margin: 0;
}

#product-list .product-card__actions .btn-primary {
  padding: 0.7rem 1.2rem;
}

#product-list .product-card__actions .btn-secondary {
  border-radius: 999px;
}

#product-list .product-card__actions .qty-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid rgba(10, 37, 64, 0.18);
  background: rgba(77, 183, 255, 0.12);
}

#product-list .product-card__actions .qty-select button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

#product-list .product-card__actions .qty-select button:hover {
  background: var(--sky);
  transform: translateY(-1px);
}

#product-list .product-card__actions .qty-select .qty-num {
  font-weight: 700;
  color: var(--navy);
  min-width: 32px;
  text-align: center;
}

@media (min-width: 640px) {
  #product-list .product-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  #product-list .product-card__actions .btn-secondary {
    grid-column: 1 / -1;
  }
}

/* === Product Detail Page === */
.btn-primary[disabled],
.btn-primary:disabled {
  background: rgba(10, 37, 64, 0.35);
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}

.btn-primary[disabled]:hover,
.btn-primary:disabled:hover {
  transform: none;
}

.product-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.product-detail__hero {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .product-detail__hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.product-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-detail__hero-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  min-height: 260px;
}

.product-detail__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-detail__thumb {
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0;
  background: none;
  cursor: pointer;
  transition: var(--transition);
}

.product-detail__thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  display: block;
}

.product-detail__thumb.active,
.product-detail__thumb:hover {
  border-color: var(--sky);
  box-shadow: 0 0 0 2px rgba(77, 183, 255, 0.18);
}

.product-detail__thumb:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-detail__back {
  font-weight: 600;
  color: var(--sky);
  text-decoration: none;
}

.product-detail__category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sky);
  font-weight: 600;
}

.product-detail__price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
}

.product-detail__summary {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.product-detail__stock {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.product-detail__stock.product-detail__stock--out {
  color: #c62828;
}

.product-detail__features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-detail__features li {
  background: rgba(77, 183, 255, 0.12);
  color: var(--navy);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.product-detail__meta {
  display: grid;
  gap: 0.6rem;
}

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

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.product-detail__actions .btn-primary,
.product-detail__actions .btn-secondary {
  flex: 1 1 180px;
}

.product-detail__feedback {
  min-height: 1.3rem;
  font-size: 0.95rem;
}

.product-detail__feedback.success {
  color: #2e7d32;
}

.product-detail__feedback.error {
  color: #c62828;
}

.product-detail__description {
  margin-top: 3rem;
  background: rgba(77, 183, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.product-detail__description h2 {
  margin-bottom: 1rem;
  color: var(--navy);
}

.product-detail__description p {
  line-height: 1.7;
  color: var(--text-dark);
}

@media (max-width: 600px) {
  .product-detail {
    padding: 1.5rem 1rem 3rem;
  }

  .product-detail__hero {
    gap: 1.5rem;
  }

  .product-detail__actions .btn-primary,
  .product-detail__actions .btn-secondary {
    flex: 1 1 100%;
  }
}
.popup-overlay,
#payment-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
}

.popup-overlay.show,
#payment-popup.show {
  display: flex;
}

#payment-popup .popup {
  background: #ffffff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 24px 48px rgba(10, 37, 64, 0.24);
  position: relative;
}

#payment-popup .close-btn {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border: none;
  background: rgba(10, 37, 64, 0.08);
  color: #0a2540;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}

#payment-popup .close-btn:hover {
  background: rgba(10, 37, 64, 0.18);
  transform: translateY(-1px);
}

#payment-popup .upload-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0 0.5rem;
}

#payment-popup .upload-box input[type="file"] {
  border: 1px dashed rgba(10, 37, 64, 0.35);
  padding: 0.65rem;
  border-radius: 10px;
  background: rgba(77, 183, 255, 0.08);
}

/* === Product Detail Page Polished Layout === */
.product-detail-page {
  padding: 2rem 1rem 4rem;
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  min-height: 100vh;
}

.product-detail-page .container {
  max-width: 1100px;
  margin: 0 auto;
}

.product-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Image Section */
.image-gallery {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow: hidden;
}
.image-gallery img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 16px;
}

/* Product Info */
.product-info {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.product-info h2 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.product-info .price {
  color: var(--sky);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-info p {
  line-height: 1.6;
  color: #333;
  font-size: 1rem;
}

.product-features {
  margin-top: 1.2rem;
  font-size: 0.95rem;
}
.product-features ul {
  list-style: none;
  padding-left: 0;
}
.product-features li {
  background: #f0f8ff;
  padding: 6px 10px;
  border-radius: 6px;
  margin: 4px 0;
  color: #333;
}

.btn-primary {
  background: var(--sky);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: 0.3s ease;
  width: 100%;
}
.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

/* Back Link */
.back-link {
  display: inline-block;
  color: var(--sky);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.2rem;
  transition: 0.3s ease;
}
.back-link:hover {
  text-decoration: underline;
}