:root {
    --primary: #7B2D26;
    --secondary: #F4C542;
    --accent1: #E67E22;
    --accent2: #2980B9;
    --accent3: #27AE60;
    --bg-offwhite: #FAF9F6;
    --bg-sky: #EAF6FB;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --card-bg: #FFFFFF;
    --shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    --sale: #E94343;
    --wishlist: #f9b8be;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent1) 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-offwhite);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Montserrat', sans-serif;
}

/* Header Styles */
.top-bar {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.9rem;
}

.navbar {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--accent1);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-form input {
    border-radius: 50px;
    padding: 10px 20px;
    border: 1px solid #ddd;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 5px 15px;
}

.header-icons .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-offwhite);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: all 0.3s;
    position: relative;
    color: var(--primary);
    text-decoration: none;
}

.header-icons .icon:hover {
    background: var(--primary);
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--sale);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Breadcrumb */
.breadcrumb-nav {
    padding: 15px 0;
    background-color: var(--bg-sky);
}

/* Shop Layout */
.shop-container {
    padding: 30px 0;
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.filter-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
}

.filter-list a:hover {
    color: var(--primary);
}

.filter-list .count {
    color: #888;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.price-range {
    margin-top: 15px;
}

.price-input {
    width: 100%;
    margin-bottom: 10px;
}

/* Product Grid */
.product-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.grid-options button {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.grid-options button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sort-select {
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1523381210434-271e8be1f52b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
}

.hero-content {
    max-width: 600px;
}

.btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--accent1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-dark);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--accent1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Category Section */
.category-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    background: var(--card-bg);
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-img {
    height: 200px;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-img img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(#00000000, #000000);
    padding: 20px;
    color: white;
    opacity: 0.9;
}

/* Product Card */
.product-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    background: var(--card-bg);
    margin-bottom: 20px;
}

.product-img {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: var(--bg-sky);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sale);
    color: white;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: all 0.3s;
}

.product-wishlist:hover {
    background: var(--wishlist);
    color: white;
}

.product-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
    cursor: pointer;
}

.product-price {
    font-weight: 700;
    color: var(--primary);
}

.product-old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.8rem;
    margin-left: 5px;
}

.product-rating {
    color: var(--secondary);
}

.add-to-cart {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
}

.add-to-cart:hover {
    background: var(--accent1);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border: 1px solid #ddd;
    margin: 0 5px;
    border-radius: 5px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Customization Section */
.customization {
    background-color: var(--bg-sky);
    padding: 80px 0;
}

.customization-step {
    text-align: center;
    padding: 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin: 15px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--primary);
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 70px 0 0;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--accent1);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s;
    color: var(--accent1);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
    color: white;
}

.copyright {
    background: #222;
    padding: 20px 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Loading spinner */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* No products message */
.no-products {
    display: none;
    text-align: center;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 10px;
    margin: 20px 0;
}

/* Mobile filter toggle button */
.mobile-filter-toggle {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .navbar .navbar-nav {
        background: var(--card-bg);
        padding: 15px;
        border-radius: 10px;
        box-shadow: var(--shadow);
    }

    .product-img {
        height: 220px;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .filter-sidebar {
        margin-bottom: 20px;
    }

    .product-grid-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid-options,
    .sort-options {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .navbar .navbar-nav {
        background: var(--card-bg);
        padding: 15px;
        border-radius: 10px;
        box-shadow: var(--shadow);
    }

    .product-img {
        height: 220px;
    }

    /* Mobile filter sidebar */
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        z-index: 1050;
        overflow-y: auto;
        transition: left 0.3s ease;
        margin-bottom: 0;
        border-radius: 0;
    }

    .filter-sidebar.active {
        left: 0;
    }

    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .filter-overlay.active {
        display: block;
    }

    .mobile-filter-toggle {
        display: block !important;
        margin-bottom: 15px;
    }
}