body{
    overflow-x:hidden;
    width: 100%;
    max-width: 100%;
}

/* Product Detail Page & Gallery Styles */
.product-detail-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 3rem;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width:768px){
  .product-detail-wrapper{
    padding:1rem;
    width: 100%;
    box-sizing: border-box;
  }
}

@media(max-width:480px){
  .product-detail-wrapper{
    padding:0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: flex-start;
  margin-top: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width:768px){
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Left side gallery styling */
.product-gallery-container {
  display: flex;
  gap: 1.25rem;
  position: static;
  align-self: start;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

@media (max-width:768px){
  .product-gallery-container {
    position:static;
    flex-direction: column-reverse;
    width: 100%;
    box-sizing: border-box;
  }
}

.product-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
  flex-shrink: 0;
}

@media(max-width:768px){
  .product-gallery-thumbs {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    padding-right: 0;
    max-height: none;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }
}

.product-gallery-thumbs::-webkit-scrollbar {
  width: 4px;
}

@media(max-width:768px){
  .product-gallery-thumbs::-webkit-scrollbar {
    height: 4px;
  }
}

.product-gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
  background: #dcd8d0;
  border-radius: 4px;
}

.gallery-thumb-item {
  width: 78px;
  height: 78px;
  border-radius: 0;
  overflow:hidden;
  position:relative;
  flex-shrink:0;
}

@media(max-width:768px){
  .gallery-thumb-item {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
  }
}

@media(max-width:480px){
  .gallery-thumb-item {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }
}

.gallery-thumb-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.gallery-thumb-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(193,122,90,0.22);
}

.gallery-thumb-item img,
.gallery-thumb-item video{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.product-gallery-main {
  flex: 1;
  border-radius: 0;
  overflow: hidden;
  /* box-shadow: var(--shadow-soft); */
  height: auto;
  background: var(--pure-white);
  /* border: 1px solid #f0ede8; */
  aspect-ratio:1/1;
  min-height:300px;
  max-height:500px;
  width: 100%;
  /* box-sizing: border-box; */
  position: relative;
}

@media(max-width:768px){
  .product-gallery-main{
    height:auto;
    aspect-ratio:1/1;
    min-height:260px;
    width: 100%;
    /* box-sizing: border-box; */
  }
}

@media(max-width:480px){
  .product-gallery-main {
    height: 290px;
    width: 100%;
    /* box-sizing: border-box; */
  }
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--soft-gray, #f8f7f5);
  transition: opacity 0.25s ease;
}

/* Right side content info */
.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.product-info-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary);
}

.product-info-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width:768px){
  .product-info-title{
    font-size:1.5rem;
    line-height:1.3;
    width: 100%;
    box-sizing: border-box;
  }
}

@media(max-width:480px){
  .product-info-title{
    font-size:1.3rem;
    width: 100%;
    box-sizing: border-box;
  }
}

.product-info-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-top: -0.25rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.product-info-rating .stars {
  color: #FFB020;
}

.product-info-rating .reviews-count {
  color: #7E7970;
  font-size: 0.85rem;
}

.product-info-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  border-bottom: 1px solid #f0ede8;
  padding-bottom: 1.2rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width:480px){
  .product-info-price{
    font-size: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
  }
}

.product-info-desc {
  color: #5C5850;
  line-height: 1.7;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-info-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
  border-bottom: 1px solid #f0ede8;
  padding-bottom: 1.8rem;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width:768px){
  .product-info-actions {
    width: 100%;
    box-sizing: border-box;
  }

  .product-info-actions > div{
    flex-direction:column;
    align-items:stretch;
    width: 100%;
    box-sizing: border-box;
  }

  .btn-group{
    width:100% !important;
    min-width:unset !important;
  }

  .btn-group button{
    width:100%;
  }
}

.qty-control-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.qty-control-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-charcoal);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--soft-gray);
  border-radius: 0;
  width: fit-content;
  padding: 0.2rem;
  flex-shrink: 0;
}

