:root {
    --primary: #004998;
    --primary-gradient: linear-gradient(135deg, #004998, #0072ff);
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray-bg: #f4f6f8;
    --gray-text: #666666;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
    --container-width: 1200px
}

@media (max-width:480px) {
    :root {
        --border-radius: 12px
    }
}

[data-theme="dark"] {
    --light: #1e1e1e;
    --dark: #ffffff;
    --gray-bg: #121212;
    --gray-text: #aaaaaa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5)
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif
}

body {
    background-color: var(--gray-bg);
    color: var(--dark);
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 73, 152, 0.4)
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 73, 152, 0.6)
}

.header {
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center
}

[data-theme="dark"] .header {
    background: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05)
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    text-decoration: none
}

@media (max-width:400px) {
    .logo {
        font-size: 1.5rem
    }
}

@media (max-width:360px) {
    .logo {
        font-size: 1.3rem
    }
}

.desktop-nav {
    display: none;
    gap: 30px
}

@media (min-width:768px) {
    .desktop-nav {
        display: flex
    }
}

.desktop-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s
}

.desktop-nav a:hover::after {
    width: 100%
}

.nav-dropdown {
    position: relative
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer
}

.dropdown-trigger i {
    font-size: 0.7rem;
    transition: transform 0.3s
}

.nav-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg)
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 15px;
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent
}

.dropdown-item:hover {
    background: var(--gray-bg);
    border-left-color: var(--primary);
    padding-left: 25px
}

.dropdown-item::after {
    display: none
}

[data-theme="dark"] .dropdown-menu {
    background: #2a2a2a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5)
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center
}

.icon-btn {
    background: var(--gray-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--dark);
    transition: background 0.2s;
    position: relative
}

.icon-btn:hover {
    background: #e0e0e0
}

[data-theme="dark"] .icon-btn:hover {
    background: #333
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white
}

.hero {
    margin: 20px auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(120deg, #1a1a1a, #4a4a4a);
    color: white;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    box-shadow: var(--card-shadow);
    gap: 30px
}

@media (min-width:900px) {
    .hero {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        min-height: 450px;
        padding: 60px
    }
}

.hero-content {
    max-width: 100%;
    z-index: 2;
    position: relative
}

@media (min-width:900px) {
    .hero-content {
        max-width: 50%
    }
}

.hero-image {
    width: 100%;
    max-width: 500px;
    z-index: 2;
    position: relative;
    animation: float 6s ease-in-out infinite;
    will-change: transform
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3)
}

@keyframes float {
    0% {
        transform: translateY(0px)
    }

    50% {
        transform: translateY(-15px)
    }

    100% {
        transform: translateY(0px)
    }
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px
}

.hero-bg-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 71, 26, 0.2) 0%, transparent 70%);
    pointer-events: none
}

.products {
    padding: 40px 20px
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark)
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    align-content: start
}

@media (max-width:600px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px
    }
}

.product-card {
    background: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow)
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #ffffff
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s
}

.product-card:hover .product-img {
    transform: scale(1.05)
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px
}

.badge-discount {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700
}

.product-info {
    padding: 15px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column
}

.product-cat {
    font-size: 0.8rem;
    color: var(--gray-text);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.5px
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.price-group {
    display: flex;
    flex-direction: column
}

.old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--gray-text)
}

.new-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark)
}

.btn-card-add {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.2s
}

.product-card:hover .btn-card-add {
    background: var(--primary);
    color: white
}

.product-detail-wrapper {
    background: var(--light);
    border-radius: 24px;
    padding: 40px;
    margin-top: 30px;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow)
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px
}

@media (min-width:900px) {
    .product-detail-content {
        grid-template-columns: 48% 1fr;
        align-items: start;
        gap: 40px
    }
}

.main-image-frame {
    overflow: hidden;
    height: auto;
    max-height: 80vh;
    margin-bottom: 15px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    box-shadow: none
}

.main-image-frame {
    cursor: zoom-in
}

.main-image-frame img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block
}

.expand-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    z-index: 5
}

.main-image-frame:hover .expand-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1)
}

.thumbnails-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 10px
}

.thumbnails-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px;
    width: 100%
}

.thumbnails-row::-webkit-scrollbar {
    display: none
}

.thumb-nav {
    background: white;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1)
}

