/* ========================================
   Product Details Page
   ======================================== */

.product-details-page {
    padding: 40px 0;
    background: #ffffff;
}

/* Prevent image download/right-click */
.product-details-page img,
.related-products-section img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.product-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* ========================================
   Product Gallery
   ======================================== */

.product-gallery {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}

.main-image-wrapper {
    position: relative;
    flex: 1;
    height: 650px;
    max-height: 650px;
    background: #f5f5f5;

    overflow: hidden;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.wishlist-btn-large {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.wishlist-btn-large:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.wishlist-btn-large.active svg {
    fill: #e53935;
    stroke: #e53935;
}

.wishlist-btn-large svg {
    width: 22px;
    height: 22px;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.image-nav:hover {
    background: #ffffff;
}

.image-nav.prev-image {
    left: 20px;
}

.image-nav.next-image {
    right: 20px;
}

.image-nav svg {
    width: 20px;
    height: 20px;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100px;
    flex-shrink: 0;
}

.thumbnail-nav {
    width: 35px;
    height: 35px;
    background: #ffffff;
    border: 1px solid #ddd;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.thumbnail-nav:hover {
    background: #f5f5f5;
}

.thumbnail-nav svg {
    width: 18px;
    height: 18px;
}

.thumbnails-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    scroll-behavior: smooth;
    scrollbar-width: none;
    max-height: 650px;
}

.thumbnails-wrapper::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    position: relative;
}

.thumbnail:hover {
    border-color: #ddd;
}

.thumbnail.active {
    border-color: #1a1a1a;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-overlay:hover {
    background: rgba(26, 26, 26, 0.95);
    border-color: #1a1a1a;
}

.thumbnail-overlay-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.thumbnails-extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

/* ========================================
   Product Info Section
   ======================================== */

.product-info-section {
    display: flex;
    flex-direction: column;
}

.product-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.season-badge {
    background: #1a1a1a;
    color: #ffffff;
    padding: 6px 12px;

    font-size: 12px;
    font-weight: 600;
}

.product-header h1.product-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.product-header h2.product-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    color: #666;
}

.product-price-section {
    margin: 10px 0;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Payment Options */
.payment-options {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.payment-option {
    display: flex;
    align-items: center;
}

.payment-icon {
    height: 20px;
    width: auto;
}

.payment-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Delivery & Price Match Info */
.delivery-info,
.price-match-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
    color: #333;
}

.delivery-info svg,
.price-match-info svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.info-link {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 500;
}

/* Product Options */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.selected-option {
    font-weight: 400;
    color: #666;
}

/* Color Images Selection (New Style - Thumbnail Images) */
.color-images-selection {
    margin-bottom: 20px;
}

.color-images-selection .option-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.selected-color-name {
    font-weight: 600;
    color: #000;
}

.color-images-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-image-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.color-image-thumb:hover {
    border-color: #9ca3af;
}

.color-image-thumb.active {
    border-color: #000;
    border-width: 2px;
}

.color-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;

    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    padding: 0;
}

.color-option:hover {
    border-color: #ddd;
}

.color-option.active {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 1px #1a1a1a;
}

.color-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Size Selection */
.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-guide-link {
    font-size: 13px;
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 500;
}

.size-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;

    font-size: 15px;
    font-weight: 500;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-select:hover {
    border-color: #1a1a1a;
}

.size-select:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* Stock Notice */
.stock-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f5f5f5;

    font-size: 13px;
    line-height: 1.6;
}

