/* =========================================
   SINGLE PRODUCT - "CLOUD CARD" DESIGN
   ========================================= */

/* 1. Global Page Background - Very Light Gray */
body.single-product {
  background-color: #f8f9fa;
}

/* 2. Remove default Astra spacing */
.single-product .site-content {
  padding-top: 100px !important;
  padding-bottom: 80px !important;
}
.single-product #primary {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 3. The "Cloud Card" Container */
.custom-single-product-wrap {
  background: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px; /* Soft large radius */
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.04); /* Floating effect */
  padding: 0; /* Interior padding handled by grid */
  overflow: visible; /* Allow images to pop if needed, though usually hidden */
}

/* 4. Two Column Layout inside Card */
.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50/50 Split */
  gap: 0; /* Gap handled by padding */
}

/* LEFT COLUMN: Media/Gallery */
.single-product-media {
  padding: 100px 60px 60px; /* Increased top padding */
  background: #ffffff; /* Or transparent if card is white */
  border-right: 1px solid #f0f0f0; /* Subtle divider */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align to top */
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
}

/* Main Image Stage - Ensures Image is Big and Centered */
.main-image-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px; /* Space between main image and thumbnails */
  min-height: 300px; /* Avoid collapse if image missing */
}
.main-image-stage img {
  max-width: 100%;
  /* Remove restrictive max-height or keep it generous */
  max-height: 500px;
  height: auto;
  object-fit: contain;
  /* Drop shadow for coin realism */
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}
.main-image-stage img:hover {
  transform: scale(1.05);
}

/* Thumbnails Row - Horizontal */
.thumbnails-row {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.thumb-item {
  width: 80px; /* Specific size for thumbnails */
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent; /* default border */
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.thumb-item:hover {
  border-color: #dbe4ea;
  transform: translateY(-2px);
}
.thumb-item.active {
  border-color: #0b132b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* or cover depending on preference */
  display: block;
}

/* RIGHT COLUMN: Product Details */
.single-product-details {
  padding: 100px 50px 60px; /* Increased top padding */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align to top */
}

/* ATTRIBUTES LIST - Label : Value format */
.product-attribute-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 15px;
}
.attr-list-item {
  display: table-row; /* Use table display for perfect alignment or just flex */
  display: flex;
  align-items: baseline;
  line-height: 1.5;
}
.attr-label {
  min-width: 100px; /* Optional: align values if desired */
  font-weight: 500;
  color: #6c757d; /* Gray for label */
  margin-right: 5px;
  text-transform: capitalize;
}
.attr-label::after {
  content: " :";
}
.attr-value {
  font-weight: 700;
  color: #0b132b; /* Dark for value */
}

/* Divider Line */
.product-divider {
  height: 1px;
  background-color: #e1e8ed;
  width: 100%;
  margin-bottom: 25px;
  margin-top: 10px;
}

/* Add to Cart - Neutral / Dark Blue */
button.single_add_to_cart_button,
.woocommerce button.button.single_add_to_cart_button {
  background-color: #0b132b !important; /* Deep Navy */
  color: #ffffff !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 0 30px !important;
  height: 48px !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  max-width: none !important;
  flex-grow: 1 !important; /* Stretch to fill */
}
button.single_add_to_cart_button:hover {
  background-color: #005b96 !important;
  transform: translateY(-2px);
}

/* Hide Short Description if it exists */
.woocommerce-product-details__short-description {
  display: none;
}

/* Hide Category Badge if it still appears from theme/woo hooks */
.single-product-category,
.product-attribute-list + .pill-tag,
.woocommerce-product-details__short-description + .pill-tag {
  display: none !important;
}

/* Remove Breadcrumbs that might still be lingering */
.woocommerce-breadcrumb {
  display: none !important;
}

/* Hero Section Removal (CSS Override) */
.product-hero {
  display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .single-product-layout {
    grid-template-columns: 1fr;
  }
  .single-product-media {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 40px;
  }
  .single-product-details {
    padding: 40px;
  }
  /* List handles itself naturally, no grid columns needed */
}
