/* -----------------------------
   CrochElla Styles
   Pastel Handmade Theme
--------------------------------*/

:root {
  --peach: #ffe5d9;
  --cream: #fffaf5;
  --lilac: #e6d0ff;
  --mint: #D0ECFF;
  --text: #3d3d3d;
  --radius: 18px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

/* Optional container helper */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;

}

/* -----------------------------
   Header
--------------------------------*/
.site-header {
  background: var(--peach);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between; /* logo left, nav right */
  align-items: center;
  padding: 1rem 0;
}

/* LOGO STYLE */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  font-weight: 800;
  font-size: 2rem;
  text-decoration: none;
  color: var(--text);
  background: var(--mint);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.logo-img {
  height: 80px;   /* adjust size here */
  width: auto;
  display: block;
}

.logo-text {
  line-height: 1;
}


.logo:hover {
  background: var(--lilac);
  transform: scale(1.05);
}

.site-header {
  background: var(--peach);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 2rem;
  text-decoration: none;
  color: var(--text);
  background: var(--mint);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.logo-text {
  line-height: 1;
}

.logo:hover {
  background: var(--mint);
  transform: scale(1.03);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 16px;
  background: var(--mint);
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.nav-toggle:hover {
  background: var(--lilac);
}

.nav {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  padding: 0.8rem;
}

.nav.open {
  display: block;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav a {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--cream);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  box-shadow: none;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: var(--lilac);
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.4rem;
    padding: 0.5rem 0.9rem;
  }

  .logo-img {
    height: 60px;
  }

  .nav {
    right: 16px;
    width: calc(100vw - 32px);
    max-width: 260px;
  }
}

/* -----------------------------
   Hero Section
--------------------------------*/
.hero {
  background: linear-gradient(to bottom right, var(--lilac), var(--peach));
  text-align: center;
  padding: 5rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

.btn {
  background: var(--mint);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

/* -----------------------------
   Sections
--------------------------------*/
.section {
  padding: 3rem 0;
  background: var(--cream);
}

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

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* -----------------------------
   Grid / Cards
--------------------------------*/
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

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

.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 1rem;
  transition: transform 0.2s ease;
  background: white;

  text-decoration: none;   /* removes underline */
  color: var(--text);      /* stops purple/blue links */
}

.card:visited {
  color: var(--text);
}

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

.card img {
  border-radius: var(--radius);
  width: 100%;
  height: 300px;
  object-fit: cover;

  border: 4px solid var(--mint);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  padding: 4px;
  background: white;
}
.card h3 {
  margin-top: 0.75rem;
  font-size: 1.1rem;
 
}

.card p {
  color: black; 
  }

.card-content {
  background: white;
  padding: 1rem;
}

/* -----------------------------
   Gallery Layout
--------------------------------*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 2.25rem;
  margin-top: 2rem;
}

.gallery-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
  background: white;
}

/* For accessories / home / baby images only */
.small-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.gallery-info {
  margin-top: 0.9rem;
  padding: 0 0.4rem;
}

.gallery-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
}

.gallery-info p {
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.45;
  color: #555;
  max-width: 26ch;
  text-align: center;
}

/* Slightly tighter spacing on smaller screens */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-card {
    max-width: 340px;
  }

  .gallery-card img,
  .small-photo {
    height: 380px;
  }

  .gallery-info h3 {
    font-size: 1.4rem;
  }
}

/* Smaller Bag & Blanket */
.small-photo {
  width: 100%;
  height: 300px;
  margin: auto;
  border-radius: var(--radius);
  display: block;
  transition: transform 0.25s ease;
}

.small-photo:hover {
  transform: scale(1.05);
}

/* -----------------------------
   Footer
--------------------------------*/
.site-footer {
  background: var(--lilac);
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--text);
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* -----------------------------
   Responsive Tweaks
