/* =============================================
   PRODUCT PAGE - MOBILE FIRST (Desktop second)
   (Keeps desktop look the same)
============================================= */

/* ============================
   Main container (MOBILE base)
============================ */
.product-page {
  width: 100%;
  max-width: 1000px;         /* safe cap (works for desktop too) */
  margin: 1.5rem auto;       /* MOBILE slightly tighter */
  padding: 0 1rem;
}

/* ============================
   Layout (MOBILE base = 1 column)
============================ */
.product-layout {
  display: grid;
  grid-template-columns: 1fr; /* ✅ mobile first: stack */
  gap: 1.75rem;
  align-items: start;
}

/* =============================================
   PRODUCT IMAGES - MOBILE FIRST
============================================= */
.product-images {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

/* Main image figure (mobile: fluid, capped) */
.product-image-figure.main-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;          /* keeps your intended size */
}

/* Secondary images container (mobile: fluid stack) */
.secondary-images-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

/* Individual secondary figure */
.product-image-figure.secondary-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  width: 100%;
}

/* Link wraps only the image */
.product-image-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

/* Images styling */
.product-images img {
  display: block;
  border-radius: 12px;
  border: 3px solid #CD7F32;
  background-color: #f8f6f2;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: url(../images/paw-cursor.png);
}

.product-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* Main product image */
.main-product-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #CD7F32;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Secondary images (mobile: fluid, capped) */
.secondary-product-image {
  width: 100%;
  max-width: 280px;          /* keeps your original intended width */
  height: auto;
  object-fit: contain;
}

/* Captions */
.product-image-caption {
  font-size: 0.85rem;
  color: #003366;
  font-style: italic;
  text-align: center;
  margin: 0 auto;
}

/* =============================================
   PRODUCT DETAILS (already basically mobile-first)
============================================= */
.product-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
  color: #003366;
  font-weight: 700;
  gap: 1rem;
}

.product-details {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 1rem;
  text-align: left;
}

.product-intro {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
  color: #003366;
  text-align: left;
  gap: 1rem;
}

