/* Reset et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D4AF37;
    --accent-color: #C9A961;
    --dark-color: #2C1810;
    --light-color: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    min-width: 22px;
    width: auto;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.cart-badge:empty,
.cart-badge:not(:empty) {
    display: flex;
}

.cart-badge:empty::after {
    content: '0';
}

.cart-icon:hover .cart-badge {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.mobile-menu-toggle {
    display: none !important;
    background: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.mobile-menu-toggle:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Cacher le bouton burger sur desktop et tablette */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    background-image: url('../images/Gemini_Generated_Image_3bho863bho863bho (1).png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero-content .btn {
    animation: fadeInUp 1.2s ease;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(139,69,19,0.4);
    border-color: var(--secondary-color);
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--text-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* Categories */
.categories-section {
    padding: 5rem 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.category-card {
    text-decoration: none;
    color: var(--text-dark);
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    display: block;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-top-color: var(--secondary-color);
}

.category-image {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    font-size: 4rem;
    font-weight: 700;
    opacity: 0.8;
}

.category-card h3 {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    transition: color 0.3s;
}

.category-card:hover h3 {
    color: var(--secondary-color);
}

/* Products */
.products-section {
    padding: 5rem 0;
    background: var(--white);
}

.products-section.bg-light {
    background: var(--light-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card a:hover,
.product-card a:focus,
.product-card a:active {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.badges-container {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
    align-items: flex-end;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    white-space: nowrap;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.badge.sale {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.badge.best-seller {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b8941f 100%);
}

.product-info {
    padding: 1.75rem;
}

.product-info h2,
.product-info h3 {
    margin: 0 0 0.5rem 0;
    padding: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    text-align: left;
}

.product-category {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0 0 1rem 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
    display: block;
}

.product-price {
    margin: 0 0 1.25rem 0;
    padding: 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    text-decoration: none;
    text-align: left;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 0.5rem;
}

.current-price {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: bold;
}

.btn-add-cart {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '🛒';
    margin-right: 0.5rem;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139,69,19,0.3);
}

.btn-add-cart:active {
    transform: translateY(0);
}

/* Products Page */
.products-page {
    padding: 3rem 0;
    background: var(--light-color);
    min-height: calc(100vh - 300px);
}

.products-layout {
    display: block;
}

/* Filtres horizontaux */
.filters-section {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border-top: 4px solid var(--primary-color);
}

.filters-form-horizontal {
    width: 100%;
}

.filter-row {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 150px;
}

.filter-item label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-item input,
.filter-item select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: var(--white);
}

.filter-item input:focus,
.filter-item select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139,69,19,0.1);
}

.filter-item .price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-item .price-range input {
    flex: 1;
}

.filter-item .price-range span {
    color: var(--text-light);
    font-weight: 500;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.filter-actions .btn {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

/* Ancienne sidebar (gardée pour compatibilité) */
.filters-sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 120px;
    border-top: 4px solid var(--primary-color);
}

.filters-sidebar h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-sidebar h2::before {
    content: "🔍";
    font-size: 1.3rem;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-color);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.filter-group h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: var(--white);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139,69,19,0.1);
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-range input {
    flex: 1;
}

.price-range span {
    color: var(--text-light);
    font-weight: 500;
}

.filters-form .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
}

.filters-form .btn-secondary {
    margin-top: 0.5rem;
}

.products-content {
    background: transparent;
    width: 100%;
}

.products-content h1 {
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.products-header {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary-color);
}

.products-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-count-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(139,69,19,0.3);
}

.products-count-badge span {
    font-size: 1.3rem;
    font-weight: 700;
    margin-right: 0.25rem;
}

.active-filters {
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.active-filters strong {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.clear-filters {
    color: var(--error-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid var(--error-color);
}

.clear-filters:hover {
    background: var(--error-color);
    color: var(--white);
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin: 2rem 0;
}

.no-products::before {
    content: "🔍";
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.no-products p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.no-products .btn {
    margin-top: 1rem;
}

/* Pagination */
.pagination-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
    display: inline-block;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,69,19,0.3);
}

.pagination .active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(139,69,19,0.3);
}

/* Product Detail Page */
.product-page {
    padding: 2rem 0;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Bouton de retour */
.btn-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0.75rem 1.5rem !important;
    background: var(--white) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
}

.btn-back:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    transform: translateX(-5px) !important;
    box-shadow: 0 4px 12px rgba(139,69,19,0.3) !important;
}

.btn-back span {
    font-size: 1.2rem !important;
    transition: transform 0.3s ease !important;
}

.btn-back:hover span {
    transform: translateX(-3px) !important;
}

/* Modal pour les dimensions */
.dimensions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--border-color);
    background: var(--light-color);
    border-radius: 0 0 16px 16px;
}

.dimension-input input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dimension-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139,69,19,0.1);
}

.dimension-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

