/* Modern Product Details Page - Redesigned for better visual appeal */
:root {
    --product-primary: #f97316;
    --product-secondary: #0058dd;
    --product-dark: #1c2332;
    --product-light: #f8f9fa;
    --product-white: #ffffff;
    --product-gray: #f5f5f5;
    --product-text: #333333;
    --product-text-light: #666666;
    --product-transition: all 0.3s ease;
    --product-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --product-hover-shadow: 0 15px 35px rgba(249, 115, 22, 0.15);
    --product-border-radius: 16px;
    --product-card-radius: 12px;
}

/* Normal page styling */
html,
body {
    width: 100%;
    height: auto;
}

/* Ensure all elements have proper box-sizing */
* {
    box-sizing: border-box;
}

/* Main section styles */
.product-details-section {
    position: relative;
    padding: 120px 0 80px;
    background-color: var(--product-light);
    color: var(--product-text);
}

/* Container */
.product-details-section .container {
    position: relative;
    max-width: 1280px;
    margin: 10px auto;
    padding: 0 20px;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--product-text-light);
}

.breadcrumb a {
    color: var(--product-text);
    text-decoration: none;
    transition: var(--product-transition);
}

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

.breadcrumb i {
    margin: 0 10px;
    font-size: 0.8rem;
}

.breadcrumb span {
    color: var(--product-primary);
    font-weight: 600;
}

/* Product container */
.product-container {
    margin-bottom: 60px;
    background: var(--product-white);
    border-radius: var(--product-border-radius);
    padding: 30px;
    box-shadow: var(--product-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.product-container-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
}

.product-gallery-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    position: relative;
}

.product-info-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

/* Product gallery */
.product-gallery {
    width: 100%;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    /* Fallback for browsers that don't support aspect-ratio */
    padding-top: 100%;
    border-radius: var(--product-card-radius);
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Improve performance on all browsers */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    cursor: zoom-in;
    /* Thêm con trỏ zoom-in để chỉ ra rằng ảnh có thể phóng to */
}

/* Nút hướng dẫn phóng to ảnh */
.zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    transition: all 0.3s ease;
    opacity: 0.8;
    pointer-events: none;
    /* Để không cản trở việc click vào ảnh */
}

.zoom-hint i {
    font-size: 0.9rem;
}

.main-image-container:hover .zoom-hint {
    opacity: 1;
    transform: translateY(-3px);
}

