/* ============================================================
   PRODUCT PAGE - LISTING & DETAILS
   ============================================================ */

/* --- LISTING PAGE STYLES (PRESERVED) --- */
.product-grid-container {
    padding: 80px 0;
    background: #f4f7fe;
}

.product-card-premium {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(165, 160, 89, 0.1);
    box-shadow: 0 10px 30px rgba(10, 36, 114, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.product-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(10, 36, 114, 0.15);
    z-index: 2;
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #fcfdfe;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card-premium:hover .product-image-wrap img {
    transform: scale(1.15);
}

/* Glassmorphism Overlay on Hover */
.product-card-premium::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(10,36,114,0.05), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.product-card-premium:hover::after {
    opacity: 1;
}

.badge-discount {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ea1b24 0%, #ff6b6b 100%);
    color: #fff;
    padding: 7px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 8px 20px rgba(234, 27, 36, 0.3);
}

.badge-prescribed {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(12, 172, 238, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(12, 172, 238, 0.2);
}

.badge-soldout {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    color: #ea1b24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    z-index: 10;
    letter-spacing: 2px;
}

.product-info-premium {
    padding: 20px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name-premium {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #0a2472;
    margin-bottom: 5px;
    text-decoration: none !important;
    display: block;
    line-height: 1.2;
    height: 44px;
    overflow: hidden;
    transition: color 0.3s;
}

.product-card-premium:hover .product-name-premium {
    color: #0cacee;
}

.verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #0cacee;
    background: rgba(12, 172, 238, 0.08);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-container-premium {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: auto;
}

.offer-price {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.actual-price {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
}

.save-label {
    background: #fef2f2;
    color: #ef4444;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 10px;
    margin-left: auto;
}

.product-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: #0a2472;
    color: #fff;
    text-align: center;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s;
    border: none;
}

.product-card-premium:hover .product-action-btn {
    background: linear-gradient(to right, #0cacee, #0a2472);
}

.product-action-btn i {
    font-size: 16px;
    transition: transform 0.4s;
}

.product-card-premium:hover .product-action-btn i {
    transform: translateX(5px);
}

/* Hover Overlay */
.product-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 36, 114, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
    z-index: 4;
}

.product-card-premium:hover .product-hover-overlay {
    opacity: 1;
}

.view-btn-circle {
    width: 60px;
    height: 60px;
    background: #fff;
    color: #0cacee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product-card-premium:hover .view-btn-circle {
    transform: scale(1);
}

.price-block {
    display: flex;
    flex-direction: column;
}

.product-footer {
    border-top: 1px solid #f1f5f9;
    margin: 0 -24px -20px;
}

.product-footer .product-action-btn {
    border-radius: 0 0 24px 24px;
}

/* Premium Filter Bar */
.product-bar-premium {
    background: #fff;
    padding: 15px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(10, 36, 114, 0.03);
    border: 1px solid rgba(165, 160, 89, 0.08);
}

.collection-count {
    color: #0a2472;
    font-weight: 700;
    font-size: 15px;
}

.collection-count i {
    color: #0cacee;
}

.sort-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-select-wrap {
    position: relative;
    min-width: 200px;
}

.premium-select {
    width: 100%;
    padding: 8px 15px;
    border-radius: 10px;
    border: 1.5px solid #edf2f7;
    background: #f8fafc;
    color: #0a2472;
    font-weight: 600;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s;
}

.premium-select:focus {
    border-color: #0cacee;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(12, 172, 238, 0.1);
}

.premium-select-wrap::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0cacee;
    pointer-events: none;
}


/* --- DETAILS PAGE PREMIUM REDESIGN --- */

.product-details-premium-wrap {
    background: #f8fbff;
    position: relative;
    overflow: hidden;
}

.product-glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #eef2f7;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
}

.product-media-container .media-main {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    padding: 10px;
    border: 1px solid #edf2f7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-video-main {
    border-radius: 12px;
    max-height: 500px;
    object-fit: cover;
}

.media-gallery .gallery-item {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

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

.media-gallery .gallery-item.active {
    border-color: var(--cp-primary);
    box-shadow: 0 5px 15px rgba(12, 172, 238, 0.3);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6fffa;
    color: #047857;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.product-title-premium {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 700;
    color: var(--cp-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.product-short-desc {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

.variant-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.variant-pills .variant-pill {
    padding: 10px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.variant-pills .variant-pill:hover, 
.variant-pills .variant-pill.active {
    background: var(--cp-primary);
    color: #fff !important;
    border-color: var(--cp-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 172, 238, 0.2);
}

.price-section-premium {
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

.offer-price-val {
    font-size: 36px;
    font-weight: 800;
    color: var(--cp-secondary);
    margin: 0;
}

.actual-price-val {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
}

.discount-pill {
    background: var(--cp-accent);
    color: var(--cp-dark);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
}

.tax-note {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.btn-outline-premium {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.btn-outline-premium:hover {
    background: #fff5f5;
    color: var(--cp-secondary);
    border-color: var(--cp-secondary);
}

.section-sub-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--cp-dark);
    margin-bottom: 15px;
}

.intro-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
}

.tabs-navigation-premium .premium-pills {
    background: #fff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: inline-flex;
    width: auto;
}

.premium-pills .nav-link {
    border-radius: 40px;
    padding: 12px 40px;
    font-weight: 700;
    color: #64748b;
    transition: all 0.4s;
    border: none;
    background: transparent;
}

.premium-pills .nav-link.active {
    background: var(--cp-gradient) !important;
    color: #fff !important;
    box-shadow: 0 8px 15px rgba(12, 172, 238, 0.3);
}

.review-card-premium {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.review-card-premium:hover {
    transform: translateY(-5px);
}

.review-header .reviewer-name {
    font-weight: 700;
    color: var(--cp-dark);
    margin-bottom: 5px;
    font-size: 18px;
}

.review-stars {
    color: #fbbf24;
    font-size: 12px;
}

.btn-play-review {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--cp-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
}

.glass-modal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.result-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff;
}

.result-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.result-img-wrap:hover img {
    transform: scale(1.05);
}

.result-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 36, 114, 0.9), transparent);
    padding: 20px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
}

.result-img-wrap:hover .result-overlay {
    opacity: 1;
}

.ptb-80 { padding: 80px 0; }
.pb-80 { padding-bottom: 80px; }

@media (max-width: 991px) {
    .product-glass-card { padding: 30px; }
    .product-title-premium { font-size: 30px; }
    .product-media-container { margin-bottom: 30px; }
}

@media (max-width: 768px) {
    .tabs-navigation-premium .premium-pills {
        display: flex;
        flex-direction: column;
        border-radius: 20px;
        width: 100%;
    }
    .premium-pills .nav-link {
        width: 100%;
        text-align: center;
    }
}