--------------------------------*/
@media (max-width: 768px) {
  .logo {
    font-size: 1.6rem;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 3rem 1rem;
  }
}
/* -----------------------------
   Product Page
--------------------------------*/

.product-page {
  background:  #eef8ff;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Gallery */
.product-gallery {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

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

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

.product-thumbnails .thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
}

.product-thumbnails .thumb.active {
  opacity: 1;
  border-color: var(--mint);
}

/* Info panel */
.product-info {
  width: 100%;
  max-width: 900px;   
  margin: 0 auto;
  background-color: #f3f3f3;
  border-radius: 24px;
  padding: 2.5rem 3rem;  
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}
.product-info {
  min-height: auto;   
}

.product-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.product-price {
  margin-bottom: 0.75rem;
}

.current-price {
  font-weight: 700;
  font-size: 1.3rem;
  margin-right: 0.5rem;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  font-size: 0.95rem;
}

.product-tagline {
  margin-bottom: 1.25rem;
  color: #555;
  text-align: left;
}

/* Options */
.product-option {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.option-label {
  font-weight: 600;
}

.option-value {
  background: var(--cream);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* Sizes */
.size-options {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.size-pill {
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
  font-size: 0.9rem;
}

.size-pill.selected {
  background: var(--peach);
}

/* Button reuse */
.add-to-bag {
  margin-top: 0.75rem;
  width: 100%;
}

/* Details */
.product-details {
  margin-top: 1.5rem;
}

.product-details h2 {
  text-align: left;
  margin-bottom: 0.75rem;
}

.product-details ul {
  padding-left: 1.2rem;
  text-align: left;
  color: #555;
}

.product-details li + li {
  margin-top: 0.3rem;
}

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

  .product-info {
    order: 2;
  }

  .product-gallery {
    order: 1;
  }
}

/* === Product page stacked layout === */

.product-page .product-layout {
  display: flex;
  flex-direction: column;      /* stack image then info */
  align-items: center;         /* center everything */
  gap: 2.5rem;
}

/* Centered main image */

.product-gallery {
  width: 100%;
  text-align: center;
}

.product-main-img {
  width: 100%;
  max-width: 520px;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 24px;

  border: 4px solid var(--lilac);
  padding: 6px;
  background: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Thumbnails centred under the main image */

.product-thumbnails {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* Light grey info box underneath */

.product-info {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background-color: #f3f3f3;
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

/* Make the Add to Basket button fill the box nicely */

.product-info .add-to-bag {
  width: 100%;
  margin-top: 1.2rem;
}

/* ===== Colour swatches ===== */

/* ===== Colour swatches FIXED ===== */

.product-option {
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 140px 1fr 220px;
  align-items: center;
  gap: 1rem;
}

.option-label {
  font-weight: 600;
  text-align: left;
}

.colour-swatches {
  display: grid;
  grid-template-columns: repeat(10, 34px);
  gap: 0.7rem;
  justify-content: start;
}

.colour-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--swatch-color);
  border: 2px solid rgba(0,0,0,0.15);
  cursor: pointer;
}

.colour-swatch.selected {
  border: 4px solid #000;
}

.selected-colour-text {
  margin-top: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: left;
  min-width: 220px;
}
@media (max-width: 900px) {
  .product-option {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .colour-swatches {
    justify-content: center;
    grid-template-columns: repeat(5, 34px);
  }

  .selected-colour-text {
    text-align: center;
    min-width: 0;
  }
}

/* Basket */

.basket-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.basket-table th,
.basket-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.basket-table th {
  background: var(--mint);
  font-weight: 600;
}

/* -----------------------------
   Basket Page Layout
--------------------------------*/
.basket-page {
  padding: 3rem 0 4rem;
}

.basket-page h1,
.basket-page h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.basket-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.basket-summary,
.order-panel {
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.basket-items-wrap {
  margin-top: 1rem;
}

#basketItems {
  margin-top: 1rem;
}

.basket-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #555;
}

.basket-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 1.2rem;
  font-weight: 700;
}

.order-panel form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-weight: 600;
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  font: inherit;
  background: #fff;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(208, 236, 255, 0.35);
}

.order-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.order-actions .btn {
  min-width: 210px;
  text-align: center;
}

.order-note {
  margin-top: 1rem;
  text-align: left;
  color: #555;
  font-size: 0.98rem;
  max-width: none;
}

.basket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

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

.basket-item-info {
  flex: 1;
}

.basket-item-title {
  text-align: left;
  margin: 0 0 0.35rem;
}

.basket-item-meta,
.basket-item-price {
  text-align: left;
  margin: 0;
  color: #666;
  max-width: none;
}

.basket-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--mint);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.qty-number {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.remove-item {
  width: auto;
}

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

  .basket-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .basket-item-actions {
    align-items: flex-start;
  }

  .order-actions {
    flex-direction: column;
  }

  .order-actions .btn {
    width: 100%;
  }
}
.about-text {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.05rem;
  text-align: center;
}

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

.about-text p {
  margin-bottom: 1rem;
}
.small-photo {
  width: 100%;
  max-width: 400px;   /* bigger than before */
  height: 400px;
  object-fit: cover;  /* fills space nicely like a gallery */
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}
.gallery-card {
  background: transparent;   /* removes white box */
  box-shadow: none;          /* removes shadow */
  padding: 0;
  border-radius: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}
.gallery-info {
  text-align: center;
  margin-top: 0.8rem;
}
.dual-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.half-section {
  padding: 2rem 0;
}

.half-section .gallery-grid {
  justify-content: center;
}

@media (max-width: 768px) {
  .dual-section {
    grid-template-columns: 1fr;
  }
}
/* -----------------------------
   Contact Page (match basket)
--------------------------------*/

.contact-page {
  padding: 3rem 0 4rem;
}

.contact-layout {
  display: flex;
  justify-content: center;
}

.contact-panel {
  width: 100%;
  max-width: 600px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.contact-panel h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

/* Reuse basket form styling */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 600;
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  font: inherit;
  background: #fff;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(208, 236, 255, 0.35);
}

.contact-panel .btn {
  width: 100%;
  margin-top: 1rem;
}
/* -----------------------------
   Page Navigation (Prev / Next)
--------------------------------*/

.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 3rem auto 1.5rem;
  padding: 0 16px;
}

