/* ========================================
   SINGLE PRODUCT PAGE - iScience Premium
   Color Scheme: Soft Blue (#AFC7D9)
   ======================================== */

:root {
    --primary-color: #AFC7D9;
    --primary-dark: #8BAEC4;
    --primary-light: #D4E3ED;
    --secondary-color: #AFC7D9;
    --text-dark: #2C3E50;
    --text-medium: #5D6D7E;
    --text-light: #95A5A6;
    --bg-light: #F8FAFB;
    --border-color: #E8EEF2;
}

.single-product-page {
    background: #fff;
    color: var(--text-dark);
}

/* Container Custom */
.single-product-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.product-breadcrumb {
    padding: 30px 0;
    background: linear-gradient(to bottom, var(--bg-light), #fff);
    border-bottom: 1px solid var(--border-color);
}

.product-breadcrumb .woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.product-breadcrumb .woocommerce-breadcrumb a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.product-breadcrumb .woocommerce-breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.product-breadcrumb .woocommerce-breadcrumb a:hover {
    color: var(--primary-dark);
}

.product-breadcrumb .woocommerce-breadcrumb a:hover::after {
    width: 100%;
}

/* ========================================
   PRODUCT HERO SECTION
   ======================================== */

.product-hero {
    padding: 100px 0;
    background: #fff;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: start;
}

/* ========================================
   PRODUCT GALLERY
   ======================================== */

.product-gallery-wrapper {
    position: sticky;
    top: 120px;
    animation: fadeInUp 0.8s ease;
}

.product-gallery-main {
    background: linear-gradient(135deg, #FAFBFC 0%, #F5F7F9 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 30px rgba(175, 199, 217, 0.15);
    cursor: zoom-in;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.product-gallery-main:hover {
    box-shadow: 0 12px 50px rgba(175, 199, 217, 0.25);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.product-gallery-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(175, 199, 217, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-gallery-main:hover::before {
    opacity: 1;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-gallery-main:hover .main-product-image {
    transform: scale(1.05);
}

.product-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.thumbnail-item {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1;
    position: relative;
}

.thumbnail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(175, 199, 217, 0);
    transition: background 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.thumbnail-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(175, 199, 217, 0.2);
}

.thumbnail-item:hover::before {
    background: rgba(175, 199, 217, 0.1);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 6px 25px rgba(175, 199, 217, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.05);
}

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

.product-info-wrapper {
    padding-top: 40px;
    animation: fadeInRight 0.8s ease;
}

.product-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 600;
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-light);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.product-category:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(175, 199, 217, 0.3);
}

.product-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.15;
    margin: 0 0 30px;
    color: var(--text-dark);
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ========================================
   PRODUCT PRICE
   ======================================== */

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.product-price,
.product-price-sale {
    font-size: 36px;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.product-price-regular {
    font-size: 26px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
}

.product-sale-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 18px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(175, 199, 217, 0.4);
}

/* Short Description */
.product-short-description {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.product-short-description p {
    margin-bottom: 18px;
}

/* ========================================
   PRODUCT ATTRIBUTES
   ======================================== */

.product-attributes {
    margin-bottom: 40px;
    background: var(--bg-light);
    padding: 32px;
    border-radius: 16px;
    animation: fadeInUp 0.8s ease 0.5s both;
    border: 1px solid var(--border-color);
}

.attribute-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 14px;
    border-radius: 10px;
}

.attribute-item:hover {
    background: rgba(175, 199, 217, 0.08);
    transform: translateX(5px);
}

.attribute-item:last-child {
    margin-bottom: 0;
}

.attribute-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 120px;
    letter-spacing: 0.3px;
}

.attribute-value {
    color: var(--text-medium);
}

/* ========================================
   ADD TO CART
   ======================================== */

.product-add-to-cart {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.product-add-to-cart .cart {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.product-add-to-cart .quantity {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.product-add-to-cart .quantity:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(175, 199, 217, 0.15);
}

.product-add-to-cart .quantity input {
    width: 90px;
    height: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.product-add-to-cart .quantity input:focus {
    outline: none;
    background: #fff;
}

.product-add-to-cart .single_add_to_cart_button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: #fff;
    border: none;
    padding: 20px 60px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    position: relative;
    overflow: hidden;
}

.product-add-to-cart .single_add_to_cart_button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.product-add-to-cart .single_add_to_cart_button:hover::before {
    width: 300px;
    height: 300px;
}

.product-add-to-cart .single_add_to_cart_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(175, 199, 217, 0.4);
}

.product-add-to-cart .single_add_to_cart_button:active {
    transform: translateY(-1px);
}

/* ========================================
   PRODUCT META
   ======================================== */

.product-meta {
    padding-top: 35px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.meta-item {
    display: flex;
    gap: 15px;
    margin-bottom: 14px;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.meta-item:hover {
    padding-left: 10px;
}

.meta-label {
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    min-width: 100px;
}

.meta-value {
    color: var(--text-medium);
}

.meta-value a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.meta-value a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.meta-value a:hover {
    color: var(--primary-dark);
}

.meta-value a:hover::after {
    width: 100%;
}

/* ========================================
   PRODUCT FEATURES
   ======================================== */

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 40px 0 0;
    border-top: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease 0.8s both;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 35px 25px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(175, 199, 217, 0.3);
    border-color: transparent;
}

.feature-item svg {
    width: 38px;
    height: 38px;
    color: var(--primary-dark);
    transition: all 0.4s ease;
}

.feature-item:hover svg {
    color: #fff;
    transform: scale(1.15) rotate(5deg);
}

.feature-item span {
    font-size: 12px;
    color: var(--text-medium);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: color 0.4s ease;
}

.feature-item:hover span {
    color: #fff;
}

/* ========================================
   PRODUCT TABS - Minimalist & Elegant
   ======================================== */

.product-tabs-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--bg-light), #fff);
}

.tabs-navigation {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 80px;
    padding-bottom: 0;
    position: relative;
}

.tabs-navigation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--border-color) 20%,
        var(--border-color) 80%,
        transparent
    );
}