.product-specs {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.product-specs li {
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
  color: #003366;
}

.product-specs strong { font-weight: 600; }

.product-variation {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #003366;
  background-color: #f8f6f2;
  padding: 1rem 1.2rem;
  border-left: 4px solid #CD7F32;
  border-radius: 8px;
  margin: 2rem 0;
}

/* =============================================
   PAYPAL FORM & BUTTONS (already mobile-first)
============================================= */
.paypal-form-wrapper {
  margin-top: 2rem;
  padding: 1.2rem;
  background-color: #f8f6f2;
  border-radius: 12px;
  overflow: visible;
}

.order-form-label {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
  font-weight: 600;
  color: #003366;
  font-size: 0.95rem;
}

.order-form-label select,
.order-form-label input[type="text"] {
  margin-top: 0.4rem;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  border: 2px solid #CD7F32;
  border-radius: 8px;
  background-color: #ffffff;
  color: #003366;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.order-form-label select {
  appearance: none;
  cursor: pointer;
 
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 2.8rem;
}

.order-form-label select:focus,
.order-form-label input[type="text"]:focus {
  outline: none;
  border-color: #990000;
  box-shadow: 0 0 0 4px rgba(153, 0, 0, 0.12);
}

/* Add to Cart button */
.order-add-to-cart {
  display: block;
  width: 100%;
  padding: 11px 18px;
  margin: 1.5rem 0 0.5rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  color: #f1aa62;
  text-shadow: -1px -1px 0 #330000, 1px -1px 0 #330000, -1px 1px 0 #330000, 1px 1px 0 #330000;
  background: linear-gradient(to bottom, #990000, #660000);
  border: 2px solid #330000;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.25);
  cursor: url(../images/paw-cursor.png);
  transition: all 0.3s ease;
}

.order-add-to-cart:hover {
  background: linear-gradient(to bottom, #cc6666, #990000);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

.order-add-to-cart:active { transform: translateY(0); }

.order-form .order-add-to-cart {
  margin-top: 2rem;
  font-size: 1rem;
  padding: 12px 16px;
}

/* =============================================
   PRODUCT LIGHTBOX MODAL (MOBILE FIRST)
============================================= */
.product-lightbox {
  border: none;
  border-radius: 0;           /* ✅ mobile full-screen */
  padding: 0;
  width: 100vw;               /* ✅ mobile full width */
  height: 100vh;              /* ✅ mobile full height */
  background: rgba(0,0,0,0.85);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  position: fixed;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  max-width: 100vw;
  max-height: 100vh;
}

.product-lightbox-content {
  background: rgba(0, 0, 0, 0.95);
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 16px 16px;         /* ✅ mobile smaller padding */
  align-items: center;
  max-height: 100vh;
  overflow: hidden;
  justify-content: center;
}

.product-lightbox::backdrop { background: rgba(0, 0, 0, 0.8); }

.product-lightbox-img {
  max-width: 92vw;            /* ✅ mobile-friendly */
  max-height: 72vh;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  border: 2px solid #CD7F32;
}

.product-lightbox-img.zoomed {
  cursor: zoom-out;
  transform: scale(1.5);
  transition: transform 0.3s ease;
}

/* Buttons */
.product-lightbox .lightbox-close,
.product-lightbox .lightbox-nav-prev,
.product-lightbox .lightbox-nav-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  cursor: url(../images/paw-cursor.png);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(4px);
}

.product-lightbox .lightbox-close:hover,
.product-lightbox .lightbox-nav-prev:hover,
.product-lightbox .lightbox-nav-next:hover {
  background: #6b3601;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Positioning (mobile: a little closer to edges) */
.lightbox-close {
  top: 12px;
  right: 12px;
  font-size: 2.8rem;
  line-height: 1;
}

.lightbox-nav-prev {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.lightbox-nav-next {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: relative;
  display: block;
  margin: 1rem auto;
  color: #333;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.lightbox-caption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: #CD7F32;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  max-width: 90%;
  text-align: center;
  font-style: italic;
  padding: 0;
  z-index: 10;
}

.product-lightbox[open] img { animation: zoomIn 0.4s ease; }

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* =============================================
   Product bottom page navigation bar
   (Already mobile-first)
============================================= */
.product-nav-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: .5rem;
  border-top: 1px solid #ddd;
  margin-top: 2rem;
  background-color: #fafafa;
  border-radius: 12px;
}

.product-nav-button {
  text-decoration: none;
  background-color: #f0f0f0;
  color: #333;
  padding: 0.3rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 500;
  transition: all 0.2s ease;
}

.product-nav-button:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.back-to-main { background-color: #dcdcdc; font-weight: 600; }
.back-to-main:hover { background-color: #cfcfcf; }

.product-nav-button.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

/* =========================================
   TOP PRODUCT TOP NAV STRIP (Already mobile-friendly)
========================================= */
.product-strip {
  display: flex;
  gap: 14px;
  padding: 14px;
  margin: 0.1rem auto 2rem;
  max-width: 100%;
  overflow-x: auto;

  background-image:url("../images/background-products.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border: 3px solid #CD7F32;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.product-strip::-webkit-scrollbar { height: 8px; }
.product-strip::-webkit-scrollbar-thumb {
  background: rgba(205, 127, 50, 0.6);
  border-radius: 4px;
}

.product-strip {
  scroll-behavior: smooth;
  scroll-padding-inline: 40vw; /* allows true centering */
}


/* =========================================
   PRODUCT THUMB CARDS
========================================= */
.product-thumb {
  flex: 0 0 100px;
  height: 225px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;

  background: transparent;
  border: 2px solid #001F4D;
  border-radius: 10px;

  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.product-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-bottom: 2px solid #001F4D;
  border-radius: 8px 8px 0 0;
}

.product-thumb span {
  margin-top: 8px;
  padding: 0 6px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: #003366;
}

.product-thumb.active {
  border-color: #CD7F32;
  box-shadow: 0 0 0 2px rgba(205,127,50,0.4);
}


/* =============================================
   DESKTOP-SECOND ENHANCEMENTS
   (Restores your original desktop look)
============================================= */
@media (min-width: 900px) {
  /* Restore two-column layout exactly */
  .product-page {
    margin: 2.5rem auto;
  }

  .product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  /* Restore your original fixed widths */
  .product-image-figure.main-figure {
    width: 400px;
    max-width: none;
  }

  .secondary-images-column {
    width: fit-content;
    max-width: none;
  }

  .product-image-figure.secondary-figure {
    width: fit-content;
  }

  .secondary-product-image {
    width: 280px;
    max-width: none;
  }

  /* Restore your original modal sizing */
  .product-lightbox {
    width: 60vw;
    height: 100%;
    border-radius: 16px;
  }

  .product-lightbox-content {
    padding: 30px 60px;
  }

  .product-lightbox-img {
    max-width: 80vw;
    max-height: 80vh;
  }

  .lightbox-nav-prev { left: 18px; }
  .lightbox-nav-next { right: 18px; }
  .lightbox-close { top: 18px; right: 18px; }
}