.nav-btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: var(--mint);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--peach);
  transform: translateY(-2px);
}


.prev-btn {
  opacity: 0.9;
}

.next-btn {
  font-weight: 700;
}
.thankyou-hero {
  background: #e6cfe6; 
  text-align: center;
  padding: 80px 20px;
}

.thankyou-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.thankyou-hero p {
  font-size: 1.1rem;
  color: #555;
}
.thankyou-container {
  background: #cfe0eb; /* your blue section */
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.thankyou-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.thankyou-card ol {
  text-align: left;
  margin: 20px 0;
}

.buttons {
  margin-top: 20px;
}

.btn {
  background: #a8c7df;
  padding: 12px 20px;
  border-radius: 20px;
  text-decoration: none;
  margin: 5px;
  display: inline-block;
}

.btn.secondary {
  background: #d3e6f5;
}

.accessibility-controls {
  display: flex;
  gap: 8px;
  margin-left: auto; 
}

.accessibility-controls button {
  background-color: #e6eef5; 
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.accessibility-controls button:hover {
  background-color: #d6e6f2;
  transform: translateY(-1px);
}

.accessibility-controls button:active {
  transform: scale(0.96);
}

.accessibility-controls button:focus {
  outline: 2px solid #5b9bd5;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -60px; /* hide it above the page */
  left: 50%;
  transform: translateX(-50%);
  background-color: #e6eef5; 
  color: #333;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: top 0.3s ease;
  z-index: 1000;
}


.skip-link:focus {
  top: 15px;
}