.stock-notice svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.shipping-link {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 600;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-add-to-bag {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 55px;
    padding: 0 24px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;

    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-bag:hover {
    background: #000000;
}

.btn-add-to-bag svg {
    width: 20px;
    height: 20px;
}

.btn-add-to-wishlist {
    width: 55px;
    height: 55px;
    background: #ffffff;
    border: 2px solid #ddd;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-add-to-wishlist:hover {
    border-color: #1a1a1a;
}

.btn-add-to-wishlist.active {
    background: #ffe5e5;
    border-color: #e53935;
}

.btn-add-to-wishlist.active svg {
    fill: #e53935;
    stroke: #e53935;
}

.btn-add-to-wishlist svg {
    width: 22px;
    height: 22px;
}



/* Product Tabs */
.product-tabs {
    margin-top: 20px;
}

/* RTL mode - text aligned to right */
[dir="rtl"] .product-tabs {
    text-align: right;
}

/* LTR mode - text aligned to left */
[dir="ltr"] .product-tabs {
    text-align: left !important;
}

[dir="ltr"] .product-tabs .tabs-content {
    text-align: left !important;
}

[dir="ltr"] .product-tabs .tab-panel {
    text-align: left !important;
}

[dir="ltr"] .product-tabs .tab-panel p,
[dir="ltr"] .product-tabs .tab-panel div,
[dir="ltr"] .product-tabs .tab-panel ul,
[dir="ltr"] .product-tabs .tab-panel li {
    text-align: left !important;
}

.tabs-header {
    display: flex;
    gap: 0;
    background: #f5f5f5;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tab-btn:hover {
    color: #1a1a1a;
}

.tab-btn.active {
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 600;
}

.tabs-content {
    padding: 20px;
    background: #ffffff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel p {
    margin: 0 0 15px 0;
    line-height: 1.8;
    color: #333;
}

.tab-panel ul {
    margin: 0;
}

[dir="rtl"] .tab-panel ul {
    padding-right: 40px;
    padding-left: 20px;
}

[dir="ltr"] .tab-panel ul {
    padding-left: 40px;
    padding-right: 20px;
}

.tab-panel ul li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #333;
}

/* Quill Editor Content Styling */
.tab-panel h1,
.tab-panel h2,
.tab-panel h3,
.tab-panel h4,
.tab-panel h5,
.tab-panel h6 {
    margin: 20px 0 15px 0;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.tab-panel h1 {
    font-size: 2em;
}

.tab-panel h2 {
    font-size: 1.5em;
}

.tab-panel h3 {
    font-size: 1.17em;
}

.tab-panel .ql-align-right {
    text-align: right !important;
}

.tab-panel .ql-align-center {
    text-align: center !important;
}

.tab-panel .ql-align-left {
    text-align: left !important;
}

.tab-panel .ql-align-justify {
    text-align: justify !important;
}

.tab-panel strong,
.tab-panel b {
    font-weight: 600;
}

.tab-panel em,
.tab-panel i {
    font-style: italic;
}

.tab-panel u {
    text-decoration: underline;
}

.tab-panel s {
    text-decoration: line-through;
}

.tab-panel ol {
    padding-right: 2em;
    padding-left: 2em;
    margin: 15px 0;
    list-style-type: decimal;
}

.tab-panel ol li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.tab-panel ul li::marker {
    color: #333;
}

.tab-panel ol li::marker {
    color: #333;
    font-weight: 600;
}

.tab-panel a {
    color: #0066cc;
    text-decoration: none;
}

.tab-panel a:hover {
    text-decoration: underline;
}

/* ========================================
   Related Products Section
   ======================================== */

/* Related Products Section - Using Must-Have Section Design */
.related-products-section {
    padding: 80px -11px;
    max-width: 1393px;
    margin: 27px auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.related-products-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.related-products-section .section-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.shop-all {
    color: #2d1300;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #2d1300;
    padding-bottom: 2px;
}

/* Products Slider */
.related-products-section .products-slider {
    position: relative;
    padding: 0 0px;
    overflow: visible;
    z-index: 1;
}

.related-products-section .products-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
}

.related-products-section .products-container::-webkit-scrollbar {
    display: none;
}

.related-products-section .product-card {
    min-width: 311px;
    max-width: 311px;
    width: 350px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.related-products-section .product-card * {
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
}

.related-products-section .product-image-wrapper {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    margin-bottom: 15px;
    overflow: hidden;
    text-decoration: none;
}

.related-products-section .product-image-wrapper * {
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
}

.related-products-section .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.related-products-section .product-image-wrapper img.product-image-primary {
    opacity: 1;
    z-index: 2;
}

.related-products-section .product-image-wrapper img.product-image-secondary {
    opacity: 0;
    z-index: 1;
}

/* Image swap on hover - using product-card to avoid overlay interference */
.related-products-section .product-card:hover .product-image-primary {
    opacity: 0 !important;
}

.related-products-section .product-card:hover .product-image-secondary {
    opacity: 1 !important;
}

/* Hide secondary image on mobile */
@media (max-width: 768px) {
    .related-products-section .product-image-wrapper img.product-image-secondary {
        display: none !important;
    }

    .related-products-section .product-card:hover .product-image-primary {
        opacity: 1 !important;
    }
}

.related-products-section .wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    will-change: auto;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.related-products-section .wishlist-btn svg {
    width: 18px;
    height: 18px;
}

.related-products-section .wishlist-btn:hover,
.related-products-section .wishlist-btn:active {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-products-section .badge.new-season {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #ffffff;
    color: #1a1a1a;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-products-section .product-info {
    text-align: center;
}

.related-products-section .product-info * {
    transition: none !important;
    transform: none !important;
}

.related-products-section .product-brand {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.related-products-section .product-name {
    font-size: 14px;
    margin-bottom: 8px;
    color: #666;
}

.related-products-section .product-price {
    font-size: 14px;
    font-weight: 600;
    color: #2d1300;
}

.related-products-section .sale-price {
    color: #2d1300;
    margin-right: 8px;
}

.related-products-section .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

/* Featured Section Styles for Related Products */
.related-products-section .featured-colors-wrapper {
    display: block;
    margin-top: 8px;
}

.related-products-section .featured-color-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.related-products-section .featured-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Featured Product Overlay for Related Products */
.related-products-section .featured-product-overlay {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    top: 0;
    left: 0;
}

.related-products-section .product-card:hover .featured-product-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.related-products-section .overlay-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-products-section .overlay-image-section {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    overflow: hidden;
}

.related-products-section .overlay-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.related-products-section .overlay-main-image.overlay-image-primary {
    opacity: 1;
    z-index: 2;
}

.related-products-section .overlay-main-image.overlay-image-secondary {
    opacity: 0;
    z-index: 1;
}

/* Change overlay images on hover */
.related-products-section .product-card:hover .overlay-image-primary {
    opacity: 0 !important;
}

.related-products-section .product-card:hover .overlay-image-secondary {
    opacity: 1 !important;
}

.related-products-section .overlay-wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer !important;
    pointer-events: all !important;
    z-index: 100 !important;
}

.related-products-section .overlay-wishlist-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none !important;
}

.related-products-section .overlay-wishlist-btn svg * {
    pointer-events: none !important;
}

.related-products-section .overlay-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #ffffff;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-products-section .overlay-info-section {
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-20%);
    z-index: 10;
    pointer-events: all !important;
}

.related-products-section .overlay-product-brand {
    font-size: 11px;
    color: #000000;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 5px 0;
    text-align: center;
}

.related-products-section .overlay-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    text-align: center;
    line-height: 1.3;
}