.quantity-selector button {
  width: 28px;
  height: 28px;
  border: none;
  background: white;
  border-radius: 0;
  cursor: pointer;
  font-weight: bold;
  flex-shrink: 0;
}

.quantity-selector span {
  padding: 0 5px;
  font-weight: 600;
}

.product-detail-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width:480px){
  .product-detail-badges {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
}

.detail-badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #5C5850;
  font-weight: 600;
  flex-wrap: wrap;
}

.detail-badge-item i {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Related Products Section styling */
.related-products-section {
  margin-top: 5rem;
  border-top: 1px solid #f0ede8;
  padding-top: 4rem;
  width: 100%;
  box-sizing: border-box;
}

.related-products-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.related-products-subtitle {
  text-align: center;
  color: #7E7970;
  font-size: 1.05rem;
  margin-bottom: 3rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Related Products Grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

@media (max-width: 992px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
  }
}

@media(max-width:768px){
  .related-grid{
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    padding: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }

  .related-grid > *{
    width: 100%;
    box-sizing: border-box;
  }
}

@media(max-width:480px){
  .related-grid{
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100%;
    box-sizing: border-box;
  }
}

.price-desc-card{
  padding:1.25rem;
  background:#faf9f6;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width:600px){
  .product-meta-header{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    width: 100%;
    box-sizing: border-box;
  }
}

.product-breadcrumbs{
  overflow:hidden;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width:768px){
  .product-breadcrumbs{
    display:flex;
    align-items:center;
    gap:6px;
    overflow:hidden;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
  }

  .product-breadcrumbs span:last-child{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    display:inline-block;
  }
}

.product-info-title,
.product-info-title span{
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* --- PREMIUM VARIATION SELECTORS & INTERACTIVE REVIEW STYLES --- */

/* Swatches styling */
.swatch-btn:hover {
  border-color: var(--primary) !important;
  color: var(--dark-charcoal) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

.swatch-btn.active {
  border-color: var(--primary) !important;
  background-color: #fcf6f3 !important;
  color: var(--primary) !important;
  box-shadow: 0 0 0 1px var(--primary), 0 4px 12px rgba(193, 122, 90, 0.15);
}

/* Dropdown select custom styling */
.variation-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(193, 122, 90, 0.15);
}

/* Stock Badges */
.stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.stock-badge.in-stock {
  background-color: #e8f6ed;
  color: #1f8546;
  border: 1px solid #cceade;
}

.stock-badge.out-of-stock {
  background-color: #fae9e8;
  color: #c7362b;
  border: 1px solid #f6d1cf;
}

/* Table specs styling */
.specs-table {
  width: 100%;
  box-sizing: border-box;
  table-layout: fixed;
}

.specs-table tr {
  transition: background-color 0.2s ease;
}

.specs-table tr:hover {
  background-color: #faf9f6;
}

@media(max-width:600px){
  .specs-table {
    width: 100%;
    box-sizing: border-box;
  }

  .specs-table td{
    padding:0.6rem;
    font-size:14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Disabled Action Buttons */
.btn-primary:disabled,
.btn-outline:disabled {
  background-color: #eae6df !important;
  border-color: #eae6df !important;
  color: #8a857a !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Review layout tweaks */
.reviews-summary-block {
  box-shadow: 0 4px 15px rgba(193, 122, 90, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.review-item-card {
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width:600px){
  .review-item-card{
    flex-direction:column;
    gap:1rem;
    width: 100%;
    box-sizing: border-box;
  }
}

.review-item-card:hover {
  background-color: #faf9f6;
  border-radius: 12px;
  padding-left: 0.75rem;
  margin-left: -0.75rem;
  padding-right: 0.75rem;
  margin-right: -0.75rem;
}

/* Responsive adjustments for reviews */
@media (max-width: 600px) {
  .reviews-summary-block {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100%;
    box-sizing: border-box;
  }

  .summary-score-column {
    border-right: none !important;
    border-bottom: 1px solid #f0ede8;
    padding-right: 0 !important;
    padding-bottom: 1.5rem;
  }
}

/* --- PREMIUM GALLERY ARROW NAVIGATION & SWIPE EFFECT --- */

.gallery-nav-btn {
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.25s ease, transform 0.25s ease, color 0.25s ease, box-shadow 0.25s ease !important;
}

@media(max-width:900px){
  .gallery-nav-btn{
    opacity:0.75;
  }
}

@media(max-width:480px){
  .gallery-nav-btn{
    width:30px !important;
    height:30px !important;
    opacity:0.65;
  }

  .gallery-nav-btn i{
    font-size:12px;
  }
}

.product-gallery-main:hover .gallery-nav-btn {
  opacity: 1;
}

.gallery-nav-btn:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  transform: translateY(-50%) scale(1.08) !important;
  color: var(--primary) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 900px) {
  .gallery-nav-btn {
    opacity: 0.75;
    background: rgba(255, 255, 255, 0.6) !important;
  }
}

@media (max-width: 480px) {
  .gallery-nav-btn {
    width: 36px !important;
    height: 36px !important;
    left: 8px !important;
  }

  #galleryNextBtn {
    right: 8px !important;
  }
}

/* Product Details Sections */
.product-details-sections {
  margin-top: 3.5rem;
  border-top: 1px solid #f0ede8;
  padding-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  width: 100%;
  box-sizing: border-box;
}

.detail-section {
  width: 100%;
  box-sizing: border-box;
}

/* Variation wrapper */
.product-variations-wrapper {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border-top: 1px solid #f0ede8;
  border-bottom: 1px solid #f0ede8;
  padding: 1rem 0;
  width: 100%;
  box-sizing: border-box;
}

.variation-group {
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.swatches-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.swatch-btn {
  flex-shrink: 0;
}

@media(max-width:480px){
  .swatch-btn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
}

/* Review submission form */
.review-submission-form-wrapper {
  display: none;
  background: #fff;
  border: 1.5px solid #f2e1d9;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width:600px){
  .review-submission-form-wrapper {
    padding: 1.5rem;
    border-radius: 8px;
  }
}

.interactive-star-selector {
  display: flex;
  gap: 8px;
  font-size: 1.8rem;
  color: #dcd8d0;
  cursor: pointer;
  flex-wrap: wrap;
}

textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Reviews list block */
.reviews-list-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Shop product card in related products */
.shop-product-card {
  width: 100%;
  box-sizing: border-box;
}

.shop-card-img-wrap {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.shop-card-body {
  padding: 0.75rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width:600px){
  .shop-card-body {
    padding: 0.65rem 0.85rem 1rem;
  }
}

.shop-card-price-row {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.shop-card-name {
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  line-height: 1.35;
  margin: 0;
  flex-grow: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
}

@media(max-width:480px){
  .shop-card-name {
    font-size: 0.85rem;
  }
}

.hover-add-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  color: var(--dark-charcoal);
  border-radius: 0px;
  font-weight: 700;
  border: 1.5px solid #dcd8d0;
  margin: 12px;
  padding: 0.65rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  cursor: pointer;
  width: auto;
  box-sizing: border-box;
}

.shop-card-img-wrap:hover .hover-add-btn {
  transform: translateY(0);
  opacity: 1;
}
@media(max-width:768px){

.product-gallery-container{
    width:100%;
    min-width:0;
}

.product-gallery-main{
    width:100%;
    max-width:100%;
    min-width:0;

    flex:none;

    aspect-ratio:1/1;

    height:auto;
}

.product-gallery-thumbs{
  
    width:100%;
    max-width:100%;
    min-width:0;
}

}
.product-gallery-main{
    position:relative;
}

.gallery-nav-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:40px;
    height:40px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;
    background:rgba(255,255,255,.9);

    z-index:20;
}

#galleryPrevBtn{
    left:12px;
}

#galleryNextBtn{
    right:12px;
}