#modal-price-calculation {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }
    
    .modal-body > div:first-of-type {
        grid-template-columns: 1fr !important;
    }
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.product-main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--light-color);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.product-thumbnails img.active,
.product-thumbnails img:hover {
    border-color: var(--primary-color);
}

.product-info-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-price-detail {
    margin: 1.5rem 0;
}

.discount-badge {
    background: var(--error-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.product-specs {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
}

.spec-item {
    margin-bottom: 0.75rem;
}

.in-stock {
    color: var(--success-color);
    font-weight: bold;
}

.out-of-stock {
    color: var(--error-color);
    font-weight: bold;
}

.product-description {
    margin: 2rem 0;
}

.product-actions {
    margin-top: 2rem;
}

.quantity-selector {
    margin-bottom: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.quantity-controls input {
    width: 80px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.related-products {
    margin-top: 4rem;
}

/* Cart Page */
.cart-page {
    padding: 3rem 0;
    background: var(--light-color);
    min-height: calc(100vh - 300px);
}

.cart-page h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-page h1::before {
    content: '🛒';
    font-size: 2.5rem;
}

.empty-cart {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.empty-cart::before {
    content: '🛒';
    font-size: 5rem;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-cart p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cart-layout {
    display: grid;
    /* grid-template-columns: 2fr 1fr; */
    gap: 2.5rem;
    align-items: start;
}

.cart-items {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.cart-table th,
.cart-table td {
    padding: 1.5rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-table tbody tr {
    transition: all 0.2s ease;
}

.cart-table tbody tr:hover {
    background: #f8f9fa;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-product a {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.cart-product img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.cart-product:hover img {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(139,69,19,0.2);
}

.cart-product-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.cart-product-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-price {
    font-weight: 600;
}

.cart-price .old-price {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.cart-price .current-price {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.cart-quantity {
    min-width: 150px;
}

.quantity-form {
    margin: 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.quantity-controls button {
    width: 35px;
    height: 35px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.quantity-controls input {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.quantity-controls input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139,69,19,0.1);
}

.cart-subtotal {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.cart-action {
    text-align: center;
}

.btn-remove {
    width: 40px;
    height: 40px;
    border: 2px solid var(--error-color);
    background: var(--white);
    color: var(--error-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: var(--error-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

.cart-actions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-summary {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 120px;
    border-top: 4px solid var(--primary-color);
}

.cart-summary h2 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-summary h2::before {
    content: '📋';
    font-size: 1.3rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.summary-item span:first-child {
    color: var(--text-light);
    font-weight: 500;
}

.summary-item span:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.cart-summary .btn {
    margin-top: 1.5rem;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Checkout Page */
.checkout-page {
    padding: 2rem 0;
}

.checkout-success {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 3px solid var(--success-color);
    max-width: 650px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease;
}

.checkout-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--success-color) 0%, #28a745 100%);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 6rem;
    color: var(--white);
    margin: 0;
    position: relative;
    z-index: 2;
    animation: scaleIn 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.success-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--success-color) 0%, #28a745 100%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseCircle 2s infinite;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulseCircle {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.checkout-success h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.success-message-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid var(--light-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.success-main-message {
    font-size: 1.3rem;
    color: var(--success-color);
    font-weight: 700;
    margin-bottom: 1.5rem !important;
}

.order-number {
    margin: 1.5rem 0 !important;
    padding: 1rem;
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-value {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.success-info {
    font-size: 1rem;
    color: var(--text-dark);
    margin-top: 1rem !important;
    font-style: italic;
}

.checkout-success p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.redirect-message {
    margin: 2rem 0 1.5rem 0 !important;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    border-radius: 10px;
    font-weight: 600;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(139,69,19,0.3);
}

.redirect-icon {
    font-size: 1.3rem;
}

.redirect-message strong,
.redirect-message #countdown {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    min-width: 30px;
    display: inline-block;
}

.success-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.success-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.order-number {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.success-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-methods {
    margin: 1.5rem 0;
}

.payment-method {
    margin-bottom: 1rem;
}

.payment-method input {
    margin-right: 0.5rem;
}

.checkout-summary {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-items {
    margin-bottom: 1rem;
}

.summary-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Tracking Page */
.tracking-page {
    padding: 2rem 0;
}

.tracking-form {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.order-details {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.status-pending {
    background: var(--warning-color);
    color: var(--text-dark);
}

.status-processing {
    background: #17a2b8;
    color: var(--white);
}

.status-shipped {
    background: #007bff;
    color: var(--white);
}

.status-delivered {
    background: var(--success-color);
    color: var(--white);
}

.status-cancelled {
    background: var(--error-color);
    color: var(--white);
}

.order-timeline {
    margin: 2rem 0;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.timeline-item.active .timeline-icon {
    background: var(--primary-color);
    color: var(--white);
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.order-items-table th,
.order-items-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.order-items-table th {
    background: var(--light-color);
    font-weight: 600;
}

.order-total {
    font-size: 1.2rem;
}

.tracking-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    border-radius: 12px;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Categories Page */
.categories-page {
    padding: 3rem 0;
    background: var(--light-color);
    min-height: calc(100vh - 300px);
}

.categories-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.category-card-detailed {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.category-card-detailed:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.category-card-detailed a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image-detailed {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
}

.category-image-detailed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card-detailed:hover .category-image-detailed img {
    transform: scale(1.1);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
}

.category-icon {
    font-size: 5rem;
    opacity: 0.7;
}

.category-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.category-content {
    padding: 2rem;
}

.category-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.category-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
}

.category-card-detailed:hover .category-link {
    transform: translateX(5px);
}

.no-categories {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* About Page */
.about-page {
    padding: 3rem 0;
    background: var(--light-color);
    min-height: calc(100vh - 300px);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.about-section.reverse {
    direction: rtl;
}

.about-section.reverse > * {
    direction: ltr;
}

.about-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-placeholder {
    font-size: 8rem;
    opacity: 0.3;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.about-list li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Page */
.contact-page {
    padding: 3rem 0;
    background: var(--light-color);
    min-height: calc(100vh - 300px);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-color);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.contact-info h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-color);
}

.contact-form h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139,69,19,0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Info Section */
.info-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    margin-top: 4rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-item {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.info-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.info-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.info-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.info-item p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive */
@media (max-width: 767px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        width: 100%;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        padding: 0.75rem;
        width: 50px;
        height: 50px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        background: var(--white);
        color: var(--primary-color);
    }

    .mobile-menu-toggle:active {
        transform: translateY(0);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
        color: var(--secondary-color);
    }

    .hero {
        padding: 4rem 0;
        min-height: 500px;
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-item {
        padding: 2rem 1.5rem;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item {
        min-width: 100%;
    }

    .filter-actions {
        width: 100%;
        flex-direction: column;
    }

.filter-actions .btn {
    width: 100%;
}

/* Types de catégories - Filtres */
.types-categories-filter {
    margin: 2rem 0 !important;
    padding: 2rem !important;
    background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    border-top: 4px solid var(--primary-color) !important;
    border-left: 4px solid var(--primary-color) !important;
    display: block !important;
    width: 100% !important;
}

.types-categories-filter h3 {
    margin-bottom: 1.5rem !important;
    color: var(--primary-color) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 0 !important;
}

.types-categories-filter h3::before {
    content: '🏷️';
    font-size: 1.5rem;
}

.types-categories-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: center !important;
    width: 100% !important;
}

.types-categories-buttons a {
    text-decoration: none !important;
    outline: none !important;
}

.type-category-btn {
    padding: 0.85rem 1.75rem !important;
    background: var(--white) !important;
    color: var(--text-dark) !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    border: 2px solid var(--border-color) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

.type-category-btn:link,
.type-category-btn:visited,
.type-category-btn:active {
    text-decoration: none !important;
    color: var(--text-dark) !important;
}

.type-category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.type-category-btn:hover::before {
    left: 100%;
}

.type-category-btn:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(139,69,19,0.4) !important;
    border-color: var(--primary-color) !important;
    text-decoration: none !important;
}

.type-category-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(139,69,19,0.4) !important;
    transform: translateY(-2px) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.type-category-btn.active::after {
    content: '✓';
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive pour les types de catégories */
@media (max-width: 767px) {
    .types-categories-filter {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .types-categories-filter h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .types-categories-buttons {
        gap: 0.75rem;
    }

    .type-category-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }
}

    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .products-content h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .product-image {
        height: 220px;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cart-summary {
        position: static;
        order: -1;
    }

    .cart-table {
        font-size: 0.85rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 1rem 0.5rem;
    }

    .cart-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-product a {
        flex-direction: row;
        width: 100%;
    }

    .cart-product img {
        width: 80px;
        height: 80px;
    }

    .cart-actions {
        flex-direction: column;
    }

    .cart-actions .btn {
        width: 100%;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .categories-grid-detailed {
        grid-template-columns: 1fr;
    }

    .about-section {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .about-section.reverse {
        direction: ltr;
    }

    .about-image {
        height: 200px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info {
        position: static;
    }
}

/* Styles pour le sélecteur de couleurs multiples */
.colors-selector {
    margin-top: 0.75rem;
}

.colors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.color-option {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--light-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-option:hover {
    border-color: var(--primary-color);
    background: rgba(139, 69, 19, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
}

.color-option.active,
.color-option[style*="border-color: var(--primary-color)"] {
    border-color: var(--primary-color) !important;
    background: rgba(139, 69, 19, 0.1) !important;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.color-option img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.color-option span {
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 767px) {
    .colors-list {
        gap: 0.5rem;
    }
    
    .color-option {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .color-option img {
        width: 35px;
        height: 35px;
    }
}