.related-products-section .overlay-product-price {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    text-align: center;
}

.related-products-section .overlay-sale-price {
    color: #2d1300;
    margin-right: 8px;
}

.related-products-section .overlay-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

.related-products-section .overlay-gallery-section {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    position: relative;
    z-index: 100;
    pointer-events: all !important;
}

.related-products-section .overlay-gallery-images {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    max-width: calc(60px * 3 + 8px * 2);
    justify-content: flex-start;
    pointer-events: all !important;
}

.related-products-section .overlay-gallery-images::-webkit-scrollbar {
    display: none;
}

.related-products-section .overlay-gallery-link {
    display: block;
    flex-shrink: 0;
    text-decoration: none;
    position: relative;
    cursor: pointer !important;
    pointer-events: all !important;
    transition: opacity 0.2s ease;
}

.related-products-section .overlay-gallery-link.active {
    opacity: 1;
}

.related-products-section .overlay-gallery-link:not(.active) {
    opacity: 0.6;
}

.related-products-section .overlay-gallery-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: pointer !important;
}

.related-products-section .overlay-gallery-thumb {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: block;
    border: 2px solid transparent;
}

.related-products-section .overlay-gallery-link.active .overlay-gallery-thumb {
    border-color: #000;
    transform: scale(1.05);
}

.related-products-section .overlay-gallery-thumb:hover,
.related-products-section .overlay-gallery-link:hover .overlay-gallery-thumb {
    transform: scale(1.05);
}

.related-products-section .overlay-gallery-nav {
    width: 28px !important;
    height: 28px !important;
    background: #ffffff !important;
    border: 2px solid #1a1a1a !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    z-index: 99999 !important;
    pointer-events: all !important;
    position: relative !important;
}

.related-products-section .overlay-gallery-nav:hover {
    background: #1a1a1a !important;
    transform: scale(1.1) !important;
}