.thumb-nav:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: scale(1.05)
}

.thumb-nav.prev {
    margin-right: 8px
}

.thumb-nav.next {
    margin-left: 8px
}

@media (max-width:1024px) {
    .thumb-nav {
        display: none
    }

    .thumbnails-row {
        padding-bottom: 5px
    }
}

.thumb-video-container {
    position: relative;
    cursor: pointer;
    flex: 0 0 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 5px;
    border: 2px solid transparent
}

.thumb-video-container.active {
    border-color: var(--primary)
}

.thumb-video-container .thumb-img {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0
}

.thumb-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: var(--primary);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 73, 152, 0.4);
    z-index: 2
}

.thumb-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid transparent
}

.thumb-img.active {
    border-color: var(--primary);
    transform: scale(0.95)
}

.info-section h1 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #111827
}

.price-box-clean {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px
}

.price-values {
    display: flex;
    flex-direction: column;
    justify-content: center
}

.old-price {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 2px
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px
}

.discount-tag {
    background: rgba(255, 71, 26, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    align-self: flex-start;
    margin-top: 5px;
    text-transform: uppercase
}

.rating-inline {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #f59e0b;
    font-weight: 700;
    margin-bottom: 15px;
    background: #fffbeb;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 6px
}

.price-box-v3,
.price-large {
    display: none
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0
}

.actions-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-top: 25px;
    height: 54px
}

.qty-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #e5e7eb;
    min-width: 110px
}

.qty-selector button {
    width: 36px;
    height: 100%;
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center
}

.qty-selector button:active {
    transform: scale(0.95);
    background: #f3f4f6
}

.qty-selector input {
    width: 30px;
    text-align: center;
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    color: #111827
}

.btn-buy-primary {
    flex: 1;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(255, 71, 26, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.btn-buy-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 71, 26, 0.35)
}

.btn-buy-primary i {
    font-size: 0.9em
}

.rating-pill {
    display: none
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600
}

.btn-buy-lg {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 71, 26, 0.3);
    transition: transform 0.2s
}

.btn-buy-lg:hover {
    transform: translateY(-3px)
}

.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 25px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)
}

@media (prefers-color-scheme:dark) {
    .bottom-nav {
        background: rgba(30, 30, 30, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3)
    }
}

.bottom-nav a {
    color: #9cb3c9;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center
}

.bottom-nav a:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    transform: translateY(-2px)
}

.bottom-nav a.active {
    color: var(--primary);
    background: rgba(255, 71, 26, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(255, 71, 26, 0.15)
}

.bottom-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6
}

@media (min-width:768px) {
    .bottom-nav {
        display: none
    }
}

.footer {
    background: var(--light);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 50px
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    text-align: center
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700
}

.footer-col ul {
    list-style: none;
    padding: 0
}

.footer-col li {
    margin-bottom: 10px
}

.footer-col a {
    text-decoration: none;
    color: var(--gray-text);
    transition: color 0.2s
}

.footer-col a:hover {
    color: var(--primary)
}

.copyright,
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    color: var(--gray-text);
    font-size: 0.9rem
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px
}

.review-card {
    background: var(--gray-bg);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.03)
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem
}

.user-avatar-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover
}

.review-user {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark)
}

.review-date {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--gray-text)
}

.review-stars {
    font-size: 0.7rem
}

.product-header-group {
    margin-bottom: 20px
}

.product-header-group h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 10px;
    letter-spacing: -0.5px
}

.rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #f59e0b;
    font-weight: 600;
    background: #fffbeb;
    padding: 4px 10px;
    border-radius: 4px
}

.desc-content {
    line-height: 1.8;
    color: var(--gray-text);
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease;
    mask-image: none;
    -webkit-mask-image: none
}

.desc-content.collapsed {
    max-height: 200px;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%)
}

.desc-fade {
    display: none
}

.btn-read-more {
    display: block;
    margin: 15px auto 0;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem
}

.btn-read-more:hover {
    background: var(--primary);
    color: white
}

.price-box-clean {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05)
}

.price-values {
    display: flex;
    flex-direction: column
}

.old-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--gray-text)
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1
}

.discount-tag {
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px
}

.specs-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px
}

.spec-item {
    font-size: 0.85rem;
    background: var(--gray-bg);
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--dark)
}

