/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fix iOS Safari auto-linking color issues */
button,
i,
.btn {
    -webkit-text-fill-color: currentColor;
}

button {
    color: var(--text-color);
}

:root {
    --primary-color: #C71B1B;
    /* Kuno red */
    --text-color: #0E0D0D;
    --text-light: #D3D3D3;
    --bg-light: #f5f5f7;
    --border-color: #e5e5e5;
    --header-height: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-primary {
    color: var(--primary-color);
}

.section {
    padding: 60px 0;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.my-4 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 5px;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

/* Hidden utilities */
@media (max-width: 991px) {
    .hidden-mobile {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .hidden-pc {
        display: none !important;
    }
}

/* Top Bar */
.top-bar {
    background-color: #1a1a1a;
    color: #ccc;
    font-size: 13px;
    padding: 1px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a:hover {
    color: #fff;
}

.divider {
    margin: 0 10px;
    color: #555;
}

.language-selector {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.flag {
    width: 20px;
    height: auto;
}

/* Header */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #D3D3D3;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.main-nav {
    height: 100%;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    height: 100%;
}

.main-nav>ul>li {
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav>ul>li>a {
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    position: relative;
    padding: 28px 0;
    /* To take full height of header */
}

.main-nav>ul>li>a:hover {
    color: var(--primary-color);
}

.main-nav>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.main-nav>ul>li:hover>a {
    color: var(--primary-color);
}

.main-nav>ul>li:hover>a::after {
    width: 100%;
}

/* Mega Menu */
.has-dropdown {
    position: static;
    /* Để mega-menu bám theo header full width */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 10px 30px;
    /* Đã giảm xuống 10px theo yêu cầu */
}

.has-dropdown:hover .mega-menu {
    visibility: visible;
    opacity: 1;
}

.mega-menu-inner {
    display: flex;
    gap: 60px;
    padding-left: 0;
    /* Will be set dynamically by JS */
    max-width: 1400px;
    margin: 0 auto;
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-col a {
    text-transform: none;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
    padding: 10px 0;
    transition: color 0.2s ease;
}

.mega-col a:hover {
    color: #c01d2e;
    /* Đổi sang màu đỏ khi hover */
}

.mega-col a.text-primary {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.icon-btn,
.mobile-menu-btn,
.search-icon {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 80vh;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 20px;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.slider-arrow:hover {
    background: #fff;
    color: var(--primary-color);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

.dark-dots .dot {
    background: #ccc;
}

.dark-dots .dot.active {
    background: var(--primary-color);
}

/* Section Title */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header-flex .section-title {
    margin-bottom: 0;
}

.nav-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* News/Events Accordion */
.news-section .section-title {
    text-align: center;
}

.accordion-gallery {
    display: flex;
    gap: 15px;
    height: 400px;
    /* Adjust based on image aspect ratio */
    margin-top: 40px;
}

.accordion-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: flex 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-align: left;
}

.accordion-item.active {
    flex: 4;
    /* Takes up more space */
}

.accordion-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    margin: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.accordion-desc {
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.accordion-img-wrapper {
    flex: 1;
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.accordion-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.accordion-item.active .accordion-title {
    height: 24px;
    opacity: 1;
    margin-bottom: 12px;
}

.accordion-item.active .accordion-desc {
    height: 38px;
    opacity: 1;
    margin-top: 12px;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.accordion-item.active .play-btn {
    opacity: 1;
}

/* Highlight Product (K77 ULTRA) */
.highlight-product {
    background-color: var(--bg-light);
    text-align: center;
    overflow: hidden;
}

.highlight-inner {
    position: relative;
    padding-bottom: 40px;
}

.bg-text {
    font-size: 120px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

.highlight-image-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

.highlight-img {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
}

.slider-arrow.prev-light,
.slider-arrow.next-light {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e2e2;
    color: #333;
    z-index: 3;
}

.prev-light {
    left: 0;
}

.next-light {
    right: 0;
}

.slider-arrow.prev-light:hover,
.slider-arrow.next-light:hover {
    background: var(--primary-color);
    color: #fff;
}

.highlight-nav-divider {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 10px auto 40px;
    width: 100%;
}

.highlight-nav-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e5e5;
    z-index: 1;
}

.highlight-nav-divider .slider-arrow {
    position: relative;
    z-index: 2;
    background: #d9d9d9;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
}

.product-stats {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 0 30px;
}

.stat-item:first-child {
    padding-left: 0;
    align-items: flex-start;
}

.stat-item:nth-child(2),
.stat-item:nth-child(3) {
    align-items: center;
    text-align: center;
}

.stat-item:last-child {
    align-items: flex-end;
    text-align: right;
    padding-right: 0;
}

.stat-label {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 4px;
    font-weight: 400;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

.price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.price-old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.highlight-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.btn {
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: #a81524;
    color: #fff;
}

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

.btn-danger:hover {
    background-color: #a81524;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Collections Slider */
.collections-section {
    padding-bottom: 40px;
    overflow-x: hidden;
    background-color: #f5f5f5;
}

.collections-section .section-header-flex {
    margin-bottom: 15px;
}

.collections-section .section-title {
    text-transform: none;
    font-size: 28px;
}

.collections-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    margin-right: calc(-50vw + 50%);
    padding-right: calc(50vw - 50% + 15px);
}

.collections-section .arrow-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
    background: #e5e5e5;
    color: #555;
    margin-left: 5px;
}

.collections-section .arrow-btn:hover {
    background: #d0d0d0;
    color: #333;
}

.collections-slider::-webkit-scrollbar {
    display: none;
}

.collection-item {
    flex: 0 0 calc((100% - 34.5px) / 3.3);
    /* 3.3 items visible - shows ~30% of 4th image */
    scroll-snap-align: start;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    aspect-ratio: 3/4;
    /* Changed to portrait based on screenshot */
}

.collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.collection-content {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-content h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Products Slider */
.products-slider-wrapper {
    position: relative;
    margin: 0 auto;
}

.products-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.products-slider::-webkit-scrollbar {
    display: none;
}

.products-slider .product-card-link,
.products-slider>* {
    flex: 0 0 calc(25% - 15px);
    width: calc(25% - 15px);
    scroll-snap-align: start;
}

.products-slider .product-card {
    width: 100%;
}

@media (max-width: 991px) {
    .products-slider {
        gap: 15px;
    }

    .products-slider .product-card-link,
    .products-slider>* {
        flex: 0 0 calc(50% - 7.5px);
        width: calc(50% - 7.5px);
    }
}

.products-slider-wrapper .slider-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: #e5e5e5;
    color: #555;
    z-index: 2;
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 10px;
}

.products-slider-wrapper .slider-arrow:hover {
    background: #d0d0d0;
    color: #333;
}

.products-slider-wrapper .prev-light {
    left: -50px;
}

.products-slider-wrapper .next-light {
    right: -50px;
}

/* Dash Dots */
.dash-dots {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.dash-dots .dot {
    width: 20px;
    height: 2px;
    background: #d9d9d9;
    border-radius: 0;
    cursor: pointer;
    transition: 0.3s;
}

.dash-dots .dot.active {
    background: var(--primary-color);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 420 / 541;
    background-color: #f8f9fa;
    overflow: hidden;
    border-radius: 8px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

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

.badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.5px;
}

.badge-flash-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #c01d2e;
    color: #fff;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(192, 29, 46, 0.4);
}

.badge-flash-sale i {
    animation: lightning-flash 1s infinite alternate;
}

.product-info {
    padding: 15px 0 0 0;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.discount-tag {
    background: rgba(201, 24, 43, 0.1);
    color: var(--primary-color);
    font-size: 10px;
    padding: 2px;
    border-radius: 4px;
    font-weight: 600;
}

.old-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--text-color);
}

.rating i {
    color: #fadb14;
}

/* Wide Banner */
.wide-banner img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Bottom Banners Grid */
.bottom-banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.banner-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.banner-box img {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    display: block;
}

.banner-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer-top-band {
    background-color: var(--primary-color);
    color: #fff;
    padding: 19px 0;
    font-weight: 700;
    font-size: 32px;
    margin-top: 80px;
}

.footer-main {
    background-color: #111;
    color: #ccc;
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 5px;
}

.brand-name {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.brand-desc {
    font-size: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #737478;
    color: #fff;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 18px;
    transition: 0.3s;
    vertical-align: middle;
}

.social-links a:hover {
    background: var(--primary-color);
}

.social-links a.zalo-icon {
    background: transparent;
    border-radius: 0;
}

.social-links .zalo-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.trust-badges img {
    max-height: 60px;
    height: auto;
    margin-right: 10px;
    padding: 5px;
}

.footer-col h4,
.footer-col .footer-heading {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.footer-col ul a i {
    font-size: 12px;
    opacity: 0;
    transition: 0.3s;
    transform: translateX(-10px);
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-col ul a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.contact-info li {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #fff;
    line-height: 1.6;
}

.contact-info i {
    font-size: 18px;
    color: #fff;
    margin-top: 2px;
}

.footer-bottom {
    background: #0a0a0a;
    color: #777;
    padding: 20px 0;
    font-size: 13px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #f5f5f7;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-logo-lang {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-selector-mobile {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.close-menu-btn {
    background: #e0e0e0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

.mobile-search {
    position: relative;
    margin-bottom: 20px;
}

.mobile-search input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.mobile-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav-box {
    background: #fff;
    border-radius: 12px;
    padding: 5px 0;
    margin-bottom: 30px;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 15px;
    color: #111;
}

.mobile-nav-list a i {
    color: #888;
}

.mobile-submenu {
    display: none;
    padding: 0 20px 10px 40px;
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu li {
    border-bottom: none;
}

.mobile-submenu a {
    padding: 10px 0;
    font-size: 13px;
    font-weight: 400;
    color: #777;
}

.news-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.news-slider-dots .dot {
    width: 30px;
    height: 3px;
    background: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.news-slider-dots .dot.active {
    background: var(--primary-color);
}

.mobile-footer-links {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-hotline {
    font-size: 14px;
}

.mobile-footer-links a {
    color: #777;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .accordion-gallery {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        height: auto;
        padding-bottom: 10px;
    }

    .accordion-gallery::-webkit-scrollbar {
        display: none;
    }

    .accordion-item {
        flex: 0 0 100%;
        scroll-snap-align: center;
        border-radius: 8px;
    }

    .accordion-item.active {
        flex: 0 0 100%;
    }

    .accordion-title,
    .accordion-desc,
    .accordion-item.active .accordion-title,
    .accordion-item.active .accordion-desc {
        height: auto;
        opacity: 1;
        margin: 10px 0;
    }

    .accordion-item .play-btn {
        opacity: 1;
    }

    .accordion-img-wrapper,
    .accordion-item.active .accordion-img-wrapper {
        flex: none;
        height: 250px;
        /* Fixed height on mobile */
        margin: 0;
    }

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

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

    .collections-slider {
        gap: 10px;
    }

    .collection-item {
        flex: 0 0 calc(50% - 5px);
        /* 2 items on mobile */
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-info {
        padding: 10px 0;
    }

    .price {
        font-size: 14px;
    }

    .old-price {
        font-size: 11px;
    }

    .product-name {
        font-size: 13px;
        height: 38px;
    }

    .bottom-banners-grid {
        grid-template-columns: 1fr;
    }

    .highlight-img {
        max-width: 100%;
    }

    .product-stats {
        gap: 20px;
    }

    .bg-text {
        font-size: 70px;
    }

    .slider-dots {
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .product-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px 15px;
        width: 100%;
        padding: 0 15px;
    }

    .stat-item,
    .stat-item:first-child,
    .stat-item:nth-child(2),
    .stat-item:nth-child(3),
    .stat-item:last-child {
        align-items: center;
        text-align: center;
    }

    .highlight-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }

    .highlight-actions .btn {
        width: 100%;
        padding: 12px 0;
    }

    .collections-slider {
        gap: 10px;
    }

    .collection-item {
        flex: 0 0 80%;
        /* 1 item on very small screens, maybe 80% to show next one */
    }

    .blog-section.mt-4.mb-5 {
        margin-top: 30px;
    }

    h2.blog-section-title.text-center.mb-4 {
        margin-bottom: 20px;
    }
}

/* =========================================
   PRODUCT DETAIL PAGE (PDP) STYLES
   ========================================= */
.pdp-container {
    padding: 0 15px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin: 20px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.breadcrumb * {
    vertical-align: middle;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #999;
}

/* Main Layout Row */
.pdp-main-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #fff;
    padding: 0px;
}

.pdp-gallery {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 15px;
}

.pdp-info {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

/* Gallery */
.pdp-main-image-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    aspect-ratio: 420 / 541;
    background: #f1f1f1;
    border-radius: 8px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pdp-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-main-image-wrapper .slider-arrow,
.pdp-thumbnails-wrapper .slider-arrow {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.pdp-main-image-wrapper:hover .slider-arrow,
.pdp-thumbnails-wrapper:hover .slider-arrow {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {

    .pdp-main-image-wrapper .slider-arrow,
    .pdp-main-image-wrapper:hover .slider-arrow,
    .pdp-thumbnails-wrapper .slider-arrow {
        display: none !important;
    }
}

.pdp-thumbnails-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 80px;
    flex-shrink: 0;
}

.pdp-thumbnails-wrapper .slider-arrow {
    position: static;
    transform: rotate(90deg);
    margin: 5px 0;
}

.pdp-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    flex: 1;
    max-height: 541px;
}

.pdp-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumb-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border 0.2s;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active {
    border-color: var(--primary-color);
}

/* Info */
.pdp-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #222;
}

.pdp-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #0E0D0D;
    margin-bottom: 10px;
}

.pdp-rating i {
    color: #FFB800;
    font-weight: 600;
}

.pdp-sold {
    color: #888;
}

.pdp-sku {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pdp-sku i {
    cursor: pointer;
}

.pdp-share-icon {
    margin-left: auto;
    font-size: 18px;
    cursor: pointer;
}

/* Pricing */
.pdp-price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding: 0;
}

.pdp-price-current {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.pdp-price-old {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

/* Variants */
.pdp-variant-group {
    margin-bottom: 20px;
}

.pdp-variant-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
    color: #737478;
}

.pdp-variant-group label strong {
    font-weight: 500;
    color: #0E0D0D;
}

.pdp-color-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    border: 2px solid #eee;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.color-swatch.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--primary-color);
}

.pdp-tension-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tension-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    -webkit-text-fill-color: #333;
    transition: all 0.2s;
}

.tension-btn:hover {
    border-color: #999;
}

.tension-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: var(--primary-color);
}

/* Quantity */
.pdp-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    width: max-content;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.qty-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Action Buttons */
.pdp-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.pdp-actions .btn {
    border-radius: 8px;
}

.pdp-btn-cart,
.pdp-btn-buy {
    flex: 1;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pdp-actions.out-of-stock .pdp-btn-cart {
    display: none !important;
}

.pdp-actions.out-of-stock .pdp-btn-buy {
    flex: 0 0 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
    background: #ccc !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.pdp-btn-cart {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: #fff;
}

.pdp-btn-cart:hover {
    background: #fdf5f6;
}

/* Features List */
.pdp-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 10px;
}

.pdp-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #444;
}

.pdp-features-list i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Content Sections (Specs, Desc, Reviews) */
.pdp-content-row {
    margin-top: 30px;
    background: transparent;
}

.pdp-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pdp-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
}

.related-prdtitle {
    text-align: left;
    color: #0E0D0D;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.spec-row {
    display: flex;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

.spec-label {
    width: 40%;
    color: #666;
    font-size: 14px;
}

.spec-value {
    width: 60%;
    font-weight: 600;
    font-size: 14px;
    color: #222;
}

/* Description */
.pdp-description {
    position: relative;
}

.pdp-desc-content {
    max-height: 250px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.pdp-desc-content p {
    margin-bottom: 15px;
}

.pdp-desc-content img {
    max-width: 100% !important;
    height: auto !important;
}

.pdp-desc-content table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

.pdp-desc-content table td,
.pdp-desc-content table th {
    word-wrap: break-word;
}

.pdp-desc-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.pdp-desc-content li {
    margin-bottom: 8px;
}

.pdp-desc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.pdp-btn-expand {
    display: block;
    margin: 20px auto 0;
    padding: 8px 30px;
    border-radius: 20px;
}

.pdp-desc-content.expanded {
    max-height: none;
}

.pdp-desc-content.expanded+.pdp-desc-overlay {
    display: none;
}

/* Reviews */
.pdp-reviews-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #fdf5f6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    align-items: center;
}

.review-score-box {
    text-align: center;
    padding-right: 30px;
    border-right: 1px solid #ddd;
}

.review-score-box .score {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.review-score-box .score span {
    font-size: 18px;
}

.review-score-box .stars {
    color: #ffb800;
    margin: 5px 0;
    font-size: 18px;
}

.review-score-box .count {
    font-size: 13px;
    color: #666;
}

.review-filters {
    flex: 1;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.filter-tag {
    padding: 6px 15px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    -webkit-text-fill-color: #333;
}

.filter-tag i {
    color: #ffb800;
}

.review-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
    .review-form-fields {
        grid-template-columns: 1fr;
    }
}

.filter-tag:hover {
    border-color: var(--primary-color);
}

.filter-tag.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
    background: #fff;
    font-weight: 600;
}

.review-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review-avatar {
    width: 45px;
    height: 45px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
}

.review-content {
    flex: 1;
}

.review-author-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.author-name {
    font-weight: 600;
    font-size: 15px;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-stars {
    color: #ffb800;
    font-size: 12px;
    margin-bottom: 10px;
}

.review-variants {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.review-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.review-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.review-images img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* Pagination */
.pdp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
}

.page-num,
.page-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.page-num:hover,
.page-arrow:hover {
    color: var(--primary-color);
}

.page-num.active {
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .pdp-main-row {
        flex-direction: column;
        padding: 15px;
    }

    .pdp-gallery {
        flex: 1 1 100%;
        max-width: 100%;
        flex-direction: column;
    }

    .pdp-info {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .pdp-thumbnails-wrapper {
        flex-direction: row;
        width: 100%;
    }

    .pdp-thumbnails-wrapper .slider-arrow {
        position: absolute;
        transform: translateY(-50%);
        margin: 0;
    }

    .pdp-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

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

    .pdp-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 999;
        flex-direction: row;
        margin-top: 0;
        margin-bottom: 0;
        border-top: 1px solid #eee;
    }

    .pdp-actions .btn {
        flex: 1;
        font-size: 13px;
        padding: 10px 5px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .review-score-box {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 15px;
        width: 100%;
    }
}

/* Lightbox Modal */
.pdp-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.pdp-lightbox.active {
    display: flex;
}

.pdp-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

.pdp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.pdp-lightbox-close:hover {
    color: #ccc;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8)
    }

    to {
        transform: scale(1)
    }
}

.pdp-main-image {
    cursor: zoom-in;
}

.pdp-lightbox-prev {
    left: 30px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
}

.pdp-lightbox-next {
    right: 30px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
}

.pdp-lightbox-prev:hover,
.pdp-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.review-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #c01d2e;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

/* Cart Popup Modal */
.cart-modal-popup {
    display: none;
    /* hidden by default */
    position: absolute;
    top: calc(100% + 15px);
    right: -10px;
    width: 320px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 16px;
    border: 1px solid #eee;
}

.cart-modal-popup.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.cart-modal-arrow {
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
}

.cart-modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}

.cart-modal-body {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.cart-modal-body img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.cart-modal-info {
    flex: 1;
}

.cart-modal-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.cart-modal-variant {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.cart-modal-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-modal-price-row .new-price {
    color: #c01d2e;
    font-weight: 700;
    font-size: 14px;
}

.cart-modal-price-row .old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
}

.cart-modal-price-row .qty-text {
    margin-left: auto;
    font-size: 13px;
    color: #666;
}

.cart-modal-footer .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* ==========================================
   13. CART PAGE STYLES
   ========================================== */
.cart-page-wrapper {
    padding: 60px 0 100px;
    background-color: #fff;
    min-height: 60vh;
}

.cart-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #333;
    position: relative;
    z-index: 2;
}

.progress-step.active {
    color: #c01d2e;
}

.step-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.step-text {
    font-size: 16px;
    font-weight: 700;
}

.progress-line {
    flex: 1;
    height: 0;
    border-top: 1px dashed #ccc;
    margin: 0 15px;
    position: relative;
    top: -12px;
}

.empty-cart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.empty-cart-icon {
    font-size: 150px;
    color: #c01d2e;
    line-height: 1;
    margin-bottom: 30px;
}

.empty-cart-message {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    line-height: 1.5;
    margin-bottom: 30px;
}

.empty-cart-btn {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .cart-page-wrapper {
        padding: 40px 0 80px;
    }

    .cart-progress {
        margin-bottom: 40px;
    }

    .step-text {
        font-size: 13px;
    }

    .progress-line {
        margin: 0 5px;
    }

    .empty-cart-icon {
        font-size: 120px;
    }

    .empty-cart-message {
        font-size: 16px;
    }
}

/* ==========================================
   14. FILLED CART STYLES
   ========================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-header-title {
    margin-bottom: 20px;
}

.cart-header-title h2 {
    font-size: 28px;
    margin-bottom: 4px;
}

.cart-header-title p {
    color: #666;
    font-size: 15px;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    padding: 15px 20px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #333;
    align-items: center;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    padding: 20px;
    border: 1px solid #eee;
    border-top: none;
    align-items: center;
    background: #fff;
    transition: all 0.3s ease;
}

.cart-item-row:last-child {
    border-radius: 0 0 8px 8px;
}

/* Custom Checkbox */
.custom-checkbox {
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    margin-right: 12px;
}

.custom-checkbox input:checked~.checkmark {
    background-color: #fff;
    border-color: #c01d2e;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #c01d2e;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

/* Custom Radio */
.custom-radio {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.custom-radio:last-child {
    margin-bottom: 0;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    margin-right: 12px;
}

.custom-radio input:checked~.radio-mark {
    border-color: #c01d2e;
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 3px;
    left: 3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c01d2e;
}

.custom-radio input:checked~.radio-mark:after {
    display: block;
}

.col-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.cart-item-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-variant {
    display: inline-block;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.col-price {
    font-size: 15px;
}

.col-price .old {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    display: block;
}

.col-price .new {
    color: #666;
    font-weight: 500;
}

.col-total {
    color: #c01d2e;
    font-weight: 700;
    font-size: 16px;
}

/* Qty Control */
.cart-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    height: 36px;
}

.cart-qty-control button {
    background: none;
    border: none;
    width: 30px;
    height: 100%;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-control input {
    width: 30px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: transparent;
}

.cart-qty-control input:focus {
    outline: none;
}

.col-action {
    text-align: right;
}

.btn-delete-item,
.btn-delete-all {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-delete-item:hover,
.btn-delete-all:hover {
    color: #c01d2e;
}

.btn-text-delete {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

/* Sidebar */
.sidebar-box {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.voucher-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
    height: 44px;
}

.voucher-icon {
    color: #c01d2e;
    font-size: 20px;
    margin-right: 8px;
}

.voucher-input-group input {
    border: none;
    flex: 1;
    font-size: 14px;
    background: transparent;
}

.voucher-input-group input:focus {
    outline: none;
}

.btn-text-red {
    background: none;
    border: none;
    color: #c01d2e;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.summary-row.total-row {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    align-items: center;
    margin-bottom: 20px;
}

.summary-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.final-price {
    color: #c01d2e;
    font-size: 20px;
    font-weight: 700;
}

.btn-checkout {
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
}

/* About Us */

.about-hero-title {
    font-size: 32px;
}

.about-hero {
    padding: 270px 20px 110px 20px;
}

.intro-title {
    font-size: 40px;
}

/* Mobile Reponsive Cart */
@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-table-header {
        display: none;
    }

    .cart-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: #fdfdfd;
        border: 1px solid #eee;
        border-radius: 8px 8px 0 0;
    }

    .cart-item-row {
        flex: 0 0 100%;
        scroll-snap-align: start;
        border: none;
        margin-bottom: 0;
        padding: 12px;
        /* Reduced padding */
        display: grid;
        grid-template-columns: auto 60px 1fr auto;
        /* Reduced image column */
        grid-template-rows: auto auto auto;
        gap: 6px 8px;
        /* Reduced gap */
        align-items: center;
    }

    .cart-item-row .col-product {
        display: contents;
        /* Unbox for grid placement */
    }

    .item-checkbox-label {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
        transform: scale(0.9);
        /* Slightly smaller checkbox */
        margin-right: 0;
        /* Let grid gap handle spacing */
    }

    .item-checkbox-label .checkmark {
        margin-right: 0;
        /* Remove right margin inside grid */
    }

    .cart-item-img {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
        width: 60px;
        /* Smaller image */
        height: 60px;
    }

    .cart-item-info {
        grid-column: 3 / span 2;
        grid-row: 1;
        align-self: start;
    }

    .cart-item-info h4 {
        font-size: 13px;
        /* Smaller font on mobile */
        line-height: 1.4;
        margin-bottom: 4px;
        font-weight: 500;
    }

    .cart-item-row .col-price {
        grid-column: 3;
        grid-row: 2;
        display: flex;
        gap: 4px;
        padding-left: 0;
        margin-top: 0;
        align-items: baseline;
        flex-wrap: wrap;
        /* Prevent overflow */
    }

    .cart-item-row .col-price .old {
        font-size: 12px;
    }

    .cart-item-row .col-price .new {
        font-size: 14px;
        color: #c01d2e;
        /* Red color for new price matching design */
        font-weight: 600;
    }

    .cart-item-row .col-qty {
        grid-column: 4;
        grid-row: 2;
        padding-left: 0;
    }

    .cart-qty-control {
        height: 28px;
        /* Smaller qty control */
    }

    .cart-qty-control button {
        width: 24px;
        font-size: 14px;
    }

    .cart-qty-control input {
        width: 24px;
        font-size: 13px;
    }

    .cart-item-row .col-total {
        display: none;
    }

    /* hide total per item on mobile */

    /* Swipe to delete using CSS Scroll Snap */
    .cart-item-swipe-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE */
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 15px;
        background: #fff;
    }

    .cart-item-swipe-container::-webkit-scrollbar {
        display: none;
    }

    .mobile-swipe-action {
        flex: 0 0 80px;
        scroll-snap-align: end;
        display: flex;
    }

    .btn-delete-item-mobile {
        width: 100%;
        background: #c01d2e;
        color: white;
        border: none;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0 8px 8px 0;
        cursor: pointer;
    }

    .pc-action {
        display: none;
    }

    .header-mobile-left {
        display: flex;
        gap: 15px;
        align-items: center;
        flex: 1;
    }

    .header-inner .logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .header-inner .header-actions {
        flex: 1;
        justify-content: flex-end;
    }

    .collections-section .section-header-flex {
        padding-top: 20px;
    }

    .accordion-gallery {
        margin-top: 15px;
    }

    .accordion-title {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
        padding-top: 30px;
        margin-bottom: 0;
    }

    .footer-top-band {
        font-size: 14px;
        margin-top: 30px;
    }

    .home-banner-footer {
        padding: 0;
    }

    .wide-banner.mt-5 {
        margin-top: 5px;
    }

    .banner-title {
        font-size: 16px;
    }

    .section {
        padding: 5px 0;
    }

    .news-section {
        margin-bottom: 30px;
    }
}

/* Variant Editor Modal (Unified) */
.ve-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.ve-modal {
    position: absolute;
    /* Default to popover on PC */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    width: 320px;
    padding: 15px;
}

/* Mũi tên cho Popover PC */
.ve-modal::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    /* Sẽ tính toán bằng JS nếu cần */
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.ve-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ve-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

.ve-group {
    margin-bottom: 20px;
}

.ve-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ve-group-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.ve-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ve-opt-label {
    cursor: pointer;
    margin: 0;
}

.ve-opt-label input[type="radio"] {
    display: none;
}

/* PC Styles for Options */
.ve-opt-label .ve-pill-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    background: #fff;
    transition: all 0.2s;
}

.ve-opt-label input[type="radio"]:checked~.ve-pill-box {
    border-color: #c01d2e;
    color: #c01d2e;
}

.ve-color-circle {
    display: none;
}

.ve-tension-tick {
    display: none;
}

/* Action buttons */
.ve-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .ve-modal {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto !important;
        width: 100%;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .ve-modal.active {
        transform: translateY(0);
    }

    .ve-modal::before {
        display: none;
    }

    /* No arrow on mobile */

    /* Mobile Colors: Circles in a grid */
    .ve-colors-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px 10px;
    }

    .ve-colors-list .ve-opt-label {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .ve-colors-list .ve-pill-box {
        display: none;
        /* Hide PC pills */
    }

    .ve-color-circle {
        display: block;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 1px solid #ddd;
        position: relative;
    }

    .ve-colors-list input[type="radio"]:checked~.ve-color-circle {
        border-color: #c01d2e;
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px #c01d2e;
    }

    .ve-colors-list .ve-color-text {
        font-size: 12px;
        color: #333;
        text-align: center;
    }

    /* Mobile Tensions: Vertical List */
    .ve-tensions-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .ve-tensions-list .ve-opt-label {
        display: flex;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .ve-tensions-list .ve-pill-box {
        display: none;
    }

    .ve-tension-tick {
        display: flex;
        width: 22px;
        height: 22px;
        border-radius: 4px;
        border: 1px solid #ddd;
        align-items: center;
        justify-content: center;
    }

    .ve-tensions-list input[type="radio"]:checked~.ve-tension-tick {
        background: #c01d2e;
        border-color: #c01d2e;
    }

    .ve-tension-tick::after {
        content: '';
        display: block;
        width: 6px;
        height: 11px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        opacity: 0;
        margin-bottom: 3px;
    }

    .ve-tensions-list input[type="radio"]:checked~.ve-tension-tick::after {
        opacity: 1;
    }

    /* Move text to left, tick to right */
    .ve-tensions-list .ve-opt-label {
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .ve-tensions-list .ve-tension-text {
        font-size: 14px;
    }
}

.cart-item-variant {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 13px;
}

.cart-item-variant:hover {
    background: #e0e0e0;
}

/* ==========================================
   CHECKOUT PAGE STYLES
   ========================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.checkout-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.checkout-box-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-control {
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
}

textarea.form-control {
    height: auto;
    padding: 12px 15px;
}

.form-control:focus {
    border-color: #c01d2e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 29, 46, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.form-group.span-half {
    grid-column: span 3;
}

.form-group.span-third {
    grid-column: span 2;
}

.form-group.span-full {
    grid-column: span 6;
}

/* Payment Methods */
.payment-methods-list {
    display: flex;
    flex-direction: column;
}

.payment-method-item {
    padding: 10px 0;
    transition: all 0.2s;
}

.payment-method-item input[type="radio"] {
    display: none;
}

.pm-radio {
    display: inline-block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #c01d2e;
    position: relative;
    margin-right: 10px;
    box-sizing: border-box;
}

.payment-method-item input:checked~.pm-radio {
    border-color: #c01d2e;
}

.payment-method-item input:checked~.pm-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #c01d2e;
    border-radius: 50%;
}

@media (max-width: 991px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkout-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group.span-half,
    .form-group.span-third,
    .form-group.span-full {
        grid-column: span 1;
    }

    .chk-item-row {
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        gap: 8px !important;
    }

    .chk-item-row .chk-col-product {
        grid-column: 1 / -1;
    }

    .chk-item-row .chk-col-price,
    .chk-item-row .chk-col-qty,
    .chk-item-row .chk-col-total {
        grid-row: 2;
        text-align: left !important;
    }

    .chk-item-row .chk-col-price {
        grid-column: 1;
        display: flex;
        gap: 8px;
        align-items: baseline;
    }

    .chk-item-row .chk-col-qty {
        grid-column: 2;
        text-align: right !important;
    }

    .chk-item-row .chk-col-total {
        display: none;
    }
	.collections-section .section-title, .collection-hero-title, .kuno-explore-title {
		font-size: 20px !important;
	}
	.kuno-explore-text h3 {
		font-size: 16px !important;
	}
}

/* Select2 Custom Styles to match .form-control and design */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 15px center !important;
    background-size: 16px !important;
    transition: border-color 0.2s;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    padding-left: 15px !important;
    padding-right: 40px !important;
    /* space for arrow */
    font-size: 14px !important;
    color: #444 !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
    /* Hide default Select2 arrow */
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #c01d2e !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(192, 29, 46, 0.1) !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #f8f9fa !important;
    /* Soft highlight instead of solid red */
    color: #c01d2e !important;
    /* Red text on hover */
}

/* Dropdown and Search styles */
.select2-dropdown {
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-top: none !important;
    /* blend if connected */
}

.select2-search--dropdown {
    padding: 12px 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.select2-search__field {
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    font-size: 14px !important;
}

.select2-search__field::placeholder {
    color: #999;
}

.select2-results__option {
    padding: 12px 15px !important;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.select2-results__option:last-child {
    border-bottom: none;
}

/* Category Layout */
.category-title {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.category-layout {
    display: flex;
    gap: 30px;
}

.category-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.category-main {
    flex: 1;
    min-width: 0;
}

.category-description-block {
    border: 1px solid var(--text-light);
    border-radius: 8px;
    padding: 20px;
}

/* Sidebar & Filters */
.filter-group {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.filter-group-title {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.collapse:not(.show) {
    display: none;
}

.collapse.show {
    display: block;
}

.filter-options {
    max-height: 250px;
    overflow-y: auto;
}

.custom-checkbox,
.custom-radio {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    color: #333;
    margin: 10px 0;
}

.custom-checkbox input,
.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-mark,
.radio-mark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.checkbox-mark {
    border-radius: 4px;
}

.radio-mark {
    border-radius: 50%;
}

.custom-checkbox input:checked~.checkbox-mark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-mark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkbox-mark:after {
    display: block;
}

.custom-radio input:checked~.radio-mark {
    border-color: var(--primary-color);
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.custom-radio input:checked~.radio-mark:after {
    display: block;
}

/* Category Toolbar */
.category-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 20px;
}

.toolbar-right {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
}

.active-filters-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.active-filters-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 12px;
    color: #333;
}

.filter-chip .btn-remove-chip {
    cursor: pointer;
    font-size: 14px;
    color: #999;
}

.filter-chip .btn-remove-chip:hover {
    color: var(--primary-color);
}

.btn-clear-filters {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-clear-filters:hover {
    color: var(--primary-color);
}

.sort-dropdown .custom-select {
    border-radius: 20px;
    padding: 6px 30px 6px 15px;
    font-size: 14px;
    min-width: 150px;
}

/* Category Product Grid */
.category-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.btn-load-more {
    padding: 10px 55px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 30px;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: 100%;
        height: 100dvh;
        background: #fafafa;
        z-index: 1050;
        transition: 0.3s ease;
        padding: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .category-sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
        opacity: 0;
        transition: 0.3s ease;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .sidebar-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
    }

    .close-sidebar-btn {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
    }

    .toolbar-left {
        display: none;
    }

    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .btn-mobile-filter {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border-radius: 20px;
        padding: 6px 12px;
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 13px;
    }

    .sort-dropdown .custom-select {
        min-width: 120px;
        padding: 6px 25px 6px 10px;
    }
}

/* Search Modal Popup */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    padding-top: 50px;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.search-modal-content {
    background: #fff;
    width: 90%;
    max-width: 1100px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.search-modal-overlay.active .search-modal-content {
    transform: translateY(0);
}

.search-modal-close {
    position: absolute;
    top: 25px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.search-modal-input-container {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 30px;
    padding: 12px 20px;
    margin-bottom: 25px;
    margin-right: 40px;
}

.search-modal-input-container i {
    font-size: 20px;
    color: #666;
    margin-right: 10px;
}

.search-modal-input-container input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 16px;
    outline: none;
}

.search-trending-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.search-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.search-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    padding: 5px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.search-product-item:hover {
    background: #f9f9f9;
}

.search-product-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.search-product-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .search-product-grid {
        grid-template-columns: 1fr;
    }

    .search-modal-content {
        width: 95%;
        padding: 20px;
    }

    .search-modal-input-container {
        margin-right: 25px;
    }

    .search-modal-close {
        top: 15px;
        right: 15px;
    }
}

.search-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-product-price {
    font-size: 13px;
    font-weight: 600;
    color: #e50000;
    margin-top: 5px;
}

.search-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.search-pagination {
    display: flex;
    gap: 8px;
}

.search-pagination .page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.search-pagination .page-item:hover:not(.disabled) {
    background: #e0e0e0;
}

.search-pagination .page-item.active {
    background: #000;
    color: #fff;
}

.search-pagination .page-item.disabled {
    color: #aaa;
    cursor: not-allowed;
}

.btn-view-all {
    background: #000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s ease;
}

.btn-view-all:hover {
    background: #333;
}

.search-no-results {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 15px;
}

/* User Dropdown */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.user-dropdown-wrapper:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.user-dropdown-menu a:hover {
    background: #f5f5f5;
    color: #c01d2e;
}

/* Login Modal */
.login-modal-content {
    max-width: 400px;
}

/* Category Description Toggle */
.category-description-content {
    max-height: 250px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.category-description-content.expanded {
    max-height: 3000px;
    /* arbitrary large value for smooth transition */
}

.category-description-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.category-description-content.expanded .category-description-fade {
    opacity: 0;
}

.btn-toggle-description {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 15px;
}

.btn-toggle-description:hover {
    color: #a01524;
}

/* Floating Action Buttons */
.floating-action-buttons {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.fab-btn {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(192, 29, 46, 0.3);
    transition: transform 0.3s, background 0.3s;
}

.fab-btn:hover {
    background: #a01524;
    transform: translateY(-3px);
}

.fab-scroll-top {
    display: none;
    /* Hidden by default, shown via JS when scrolling */
}

/* Customer Service Popup */
.customer-service-popup {
    position: fixed;
    right: 80px;
    bottom: 30px;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}

.customer-service-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.cs-popup-header {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-popup-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.cs-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.cs-popup-close:hover {
    opacity: 1;
}

.cs-popup-body {
    padding: 20px;
}

.cs-popup-body p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

#csPopupForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#csPopupForm input,
#csPopupForm textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.3s;
}

#csPopupForm input:focus,
#csPopupForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#csPopupForm textarea {
    resize: vertical;
}

#csPopupForm button {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .floating-action-buttons {
        bottom: 80px;
        /* Above mobile bottom nav */
    }

    .customer-service-popup {
        right: 20px;
        bottom: 140px;
        width: calc(100% - 40px);
        max-width: 350px;
    }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flash Sale Menu */
.flash-icon {
    color: #ffb800;
    /* Yellow lightning */
    margin-left: 6px;
    font-size: 1.1em;
    animation: lightning-flash 1s infinite alternate;
}

@keyframes lightning-flash {
    0% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 184, 0, 0.5);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.1);
        text-shadow: 0 0 10px rgba(255, 184, 0, 0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 184, 0, 0.5);
    }
}

/* --- PROFILE PAGE STYLES --- */
.profile-page-wrapper {
    background-color: #f6f6f6;
    min-height: calc(100vh - 200px);
}

@media (min-width: 768px) {
    .profile-page-wrapper {
        padding-top: 50px;
    }
}

.profile-container .d-flex {
    display: flex !important;
}

.profile-container .justify-content-between {
    justify-content: space-between !important;
}

.profile-container .align-items-center {
    align-items: center !important;
}

.profile-container .text-center {
    text-align: center !important;
}

.profile-container .text-right {
    text-align: right !important;
}

.profile-container .mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.profile-container .mb-3 {
    margin-bottom: 16px !important;
}

.profile-container .mb-4 {
    margin-bottom: 24px !important;
}

.profile-container .mr-3 {
    margin-right: 16px !important;
}

.profile-container .mt-3 {
    margin-top: 16px !important;
}

.profile-container .mt-4 {
    margin-top: 24px !important;
}

.profile-container .pt-2 {
    padding-top: 8px !important;
}

.profile-container .pb-3 {
    padding-bottom: 16px !important;
}

.profile-container .px-3 {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.profile-container .py-2 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.profile-container .px-4 {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.profile-container .gap-2 {
    gap: 8px !important;
}

.profile-container .pl-md-4 {
    padding-left: 24px !important;
}

.profile-container .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.profile-container .col-md-3,
.profile-container .col-md-4,
.profile-container .col-md-6,
.profile-container .col-md-8,
.profile-container .col-md-9,
.profile-container .col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .profile-container .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .profile-container .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .profile-container .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .profile-container .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .profile-container .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .profile-container .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.profile-container {
    background: transparent;
}

.profile-sidebar {
    background: transparent;
}

.pc-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.pc-avatar {
    width: 50px;
    height: 50px;
    background: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.pc-greeting {
    font-size: 13px;
    color: #666;
}

.pc-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.pc-tier {
    font-size: 12px;
    color: #c01d2e;
    font-weight: 600;
}

.profile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.profile-nav li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.profile-nav li:last-child a {
    border-bottom: none;
}

.profile-nav li a i {
    margin-right: 12px;
    font-size: 20px;
}

.profile-nav li a.active {
    background: #c01d2e;
    color: #fff;
}

.profile-nav li a:hover:not(.active) {
    background: #fafafa;
}

.profile-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    min-height: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.info-row {
    padding: 10px 0;
}

.info-text {
    line-height: 1.4;
}

.border-right-pc {
    border-right: 1px solid #eee;
}

/* Mobile Header */
.mobile-profile-header {
    background: #c01d2e;
    color: #fff;
    padding: 20px 20px 80px 20px;
    position: relative;
}

.m-header-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.m-back-btn {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
}

.m-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.m-avatar {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
}

.m-name {
    font-size: 18px;
    font-weight: 700;
}

.m-tier {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.m-orders-status {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    position: absolute;
    bottom: -60px;
    left: 20px;
    right: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.m-orders-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
    font-size: 15px;
}

.m-view-all {
    color: #c01d2e;
    font-size: 13px;
    text-decoration: none;
}

.m-status-icons {
    display: flex;
    justify-content: space-between;
}

.m-status-item {
    text-align: center;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    width: 25%;
}

.m-icon-box {
    font-size: 24px;
    margin-bottom: 8px;
    color: #333;
    position: relative;
    display: inline-block;
}

.m-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #c01d2e;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid #fff;
}

@media (max-width: 768px) {
    .profile-container {
        padding-top: 80px !important;
    }

    .profile-content {
        padding: 20px;
        background: transparent;
        box-shadow: none;
    }

    .border-right-pc {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .profile-nav li a {
        background: #fff;
        border-radius: 8px;
        margin-bottom: 10px;
        border: none;
    }

    .profile-nav li a.active {
        background: #fff;
        color: #c01d2e;
    }
}