/*
Theme Name: Vaquero
Theme URI: https://devmarex.com/themes/vaquero
Author: Alejandro Mares
Author URI: https://devmarex.com
Description: Developed for vaquero_since_25
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 5.6
Version: 1.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: vaquero
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

:root {
    --primary: #D8521C;
    --primary-hover: #b84315;
    --dark-bg: #1C1917;
    /* Very Dark Brown/Black */
    --card-bg: #292524;
    /* Slightly lighter */
    --text-white: #ffffff;
    --text-gray: #a8a29e;
    --text-muted: #78716c;
    --overlay-color: rgba(0, 0, 0, 0.5);

    --font-main: 'Outfit', sans-serif;

    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: #12100E;
    color: var(--text-white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: var(--dark-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-white);
    letter-spacing: 0.05em;
}

.logo-icon {
    background-color: var(--primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: white;
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-bar {
    position: relative;
    background-color: #2e2a28;
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    width: 300px;
}

.search-bar i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    margin-left: 10px;
    width: 100%;
    font-size: 0.9rem;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.user-actions {
    display: flex;
    gap: 20px;
}

.icon-btn {
    position: relative;
    font-size: 1.1rem;
    color: var(--text-white);
}

.icon-btn .dot {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background-color: var(--primary);
    border-radius: 9px;
    border: 2px solid var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-color: #111;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease 0.3s, opacity 0.8s ease 0.3s;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.badge {
    display: inline-block;
    background-color: rgba(216, 82, 28, 0.2);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(216, 82, 28, 0.5);
    backdrop-filter: blur(5px);
}

.hero-carousel h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-carousel h1 .highlight {
    color: var(--primary);
}

.hero-carousel p {
    color: var(--text-gray);
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.prev-btn {
    left: 24px;
}

.next-btn {
    right: 24px;
}

.carousel-indicators {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Features Section */
.features {
    padding: 40px 0;
    /* Remove negative margin to play nice with carousel */
    /* margin-top: -60px; */
    position: relative;
    z-index: 2;
    background-color: var(--dark-bg);
    /* Ensure contrast */
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: white;
}

/* Features Section */
.features {
    padding: 40px 0;
    margin-top: -60px;
    /* Overlap hero */
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background-color: #25211f;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item .icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(216, 82, 28, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Collection Section */
.collection {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-subtitle {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.view-all:hover {
    color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 320px;
    background-color: #333;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: white;
    color: black;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-badge.new {
    background-color: var(--primary);
    color: white;
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #111;
    transition: 0.2s;
}

.wishlist-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    /* Amber 400 */
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.rating span {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 4px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.product-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Push to bottom if using flex column on card */
}

.price {
    font-weight: 700;
    color: var(--text-white);
    font-size: 1.1rem;
}

.btn-buy-now {
    background-color: var(--primary);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-buy-now:hover {
    background-color: var(--primary-hover);
    color: var(--text-white);
}

/* New Arrivals Section */
.new-arrivals {
    padding: 60px 0;
    margin-bottom: 40px;
}

.new-arrivals .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.tab-nav {
    display: flex;
    gap: 30px;
    /* Removed bottom margin and border to match "Collection" style which is clean */
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 4px;
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-white);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    /* 10px padding + 1px border */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Newsletter */
.newsletter {
    padding: 20px 0;
}

.newsletter-content {
    background-color: #2c211d;
    /* Dark reddish brownish */
    padding: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background-image: linear-gradient(to right, #2c211d, #251d1a);
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter-text p {
    color: var(--text-gray);
    max-width: 500px;
    line-height: 1.6;
}

.newsletter-form {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    outline: none;
    min-width: 200px;
}

.newsletter-form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.newsletter-form button:hover {
    background-color: var(--primary-hover);
}

.privacy-note {
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.privacy-note a {
    color: var(--text-gray);
    text-decoration: underline;
}

/* Footer */
.footer {
    padding-top: 80px;
    background-color: #0c0a09;
    border-top: 1px solid #222;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 20px 0;
    line-height: 1.6;
    max-width: 300px;
}

.logo-icon.orange {
    background-color: var(--primary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
}

.footer-links h4 {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .newsletter-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 16px;
    }

    .nav-menu {
        display: none;
        /* Hide nav on mobile for now */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        align-items: center;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Show only 2 items in Featured Collection on mobile */
    .collection .product-grid .product-card:nth-child(n+3) {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Single Product Page Styles --- */

.single-product-container {
    padding-top: 40px;
    padding-bottom: 80px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .separator {
    margin: 0 8px;
    font-size: 0.8rem;
}

.breadcrumbs .current {
    color: var(--text-white);
    font-weight: 500;
}

/* Product Grid Layout */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Slightly wider images */
    gap: 60px;
    margin-bottom: 80px;
}

/* Gallery */
.product-gallery {
    display: flex;
    gap: 20px;
    height: 600px;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 80px;
}

.gallery-thumbnails .thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumbnails .thumb.active,
.gallery-thumbnails .thumb:hover {
    border-color: var(--primary);
}

.gallery-thumbnails .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb {
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.gallery-main {
    flex: 1;
    background-color: #f5f5f5;
    /* Light background for contrast if image is cutout, or just holder */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* or contain, depending on image type */
}

/* Authentic Badge */
.badge-authentic {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #4b3d33;
    /* Brownish */
    color: #e8cba9;
    /* Gold/Cream */
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

/* Product Info Column */
.product-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.badge-bestseller {
    background-color: rgba(216, 82, 28, 0.2);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(216, 82, 28, 0.5);
}

.stars .review-count {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 6px;
}

.product-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 16px;
}

.product-price-box {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-description {
    color: #d6d3d1;
    line-height: 1.6;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
}

/* Attribute Selectors */
.attribute-selector {
    margin-bottom: 24px;
}

.attribute-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.selected-value {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 6px;
}

/* Colors */
.color-options {
    display: flex;
    gap: 12px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.color-option.active {
    border-color: var(--primary);
    transform: scale(1.1);
}

.color-option.active::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid var(--primary);
    border-radius: 50%;
}

/* Sizes */
.size-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.size-guide {
    color: var(--primary);
    font-size: 0.8rem;
    text-decoration: underline;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-box {
    width: 50px;
    height: 40px;
    border: 1px solid #444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.size-box:hover {
    border-color: var(--text-gray);
}

.size-box.active {
    background-color: var(--text-white);
    color: var(--dark-bg);
    border-color: var(--text-white);
    font-weight: 700;
}

.size-box.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: #333;
}

/* Actions */
.cart-actions {
    margin-top: 40px;
    margin-bottom: 30px;
}

.add-to-cart-btn-large {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    margin-bottom: 16px;
    background-color: var(--primary);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn-large:hover {
    background-color: var(--primary-hover);
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-secondary-outline {
    background: transparent;
    border: 1px solid #444;
    color: var(--text-gray);
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-secondary-outline:hover {
    border-color: var(--text-white);
    color: var(--text-white);
}

/* Value Props small */
.value-props {
    display: flex;
    justify-content: space-between;
    background-color: #24211f;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.prop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-white);
}

.prop-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.prop-divider {
    width: 1px;
    background-color: #3d3d3d;
}

/* Accordions */
.accordion-item {
    border-top: 1px solid #333;
}

.accordion-item:last-child {
    border-bottom: 1px solid #333;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
}

.accordion-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.accordion-content {
    display: none;
    padding-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.accordion-item.open .accordion-content {
    display: block;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Reviews Section */
.reviews-section {
    border-top: 1px solid #333;
    padding-top: 40px;
}

.reviews-header {
    margin-bottom: 30px;
}

.review-badge {
    background-color: #333;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    vertical-align: middle;
    margin-left: 8px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.review-card {
    background-color: #1f1c1a;
    padding: 30px;
    border-radius: 12px;
}

.review-stars {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.review-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.review-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    font-size: 0.95rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background-color: #55443b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #e8cba9;
}

.author-meta {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.author-verified {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive Single Product */
@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        flex-direction: column-reverse;
        height: auto;
    }

    .gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }

    .gallery-main {
        height: 400px;
    }
}

/* --- 404 Page Styles --- */
.error-404-container {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 60vh;
}

.error-404-content {
    max-width: 600px;
}

.error-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.8;
}

.page-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--text-white);
}

.page-subtitle {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.error-404-content p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #1c1917;
    width: 400px;
    max-width: 90%;
    border-radius: 12px;
    border: 1px solid #444;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.modal-body {
    padding: 25px 20px;
    color: #ccc;
    text-align: center;
    font-size: 1rem;
}

.modal-footer {
    padding: 15px 20px;
    background: #292524;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-modal-cancel {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-modal-cancel:hover {
    background: #333;
    color: #fff;
}

.btn-modal-confirm {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-modal-confirm:hover {
    filter: brightness(1.1);
}

.btn-modal-confirm.danger {
    background: #ef4444;
    border-color: #ef4444;
}

.btn-modal-confirm.danger:hover {
    background: #dc2626;
}