.spec-label {
    font-weight: 600;
    color: var(--gray-text)
}

.actions-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: stretch
}

.qty-selector {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden
}

.qty-selector button {
    width: 40px;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    transition: background 0.2s
}

.qty-selector button:hover {
    background: #e5e7eb
}

.qty-selector input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 1rem;
    outline: none
}

.btn-buy-primary {
    flex-grow: 1;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    padding: 0 30px;
    transition: background 0.2s;
    box-shadow: 0 4px 6px rgba(255, 71, 26, 0.2)
}

.btn-buy-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px)
}

.short-desc-box {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--gray-text)
}

.security-note {
    font-size: 0.85rem;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    background: #ecfdf5;
    padding: 10px;
    border-radius: 6px;
    width: fit-content
}

.review-text {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.4;
    margin-bottom: 10px
}

.review-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px
}

.review-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.1)
}

.review-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10
}

.review-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 12px
}

.review-video {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-height: 300px
}

.review-media-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 5px;
    scroll-behavior: smooth
}

.review-media-grid::-webkit-scrollbar {
    display: none
}

.review-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    transition: 0.2s
}

.review-image:hover {
    transform: scale(0.98);
    opacity: 0.9
}

.review-video-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: black;
    border: 1px solid #e5e7eb
}

.review-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7
}

.rv-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5)
}

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px)
}

.gallery-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2
}

.gallery-media-item {
    max-width: 95%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    object-fit: contain
}

@media screen and (max-width:768px) {

    body,
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw
    }

    .container,
    .wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 12px !important;
        box-sizing: border-box;
        margin: 0
    }

    .product-detail-content,
    .product-detail-wrapper,
    .grid-2-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
        margin: 0 !important;
        width: 100% !important;
        padding: 20px 15px !important
    }

    .product-detail-wrapper {
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff;
        margin-top: 0 !important
    }

    .gallery-section {
        width: 100% !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center
    }

    .main-image-frame {
        border-radius: 16px !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        background: #fff;
        aspect-ratio: auto;
        width: 100%;
        max-width: 400px;
        height: auto;
        display: block;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        position: relative;
        overflow: hidden;
        margin-bottom: 20px
    }

    .main-image-frame img {
        width: 100%;
        height: auto !important;
        max-height: 70vh;
        display: block
    }

    .expand-icon {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        opacity: 0.95;
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        position: absolute;
        z-index: 10
    }

    .thumbnails-wrapper {
        padding: 0;
        width: 100%;
        max-width: 400px
    }

    .info-section {
        padding: 0 5px
    }

    .product-header-group h1 {
        font-size: 1.5rem !important;
        margin-top: 0
    }

    .actions-row {
        position: fixed;
        bottom: 0px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 12px 16px;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
        z-index: 1002;
        margin: 0 !important;
        gap: 12px;
        display: flex;
        align-items: center;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        transition: transform 0.3s ease
    }

    [data-theme="dark"] .actions-row {
        background: rgba(30, 30, 30, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5)
    }

    body.product-page .bottom-nav {
        display: none !important
    }

    body {
        padding-bottom: 110px !important
    }

    .btn-buy-primary {
        flex: 1;
        padding: 14px;
        font-size: 1.1rem;
        height: 52px;
        border-radius: 12px;
        background: var(--primary-gradient);
        box-shadow: 0 4px 15px rgba(255, 71, 26, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        animation: subtlePulse 2s infinite
    }

    @keyframes subtlePulse {

        0%,
        100% {
            opacity: 0.92;
            transform: scale(1)
        }

        50% {
            opacity: 1;
            transform: scale(1.02)
        }
    }

    .qty-selector {
        height: 52px;
        background: #f3f4f6;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        min-width: 100px
    }

    [data-theme="dark"] .qty-selector {
        background: #2a2a2a;
        border-color: rgba(255, 255, 255, 0.05)
    }

    .price-box-clean {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        background: transparent;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 15px;
        margin-bottom: 20px;
        padding-left: 0
    }

    .review-card {
        margin-left: 0;
        margin-right: 0
    }

    .product-card .product-info {
        padding: 10px
    }

    .product-card .product-title {
        font-size: 0.9rem;
        margin-bottom: 5px
    }

    .product-card .new-price {
        font-size: 1rem
    }

    .product-card .old-price {
        font-size: 0.75rem
    }

    .product-card .btn-card-add {
        width: 28px;
        height: 28px;
        font-size: 0.8rem
    }

    .product-card .badge-discount {
        font-size: 0.65rem;
        padding: 2px 6px
    }

    #mainImg,
    .gallery-media-item {
        animation: simpleFadeIn 0.4s ease-out
    }

    @keyframes simpleFadeIn {
        to {
            opacity: 1;
            transform: scale(1)
        }
    }

    [data-theme="dark"] .qty-selector {
        background: #333;
        border: 1px solid #444;
        color: white
    }

    [data-theme="dark"] .qty-selector input {
        color: white
    }

    [data-theme="dark"] .qty-selector button {
        color: white;
        opacity: 0.9
    }

    [data-theme="dark"] .qty-selector button:active {
        background: #444
    }

    .thumbnails-row {
        justify-content: center;
        gap: 12px
    }
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    padding: 20px;
    transition: 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent
}

