/**
 * Modern Product Page Styles - PWA Theme v3.1.1
 * Single Product Page Professional Design
 */

/* ============================================
   BREADCRUMB MODERN - Shared with Checkout
   ============================================ */
.breadcrumb-bar-modern {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumb-modern__link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px 8px;
    border-radius: 6px;
}

.breadcrumb-modern__link:hover {
    color: #e8192c;
    background: rgba(232, 25, 44, 0.05);
}

.breadcrumb-modern__link svg {
    transition: transform 0.3s;
}

.breadcrumb-modern__link:hover svg {
    transform: translateY(-1px);
}

.breadcrumb-modern__sep {
    color: #d1d5db;
    display: flex;
}

.breadcrumb-modern__current {
    color: #0d0d0d;
    font-weight: 600;
    padding: 4px 8px;
}

/* ============================================
   PRODUCT INFO MODERN
   ============================================ */
.product-info-modern {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-info__cats-modern {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.product-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-cat-badge:hover {
    background: linear-gradient(135deg, #e8192c 0%, #c41625 100%);
    color: #ffffff;
    border-color: #e8192c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 25, 44, 0.2);
}

.product-info__title-modern {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #0d0d0d;
    margin: 0 0 16px;
}

/* Product Rating Modern */
.product-rating-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 10px;
    border: 1px solid #fbbf24;
}

.product-stars {
    display: flex;
    gap: 2px;
}

.star-icon {
    flex-shrink: 0;
}

.product-rating-text {
    font-size: 14px;
    color: #92400e;
    font-weight: 600;
}

.product-rating-reviews-link {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    color: #92400e;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: color .2s;
}
.product-rating-reviews-link:hover { color: #e8192c; }

/* Product Price Modern */
.product-info__price-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 12px;
    border: 2px solid #e8192c;
}

.price-current-modern {
    font-size: 36px;
    font-weight: 800;
    color: #e8192c;
    line-height: 1;
}

.price-was-modern {
    font-size: 24px;
    color: #9ca3af;
    text-decoration: line-through;
}

.badge-save-modern {
    padding: 6px 14px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.badge-discount-modern {
    padding: 6px 14px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-size: 14px;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* Flash Sale Countdown Modern */
.flash-sale-countdown-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 2px solid #fbbf24;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.flash-icon-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    animation: flash-pulse 1.5s ease-in-out infinite;
}

@keyframes flash-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
}

.flash-text {
    font-size: 14px;
    color: #78350f;
    font-weight: 600;
}

.flash-timer-modern {
    font-size: 18px;
    color: #92400e;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Stock Status Modern */
.product-info__stock-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.in-stock-modern {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #16a34a;
}

.in-stock-modern svg {
    color: #16a34a;
}

.out-of-stock-modern {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #e8192c;
}

.out-of-stock-modern svg {
    color: #e8192c;
}

/* ============================================
   PRODUCT TABS MODERN
   ============================================ */
.product-tabs-modern {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-tabs__nav-modern {
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 2px solid #e5e7eb;
}

.product-tab-btn-modern {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-tab-btn-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e8192c 0%, #c41625 100%);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-tab-btn-modern:hover {
    color: #e8192c;
    background: rgba(232, 25, 44, 0.05);
}

.product-tab-btn-modern.active {
    color: #e8192c;
    background: #ffffff;
}

.product-tab-btn-modern.active::after {
    transform: scaleX(1);
}

.product-tab-btn-modern svg {
    flex-shrink: 0;
}

.product-tab-panel-modern {
    display: none;
    padding: 32px;
    animation: fadeInUp 0.4s ease-out;
}

.product-tab-panel-modern.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Entry Content Modern */
.entry-content-modern {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.entry-content-modern h1,
.entry-content-modern h2,
.entry-content-modern h3 {
    color: #0d0d0d;
    margin-top: 24px;
    margin-bottom: 16px;
}

.entry-content-modern p {
    margin-bottom: 16px;
}

.entry-content-modern ul,
.entry-content-modern ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

/* Shipping Policy Modern */
.shipping-policy-modern {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.policy-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.policy-item svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.policy-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0d0d0d;
    margin: 0 0 8px;
}

.policy-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   PRODUCT GALLERY ENHANCEMENTS
   ============================================ */
.product-gallery {
    position: relative;
}

.product-gallery__main {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-gallery__main-img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-gallery__main:hover .product-gallery__main-img {
    transform: scale(1.05);
}

.gallery-zoom-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    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);
    backdrop-filter: blur(8px);
    color: #374151;
}

.gallery-zoom-btn:hover {
    background: #e8192c;
    color: #ffffff;
    border-color: #e8192c;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(232, 25, 44, 0.3);
}

.product-gallery__sale-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e8192c 0%, #c41625 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(232, 25, 44, 0.4);
    z-index: 2;
}

/* Gallery Thumbnails */
.product-gallery__thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 4px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    padding: 4px;
}

.gallery-thumb:hover {
    border-color: #e8192c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 25, 44, 0.2);
}

.gallery-thumb.active {
    border-color: #e8192c;
    box-shadow: 0 0 0 2px rgba(232, 25, 44, 0.1);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .product-info-modern {
        padding: 20px;
    }

    .product-info__title-modern {
        font-size: 24px;
    }

    .price-current-modern {
        font-size: 28px;
    }

    .price-was-modern {
        font-size: 18px;
    }

    .product-tab-btn-modern {
        padding: 14px 16px;
        font-size: 14px;
    }

    .product-tab-panel-modern {
        padding: 20px;
    }

    .flash-sale-countdown-modern {
        flex-direction: column;
        text-align: center;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .breadcrumb-bar-modern {
        background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
        border-bottom-color: #374151;
    }

    .product-info-modern {
        background: #1a1a1a;
        border-color: #374151;
    }

    .product-info__title-modern {
        color: #ffffff;
    }

    .product-cat-badge {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
        color: #d1d5db;
        border-color: #4b5563;
    }

    .product-tabs-modern {
        background: #1a1a1a;
        border-color: #374151;
    }

    .product-tabs__nav-modern {
        background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
        border-bottom-color: #374151;
    }

    .product-tab-btn-modern {
        color: #9ca3af;
    }

    .product-tab-btn-modern.active {
        background: #1a1a1a;
        color: #e8192c;
    }

    .product-tab-panel-modern {
        background: #1a1a1a;
    }

    .entry-content-modern {
        color: #d1d5db;
    }

    .policy-item {
        background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
        border-color: #374151;
    }

    .policy-item h3 {
        color: #ffffff;
    }

    .product-gallery__main {
        background: #1a1a1a;
        border-color: #374151;
    }

    .gallery-thumb {
        border-color: #374151;
        background: #1a1a1a;
    }
}
