/* Base Variables - Updated Color Scheme */
:root {
    /* Main Colors from RGB values */
    --primary-color: #e9530d; /* RGB(233, 83, 13) - Vibrant orange/red */
    --secondary-color: #b39123; /* RGB(179, 145, 35) - Gold/amber */
    --background-color: #000000; /* RGB(0, 0, 0) - Black */
    /* Derived Colors */
    --accent-color: #ff6a2c; /* Lighter version of primary */
    --text-color: #e0e0e0; /* Light text for dark background */
    --light-text: #a0a0a0; /* Secondary text color */
    --dark-background: #0a0a0a; /* Slightly lighter than background */
    --darker-background: #000000; /* Same as background for footer */
    --card-background: rgba(20, 20, 20, 0.7); /* Translucent card background */
    --border-color: rgba(255, 255, 255, 0.1); /* Subtle borders */
    --shadow-color: rgba(0, 0, 0, 0.3); /* Shadows */
    --input-background: rgba(255, 255, 255, 0.1); /* Form input backgrounds */
    --input-border: rgba(255, 255, 255, 0.2); /* Form input borders */
    --input-focus: rgba(233, 83, 13, 0.5); /* Focus state for inputs */
    --success-color: #4caf50; /* Success messages and indicators */
    --warning-color: #ffc107; /* Warning messages and indicators */
    --error-color: #ff5252; /* Error messages and indicators */
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

h1,
h2,
h3,
h4 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--accent-color);
    }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

    .section-title::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 1rem auto 0;
    }

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    text-align: center;
}

    .btn:hover {
        background-color: var(--accent-color);
        transform: translateY(-2px);
    }

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-secondary:hover {
        background-color: var(--primary-color);
        color: white;
    }

/* Header Styles */
header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 15px;
        transition: all 0.3s ease;
    }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.logo-image {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
    font-family: "Playfair Display", serif;
    font-weight: 700;
    transition: all 0.3s ease;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

    nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }

        nav ul li {
            margin: 0 1.2rem;
            transition: all 0.3s ease;
        }

            nav ul li a {
                font-weight: 500;
                transition: color 0.3s ease;
                color: var(--text-color);
                text-decoration: none;
                position: relative;
                padding: 5px 0;
            }

                nav ul li a:hover {
                    color: var(--primary-color);
                }

                nav ul li a.active {
                    color: var(--primary-color);
                    font-weight: 600;
                }

                    nav ul li a.active::after {
                        content: "";
                        position: absolute;
                        bottom: -5px;
                        left: 0;
                        width: 100%;
                        height: 2px;
                        background-color: var(--primary-color);
                    }

.header-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.header-icon {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .header-icon:hover,
    .header-icon.active {
        color: var(--primary-color);
    }

.cart-icon {
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

@media (max-width: 768px) {
    header.scrolled {
        padding: 0;
    }

        header.scrolled .container {
            padding-top: 8px;
            padding-bottom: 8px;
        }

        header.scrolled .logo-image {
            height: 30px;
        }

        header.scrolled .logo h1 {
            font-size: 1.4rem;
        }

        header.scrolled nav ul li {
            margin: 0.3rem 0.6rem;
            font-size: 0.9rem;
        }

        header.scrolled .header-icons {
            gap: 0.8rem;
            font-size: 0.9rem;
        }
}

/* Glass Card Style */
.glass-card {
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

    .glass-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
}

    .breadcrumb ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
    }

        .breadcrumb ul li {
            display: flex;
            align-items: center;
            color: var(--light-text);
            font-size: 0.9rem;
        }

            .breadcrumb ul li:not(:last-child)::after {
                content: "/";
                margin: 0 0.5rem;
                color: var(--light-text);
            }

            .breadcrumb ul li:last-child {
                color: var(--primary-color);
            }

    .breadcrumb a {
        color: var(--light-text);
        transition: color 0.3s ease;
    }

        .breadcrumb a:hover {
            color: var(--primary-color);
        }

/* Category Hero */
.category-hero {
    background: linear-gradient(135deg, rgba(233, 83, 13, 0.1), rgba(179, 145, 35, 0.1));
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    padding: 2rem 0;
}

.category-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.category-subtitle {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.category-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: "Playfair Display", serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.8);
    }

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(233, 83, 13, 0.3), rgba(179, 145, 35, 0.3));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.overlay-badge {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--background-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Category Description */
.description-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.description-content {
    padding: 3rem;
}

    .description-content h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .description-content p {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

.benefits-list h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.benefits-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefits-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

    .benefits-list li::before {
        content: "✓";
        position: absolute;
        left: 0;
        color: var(--success-color);
        font-weight: bold;
    }

.benefits-list strong {
    color: var(--primary-color);
}

.usage-tips {
    padding: 2rem;
}

    .usage-tips h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        color: var(--secondary-color);
    }

.tip-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

    .tip-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .tip-item h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: var(--text-color);
        font-family: "Poppins", sans-serif;
    }

    .tip-item p {
        font-size: 0.9rem;
        color: var(--light-text);
        margin: 0;
        line-height: 1.5;
    }