.gallery-nav:hover {
    color: white;
    transform: translateY(-50%) scale(1.1)
}

.gallery-nav.prev {
    left: 10px
}

.gallery-nav.next {
    right: 10px
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    cursor: pointer;
    z-index: 20;
    line-height: 1;
    font-weight: 300;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center
}

.gallery-close:hover {
    color: white
}

.gallery-info {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    z-index: 5;
    font-size: 1rem;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 5px
}

#galleryCounter {
    font-weight: 700;
    font-size: 1.1rem
}

.shopee-filter-box {
    background: #fffbf8;
    border: 1px solid #f9ede5;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 40px
}

.shopee-rating-summary {
    text-align: center;
    min-width: 150px
}

.rating-score {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1
}

.rating-max {
    font-size: 1.2rem;
    color: var(--gray-text);
    font-weight: 500
}

.rating-stars-large {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 10px
}

.shopee-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-grow: 1
}

.s-filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--dark);
    transition: all 0.2s;
    user-select: none
}

.s-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.s-filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--primary) inset
}

@media (max-width:768px) {
    .shopee-filter-box {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        align-items: center
    }

    .shopee-filter-buttons {
        justify-content: center
    }

    .rating-score {
        font-size: 2.5rem
    }
}

.show-more-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05)
}

.btn-show-more {
    background: white;
    border: 1px solid #e5e7eb;
    color: var(--dark);
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.btn-show-more:hover {
    background: #f9fafb;
    border-color: var(--primary);
    color: var(--primary)
}

@media (max-width:480px) {
    .product-grid {
        gap: 10px !important
    }

    .section-header {
        margin-bottom: 20px;
        flex-direction: row;
        align-items: center
    }

    .section-header h2 {
        font-size: 1.3rem
    }

    .view-all {
        font-size: 0.85rem
    }

    .product-card {
        padding: 0;
        border-radius: 8px
    }

    .product-card .card-image-wrapper {
        border-radius: 8px 8px 0 0
    }

    .product-card .product-info {
        padding: 10px 8px
    }

    .product-card .product-category {
        font-size: 0.65rem;
        margin-bottom: 4px
    }

    .product-card .product-title {
        font-size: 0.85rem;
        line-height: 1.3;
        height: 2.6em;
        overflow: hidden;
        margin-bottom: 6px
    }

    .product-card .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px
    }

    .product-card .new-price {
        font-size: 1rem
    }

    .product-card .btn-card-add {
        position: absolute;
        bottom: 10px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 0.9rem
    }

    .footer {
        padding: 30px 0 20px;
        margin-top: 30px
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 10px
    }

    .footer-col {
        margin-bottom: 20px
    }
}

[data-theme="dark"] .product-detail-wrapper,
[data-theme="dark"] .main-image-frame {
    background: #1e1e1e !important;
    border-color: #333 !important
}

[data-theme="dark"] .shopee-filter-box {
    background: #1e1e1e;
    border-color: #333
}

[data-theme="dark"] .rating-inline {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3)
}

[data-theme="dark"] .s-filter-btn {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444
}

[data-theme="dark"] .s-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary)
}

[data-theme="dark"] .qty-selector {
    background: #2a2a2a;
    border-color: #444
}

[data-theme="dark"] .qty-selector button {
    background: #333;
    color: #fff;
    border-color: #444
}

[data-theme="dark"] .qty-selector input {
    color: #fff
}

