* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.promo-bar {
    background-color: #ffeb3b;
    color: #333;
    text-align: center;
    padding: 5px;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.header {
    border-bottom: 1px solid #eaeaea;
    background-color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 25px;
    padding: 5px 20px;
    flex: 1;
    max-width: 450px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background-color: #fff;
    border-color: #ffeb3b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-container input {
    border: none;
    background: transparent;
    padding: 10px;
    width: 100%;
    outline: none;
    font-size: 15px;
    color: #333;
}

.search-container button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    padding: 5px;
    transition: color 0.2s;
}

.search-container button:hover {
    color: #000;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.5px;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    color: #555;
    font-size: 18px;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

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

.header-actions .icon-link {
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.header-actions .icon-link i {
    font-size: 16px;
}

.wishlist-link:hover i {
    color: red;
    font-weight: 900;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(34, 34, 34, 0.98);
    color: #fff;
    padding: 30px 60px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    min-width: 350px;
}

.toast i {
    color: #ffeb3b;
    font-size: 48px;
}

.toast span {
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.footer {
    background-color: #222;
    color: #ccc;
    padding: 50px 0 20px;
    font-size: 15px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    display: inline-block;
    color: #fff;
    margin-bottom: 15px;
}

.footer-left p {
    color: #bbb;
    line-height: 1.6;
}

.footer-links-wrapper {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

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

.footer-column ul li a {
    color: #aaa;
    transition: color 0.2s;
}

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

.copyright {
    text-align: center;
    color: #888;
    font-size: 14px;
}

.mattress-page {
    padding: 40px 0 80px;
    background-color: #fafafa;
}

.mattress-container {
    display: flex;
    gap: 30px;
    align-items: start;
}

.sidebar {
    flex: 0 0 280px;
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    position: sticky;
    top: 110px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.stars .active-star {
    color: #f5a623 !important;
}

.stars .empty-star {
    color: #d1d5db !important;
}

.card-review-stat {
    color: #555;
    font-size: 13px;
    font-weight: 500;
    margin-left: 5px;
}

.no-card-reviews {
    color: #888;
    font-size: 12.5px;
    font-style: italic;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 6px;
    border-bottom: 2px solid #ffeb3b;
    display: inline-block;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-list li a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.filter-list li a:hover {
    background-color: #f5f5f5;
    color: #000;
    transform: translateX(4px);
}

.filter-list li a.active {
    background-color: #ffeb3b;
    color: #000;
    font-weight: 700;
}

.checkbox-list {
    gap: 12px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.checkbox-list input[type="checkbox"] {
    accent-color: #222;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.main-content {
    flex: 1;
}

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

.page-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #222;
}

.filter-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-dropdown label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.sort-select {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    outline: none;
    cursor: pointer;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.product-image {
    position: relative;
    height: 260px;
    background-color: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-notice-text {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #777;
    font-size: 16px;
}

.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.page-btn {
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.page-btn:hover:not(:disabled) {
    background-color: #f5f5f5;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num {
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-num.active {
    background-color: #222;
    color: #fff;
    border-color: #222;
}

.clickable-product-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.clickable-product-card .wishlist-btn,
.clickable-product-card .add-to-cart-btn {
    cursor: pointer;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease-in-out;
}

.cat-filter-item:hover {
    background-color: #fffde7;
    border-color: #ffd600;
}

.cat-filter-item.active {
    background-color: #ffeb3b;
    border-color: #fbc02d;
    color: #000;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 235, 59, 0.4);
}

.cat-filter-item .check-icon {
    font-size: 12px;
    color: #222;
}

.breadcrumb-nav {
    background: transparent;
    border: none;
    padding: 16px 0 8px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-link {
    color: #4b5563;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #111827;
}

.breadcrumb-home-icon {
    font-size: 12px;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #9ca3af;
    user-select: none;
}

.breadcrumb-item.active {
    color: #8b0000;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .mattress-container {
        flex-direction: column;
    }
    .sidebar {
        position: static;
        width: 100%;
        flex: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .filter-group {
        margin-bottom: 0;
    }
}

@media (max-width: 650px) {
    .sidebar {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .page-header {
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }
}