/* -----------------------------
   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);
}

/* NAVIGATION (on the right) */
.nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  background: var(--mint);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

/* NAV TOGGLE (hidden by default for desktop) */
.nav-toggle {
  display: none;
}

/* -----------------------------
   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;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

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

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

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

.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;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.gallery-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;  
  object-fit: contain;
}

}

.gallery-info {
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
  background: white;  /* bottom is now white */
}

}

.gallery-info h3 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

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

/* 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: var(--cream);
}

.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 {
  background: var(--mint);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.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.5rem;
  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;
}

/* 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: 720px;
  background-color: #f3f3f3;   /* light grey instead of blue */
  border-radius: 24px;
  padding: 2rem 2.25rem;
  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 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
  list-style: none;   /* stops the little triangles */
  padding: 0;
}

.colour-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--swatch-color);
  display: inline-block;
  border: 2px solid rgba(0,0,0,0.15);
  cursor: pointer;
  padding: 0;
  appearance: none;  /* remove default button look */
}

.colour-swatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.colour-swatch.selected {
  border-color: #000;
}

.selected-colour-text {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: left;
}
/* 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;
}