.main-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
    will-change: transform, opacity;
    /* Improve performance on all browsers */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.main-image-container img.fade-in {
    animation: fadeZoomIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.main-image-container img.fade-out {
    animation: fadeZoomOut 0.3s ease forwards;
}

@keyframes fadeZoomIn {
    0% {
        opacity: 0.7;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeZoomOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Main image hover effect */

.main-image-container:hover img {
    transform: scale(1.05);
}

/* Thumbnails container with slider */
.thumbnails-container {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.thumbnails {
    display: flex;
    gap: 10px;
    padding-top: 5px;
    padding-bottom: 10px;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.thumbnails.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.thumbnails-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--product-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--product-dark);
    font-size: 0.9rem;
    z-index: 2;
    transition: var(--product-transition);
    opacity: 0.8;
}

.thumbnails-nav:hover {
    background: var(--product-primary);
    color: var(--product-white);
    opacity: 1;
}

.thumbnails-nav.prev {
    left: -15px;
}

.thumbnails-nav.next {
    right: -15px;
}

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--product-transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thumbnails img:hover {
    border-color: var(--product-primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.thumbnails img.active {
    border-color: var(--product-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

/* Ripple effect for thumbnails */
.thumbnails img .ripple {
    position: absolute;
    background-color: rgba(249, 115, 22, 0.3);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    z-index: 1;
}

/* Product info */
.product-info {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-info h1 {
    font-size: 1.9rem;
    color: var(--product-dark);
    margin-bottom: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: var(--product-primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.product-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--product-text);
    margin-bottom: 5px;
    position: relative;
    transition: max-height 0.3s ease;
    overflow: hidden;
    max-height: 1000px;
    /* Large enough to contain full text */
    text-align: justify;
    /* font-style: italic; */
}

.product-description.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1rem * 1.7 * 3);
    text-overflow: ellipsis;
}

.product-description-toggle {
    display: none;
    color: var(--product-primary);
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: right;
    transition: all 0.2s ease;
    padding: 3px 10px;
    border-radius: 4px;
    float: right;
    clear: both;
}

.product-description-toggle:hover {
    text-decoration: underline;
    background-color: rgba(249, 115, 22, 0.1);
}

.product-specs {
    margin-bottom: 30px;
}

.product-specs h3 {
    font-size: 1.2rem;
    color: var(--product-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.specs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.spec-item i {
    color: var(--product-primary);
    margin-right: 10px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Promo info styles moved to promo-info-premium.css */

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: var(--product-primary);
    color: var(--product-white);
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--product-transition);
    border: none;
    cursor: pointer;
}

.btn-contact:hover {
    background: #e86207;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

.btn-contact i {
    margin-right: 8px;
}





/* Related products */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 1.8rem;
    color: var(--product-dark);
    margin-bottom: 15px;
    text-align: center;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--product-text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Product grid with equal height rows */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    grid-auto-rows: 1fr;
    /* Make all rows the same height */
}

/* Product card */
.product-card {
    background: var(--product-white);
    border-radius: var(--product-card-radius);
    box-shadow: 0 6px 16px rgb(0 0 0 / 12%), 0 0 0 1px rgba(0, 0, 0, 0.06);
    transition: var(--product-transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    opacity: 1;
    overflow: hidden;
    transform: translateY(0);
}

.product-card.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgb(0 0 0 / 15%), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--product-card-radius);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.05);
    transition: var(--product-transition);
}

.product-card:hover::after {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

/* Product image */
.product-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #f5f5f5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.01), transparent 30%);
    z-index: 1;
}

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

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

/* Product badge */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--product-primary);
    color: var(--product-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 1;
    box-shadow: 0 3px 8px rgba(249, 115, 22, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.also-liked-card .product-badge {
    background: var(--product-secondary);
    box-shadow: 0 3px 8px rgba(0, 88, 221, 0.3);
}

/* Product content */
.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 200px;
    /* Set a minimum height for content area */
}

.product-category {
    font-size: 0.8rem;
    color: var(--product-primary);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.product-category i {
    margin-right: 5px;
    font-size: 0.9rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--product-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: var(--product-transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
    /* Fixed height: 2 lines * 1.4 line-height */
}

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

/* Product stats */
.product-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating i {
    color: #FFB800;
    font-size: 0.9rem;
}

.product-rating span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--product-text-light);
}

.product-sold {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--product-text-light);
}

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

/* Also liked product views */
.also-liked-product-views {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 88, 221, 0.08);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--product-text);
    font-weight: 500;
    margin-left: auto;
}

.also-liked-product-views i {
    color: var(--product-secondary);
    font-size: 1rem;
}

.also-liked-product-views span {
    color: var(--product-text);
    white-space: nowrap;
}

.also-liked-product-views::before {
    content: 'Lượt xem:';
    margin-right: 4px;
    font-size: 0.9em;
    color: var(--product-text-light);
}

/* Product stats container */
.product-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Related product sold */
.related-product-sold {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(249, 115, 22, 0.08);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--product-text);
    font-weight: 500;
    margin-left: auto;
}

.related-product-sold i {
    color: var(--product-primary);
    font-size: 1rem;
}

.related-product-sold span {
    color: var(--product-text);
    white-space: nowrap;
}

.related-product-sold::before {
    content: 'Lượt bán:';
    margin-right: 4px;
    font-size: 0.9em;
    color: var(--product-text-light);
}

/* Product price */
.product-price {
    margin-bottom: 15px;
}

.product-price span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--product-primary);
}

/* Product action */
.product-action {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

.product-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--product-primary);
    color: var(--product-white);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--product-transition);
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
    width: 80%;
}

.product-details:hover {
    background: #e86207;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
    width: 85%;
}

.product-details i {
    margin-left: 5px;
    transition: var(--product-transition);
}

.product-details:hover i {
    transform: translateX(3px);
}

.product-dimensions {
    font-size: 0.85rem;
    color: var(--product-text-light);
    display: flex;
    align-items: center;
}

.product-dimensions i {
    margin-right: 5px;
    color: var(--product-primary);
}

/* Customers also liked */
.customers-also-liked {
    margin-top: 60px;
}

.customers-also-liked h3 {
    font-size: 1.1rem;
    color: var(--product-dark);
    margin-bottom: 10px;
    text-align: left;
    position: relative;
}

.customers-also-liked h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--product-primary), var(--product-secondary));
    border-radius: 3px;
}

/* Also Liked Card Styles */
.also-liked-card {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-radius: var(--product-card-radius);
    box-shadow: 0 6px 16px rgb(0 0 0 / 10%), 0 0 0 1px rgba(0, 88, 221, 0.05);
}

.also-liked-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgb(0 0 0 / 12%), 0 0 0 1px rgba(0, 88, 221, 0.1);
}

.also-liked-card::after {
    box-shadow: 0 0 0 1px rgba(0, 88, 221, 0.05);
}

.also-liked-card:hover::after {
    box-shadow: 0 0 0 2px rgba(0, 88, 221, 0.15);
}

