/* ===================================================
   EyeOn Equine Care — Single Product Page CSS
   PHP structure: .product-image { img + .thumbs }
   Layout: thumbs column LEFT | main image | details RIGHT
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Lato:wght@300;400;700&display=swap');

/* ── CSS Variables ── */


/* ── Breadcrumb ── */
.woocommerce-breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #888;
  padding: 16px 0 22px;
  display: block;
}
.woocommerce-breadcrumb a {
  color: #777;
  text-decoration: none;
  transition: color var(--transition);
}
.woocommerce-breadcrumb a:hover { color: var(--clr-accent); }

/* ── Section wrapper ── */
.product-section {
  background: var(--clr-light);
  padding: 0 0 70px;
}
.product-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   OUTER LAYOUT: .product-wrapper
   Gallery left (55%) | Details right (45%)
   ============================================================ */
.product-wrapper {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 48px;
  align-items: start;
}

/* ============================================================
   .product-image
   Inner grid: thumbs column (80px) | main image (rest)
   ============================================================ */
.product-image {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
  position: sticky;
  top: 24px;
}

/* ── Main product image — right cell ── */
.product-image > img:first-of-type {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--clr-white);
  display: block;
  transition: transform 0.35s ease;
}
.product-image > img:first-of-type:hover {
  transform: scale(1.015);
}

/* ── .thumbs — left column, stacked vertically ── */
.product-image .thumbs {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-image .thumbs img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  background: #EBECEE;
  box-shadow: var(--shadow-sm);
  display: block;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.product-image .thumbs img:hover,
.product-image .thumbs img.active {
  border-color: var(--clr-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(200,161,75,0.28);
}

/* ============================================================
   PRODUCT DETAILS — right column of .product-wrapper
   ============================================================ */
.product-details {
  padding-top: 6px;
}

/* Title */
.product-details h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clr-dark);
  line-height: 1.1;
  margin-bottom: 16px;
}

/* Price */
.price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--clr-border);
}
.old-price {
  font-size: 0.95rem;
  color: var(--clr-old-price);
  text-decoration: line-through;
  font-weight: 300;
}
.new-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--clr-new-price);
  letter-spacing: 0.02em;
}
.woocommerce-Price-currencySymbol {
  font-size: 0.75em;
  /* vertical-align: super; */
  margin-right: 3px;
}

/* SKU */
.sku {
  font-size: 0.78rem;
  color: #888;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Description */
.product-details p {
  font-size: 0.93rem;
  line-height: 1.78;
  color: #444;
  margin-bottom: 6px;
}

/* ── Cart form ── */
.cart { margin-top: 28px; }

.quantity-section {
  display: flex;
  align-items: center;
  gap: 20px;
  /* margin-bottom: 18px; */
}

/* WooCommerce quantity */
.quantity-input .quantity,
.quantity-input {
  display: flex;
  align-items: center;
}
.quantity-input input[type="number"],
.quantity-input .qty {
  width: 82px;
  height: 52px;
  border: 1px solid #000;
  border-radius: 0;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-dark);
  background: var(--clr-white);
  outline: none;
  transition: border-color var(--transition);
  -moz-appearance: textfield;
}
.quantity-input input[type="number"]::-webkit-inner-spin-button,
.quantity-input input[type="number"]::-webkit-outer-spin-button { opacity: 1; }
.quantity-input input[type="number"]:focus,
.quantity-input .qty:focus { border-color: var(--clr-accent); }

/* Add to Cart button */
.add-to-cart-btn {
      min-width: 196px;
    text-align: center;
    text-transform: uppercase;
    padding: 0 26px;
    font-size: 16px;
    border-radius: 0;
    display: block;
    line-height: 50px;
    height: 52px;
    font-weight: 600;
    border-width: 2px;
    background: var(--secondary-color3);
    color: var(--bs-white);
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
    cursor: pointer;
}
.add-to-cart-btn:hover {
          background: var(--bs-white);
        border-color: var(--bs-white);
        color: var(--secondary-color3) !important;
}
.add-to-cart-btn:active { transform: translateY(0); }

/* Notices */
.woocommerce-notices-wrapper { margin-bottom: 12px; }

/* ============================================================
   RESPONSIVE — Tablet (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
  .product-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .product-image { position: static; }
  .product-details h1 { font-size: 1.65rem; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .product-section .container { padding: 0 16px; }

  /* Stack gallery above details */
  .product-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* On mobile: collapse to single column,
     thumbs become a horizontal row BELOW the main image */
  .product-image {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    position: static;
  }

  .product-image > img:first-of-type {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4 / 3;
  }

  .product-image .thumbs {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .product-image .thumbs img {
    width: 64px;
    height: 64px;
  }

  .product-details h1 { font-size: 1.5rem; }
  .new-price          { font-size: 1.55rem; }

  .add-to-cart-btn {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }
  .quantity-section { flex-wrap: wrap; }
}

/* ============================================================
   RESPONSIVE — Large (≥ 1400px)
   ============================================================ */
@media (min-width: 1400px) {
  .product-section .container  { max-width: 1360px; }
  .product-wrapper             { gap: 64px; }
  .product-image               { grid-template-columns: 92px 1fr; }
  .product-image .thumbs img   { width: 84px; height: 84px; }
  .product-details h1          { font-size: 2.8rem; }
}
form.cart.variations_form{
      display: flex;
    justify-content: space-between;
    align-items: end;
}

.variation-row{
  display: flex;
    flex-direction: column;
    label{
          font-size: 14px;
          margin-bottom: 10px;
    }
   #color {
    height: 52px;
    font-size: 14px;
    padding: 12px;
    background-position: right 7px center;
    background-size: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-left: 10px;
    padding-right: 35px;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='10' viewBox='0 0 20 20' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
}
}