.related-products-section .overlay-gallery-nav:hover svg {
    stroke: #ffffff !important;
}

.related-products-section .overlay-gallery-nav svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #1a1a1a !important;
    fill: none !important;
    stroke-width: 2.5 !important;
    pointer-events: none !important;
}

.related-products-section .overlay-gallery-nav svg path,
.related-products-section .overlay-gallery-nav svg *,
.related-products-section .overlay-gallery-nav path {
    pointer-events: none !important;
}

/* Force gallery navigation buttons to be clickable */
.related-products-section .overlay-gallery-section {
    pointer-events: all !important;
}

.related-products-section .overlay-gallery-nav,
.related-products-section button.overlay-gallery-nav,
.related-products-section .overlay-gallery-nav.prev-gallery,
.related-products-section .overlay-gallery-nav.next-gallery {
    pointer-events: all !important;
    cursor: pointer !important;
}

.related-products-section .overlay-sizes-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    position: relative;
    z-index: 100;
    pointer-events: all !important;
}

.related-products-section .overlay-sizes-section {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    max-width: calc(28px * 3 + 8px * 2);
    justify-content: flex-start;
}

.related-products-section .overlay-sizes-section::-webkit-scrollbar {
    display: none;
}

.related-products-section .overlay-size-item {
    font-size: 12px;
    padding: 2px 0;
    color: #1a1a1a;
    font-weight: 400;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.related-products-section .overlay-sizes-nav {
    width: 28px !important;
    height: 28px !important;
    background: #ffffff !important;
    border: 2px solid #1a1a1a !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    z-index: 99999 !important;
    pointer-events: all !important;
    position: relative !important;
}

.related-products-section .overlay-sizes-nav:hover {
    background: #1a1a1a !important;
    transform: scale(1.1) !important;
}

.related-products-section .overlay-sizes-nav:hover svg {
    stroke: #ffffff !important;
}

.related-products-section .overlay-sizes-nav svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #1a1a1a !important;
    fill: none !important;
    stroke-width: 2.5 !important;
    pointer-events: none !important;
}

.related-products-section .overlay-sizes-nav svg path,
.related-products-section .overlay-sizes-nav svg *,
.related-products-section .overlay-sizes-nav path {
    pointer-events: none !important;
}

/* Force sizes navigation buttons to be clickable */
.related-products-section .overlay-sizes-wrapper {
    pointer-events: all !important;
}

.related-products-section .overlay-sizes-nav,
.related-products-section button.overlay-sizes-nav,
.related-products-section .overlay-sizes-nav.prev-sizes,
.related-products-section .overlay-sizes-nav.next-sizes {
    pointer-events: all !important;
    cursor: pointer !important;
}

/* Slider Buttons */
.related-products-section .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    z-index: 1000;
    box-shadow: none;
    transition: all 0.3s ease;
    opacity: 0.7;
    pointer-events: all !important;
}

.related-products-section .slider-btn:hover {
    opacity: 1;
    box-shadow: none;
    transform: translateY(-50%) scale(1.1);
}

.related-products-section .slider-btn.prev {
    right: -39px;
}

.related-products-section .slider-btn.next {
    left: -38px;
}

.related-products-section .slider-btn svg {
    width: 32px;
    height: 32px;
    stroke: #333;
    stroke-width: 2;
    transform: rotate(180deg);
    pointer-events: none !important;
}

.related-products-section .slider-btn svg *,
.related-products-section .slider-btn svg path,
.related-products-section .slider-btn svg polyline {
    pointer-events: none !important;
}

