/* ===================================================
   Product Detail Page Styles
   RX Lifestyle - Premium Product Pages
   =================================================== */

/* Page Header Background */
.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 180px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

.page-header .section-title h1 {
    color: var(--white-color);
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header .breadcrumb-nav {
    display: flex;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.page-header .breadcrumb-nav a {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.page-header .breadcrumb-nav a:hover {
    color: var(--white-color);
}

/* Product Detail Section */
.product-detail {
    padding: 80px 0;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

/* Product Image Section - Left Side */
.product-image-section {
    position: static;
}

.product-main-image {
    background: linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.product-main-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) rotate(45deg);
    }
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #f8f8f8;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Section - Right Side */
.product-info-section {
    padding: 20px 0;
}

.product-category {
    display: inline-block;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.product-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Reviews Section */
.product-reviews {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.star-rating {
    display: flex;
    gap: 3px;
}

.star-rating i {
    color: #ffc107;
    font-size: 16px;
}

.star-rating i.empty {
    color: #ddd;
}

.review-count {
    color: var(--text-color);
    font-size: 14px;
}

.review-count span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Price Section */
.product-price-box {
    margin-bottom: 30px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
}

.price-peso {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.price-original {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.price-savings {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Short Description */
.product-short-desc {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Options Section */
.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.option-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: var(--white-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    border-color: var(--accent-color);
    background: rgba(254, 131, 55, 0.05);
}

.option-btn.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Dynamic Description Box */
.option-description {
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 30px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-description h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.option-description p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Product Total Value Label */
.product-total-value {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(254, 131, 55, 0.15) 0%, rgba(254, 131, 55, 0.05) 100%);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f8f8f8;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.qty-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.qty-input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.qty-input:focus {
    outline: none;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-add-cart {
    flex: 1;
    padding: 18px 30px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-cart:hover {
    background: #e67320;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(254, 131, 55, 0.4);
}

.btn-buy-now {
    flex: 1;
    padding: 18px 30px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-wishlist {
    width: 56px;
    height: 56px;
    border: 2px solid #e0e0e0;
    background: var(--white-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-color);
}

.btn-wishlist:hover {
    border-color: #ff4757;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
}

/* Product Meta */
.product-meta {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.meta-item i {
    width: 20px;
    color: var(--accent-color);
}

.meta-item strong {
    color: var(--primary-color);
}

.meta-item span {
    color: var(--text-color);
}

/* =============================================
   Product Description Container (Bottom Section)
   ============================================= */

.product-description-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.description-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
}

.desc-tab {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.desc-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.desc-tab:hover {
    color: var(--primary-color);
}

.desc-tab.active {
    color: var(--accent-color);
}

.desc-tab.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.description-content {
    background: var(--white-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.description-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.description-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.description-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.description-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.6;
}

.description-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.benefit-card {
    background: linear-gradient(145deg, #fff 0%, #f8f8f8 100%);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.benefit-card .icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-card h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* What's Included Grid */
.included-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.included-item {
    text-align: center;
    padding: 25px;
    background: #f8f8f8;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.included-item:hover {
    background: var(--accent-color);
}

.included-item:hover .item-name,
.included-item:hover .item-qty {
    color: var(--primary-color);
}

.included-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.item-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.item-qty {
    font-size: 14px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* =============================================
   Testimonial Section
   ============================================= */

.product-testimonial-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.testimonial-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonial-header h3 {
    color: var(--accent-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.testimonial-header h2 {
    color: var(--white-color);
    font-size: 36px;
    font-weight: 700;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 120px;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: 30px;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.author-info h4 {
    color: var(--white-color);
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info span {
    color: var(--accent-color);
    font-size: 14px;
}

.testimonial-rating {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 18px;
}

/* Inline Testimonial Card (for tabs) */
.testimonial-card-inline {
    background: linear-gradient(145deg, #f8f8f8 0%, #fff 100%);
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 60px;
    color: var(--accent-color);
    opacity: 0.3;
}

.testimonial-quote i {
    font-size: 50px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 30px;
    padding-top: 30px;
}

.testimonial-author-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author-avatar-inline {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.author-info-inline h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-info-inline span {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
}

.testimonial-rating-inline {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.testimonial-rating-inline i {
    color: #ffc107;
    font-size: 18px;
}

/* =============================================
   Responsive Design
   ============================================= */

@media (max-width: 1199px) {
    .product-detail-wrapper {
        gap: 40px;
    }

    .product-title {
        font-size: 30px;
    }
}

@media (max-width: 991px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-image-section {
        position: static;
    }

    .product-main-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .included-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 150px 0 60px;
    }

    .page-header .section-title h1 {
        font-size: 32px;
    }

    .product-detail {
        padding: 50px 0;
    }

    .product-title {
        font-size: 26px;
    }

    .price-current {
        font-size: 26px;
    }

    .price-peso {
        font-size: 20px;
    }

    .product-actions {
        flex-direction: column;
    }

    .description-tabs {
        flex-wrap: wrap;
    }

    .desc-tab {
        padding: 12px 20px;
        font-size: 14px;
    }

    .description-content {
        padding: 25px;
    }

    .included-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-thumbnails {
        justify-content: center;
    }

    .product-thumbnail {
        width: 60px;
        height: 60px;
    }

    .option-buttons {
        flex-direction: column;
    }

    .option-btn {
        width: 100%;
        text-align: center;
    }
}