@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Dancing+Script:wght@600;700&display=swap');

:root {
    --primary: #03B0B1;
    --primary-light: #009b9c;
    --secondary: #eefbfc;
    --accent: #03B0B1;
    --bg: #ffffff;
    --text-dark: #333;
    --text-muted: #5d6b75;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(3, 176, 177, 0.2);
    --shadow-soft: 0 8px 30px rgba(3, 176, 177, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif, Arial;
}

body {
    background-color: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.shop-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(131, 24, 67, 0.2);
}

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

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

/* Header Refinement - Removed to use style.css */

/* Category Hero */
.category-hero {
    padding: 60px 0;
    background: linear-gradient(180deg, #eefbfc 0%, #dff2f0 100%);
    text-align: center;
}

.category-hero h1 {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

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

/* Circle Navigation Menu */
/* Circle Story Navigation Menu Design */
.concern-menu-wrap {
    padding: 30px 0;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-tagline {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.concern-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.concern-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 120px;
}

.concern-img-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50% !important;
    border: 2px solid #e2e8f0;
    padding: 4px;
    background: #ffffff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.concern-img-wrap img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    transition: all 0.3s ease;
}

.concern-item span {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-align: center;
    line-height: 1.35;
    transition: all 0.3s ease;
}

/* Hover Interaction: circle zoom & teal ring */
.concern-item:hover {
    transform: translateY(-4px);
}

.concern-item:hover .concern-img-wrap {
    border-color: var(--primary);
}

.concern-item:hover .concern-img-wrap img {
    transform: scale(1.08);
}

.concern-item:hover span {
    color: var(--primary);
}

/* Active State: bold teal & outer glowing circle ring */
.concern-item.active .concern-img-wrap {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 176, 177, 0.15);
}

.concern-item.active span {
    color: var(--primary);
    font-weight: 800;
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-right span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.sort-dropdown select {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    outline: none;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 0px 0px 60px 0px;
}

/* Sidebar Filters */
.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 2px solid rgba(3, 176, 177, 0.1);
    padding-bottom: 10px;
    text-transform: uppercase;
}

.filter-list li {
    margin-bottom: 12px;
}

.filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}

.filter-link:hover,
.filter-link.active {
    color: var(--primary);
    padding-left: 4px;
}

.count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Checkbox Style */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-item input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

/* Product Grid */
.grid-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Card - Premium Glass */
.product-card {
    position: relative;
    padding: 16px;
    transition: var(--transition);
}

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

.product-image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 1/1;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--primary);
    color: white;
}

.badge-sale {
    background: #ee2d24;
    color: white;
}

.quick-add {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: transparent;
    padding: 15px;
    display: flex;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    z-index: 5;
}