/* Products Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.products-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 15px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

    .view-btn:hover,
    .view-btn.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .sort-controls label {
        color: var(--text-color);
        font-weight: 500;
    }

.sort-select {
    padding: 8px 15px;
    background-color: var(--input-background);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    cursor: pointer;
}

    .sort-select:focus {
        outline: none;
        border-color: var(--primary-color);
    }

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

    .products-list .product-card {
        display: grid;
        grid-template-columns: 200px 1fr auto;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .products-list .product-image {
        width: 200px;
        height: 200px;
    }

    .products-list .product-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .products-list .add-to-cart {
        align-self: flex-start;
        margin-top: auto;
    }

/* Product Card */
.product-card {
    position: relative;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-10px);
    }

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

    .product-badge.new {
        background-color: var(--success-color);
    }

.product-image {
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
}

    .product-image img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn,
.wishlist-btn {
    padding: 8px 15px;
    background-color: white;
    color: var(--background-color);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .quick-view-btn:hover {
        background-color: var(--primary-color);
        color: white;
    }

.wishlist-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

    .wishlist-btn.active {
        background-color: var(--error-color);
        color: white;
    }

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.product-description {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.detail-item {
    font-size: 0.8rem;
    color: var(--light-text);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.rating-count {
    color: var(--light-text);
    font-size: 0.8rem;
}

.product-price {
    margin-bottom: 1rem;
}

.current-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.original-price {
    color: var(--light-text);
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
}

/* Related Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    padding: 0;
    text-align: center;
    overflow: hidden;
}

.category-image {
    height: 200px;
    overflow: hidden;
}

    .category-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-info {
    padding: 2rem;
}

    .category-info h3 {
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

    .category-info p {
        color: var(--light-text);
        margin-bottom: 1.5rem;
    }

/* Newsletter Section */
.newsletter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem;
}

.newsletter-content {
    flex: 1;
    min-width: 300px;
}

    .newsletter-content h2 {
        margin-bottom: 1rem;
    }

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

    .newsletter-form input {
        flex: 1;
        min-width: 200px;
        padding: 12px 20px;
        border: none;
        border-radius: 30px;
        font-family: "Poppins", sans-serif;
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid var(--border-color);
    }

        .newsletter-form input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .description-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .category-title {
        font-size: 2.5rem;
    }

    .category-stats {
        justify-content: center;
        gap: 2rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .products-controls {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .products-list .product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .products-list .product-image {
        width: 100%;
        height: 200px;
        justify-self: center;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

        nav ul li {
            margin: 0.5rem 0.8rem;
        }

    .header-icons {
        gap: 1rem;
    }

    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .category-title {
        font-size: 2rem;
    }

    .category-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .description-content {
        padding: 2rem;
    }

    .usage-tips {
        padding: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 1rem;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    .logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

        .logo h1 {
            font-size: 1.5rem;
        }

    header .container {
        flex-direction: column;
    }

    .header-icons {
        margin: 1rem 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image {
    animation: slideInRight 0.8s ease-out;
}