.also-liked-card .product-image::before {
    background: linear-gradient(to bottom, rgba(0, 88, 221, 0.02), transparent 30%);
}

.also-liked-card .product-category i {
    color: var(--product-secondary);
}

.also-liked-card .product-views i {
    color: var(--product-secondary);
}

.also-liked-card .product-price span {
    color: var(--product-secondary);
}

.also-liked-card:hover .product-title {
    color: var(--product-secondary);
}

.also-liked-details {
    background: var(--product-secondary);
    box-shadow: 0 2px 8px rgba(0, 88, 221, 0.2);
}

.also-liked-details:hover {
    background: #0046b8;
    box-shadow: 0 5px 15px rgba(0, 88, 221, 0.25);
}

/* Decorative elements */
.product-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    background: linear-gradient(135deg, var(--product-primary), var(--product-secondary));
    z-index: 1;
}

.product-decoration-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -150px;
}

.product-decoration-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
}

@media (max-width: 768px) {
    .product-decoration-1 {
        width: 250px;
        height: 250px;
        top: -100px;
        right: -100px;
    }

    .product-decoration-2 {
        width: 200px;
        height: 200px;
        bottom: -80px;
        left: -80px;
    }
}

@media (max-width: 576px) {
    .product-decoration-1 {
        width: 150px;
        height: 150px;
        top: -50px;
        right: -50px;
    }

    .product-decoration-2 {
        width: 120px;
        height: 120px;
        bottom: -40px;
        left: -40px;
    }
}

