.product-detail-layout {
    display: flex;
    width: 100%;
    gap: 20px;
    padding: 20px;
    margin: 10px 0;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
    border-radius: 6px;
}

.product-image-column {
    display: flex;
    flex: 1;
    width: 40%;
}

.product-main-image {
    display: flex;
    width: 80%;
    align-items: center;
    justify-content: center;
}

.product-image-column .product-main-image img {
    max-width: 100%;
    width: 100%;
    height: 70vh;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.1s ease-out;
}

/* Professional Zoom System */
.zoom-container {
    position: relative;
    overflow: visible;
    cursor: zoom-in;
    border-radius: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-lens {
    position: absolute;
    width: 300px;
    height:300px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background-color: #fff;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 0 25px rgba(0,0,0,0.4), inset 0 0 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

.zoom-container:hover .zoom-lens {
    opacity: 1;
    visibility: visible;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .zoom-container {
        height: 50vh;
        cursor: pointer;
    }
    
    .zoom-container .zoom-lens {
        display: none !important;
    }
    
    .product-image-column .product-main-image img {
        height: 50vh;
    }
}

/* Professional Slider Wrapper */
.thumbnails-slider-wrapper {
    position: relative;
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.thumbnails-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
}

.thumbnails-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Navigation Buttons Styles */
.thumb-nav-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.15); */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--zh-green-dark);
}

.thumb-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.thumb-nav-btn.disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.thumb-nav-btn.prev i {
    transform: rotate(180deg); /* Rotate down arrow to up */
}

.thumb-nav-btn i {
    margin: 0 !important;
}

.gallery-thumbnail {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

@keyframes pop {
  0%   { transform: scale(0.5); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1);   }
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-thumbnail.active {
    border-color: var(--zh-green-dark);
    box-shadow: var(--zh-box-shadow);
    transform: scale(1.05);
}

.product-info-column {
    /* flex: 1; */
    width: 60%;
}

.content-nam-stats {
    width: 80%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
}

.product-info-column .product-category span,
.product-info-column .product-brand span {
    display: inline-block;
    width: 100px;
}

.product-tags-section h3,
.content-nam-stats h3 {
    font-size: var(--zh-font-size-xxxl);
      margin-bottom: 10px;
    }

.product-info-column .content-nam-stats h1 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-info-column .product-brand a {
    width: 35%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.product-info-column .product-brand span {
    white-space: nowrap;
}

.product-info-column .product-brand a,
.product-info-column .product-category a {
    color: var(--primary-color);
    text-decoration: none;
}

#productBrandLogo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-inline-end: 8px;
    display: inline-block;
    border-radius: 4px;
    border: 1px solid rgb(238, 238, 238);
    box-shadow: 0px 0px 2px 1px var(--primary-color);
}

.product-info-column .size-options label,
.product-info-column .quantity-selector label {
    font-weight: bold;
    margin-inline-end: 10px;
}

.product-info-column .size-options select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 110px;
    margin-bottom: 15px;
}

.product-info-column .product-price-dynamic {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--zh-red) !important;
    margin: 15px 0;
}



.product-info-column .quantity-selector {
    display: flex;
}

.bundle-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    #stockStatus {
    color: green;
    margin-top: 10px;
}

.product-detail-layout .mini-cart-actions {
    display: flex;
    justify-content: center;
    flex-direction: inherit;
}

.product-info-column .product-description {
    margin: 20px 0;
    line-height: 1.7;
    font-weight: 600;
    opacity: 0.7;
}

    /* تنسيق قسم المكونات*/
    .product-tags-section {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid #eee;
    }

    .tags-container {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tag {
      display: inline-block;
      padding: 4px 12px;
      background-color: #f0f0f0;
      color: #666;
      border-radius: 15px;
      font-size: 0.9em;
      text-decoration: none;
      transition: all 0.2s ease;
    }

    .tag:hover {
      background-color: #e0e0e0;
      color: #333;
      text-decoration: none;
    }

    .no-tags {
      color: #999;
      font-style: italic;
    }

    #featured-products-section {
      margin-top: 50px;
      padding-top: 30px;
      border-top: 1px solid #eee;
      text-align: center;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
    }

    #featured-products-section .section-title {
      font-size: 1.8em;
      margin-bottom: 25px;
      text-align: center;
    }

    #featured-products-section .product-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      justify-content: center;
      max-width: 1000px;
      margin: 0 auto;
    }

@media (max-width: 768px) {
.product-detail-layout {
    padding: 7px;
    margin: 0;
    flex-direction: column;
    align-items: baseline;
}

.product-image-column {
    width: 100%;
    display: flex;
    flex-direction: column-reverse; 
    height: auto;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.thumbnails-slider-wrapper {
    width: 100%;
    flex-direction: row;
}

.thumbnails-container {
    width: calc(100% - 80px); /* Space for arrows */
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    justify-content: flex-start;
    padding: 10px 5px;
}

.thumb-nav-btn {
    width: 30px;
    height: 30px;
}

.thumb-nav-btn.prev i {
    transform: rotate(90deg); /* Left */
}

.thumb-nav-btn.next i {
    transform: rotate(-90deg); /* Right */
}

.gallery-thumbnail {
    flex: 0 0 75px;
    height: 75px;
}

.product-image-column .product-main-image img {
    box-shadow: none;
    height: 35vh;
}

.product-info-column {
    width: 100%;
}

.content-nam-stats {
    width: 100%;
    display: flex;
    align-items: center;
}

.product-info-column .product-description {
    margin: 10px 0;
}

.product-tags-section {
    margin-top: 0;
    padding-top: 0;
}

.product-tags-section h3, .content-nam-stats h3 {
    margin-bottom: 5px;
}

.tags-container {
    gap: 4px;
}

.reviews-section {
    margin: 10px 0!important;
    padding: 10px !important;
}

.product-info-column .content-nam-stats h1 {
    width: 100%;
    font-size: 1.6em;
    margin-bottom: 0px;
    text-align: center !important;
}

.product-stats {
    margin-bottom: .2rem;
}

html[dir="rtl"] .product-stats {
    direction: ltr;
}

html[dir="ltr"] .product-stats {
    direction: rtl;
}

.stats-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* html[dir="rtl"] .stats-summary {
    direction: ltr;
} */

.product-info-column .product-brand, .product-info-column .product-category {
    display: flex;
    margin-bottom: 7px;
    align-items: center;
}

.product-info-column .product-brand a {
    width: 65%;
}

.product-info-column .product-brand span {
    white-space: nowrap;
}

.product-info-column .product-price-dynamic {
    font-size: 1.6em;
    margin: 5px 0;
}

.product-info-column .quantity-selector {
    display: flex;
    flex-direction: row;
}

#stockStatus {
    margin-top: 2px;
    font-size: 12px;
}

.mini-cart-actions .wishlist-btn {
    width: min-content;
    position: relative !important;
    margin-top: 0 !important;
    margin-top: 10px !important;
}

.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    gap: 10px;
    margin-top: 2px;
}

}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.2);
}

.lightbox-content-wrapper {
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-modal.show .lightbox-image {
    transform: scale(1);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    .lightbox-image {
        width: 100%;
        height: auto;
    }
}
