/* Product Pages Shared Styles */

/* Product Hero Section */
.product-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 50%, #fff 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(58, 157, 184, 0.1), rgba(58, 157, 184, 0.05));
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(30px) rotate(180deg);
    }
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image-wrapper::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.product-main-image {
    max-width: 380px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-info-wrapper {
    animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-category {
    display: inline-block;
    background: #8F7080;
    /* Explicit dark color for contrast */
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(143, 112, 128, 0.4);
}

.product-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-description {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-item span {
    font-weight: 600;
    color: var(--dark);
}

.order-btn {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.order-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* Details Section */
.product-details {
    padding: 5rem 0;
    background: #fff;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.detail-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid #eee;
    transition: all 0.4s;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.detail-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-card h3 i {
    color: var(--primary-color);
}

.ingredient-list,
.benefits-list {
    list-style: none;
    padding: 0;
}

.ingredient-list li,
.benefits-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ingredient-list li:last-child,
.benefits-list li:last-child {
    border-bottom: none;
}

.ingredient-list li::before {
    content: '🌿';
}

.benefits-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

/* Usage Section */
.usage-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.usage-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.usage-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.usage-section .btn {
    background: #fff;
    color: var(--primary-color);
}

.usage-section .btn:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
}

/* Usage Steps - Enhanced Layout */
.usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.usage-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.usage-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: #8F7080;
    /* Explicit Primary Color */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(143, 112, 128, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.step-content h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: #333;
    font-weight: 700;
}

.step-content p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
    color: #555;
    background: transparent;
}

/* Specific Style for Protocol Button */
.usage-section .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #8F7080;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(143, 112, 128, 0.3);
}

.usage-section .btn:hover {
    background: #6A5260;
    /* Darker shade */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 82, 96, 0.4);
}

/* RTL Support for Usage Steps */
*[dir="rtl"] .usage-steps {
    text-align: right;
}

*[dir="rtl"] .usage-step {
    flex-direction: row-reverse;
}

/* Product Concerns Hover Fix - Darker Hover */
.concern-chip:hover {
    background: #6A5260 !important;
    /* Primary Dark */
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
}

.concern-chip:hover i {
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 992px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .product-main-image {
        max-width: 280px;
    }

    .product-title {
        font-size: 2.2rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* RTL Support */
*[dir="rtl"] .product-hero-grid {
    direction: rtl;
}

*[dir="rtl"] .product-info-wrapper {
    text-align: right;
}

*[dir="rtl"] .product-features {
    justify-content: flex-start;
}

*[dir="rtl"] .detail-card h3 {
    flex-direction: row-reverse;
}

/* Product Concerns Section */
.product-concerns {
    padding: 4rem 0;
    background: var(--cream);
    text-align: center;
}

.product-concerns h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.product-concerns h3 i {
    color: var(--primary-color);
}

.concerns-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.concern-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    color: var(--dark);
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
}



.concern-chip i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Scientific Section - Premium Design */
.scientific-section.premium {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 50%, #f5f0ed 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.scientific-section.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.section-header-premium {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.section-header-premium h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-header-premium p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

/* Premium Scientific Grid */
.scientific-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Scientific Card */
.scientific-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.scientific-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(143, 112, 128, 0.2);
}

.card-image {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f5f2 0%, #e8e0e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(143, 112, 128, 0.1) 0%, transparent 70%);
}

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

.scientific-card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 1.75rem;
}

.card-content h4 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Card Tags */
.card-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tags .tag {
    background: linear-gradient(135deg, rgba(143, 112, 128, 0.1) 0%, rgba(143, 112, 128, 0.15) 100%);
    color: #8F7080;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(143, 112, 128, 0.2);
    transition: all 0.3s;
}

.card-tags .tag:hover {
    background: #8F7080 !important;
    /* Force dark background */
    color: #ffffff !important;
    /* Force white text */
    border-color: #8F7080;
    box-shadow: 0 5px 15px rgba(143, 112, 128, 0.3);
}

/* RTL Support */
*[dir="rtl"] .scientific-card {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .section-header-premium h2 {
        font-size: 2rem;
    }

    .card-image {
        height: 150px;
    }
}