body.product-page {
    padding-top: 88px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.product-page-main {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 5% 2rem;
    overflow-x: hidden;
    box-sizing: border-box;
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #7a6250;
    margin-bottom: 1.25rem;
    max-width: 100%;
}

.product-breadcrumb a {
    color: #ff6b00;
    text-decoration: none;
}

.product-breadcrumb .current {
    color: #2c2c2c;
    font-weight: 600;
}

.product-detail-section {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    margin-bottom: 2rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.product-gallery-wrap {
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.product-gallery-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    width: 100%;
    max-width: 100%;
}

body.product-page .product-gallery-main .productMainSwiper {
    width: 100% !important;
    max-width: 100% !important;
    height: min(58vh, 520px) !important;
    min-height: 320px !important;
    overflow: hidden !important;
}

body.product-page .product-gallery-main .productMainSwiper .swiper-wrapper {
    height: 100% !important;
    align-items: center;
}

body.product-page .product-gallery-main .productMainSwiper .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff;
}

body.product-page .product-gallery-main .product-gallery-image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: 0 auto;
}

.product-gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
}

.product-zoom-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #ff6b00;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

body.product-page .productThumbSwiper {
    margin-top: 12px;
    width: 100% !important;
    max-width: 100% !important;
    height: 78px !important;
    min-height: 78px !important;
    overflow: hidden;
    box-sizing: border-box;
}

body.product-page .productThumbSwiper.is-hidden {
    display: none !important;
}

body.product-page .productThumbSwiper .swiper-slide {
    width: 72px !important;
    height: 72px !important;
    flex-shrink: 0;
}

.product-thumb-btn {
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    background: #fff;
    cursor: pointer;
    display: block;
}

.product-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.product-page .productThumbSwiper .swiper-slide-thumb-active .product-thumb-btn {
    border-color: #ff6b00;
}

body.product-page .product-gallery-main .swiper-button-next,
body.product-page .product-gallery-main .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

body.product-page .product-gallery-main .swiper-button-next::after,
body.product-page .product-gallery-main .swiper-button-prev::after {
    font-size: 0.95rem;
}

body.product-page .product-gallery-main .swiper-pagination-bullet {
    background: #ff6b00;
    opacity: 0.35;
}

body.product-page .product-gallery-main .swiper-pagination-bullet-active {
    opacity: 1;
}

.product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff3e9;
    color: #c65c00;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-detail-info {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.product-detail-title {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.35;
    color: #222;
    margin-bottom: 1rem;
    word-break: break-word;
}

.product-detail-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: #ff6b00;
}

.product-detail-old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.product-detail-discount {
    background: #ffeb3b;
    color: #333;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.product-variant-block {
    margin-bottom: 1.25rem;
    max-width: 100%;
}

.product-variant-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 0.55rem;
}

.product-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.product-variant-btn {
    border: 1px solid #e6e0db;
    background: #fff;
    color: #333;
    border-radius: 12px;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-variant-btn:hover,
.product-variant-btn.active {
    border-color: #ff6b00;
    background: #fff4ea;
    color: #ff6b00;
}

.product-detail-actions {
    margin-bottom: 1rem;
}

.product-add-cart-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.95rem 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 107, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-add-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(255, 107, 0, 0.34);
}

.product-detail-meta {
    display: grid;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 1.25rem;
}

.product-detail-meta i {
    color: #ff6b00;
    width: 18px;
}

.product-description {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.product-description h2 {
    font-size: 1rem;
    margin-bottom: 0.65rem;
    color: #333;
}

.product-description-body {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #555;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.product-page .product-description-body,
body.product-page .product-description-body * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.product-page .product-description-body div,
body.product-page .product-description-body p,
body.product-page .product-description-body span,
body.product-page .product-description-body section,
body.product-page .product-description-body article {
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

body.product-page .product-description-body table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

body.product-page .product-description-body iframe,
body.product-page .product-description-body video,
body.product-page .product-description-body embed {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
    aspect-ratio: 16 / 9;
}

.product-description-body p,
.product-description-body ul,
.product-description-body ol {
    margin-bottom: 0.75rem;
}

.product-description-body ul,
.product-description-body ol {
    padding-left: 1.25rem;
}

.product-description-body img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 10px;
}

.product-description-body a {
    color: #ff6b00;
    word-break: break-word;
}

.similar-products-section {
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.product-not-found {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-not-found-inner {
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.product-not-found-inner i {
    font-size: 2.5rem;
    color: #ff6b00;
    margin-bottom: 0.75rem;
}

.product-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    color: #ff6b00;
    text-decoration: none;
    font-weight: 700;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 10, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-lightbox[hidden] {
    display: none !important;
}

.product-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.productLightboxSwiper {
    width: min(1100px, 100%);
    height: min(80vh, 760px);
}

.productLightboxSwiper .product-gallery-image {
    object-fit: contain;
}

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

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff3d57;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-icon-btn {
    position: relative;
}

.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 110px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(34, 34, 34, 0.94);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cart-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mobile-cart-bar:not(.has-items) .cart-old-price,
.mobile-cart-bar:not(.has-items) .cart-discount {
    display: none;
}

@media (max-width: 992px) {
    body.product-page {
        padding-top: 132px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .product-gallery-wrap {
        position: static;
    }

    body.product-page .product-gallery-main .productMainSwiper {
        height: 280px !important;
        min-height: 280px !important;
    }

    .cart-toast {
        bottom: 120px;
    }
}

@media (max-width: 576px) {
    .product-page-main {
        padding-left: 3%;
        padding-right: 3%;
    }

    .product-detail-section {
        padding: 0.85rem;
    }

    .product-detail-price {
        font-size: 1.65rem;
    }

    body.product-page .product-gallery-main .productMainSwiper {
        height: 240px !important;
        min-height: 240px !important;
    }
}
