/**
 * Modern Product Styles - Inspired by Top E-commerce Stores
 * Clean, Minimal, Professional Design
 */

/* ============================================
   MAIN WRAPPER & CONTAINER
   ============================================ */

.main-con {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.site-main {
    background: #fff;
    padding: 0;
}

/* Breadcrumb - Modern Design */
/* استایل breadcrumb در فایل breadcrumb-redesign.css تعریف شده است */
/* این استایل‌ها فقط برای override در صورت نیاز */
.woocommerce-breadcrumb {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 16px 24px !important;
    margin: 10px 0 20px 0 !important;
    font-size: 14px !important;
    color: #17a2b8 !important;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(226, 232, 240, 0.5) !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.woocommerce-breadcrumb a {
    color: #17a2b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.woocommerce-breadcrumb a:hover {
    color: #138496;
    text-decoration: underline;
}

.woocommerce-breadcrumb span:not(.delimiter) {
    color: #17a2b8;
}

.woocommerce-breadcrumb .delimiter,
.woocommerce-breadcrumb i {
    color: #17a2b8;
    margin: 0 8px;
    font-size: 12px;
    opacity: 0.7;
}

/* RTL Support */
html[dir="rtl"] .woocommerce-breadcrumb {
    text-align: right;
    direction: rtl;
}

html[dir="ltr"] .woocommerce-breadcrumb {
    text-align: left;
    direction: ltr;
}

/* ============================================
   MAIN CONTAINER & LAYOUT
   ============================================ */

/* Container constraint for single product page - matching archive pages */
body.single-product #primary,
body.single-product .site-main,
body.single-product .main-con,
body.single-product .content-area {
    max-width: 1620px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* بهبود layout برای دسکتاپ - 70% summary, 30% image */
@media (min-width: 768px) {
    .woocommerce div.product {
        grid-template-columns: 30fr 1fr !important;
        gap: 50px;
        max-width: 100%;
        padding: 10px 40px;
    }
    
    /* Image gallery on the right side */
    .woocommerce div.product .woocommerce-product-gallery {
        order: 2;
    }
    
    /* Summary on the left side */
    .woocommerce div.product .summary {
        order: 1;
    }
}

.product-con {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
}

.shadow-box {
    box-shadow: none;
}

/* ============================================
   PRODUCT GALLERY - MODERN STYLE
   ============================================ */

.woocommerce-product-gallery {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.woocommerce-product-gallery__wrapper {
    margin: 0;
    padding: 0;
}

.woocommerce-product-gallery__image {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #f8f9fa;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
    border-radius: 16px;
    display: block;
}

.woocommerce-product-gallery__image:hover img {
    transform: scale(1.05);
}

/* Gallery Thumbnails */
.flex-control-thumbs,
.flex-control-nav {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
}

.flex-control-thumbs::-webkit-scrollbar,
.flex-control-nav::-webkit-scrollbar {
    height: 4px;
}

.flex-control-thumbs::-webkit-scrollbar-track,
.flex-control-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.flex-control-thumbs::-webkit-scrollbar-thumb,
.flex-control-nav::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.flex-control-thumbs::-webkit-scrollbar-thumb:hover,
.flex-control-nav::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.flex-control-thumbs li,
.flex-control-nav li {
    flex: 0 0 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.flex-control-thumbs li::before,
.flex-control-nav li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.flex-control-thumbs li:hover::before,
.flex-control-nav li:hover::before {
    opacity: 1;
}

.flex-control-thumbs li:hover,
.flex-control-nav li:hover {
    border-color: #000;
}

.flex-control-thumbs li img,
.flex-control-nav li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    display: block;
}

.flex-control-thumbs li img.flex-active,
.flex-control-thumbs li.flex-active-slide,
.flex-control-nav li img.flex-active,
.flex-control-nav li.flex-active-slide {
    border-color: var(--primary-color, #000);
}

.flex-control-thumbs li.flex-active-slide img,
.flex-control-nav li.flex-active-slide img {
    border-color: var(--primary-color, #000);
}

/* ============================================
   PRODUCT OPTIONS ICONS - FLOATING
   ============================================ */

.prod-opts {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 100;
}

.prod-opts li {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prod-opts li:hover {
    background: #000;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.prod-opts li i {
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.prod-opts li:hover i {
    color: #fff;
}

/* Wishlist button active state */
.prod-opts li.wishlist-trigger.active {
    background: #ff4757;
}

.prod-opts li.wishlist-trigger.active i {
    color: #fff;
}

.prod-opts li.wishlist-trigger.active:hover {
    background: #ee5a6f;
}

/* ============================================
   PRODUCT INFO SECTION
   ============================================ */

.woocommerce div.product .summary {
    padding: 0;
}

/* Product Title */
h1.product_title,
.product_title.entry-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* Product Rating */
.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.star-rating {
    color: #ffa500;
}

.woocommerce-review-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.woocommerce-review-link:hover {
    color: #000;
}

/* ============================================
   PRICE SECTION - PREMIUM STYLE
   ============================================ */

.price-con {
    margin: 0 0 32px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

p.price {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1;
}

.price del {
    display: block;
    margin-bottom: 8px;
}

.price del .woocommerce-Price-amount {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.price ins {
    text-decoration: none;
    display: inline-block;
}

.price ins .woocommerce-Price-amount {
    font-size: 42px;
    color: #e74c3c;
    font-weight: 700;
}

/* Sale Badge */
.dina-woo-flash-con {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.onsale {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    letter-spacing: 0.5px;
}

/* ============================================
   PRODUCT META - CLEAN DESIGN
   ============================================ */

.product_meta {
    margin: 24px 0 32px 0;
    padding: 24px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product_meta > span {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.product_meta > span:last-child {
    margin-bottom: 0;
}

.product_meta a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.product_meta a:hover {
    color: #e74c3c;
}

.product_meta a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.product_meta a:hover::after {
    width: 100%;
}

/* ============================================
   PRODUCT FEATURES - ELEGANT LIST
   ============================================ */

.product-features {
    margin: 0 0 32px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.product-features h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.dina-features-ul,
.product-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dina-features-ul li,
.product-features ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.6;
}

.dina-features-ul li:last-child,
.product-features ul li:last-child {
    border-bottom: none;
}

.dina-features-ul li i {
    margin-left: 12px;
    color: #27ae60;
    font-size: 16px;
    margin-top: 3px;
}

.ftitle {
    font-weight: 600;
    color: #1a1a1a;
    margin-left: 8px;
    min-width: 120px;
}

.fdesc {
    color: #666;
    flex: 1;
}

/* ============================================
   ADD TO CART SECTION - PREMIUM BUTTONS
   ============================================ */

form.cart {
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
}

.quantity .qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.quantity .qty-btn:hover {
    background: #fff;
    color: #000;
}

.quantity .qty-btn:active {
    transform: scale(0.95);
}

.quantity input[type="number"] {
    width: 60px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity input[type="number"]::-webkit-outer-spin-button,
.quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity input[type="number"]:focus {
    outline: none;
}

.single_add_to_cart_button {
    flex: 1;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--add-to-cart-button-color, #1a1a1a) 0%, var(--add-to-cart-button-dark, #000) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.single_add_to_cart_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.single_add_to_cart_button:hover::before {
    left: 100%;
}

.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, var(--add-to-cart-button-dark, #000) 0%, var(--add-to-cart-button-color, #1a1a1a) 100%);
}

.single_add_to_cart_button:active {
    transform: translateY(0);
    background: var(--add-to-cart-button-dark, #000);
}

/* ============================================
   PRODUCT TABS - MODERN DESIGN
   ============================================ */

.woocommerce-tabs {
    margin: 60px 0 0 0;
    grid-column: 1 / -1;
}

.woocommerce-tabs .tabs {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0 0 -2px 0;
    padding: 0;
    border-bottom: 2px solid #f0f0f0;
}

.woocommerce-tabs .tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 16px 32px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.woocommerce-tabs .tabs li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.woocommerce-tabs .tabs li.active a {
    color: #1a1a1a;
    background: transparent;
}

.woocommerce-tabs .tabs li.active a::after {
    width: 100%;
}

.woocommerce-tabs .tabs li a:hover {
    color: #1a1a1a;
    background: #f8f9fa;
}

.woocommerce-Tabs-panel {
    padding: 40px;
    background: #f8f9fa;
    border-radius: 0 16px 16px 16px;
    margin-top: 0;
}

.woocommerce-Tabs-panel h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.woocommerce-Tabs-panel p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 16px;
}
.woocommerce span.onsale{
    line-height: 1.5 !important;
}
/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 767px) {
    .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Reset order for mobile/tablet */
    .woocommerce div.product .woocommerce-product-gallery {
        order: 1;
    }
    
    .woocommerce div.product .summary {
        order: 2;
    }
    
    .woocommerce-tabs {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    /* Container responsive adjustments */
    body.single-product #primary,
    body.single-product .site-main,
    body.single-product .main-con,
    body.single-product .content-area {
        padding: 0 15px;
    }
    
    .woocommerce div.product {
        padding: 20px 15px;
        gap: 30px;
    }
    
    h1.product_title {
        font-size: 24px;
    }
    
    p.price {
        font-size: 32px;
    }
    
    .price ins .woocommerce-Price-amount {
        font-size: 32px;
    }
    
    .single_add_to_cart_button {
        padding: 16px 24px;
        font-size: 14px;
    }
    
    .woocommerce-tabs .tabs li a {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .woocommerce-Tabs-panel {
        padding: 24px;
    }
    
    .flex-control-thumbs li {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .prod-opts {
        top: 10px;
        right: 10px;
    }
    
    .prod-opts li {
        width: 38px;
        height: 38px;
    }
}

/* ============================================
   RTL SUPPORT
   ============================================ */

body.rtl .prod-opts {
    right: auto;
    left: 20px;
}

body.rtl .dina-woo-flash-con {
    left: auto;
    right: 20px;
}

body.rtl .ftitle {
    margin-left: 0;
    margin-right: 8px;
}

body.rtl .dina-features-ul li i {
    margin-left: 0;
    margin-right: 12px;
}

body.rtl .quantity {
    margin-left: 0;
    margin-right: 16px;
}

body.rtl .product-notification {
    right: auto;
    left: 20px;
    transform: translateX(-400px);
}

body.rtl .product-notification.show {
    transform: translateX(0);
}

body.rtl .share-modal-close {
    right: auto;
    left: 16px;
}

/* ============================================
   ANIMATIONS & INTERACTIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce div.product {
    animation: fadeIn 0.6s ease;
}


/* Focus states for accessibility */
.single_add_to_cart_button:focus,
.quantity input:focus,
.woocommerce-tabs .tabs li a:focus {
    outline: 3px solid rgba(0, 0, 0, 0.2);
    outline-offset: 2px;
}

.single_add_to_cart_button:focus {
    outline: 3px solid rgba(var(--add-to-cart-button-color, 26, 26, 26), 0.3);
    outline-offset: 2px;
}

/* Loading state */
.single_add_to_cart_button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.single_add_to_cart_button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   PREMIUM TOUCHES
   ============================================ */

/* Gradient overlay on images */
.woocommerce-product-gallery__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.03) 100%);
    border-radius: 16px;
    pointer-events: none;
}

/* Trust badges area */
.product-trust-badges {
    display: flex;
    gap: 24px;
    margin: 24px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.trust-badge i {
    color: #27ae60;
    font-size: 18px;
}

/* ============================================
   SHARE MODAL
   ============================================ */

.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.share-modal {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.share-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.share-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.share-modal h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.share-link {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.share-link input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #666;
    outline: none;
}

.copy-link-btn {
    padding: 8px 20px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-link-btn:hover {
    background: #000;
}

/* ============================================
   NOTIFICATION SYSTEM
   ============================================ */

.product-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #27ae60;
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
}

.product-notification.show {
    transform: translateX(0);
}

.product-notification i {
    font-size: 20px;
}

.product-notification span {
    font-size: 15px;
    font-weight: 600;
}

/* ============================================
   ACTIVE STATES FOR BUTTONS
   ============================================ */

.prod-opts li.active {
    background: #1a1a1a;
}

.prod-opts li.active i {
    color: #fff;
}

.prod-opts li.loading {
    pointer-events: none;
    opacity: 0.6;
}

.prod-opts li.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}

/* ============================================
   PHOTOSWIPE CUSTOM STYLES
   ============================================ */

.pswp__bg {
    background: rgba(0, 0, 0, 0.95);
}

.pswp__button {
    background: none !important;
    width: 44px;
    height: 44px;
}

.pswp__button:hover {
    opacity: 1 !important;
}

.pswp__top-bar {
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.pswp__caption {
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.pswp__caption__center {
    text-align: center;
    font-size: 14px;
    color: #fff;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RELATED PRODUCTS SECTION - MODERN & MINIMAL
   ============================================ */

.related-products-section {
    margin: 0;
    padding: 60px 0;
    background: #fafafa;
    border-top: 1px solid #e8e8e8;
    width: 100%;
    clear: both;
}

.related-products-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0;
}

.related-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #e0e0e0;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8f8f8;
}

.product-image-wrapper .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.product-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.related-product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.action-btn:hover i {
    color: #fff;
}

.action-btn i {
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.product-info {
    padding: 24px;
}

.product-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #666;
}

.product-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-rating .star-rating {
    font-size: 14px;
    color: #ffc107;
}

.product-rating .star-rating::before {
    color: #ffc107;
}

.product-price {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-price del {
    color: #999;
    font-weight: 400;
    margin-left: 8px;
}

.product-price ins {
    text-decoration: none;
    color: var(--primary-color);
}

.product-actions-bottom {
    margin-top: auto;
}

.view-product-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.view-product-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.3);
}

/* Animation classes for related products */
.related-product-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.related-product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.related-product-card.hovered {
    transform: translateY(-8px) scale(1.02);
}

/* Loading states for action buttons */
.action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.action-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(102, 102, 102, 0.3);
    border-radius: 50%;
    border-top-color: #666;
    animation: spin 0.6s linear infinite;
}

.action-btn.active {
    background: var(--primary-color);
}

.action-btn.active i {
    color: #fff;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .related-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .related-products-section {
        margin: 0;
        padding: 40px 0;
    }
    
    .related-products-container {
        padding: 0 15px;
    }
    
    .section-header {
        margin-bottom: 35px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 15px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .view-product-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .product-rating {
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .view-product-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ============================================
   STICKY ADD TO CART (Mobile)
   ============================================ */

@media (max-width: 768px) {
    .sticky-cart-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 20px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    body.sticky-cart-visible .sticky-cart-bar {
        transform: translateY(0);
    }
    
    .sticky-cart-bar .price {
        font-size: 20px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
    }
    
    .sticky-cart-bar .single_add_to_cart_button {
        flex: 1;
        padding: 14px 24px;
        font-size: 14px;
    }
}