/* Product Card Small - Legacy Support (will be removed) */
.product-card-small {
    background: #ffffff;

    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card-small:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper-small {
    position: relative;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.product-card-small:hover .product-image-small {
    transform: scale(1.05);
}

.wishlist-btn-small {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.95);
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.wishlist-btn-small:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.wishlist-btn-small svg {
    width: 18px;
    height: 18px;
}

.product-badges {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-new,
.badge-discount {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
}

.badge-new {
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 4px;
}

.badge-discount {
    background: #e53935;
    color: #ffffff;
    border-radius: 4px;
}

/* Discount Badge with Image for Small Cards */
.product-image-wrapper-small .discount-badge-wrapper {
    position: absolute;
    top: 8px;
    z-index: 3;
    width: 35px;
    height: 55px;
}

[dir="rtl"] .product-image-wrapper-small .discount-badge-wrapper {
    left: 8px;
    right: auto;
}

[dir="ltr"] .product-image-wrapper-small .discount-badge-wrapper {
    right: 8px;
    left: auto;
}

.product-image-wrapper-small .discount-badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-image-wrapper-small .discount-badge-text {
    position: absolute;
    top: 55%;
    left: 52%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    pointer-events: none;
}

.product-image-wrapper-small .discount-text-ar {
    font-size: 6px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.product-image-wrapper-small .discount-text-en {
    font-size: 5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.product-image-wrapper-small .discount-percent {
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.product-info-small {
    padding: 15px;
}

.product-brand-small {
    font-size: 12px;
    color: #666;
    margin: 0 0 6px 0;
}

.product-name-small {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 40px;
}

.product-price-small {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.price-group-small {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.price-sale {
    font-size: 16px;
    font-weight: 700;
    color: #e53935;
}

.discount-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #ffe5e5;
    color: #e53935;

    font-size: 11px;
    font-weight: 600;
}

/* Color Dots */
.color-dots {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.color-dot {
    width: 18px;
    height: 18px;

    border: 1px solid #ddd;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Smaller Desktop Screens (1025px - 1499px) */
@media (max-width: 1499px) and (min-width: 1025px) {
    .product-details-container {
        max-width: 1200px;
        gap: 45px;
        padding: 0 30px;
    }

    .main-image-wrapper {
        height: 580px;
        max-height: 580px;
    }

    .thumbnail-gallery {
        width: 90px;
    }

    .thumbnail {
        height: 110px;
    }

    .thumbnails-wrapper {
        max-height: 580px;
    }

    .product-header h1.product-title {
        font-size: 28px;
    }

    .product-header h2.product-subtitle {
        font-size: 22px;
    }

    .current-price {
        font-size: 26px;
    }

    .product-options {
        gap: 22px;
        padding: 18px 0;
    }

    .color-option {
        width: 55px;
        height: 55px;
    }

    .size-select {
        padding: 13px 15px;
        font-size: 14px;
    }

    .btn-add-to-bag {
        height: 52px;
        font-size: 15px;
    }

    .btn-add-to-wishlist {
        width: 52px;
        height: 52px;
    }

    .product-tabs {
        margin-top: 18px;
    }

    .tabs-content {
        padding: 18px;
    }

    .related-products-section {
        padding: 60px 40px;
        max-width: 1200px;
    }

    .related-products-section .product-card {
        min-width: 320px;
        max-width: 320px;
        width: 320px;
    }

    .related-products-section .slider-btn.prev {
        right: -60px;
    }

    .related-products-section .slider-btn.next {
        left: -60px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .product-details-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .product-gallery {
        flex-direction: column;
    }

    .thumbnail-gallery {
        flex-direction: row;
        width: 100%;
    }

    .thumbnails-wrapper {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
    }

    .thumbnail {
        width: 80px;
        height: 100px;
        flex-shrink: 0;
    }

    .products-slider {
        gap: 15px;
    }

    .related-products-section {
        padding: 50px 30px;
    }

    .related-products-section .product-card {
        min-width: 280px;
        max-width: 280px;
        width: 280px;
    }

    .related-products-section .slider-btn {
        width: 40px;
        height: 40px;
    }

    .related-products-section .slider-btn svg {
        width: 24px;
        height: 24px;
    }

    .related-products-section .slider-btn.prev {
        right: -50px;
    }

    .related-products-section .slider-btn.next {
        left: -50px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .product-details-page {
        padding: 20px 0;
    }

    .product-details-container {
        padding: 0 15px;
        gap: 30px;
    }

    .product-gallery {
        flex-direction: column;
    }

    .thumbnail-gallery {
        flex-direction: row;
        width: 100%;
    }

    .thumbnails-wrapper {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
    }

    .thumbnail {
        width: 60px;
        height: 75px;
        flex-shrink: 0;
    }

    .product-header h1.product-title {
        font-size: 24px;
    }

    .product-header h2.product-subtitle {
        font-size: 18px;
    }

    .current-price {
        font-size: 22px;
    }

    .product-actions {
        flex-direction: row;
        gap: 10px;
    }

    .btn-add-to-bag {
        flex: 1;
        height: 50px;
        padding: 0 16px;
        font-size: 14px;
        gap: 8px;
    }

    .btn-add-to-bag svg {
        width: 18px;
        height: 18px;
    }

    .btn-add-to-wishlist {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .btn-add-to-wishlist svg {
        width: 20px;
        height: 20px;
    }

    .tabs-header {
        flex-direction: column;
        gap: 0;
    }

    .tab-btn {
        text-align: right;
        border-bottom: 1px solid #e0e0e0;
        border-left: 2px solid transparent;
        padding: 12px 15px;
    }

    .tab-btn.active {
        border-bottom-color: #e0e0e0;
        border-left-color: #1a1a1a;
    }

    /* LTR mode for tabs in mobile - force left alignment */
    [dir="ltr"] .tabs-header {
        flex-direction: column;
        gap: 0;
    }

    [dir="ltr"] .tab-btn {
        text-align: left !important;
        border-left: none !important;
        border-right: 2px solid transparent !important;
    }

    [dir="ltr"] .tab-btn.active {
        border-right-color: #1a1a1a !important;
        border-left-color: transparent !important;
    }

    .products-slider {
        gap: 10px;
    }

    .related-products-section {
        padding: 40px 20px;
    }

    .related-products-section .section-title {
        font-size: 22px;
    }

    .related-products-section .product-card {
        min-width: 250px;
        max-width: 250px;
        width: 250px;
    }

    .related-products-section .slider-btn {
        display: none;
    }

    .related-products-section .featured-product-overlay {
        display: none !important;
    }

    .color-option {
        width: 50px;
        height: 50px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .payment-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .image-nav {
        width: 35px;
        height: 35px;
    }

    .image-nav svg {
        width: 16px;
        height: 16px;
    }

    .product-actions {
        flex-direction: row;
        gap: 8px;
    }

    .btn-add-to-bag {
        flex: 1;
        height: 48px;
        padding: 0 12px;
        font-size: 13px;
        gap: 6px;
    }

    .btn-add-to-bag svg {
        width: 16px;
        height: 16px;
    }

    .btn-add-to-wishlist {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .btn-add-to-wishlist svg {
        width: 18px;
        height: 18px;
    }

    .related-products-section {
        padding: 30px 0px;
    }

    .related-products-section .section-title {
        font-size: 20px;
    }

    .related-products-section .product-card {
        min-width: 200px;
        max-width: 200px;
        width: 200px;
    }
}

/* ========================================
   Skeleton Loader
   ======================================== */

.skeleton-loader {
    width: 100%;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-title {
    margin-bottom: 20px;
}

.skeleton-image {
    border-radius: 0;
}

.skeleton-text {
    border-radius: 4px;
}

/* ========================================
   Discount Badge for Related Products
   ======================================== */

.related-products-section .discount-badge-wrapper {
    position: absolute;
    top: 10px;
    z-index: 3;
    width: 45px;
    height: 70px;
}

[dir="rtl"] .related-products-section .discount-badge-wrapper {
    left: 10px;
    right: auto;
}

[dir="ltr"] .related-products-section .discount-badge-wrapper {
    right: 10px;
    left: auto;
}

.related-products-section .discount-badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.related-products-section .discount-badge-text {
    position: absolute;
    top: 35%;
    left: 1%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    pointer-events: none;
}

.related-products-section .discount-text-ar,
.related-products-section .discount-text-en {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.1;
    display: block;
}

/* Unified discount text class */
.related-products-section .discount-text {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.1;
    display: block;
}

.related-products-section .discount-text-ar {
    display: none;
}

[dir="rtl"] .related-products-section .discount-text-ar {
    display: block;
}

[dir="rtl"] .related-products-section .discount-text-en {
    display: none;
}

.related-products-section .discount-percent {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-top: 1px;
}

/* Badge Discount Style */
.related-products-section .badge.discount {
    position: absolute;
    top: 10px;
    background: #e53935;
    color: #fff;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
}

[dir="rtl"] .related-products-section .badge.discount {
    left: 10px;
    right: auto;
}

[dir="ltr"] .related-products-section .badge.discount {
    right: 10px;
    left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .related-products-section .discount-badge-wrapper {
        width: 38px;
        height: 60px;
    }

    .related-products-section .discount-text-ar,
    .related-products-section .discount-text-en,
    .related-products-section .discount-text {
        font-size: 5px;
    }

    .related-products-section .discount-percent {
        font-size: 9px;
    }
}