.quick-add .btn {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.product-card:hover .quick-add {
    bottom: 12px;
    opacity: 1;
}

.product-info {
    margin: 0px;
    padding-top: 5px;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 8px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.new-price {
    font-weight: 800;
    font-size: 20px;
    color: #ee4d2d;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.page-btn.active,
.page-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Footer - Removed to use style.css */

.category-mobile-add-btn {
    display: none;
}

.mobile-shop-toolbar {
    display: none;
}

.mobile-results-count {
    display: none;
}

.sidebar-close-btn {
    display: none;
}

.filter-overlay {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important; /* Slide in from left */
        width: 300px !important;
        height: 100vh !important;
        background: #ffffff !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        padding: 60px 20px 30px 20px !important; /* Top padding for close button */
        box-shadow: 5px 0 25px rgba(0,0,0,0.15) !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: block !important;
    }
    
    .sidebar.active {
        left: 0 !important;
    }
    
    .sidebar-close-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: #f1f5f9 !important;
        border: none !important;
        color: #334155 !important;
        cursor: pointer !important;
        z-index: 10 !important;
    }
    
    .filter-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0,0,0,0.4) !important;
        z-index: 9998 !important;
        display: none !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
    }
    
    .filter-overlay.active {
        display: block !important;
        opacity: 1 !important;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .category-hero h1 {
        font-size: 32px;
    }

    .shop-layout {
        padding-bottom: 0px !important;
    }

    /* Mobile Circle Story Navigation Menu */
    .concern-menu-wrap {
        padding: 20px 0;
        margin-bottom: 20px;
        background: transparent;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 0;
    }

    .section-tagline {
        font-size: 16px;
        margin-bottom: 15px;
        text-align: center;
        padding: 0;
    }

    .concern-menu {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 5px 20px 10px 20px;
        max-width: 100%;
    }

    .concern-menu::-webkit-scrollbar {
        display: none;
    }

    .concern-item {
        flex-shrink: 0;
        width: 90px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: none !important;
        flex: none !important;
    }

    .concern-img-wrap {
        display: flex !important;
        width: 75px;
        height: 75px;
        border-radius: 50% !important;
        border: 2px solid #e2e8f0;
        padding: 3px;
        background: #ffffff;
        margin-bottom: 8px;
        overflow: hidden;
    }

    .concern-img-wrap img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }

    .concern-item span {
        font-size: 11px;
        color: #475569;
        font-weight: 700;
        text-align: center;
        padding: 0;
        white-space: normal;
        line-height: 1.25;
        max-width: 100%;
    }

    .concern-item.active .concern-img-wrap {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(3, 176, 177, 0.15);
    }

    .concern-item.active span {
        color: var(--primary);
        font-weight: 800;
    }

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

    /* Tối ưu hóa kích thước chữ cho khối thông tin sản phẩm trên Mobile */
    .product-category {
        font-size: 10px !important;
        letter-spacing: 0.5px !important;
    }

    .product-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin: 4px 0 !important;
    }

    .product-rating {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }

    .product-rating span {
        font-size: 10px !important;
    }

    .product-price {
        gap: 6px !important;
        margin-top: 6px !important;
        flex-wrap: wrap !important;
    }

    .new-price {
        font-size: 15px !important;
    }

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

    /* Hiển thị nút Thêm vào giỏ kiểu trang chủ trên mobile */
    .category-mobile-add-btn {
        display: grid !important;
        width: 100% !important;
        height: 34px !important;
        margin-top: 12px !important;
        grid-template-columns: 1fr 30px !important;
        border-radius: 6px !important;
        box-shadow: 0 4px 10px rgba(198, 40, 40, 0.15) !important;
        font-family: inherit !important;
    }

    .category-mobile-add-btn span {
        height: 100% !important;
        padding: 0 4px !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }

    .category-mobile-add-btn i {
        font-size: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .product-card {
        padding: 0px !important;
    }

    .shop-toolbar {
        display: none !important;
    }

    .mobile-results-count {
        display: block !important;
        width: 100% !important;
        font-size: 15px !important; /* To hơn, rõ nét hơn */
        color: var(--text-dark) !important; /* Màu đậm hơn, sang trọng */
        margin-bottom: 15px !important;
        font-weight: 600 !important;
        text-align: center !important; /* Căn giữa cân đối trải rộng (Full Width) */
        box-sizing: border-box !important;
    }

    .mobile-shop-toolbar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-bottom: 25px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .mobile-sort-btn-wrap {
        position: relative !important;
        width: 100% !important;
        height: 42px !important;
    }

    .mobile-sort-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 100% !important;
        background-color: #eeeeee !important; /* Soft grey capsule */
        border: none !important;
        border-radius: 24px !important; /* Pill capsule shape */
        padding: 0 20px !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        font-family: inherit !important;
        transition: background-color 0.2s ease !important;
    }

    .mobile-sort-trigger:active {
        background-color: #e2e8f0 !important;
    }

    .mobile-sort-selected-text {
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #333333 !important;
    }

    .mobile-sort-trigger .chevron-icon {
        color: #4a5568 !important;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        flex-shrink: 0 !important;
    }

    /* Quay ngược mũi tên lên khi mở dropdown */
    .mobile-sort-btn-wrap.open .chevron-icon {
        transform: rotate(180deg) !important;
    }

    /* Dropdown Options List chính xác theo ảnh mẫu */
    .mobile-sort-options {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        width: 100% !important;
        min-width: 175px !important;
        background-color: #ffffff !important;
        border-radius: 20px !important; /* Độ bo góc cực cao siêu mượt */
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.04) !important;
        padding: 8px !important;
        margin: 0 !important;
        list-style: none !important;
        z-index: 1000 !important;
        display: none !important; /* Mặc định ẩn */
        box-sizing: border-box !important;
        transform-origin: top center !important;
    }

    /* Kích hoạt hiển thị */
    .mobile-sort-btn-wrap.open .mobile-sort-options {
        display: block !important;
        animation: customSlideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .mobile-sort-options li {
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #555555 !important;
        padding: 11px 16px !important;
        border-radius: 14px !important; /* Bo tròn các mục chọn */
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        text-align: left !important;
    }

    /* Mục đang được chọn hiển thị nền xám bo tròn tinh tế */
    .mobile-sort-options li.active {
        background-color: #f1f5f9 !important;
        color: #1e293b !important;
        font-weight: 600 !important;
    }

    .mobile-sort-options li:active {
        background-color: #e2e8f0 !important;
    }

    .mobile-filter-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 42px !important;
        background-color: #ffffff !important;
        border: 1px solid #b3b3b3 !important;
        border-radius: 24px !important; /* Đồng bộ capsule shape */
        padding: 0 20px !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        width: 100% !important;
        transition: all 0.2s ease !important;
    }

    .mobile-filter-btn:active {
        background-color: #f8fafc !important;
    }

    .mobile-filter-btn span {
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #333333 !important;
    }

    .mobile-filter-btn svg {
        color: #4a5568 !important;
        flex-shrink: 0 !important;
    }

    @keyframes customSlideDown {
        from {
            opacity: 0;
            transform: scale(0.95) translateY(-10px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
}

/* ==========================================================================
   CATEGORY BANNER UNIQUE STYLES
   ========================================================================== */
.category-banner-wrap {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 35px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.category-banner-img {
    width: 100%;
    height: 200px !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.4s ease;
}

.category-banner-wrap:hover .category-banner-img {
    transform: scale(1.01);
}

@media (max-width: 768px) {
    .category-banner-wrap {
        margin-top: 30px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    .category-banner-img {
        height: 140px !important;
    }
}

/* ==========================================================================
   CATEGORY SEO SECTION UNIQUE STYLES
   ========================================================================== */
.category-seo-section {
    margin-top: 0px;
    margin-bottom: 50px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.seo-content-wrap {
    max-height: 180px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.seo-content-wrap.expanded {
    max-height: 2000px; /* High enough to show all content */
}

/* Gradient fade overlay when collapsed */
.seo-content-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.seo-content-wrap.expanded::after {
    opacity: 0;
}

.seo-content-wrap h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 16px;
}

.seo-content-wrap h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 20px;
    margin-bottom: 12px;
}

.seo-content-wrap p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 14px;
}

.seo-content-wrap ul {
    padding-left: 20px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seo-content-wrap li {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.seo-content-wrap li strong {
    color: #0f172a;
}

.seo-toggle-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.seo-toggle-btn {
    background-color: #ffffff;
    border: 2px solid var(--primary-color, #03B0B1);
    color: var(--primary-color, #03B0B1);
    padding: 8px 24px;
    border-radius: 99px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.seo-toggle-btn:hover {
    background-color: var(--primary-color, #03B0B1);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(3, 176, 177, 0.2);
}

@media (max-width: 768px) {
    .category-seo-section {
        margin-top: 0px;
        margin-bottom: 30px;
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .seo-content-wrap h2 {
        font-size: 18px;
    }

    .seo-content-wrap h3 {
        font-size: 15px;
    }

    .seo-content-wrap p, .seo-content-wrap li {
        font-size: 13px;
    }
}