/* Responsive styles */
@media (min-width: 1400px) {
    .product-details-section .container {
        max-width: 1400px;
    }

    .product-gallery-wrapper {
        max-width: 650px;
    }

    .product-container {
        padding: 40px;
    }

    .product-container-inner {
        gap: 60px;
    }

    .thumbnails img {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 1200px) {
    .product-container-inner {
        gap: 30px;
    }

    .product-info h1 {
        font-size: 2rem;
    }

    /* Main image container is now square using aspect-ratio */
}

@media (max-width: 992px) {
    .product-details-section {
        padding: 100px 0 60px;
    }

    .product-container-inner {
        flex-direction: column;
    }

    .product-gallery-wrapper {
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }

    .product-info-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .main-image-container {
        max-width: 600px;
        margin: 0 auto;
    }

    .thumbnails-container {
        max-width: 600px;
        margin: 0 auto 20px;
    }

    /* Main image container is now square using aspect-ratio */
}

@media (max-width: 768px) {
    .product-details-section {
        padding: 90px 0 50px;
    }

    .product-container {
        padding: 20px;
    }

    .product-container-inner {
        gap: 25px;
    }

    .product-info h1 {
        font-size: 1.8rem;
    }

    /* Main image container is now square using aspect-ratio */

    .thumbnails {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
    }

    .thumbnails img {
        width: 70px;
        height: 70px;
        scroll-snap-align: start;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-description {
        font-size: 0.95rem;
    }

    .spec-item {
        font-size: 0.9rem;
    }

    .specs-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }



    /* Adjust breadcrumb for mobile */
    .breadcrumb {
        flex-wrap: wrap;
        line-height: 1.8;
    }

    /* Improve product card on mobile */
    .product-card .product-action {
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-stats-container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        margin-bottom: 15px;
    }

    .related-product-sold {
        padding: 6px 10px;
        font-size: 0.85rem;
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .product-details-section {
        padding: 80px 0 40px;
        width: 100%;
    }

    .product-details-section .container {
        margin: 35px auto;
        padding: 0 15px;
    }

    .product-container {
        padding: 15px;
        border-radius: 12px;
    }

    .product-container-inner {
        gap: 20px;
    }

    .product-info h1 {
        font-size: 1.6rem;
    }

    /* Main image container is now square using aspect-ratio */

    .thumbnails-container {
        margin-bottom: 15px;
    }

    .thumbnails {
        padding-bottom: 5px;
        justify-content: flex-start;
        gap: 8px;
    }

    .thumbnails-nav {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .thumbnails img {
        width: 60px;
        height: 60px;
        margin-right: 0;
    }

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

    .product-actions {
        flex-direction: column;
    }

    .btn-contact,
    .btn-share {
        width: 100%;
        margin-bottom: 10px;
        padding: 10px 20px;
    }

    .product-category {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    /* Promo info responsive styles moved to promo-info-premium.css */

    .product-specs h3 {
        font-size: 1.1rem;
    }

    .specs-list {
        grid-template-columns: 1fr;
    }

    .spec-item {
        margin-bottom: 8px;
    }

    .social-share {
        margin-top: 20px;
        padding-top: 15px;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Adjust related products section */
    .related-products h2,
    .customers-also-liked h3 {
        font-size: 1.4rem;
    }

    .section-intro {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    /* Improve product card on mobile */
    .product-card .product-action {
        flex-direction: column;
        align-items: center;
    }

    .product-card .product-details {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .product-stats-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        margin-bottom: 15px;
    }

    .product-stats {
        gap: 8px;
    }

    .product-rating span {
        font-size: 0.8rem;
    }

    .related-product-sold,
    .also-liked-product-views {
        padding: 5px 10px;
        font-size: 0.9rem;
        margin-left: auto;
        justify-content: flex-end;
        min-width: 100px;
        text-align: right;
    }

    .related-product-sold i,
    .also-liked-product-views i {
        font-size: 1rem;
    }

    .related-product-sold::before {
        content: 'Lượt bán:';
        margin-right: 4px;
        font-size: 0.9em;
    }

    .also-liked-product-views::before {
        content: 'Lượt xem:';
        margin-right: 4px;
        font-size: 0.9em;
    }

    /* Adjust breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .product-stats-container {
        flex-wrap: nowrap;
    }

    .product-rating i {
        font-size: 0.8rem;
    }

    .related-product-sold,
    .also-liked-product-views {
        padding: 4px 8px;
        font-size: 0.85rem;
        min-width: 90px;
    }

    .related-product-sold i,
    .also-liked-product-views i {
        font-size: 0.95rem;
    }

    .related-product-sold::before,
    .also-liked-product-views::before {
        font-size: 0.85em;
    }

    .product-container {
        padding: 12px;
        margin-bottom: 40px;
    }

    .product-container-inner {
        gap: 15px;
    }

    .product-info h1 {
        font-size: 1.4rem;
    }

    .thumbnails img {
        width: 50px;
        height: 50px;
    }

    .product-category {
        font-size: 0.75rem;
        padding: 3px 8px;
        margin-bottom: 15px;
    }

    /* Promo info responsive styles moved to promo-info-premium.css */

    .product-description {
        font-size: 0.9rem;
    }

    .product-actions {
        margin-top: 20px;
    }

    .btn-contact {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .zoom-hint {
        display: none;
    }
}

/* Safari-specific styles - Beautiful fade effect */
.safari-browser .main-image-container {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    transition: box-shadow 0.5s ease, transform 0.3s ease;
    -webkit-transition: box-shadow 0.5s ease, -webkit-transform 0.3s ease;
}

/* Subtle pulse effect for main container */
.safari-browser .main-image-container.safari-subtle-pulse {
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.25);
}

.safari-browser .main-image-container img {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
}

/* Safari-specific animation overrides */
.safari-browser .main-image-container img.fade-in,
.safari-browser .main-image-container img.fade-out {
    -webkit-animation: none !important;
    animation: none !important;
}

/* Safari-specific thumbnail styles - Beautiful */
.safari-browser .thumbnails img {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.safari-browser .thumbnails img:hover {
    border-color: rgba(249, 115, 22, 0.5);
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

.safari-browser .thumbnails img.active {
    border-color: var(--product-primary);
    transform: translateY(-4px);
    -webkit-transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3);
}

/* Safari-specific transition container */
.safari-image-transition-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    border-radius: var(--product-card-radius);
}

/* Elegant overlay for fade effect */
.safari-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    -webkit-transition: opacity 0.4s ease;
    z-index: 1;
}

.safari-fade-overlay.active {
    opacity: 1;
}

/* Beautiful fade image transition */
.safari-fade-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: brightness(1.03);
    -webkit-filter: brightness(1.03);
    transition: opacity 0.6s ease;
    -webkit-transition: opacity 0.6s ease;
    z-index: 2;
}

.safari-fade-image.fade-in {
    opacity: 1;
}

/* Elegant shine effect */
.safari-shine-effect {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.4s ease, transform 1.2s ease;
    -webkit-transition: opacity 0.4s ease, -webkit-transform 1.2s ease;
    z-index: 3;
    pointer-events: none;
}

.safari-shine-effect.active {
    opacity: 0.6;
    transform: rotate(45deg) translate(100%, 100%);
    -webkit-transform: rotate(45deg) translate(100%, 100%);
}

/* Subtle highlight effect for thumbnails */
.safari-thumbnail-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, rgba(249, 115, 22, 0) 70%);
    opacity: 0;
    animation: safari-thumbnail-highlight 0.8s ease;
    -webkit-animation: safari-thumbnail-highlight 0.8s ease;
    pointer-events: none;
    z-index: 2;
    border-radius: 6px;
}

@keyframes safari-thumbnail-highlight {
    0% {
        opacity: 0;
    }

    40% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes safari-thumbnail-highlight {
    0% {
        opacity: 0;
    }

    40% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
    }
}