[data-theme="dark"] .spec-item {
    background: #2a2a2a;
    color: #ddd
}

[data-theme="dark"] .actions-row {
    background: #1e1e1e;
    border-top-color: #333
}

[data-theme="dark"] .btn-show-more {
    background: #2a2a2a;
    color: #fff;
    border-color: #444
}

[data-theme="dark"] .btn-show-more:hover {
    border-color: var(--primary);
    color: var(--primary)
}

[data-theme="dark"] .review-card {
    background: #252525;
    border-color: #333
}

[data-theme="dark"] .review-user {
    color: #fff
}

[data-theme="dark"] .product-card {
    background: #1e1e1e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3)
}

[data-theme="dark"] .card-image-wrapper {
    background: #ffffff
}

[data-theme="dark"] .info-section h1,
[data-theme="dark"] .price-box-clean .current-price,
[data-theme="dark"] .specs-list .spec-item,
[data-theme="dark"] .product-detail-wrapper h3 {
    color: #fff !important
}

[data-theme="dark"] .short-desc-box,
[data-theme="dark"] .old-price,
[data-theme="dark"] .review-text,
[data-theme="dark"] .review-date,
[data-theme="dark"] .spec-label {
    color: #aaa
}

[data-theme="dark"] .footer {
    background: #121212;
    border-top-color: #333
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    min-height: 20px
}

.badge-pill {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-block
}

.badge-pill:nth-child(2n) {
    background: rgba(255, 71, 26, 0.1);
    color: var(--primary)
}

[data-theme="dark"] .footer-col h4 {
    color: #fff
}

.stock-bar-box {
    background: #fff8f0;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 14px 0
}

.stock-bar-text {
    font-size: 0.9rem;
    color: #92400e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px
}

.stock-count {
    font-weight: 800;
    color: #dc2626
}

.stock-bar-track {
    height: 8px;
    background: #fde68a;
    border-radius: 99px;
    overflow: hidden
}

.stock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: 99px;
    animation: pulseFill 2s ease-in-out infinite alternate
}

@keyframes pulseFill {
    from {
        opacity: 0.85
    }

    to {
        opacity: 1
    }
}

.trust-badges {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 10px 14px;
    flex: 1;
    min-width: 120px
}

.trust-badge strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2
}

.trust-badge span {
    font-size: 0.72rem;
    color: var(--gray-text)
}

.trust-icon {
    font-size: 1.4rem;
    flex-shrink: 0
}

.trust-icon.green {
    color: #10b981
}

.trust-icon.blue {
    color: #3b82f6
}

.trust-icon.gold {
    color: #f59e0b
}

.benefit-bullets {
    list-style: none;
    padding: 0;
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.benefit-bullets li {
    font-size: 0.9rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px
}

.benefit-bullets li i {
    color: #10b981;
    font-size: 1rem;
    flex-shrink: 0
}

.sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease
}

.sticky-buy-bar.active {
    transform: translateY(0)
}

@media (max-width:768px) {
    .sticky-buy-bar {
        display: flex
    }
}

.sticky-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.2s;
    animation: pulseGreen 2s ease-in-out infinite
}

@keyframes pulseGreen {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4)
    }

    50% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.7)
    }
}

.sticky-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6)
}

.social-proof-popup {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 9999;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 280px;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-110%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none
}

.social-proof-popup.visible {
    opacity: 1;
    transform: translateX(0)
}

.social-proof-popup strong {
    color: #111;
    display: block
}

.social-proof-popup small {
    color: #6b7280;
    font-size: 0.75rem
}

[data-theme="dark"] .stock-bar-box {
    background: #2d1e00;
    border-color: #78350f
}

[data-theme="dark"] .stock-bar-text {
    color: #fcd34d
}

[data-theme="dark"] .trust-badge {
    background: #252525;
    border-color: #444
}

[data-theme="dark"] .trust-badge strong {
    color: #fff
}

[data-theme="dark"] .sticky-buy-bar {
    background: #1e1e1e;
    border-top-color: #333
}

[data-theme="dark"] .social-proof-popup {
    background: #1e1e1e;
    border-color: #333
}

[data-theme="dark"] .social-proof-popup strong {
    color: #fff
}

[data-theme="dark"] .benefit-bullets li {
    color: #ddd
}