.tab-button {
    background: none;
    border: none;
    padding: 25px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 400;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: all 0.4s ease;
}

.tab-button.active {
    color: var(--primary-dark);
    font-weight: 500;
}

.tab-button:hover, .tab-button:focus {
    background-color: transparent !important;
    color: var(--primary-dark) !important;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.tabs-content-wrapper {
    max-width: 950px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    animation: fadeInScale 0.6s ease;
}

.tab-content.active {
    display: block;
}

.tab-inner {
    background: #fff;
    padding: 70px;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(175, 199, 217, 0.12);
    position: relative;
    border: 1px solid var(--border-color);
}

.tab-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-light), 
        var(--primary-color), 
        var(--primary-dark),
        var(--primary-color),
        var(--primary-light)
    );
    border-radius: 20px 20px 0 0;
}

.tab-inner h2,
.tab-inner h3 {
    font-weight: 300;
    margin-bottom: 28px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.tab-inner h2 {
    font-size: 36px;
}

.tab-inner h3 {
    font-size: 26px;
}

.tab-inner p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 25px;
}

.tab-inner ul,
.tab-inner ol {
    margin-left: 30px;
    margin-bottom: 25px;
}

.tab-inner li {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 14px;
    position: relative;
    padding-left: 10px;
}

.tab-inner li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 13px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* ========================================
   RELATED PRODUCTS
   ======================================== */

.related-products-section {
    padding: 120px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 80px;
    color: var(--text-dark);
    letter-spacing: -1px;
    position: relative;
    padding-bottom: 35px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        transparent
    );
}

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

.related-product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.related-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(175, 199, 217, 0.2);
    border-color: var(--primary-light);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-image {
    position: relative;
    background: linear-gradient(135deg, var(--bg-light), #F5F7F9);
    overflow: hidden;
    aspect-ratio: 1;
}

.product-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(175, 199, 217, 0) 0%, 
        rgba(175, 199, 217, 0.08) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.related-product-card:hover .product-card-image::before {
    opacity: 1;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.sale-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(175, 199, 217, 0.4);
    z-index: 2;
}

.product-card-info {
    padding: 32px 28px;
    background: #fff;
}

.product-card-title {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 14px;
    color: var(--text-dark);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-product-card:hover .product-card-title {
    color: var(--primary-dark);
}

.product-card-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.product-card-price del {
    font-size: 15px;
    color: var(--text-light);
    margin-right: 10px;
    font-weight: 400;
}

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

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

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@media (max-width: 1200px) {
    .product-hero-grid {
        gap: 70px;
    }
    
    .product-title {
        font-size: 40px;
    }
}

@media (max-width: 1024px) {
    .single-product-page .container {
        padding: 0 30px;
    }
    
    .product-hero-grid {
        gap: 60px;
    }
    
    .product-title {
        font-size: 36px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .tabs-navigation {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .single-product-page .container {
        padding: 0 20px;
    }
    
    .product-hero {
        padding: 60px 0;
    }
    
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .product-gallery-wrapper {
        position: relative;
        top: 0;
    }
    
    .product-title {
        font-size: 32px;
    }
    
    .product-price,
    .product-price-sale {
        font-size: 28px;
    }
    
    .tabs-navigation {
        flex-wrap: wrap;
        gap: 25px;
        justify-content: center;
    }
    
    .tab-button {
        font-size: 11px;
        padding: 20px 0;
        letter-spacing: 2px;
    }
    
    .tab-inner {
        padding: 45px 30px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .product-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-tabs-section,
    .related-products-section {
        padding: 80px 0;
    }
    
    .product-add-to-cart .cart {
        flex-direction: column;
    }
    
    .product-add-to-cart .quantity input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 26px;
    }
    
    .product-gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .tabs-navigation {
        gap: 20px;
    }
    
    .tab-button {
        font-size: 10px;
        letter-spacing: 1.5px;
        padding: 18px 0;
    }
    
    .tab-inner {
        padding: 35px 25px;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .product-attributes {
        padding: 25px 20px;
    }
    
    .attribute-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .attribute-label {
        min-width: auto;
    }
}

/* ========================================
   SMOOTH RENDERING
   ======================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.product-add-to-cart .added_to_cart {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 32px;
    background: var(--primary-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-add-to-cart .added_to_cart:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 199, 217, 0.3);
}