/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4a574;
    --secondary-color: #8b6914;
    --accent-color: #f5e6d3;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --background: #fff;
    --light-background: #f9f9f9;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-background);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Allow text selection in content areas */
p, span, div, h1, h2, h3, h4, h5, h6 {
    -webkit-user-select: text;
    user-select: text;
}

/* RTL Support - Apply to content, not layout */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* Keep header layout in LTR order even with RTL text */
html[dir="rtl"] .header-top {
    direction: ltr;
}

html[dir="rtl"] .header-left {
    order: 1;
}

html[dir="rtl"] .header-right {
    order: 3;
}

html[dir="rtl"] .header-logo {
    order: 2;
}

html[dir="rtl"] .header-nav-section .container {
    direction: ltr;
}

html[dir="rtl"] .main-nav,
html[dir="rtl"] .main-nav ul {
    direction: ltr;
}

html[dir="rtl"] .breadcrumbs {
    direction: rtl;
}

html[dir="rtl"] .products-page {
    direction: rtl;
}

html[dir="rtl"] .checkout-layout {
    direction: rtl;
}

html[dir="rtl"] .account-page {
    direction: rtl;
}

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

/* Header */
header {
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top-section {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-start;
    direction: ltr;
}

html[dir="rtl"] .header-left {
    direction: ltr;
}

html[dir="rtl"] .header-left .header-link {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .header-right {
    text-align: left;
    direction: ltr;
}

.header-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    line-height: 1.4;
    white-space: nowrap;
    display: inline-block;
}

.header-link:hover {
    color: var(--primary-color);
}

.header-separator {
    color: var(--light-text);
    font-size: 0.9rem;
}

.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.header-logo h1 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.header-logo a {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.logo-image {
    height: 150px !important;
    width: auto !important;
    max-width: 600px !important;
    display: block;
    object-fit: contain;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.cart-header-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.8rem 1rem;
    border-left: 1px solid var(--border-color);
    padding-left: 1.5rem;
    line-height: 1.4;
}

.cart-price {
    font-weight: 600;
    color: var(--text-color);
}

.cart-icon-header {
    font-size: 1.2rem;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.header-nav-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.8rem 0;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: none;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 1;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: none;
}

.mobile-logo {
    display: none;
    text-align: center;
    flex: 1;
}

.mobile-logo h1 {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

.mobile-cart-link {
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    position: relative;
    width: 40px;
    height: 40px;
    z-index: 1001;
}

.mobile-cart-link .cart-icon-header {
    font-size: 1.5rem;
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-sidebar-header h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    margin-left: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    direction: ltr;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
    direction: ltr;
}

html[dir="rtl"] .main-nav,
html[dir="rtl"] .main-nav ul {
    direction: ltr;
}

.nav-cart-wrapper {
    display: flex;
    align-items: center;
    margin-left: 2.5rem;
}

.cart-header-link-nav {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0;
    padding-left: 2rem;
    line-height: 1.4;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.cart-price-nav {
    font-weight: 600;
    color: white;
}

.cart-badge-nav {
    position: absolute;
    top: -5px;
    right: 5px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.main-nav li {
    margin: 0;
}

.mobile-auth-links {
    display: none;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: opacity 0.3s;
    padding: 0.3rem 0;
}

.main-nav a:hover {
    opacity: 0.8;
}

.cart-count {
    background: var(--error-color);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--light-text);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Hero Section */
.banner-section {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 3rem;
    overflow: hidden;
}

.banner-link {
    display: block;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.3s;
}

.banner-link:hover {
    opacity: 0.9;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Welcome Section */
.welcome-section {
    background: var(--light-background);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.welcome-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.subtitle-line {
    flex: 1;
    height: 2px;
    background: var(--primary-color);
    max-width: 100px;
}

.subtitle-text {
    white-space: nowrap;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.new-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.new-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card-link-new {
    text-decoration: none;
    color: inherit;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.new-product-image {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: white;
}

.new-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.new-product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.new-product-description {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.new-product-price {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.add-to-cart-form-new {
    width: 100%;
    margin: 0;
}

.btn-add-cart-new {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: white;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart-new:hover {
    background: var(--primary-color);
    color: white;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.page-header {
    text-align: center;
    padding: 2rem 0;
    background: white;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.product-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-link:hover .product-card {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 300px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
}

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

.placeholder-image {
    font-size: 4rem;
    color: var(--light-text);
}

.product-info {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.product-description {
    font-size: 0.9rem;
    color: #d4a574;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.price-original-small {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    font-weight: normal;
}

.price-current-small {
    font-weight: bold;
    color: #000;
    font-size: 1.3rem;
}

.btn-add-to-cart {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: 2px solid #d4a574;
    background: white;
    color: #d4a574;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.btn-add-to-cart:hover {
    background: #d4a574;
    color: white;
}

.btn-add-to-cart.disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.add-to-cart-form {
    width: 100%;
    margin-top: 0.5rem;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Cart Drawer (Sidebar from right) */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.cart-modal-content {
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    width: 100%;
    max-width: 450px;
    height: 100%;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.cart-modal.open .cart-modal-content {
    transform: translateX(0);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-header-left {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cart-header-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

.cart-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-modal-header h2 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.cart-items-count-header {
    color: #666;
    font-size: 0.85rem;
    font-weight: normal;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s;
}

.cart-close-btn:hover {
    color: var(--primary-color);
}

.cart-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.cart-modal-empty {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-cart-icon-large {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.cart-modal-empty h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cart-modal-empty p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-browse-products {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    margin-top: 1rem;
    text-decoration: none;
}

.btn-browse-products:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
}

.btn-browse-products span {
    font-size: 1.1rem;
}

.cart-modal-items {
    margin-bottom: 1.5rem;
}

.cart-modal-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-modal-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.cart-placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.placeholder-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.placeholder-text {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-title {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: normal;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: bold;
    margin: 0;
    font-size: 1rem;
}

.cart-item-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.qty-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: #333;
    transition: all 0.3s;
    border-radius: 50%;
    padding: 0;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    color: #333;
}

.cart-summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cart-summary-card .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: #666;
    font-size: 0.95rem;
}

.cart-summary-card .summary-row.total {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.cart-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-checkout {
    background: #4caf50;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s;
    text-align: center;
    width: 100%;
}

.btn-checkout:hover {
    background: #45a049;
}

.checkout-icon {
    font-size: 1.1rem;
}

.btn-clear-cart {
    background: white;
    color: #f44336;
    border: 2px solid #f44336;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    width: 100%;
}

.btn-clear-cart:hover {
    background: #f44336;
    color: white;
}

.trash-icon {
    font-size: 1.1rem;
}

.clear-cart-form {
    margin: 0;
}

/* Cart */
.cart-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cart-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-product-info h4 {
    margin-bottom: 0.3rem;
}

.cart-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.summary-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

.shipping-info {
    margin-top: 1rem;
    padding: 0.5rem;
    background: var(--accent-color);
    border-radius: 5px;
    font-size: 0.9rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

/* Checkout */
/* Checkout Page */
.checkout-container {
    max-width: 100%;
    margin: 0;
    padding: 2rem 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0.5rem;
    align-items: start;
}

/* Colonne gauche - Formulaire de livraison */
.checkout-left {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 0;
}

.delivery-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
}

.delivery-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.delivery-icon {
    font-size: 2rem;
}

.delivery-header-text h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.delivery-header-text p {
    margin: 0.25rem 0 0 0;
    font-size: 0.95rem;
    opacity: 0.9;
    color: white;
}

.delivery-form-fields {
    padding: 1rem;
}

.form-field-group {
    margin-bottom: 1.5rem;
}

.form-field-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-field-group input,
.form-field-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-field-group input:focus,
.form-field-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-field-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-place-order {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--success-color), #45a049);
    color: white;
    border: none;
    border-radius: 0 0 12px 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.btn-place-order:hover {
    background: linear-gradient(135deg, #45a049, var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.check-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Colonne droite - Résumé de commande */
.checkout-right {
    position: sticky;
    top: 100px;
}

.order-summary {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 0;
}

.order-summary-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.order-items-list {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.order-item-detail {
    margin-bottom: 1rem;
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-item-name {
    font-weight: 500;
    color: var(--text-color);
}

.order-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--light-text);
}

.order-item-qty {
    color: var(--light-text);
}

.order-item-price {
    font-weight: 600;
    color: var(--text-color);
}

.order-summary-totals {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.summary-total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

/* Boîte de méthode de paiement */
.payment-method-box {
    background: linear-gradient(135deg, var(--accent-color), #f0d9b8);
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid var(--primary-color);
}

.payment-method-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.payment-icon {
    font-size: 2rem;
}

.payment-method-text {
    flex: 1;
}

.payment-method-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.payment-method-desc {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Anciens styles pour compatibilité */
.checkout-page {
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-form {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.checkout-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: var(--accent-color);
}

.payment-option input[type="radio"] {
    margin-right: 1rem;
}

.checkout-summary {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.order-items-summary {
    margin-bottom: 1rem;
}

.order-item-summary {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Product Detail */
.product-detail-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--light-text);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Image Section */
.product-image-section {
    position: relative;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    background: var(--light-background);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
}

.placeholder-image-large {
    font-size: 8rem;
    color: var(--light-text);
}


/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-description-text {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.product-description-text p {
    margin-bottom: 1rem;
}

/* Weight Options */
.weight-options {
    margin: 1.5rem 0;
}

.weight-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.weight-buttons {
    display: flex;
    gap: 1rem;
}

.weight-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--text-color);
}

.weight-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.weight-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Pricing */
.product-pricing {
    margin: 1rem 0 0.75rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-original {
    font-size: 1.2rem;
    color: var(--light-text);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.price-current {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-savings {
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 600;
    text-transform: uppercase;
}

/* Quantity Section */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.75rem 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.quantity-section label {
    font-weight: 500;
    color: var(--text-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light-background);
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input-detail {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    background: white;
}

/* Action Buttons */
.product-action-buttons {
    display: flex;
    gap: 1rem;
    margin: 0.75rem 0 0 0;
}

.btn-add-cart {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--secondary-color);
    background: white;
    color: var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.btn-add-cart:hover {
    background: var(--accent-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-order {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: var(--secondary-color);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.btn-order:hover {
    background: var(--primary-color);
}

.btn-disabled-detail {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    background: #ccc;
    color: #666;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Delivery Info */
.delivery-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.delivery-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.delivery-item strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.delivery-item p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 0;
}

/* Products Page */
.products-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.products-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-top: 1rem;
}

.filters-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.active-category-box {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--secondary-color);
}

.filters-section {
    margin-top: 1rem;
}

.filters-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-checkbox input[type="checkbox"],
.filter-checkbox input[type="radio"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-checkbox span {
    color: var(--text-color);
}

.filter-checkbox:hover span {
    color: var(--primary-color);
}

.price-range-display {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.price-range-slider {
    position: relative;
    margin-bottom: 1rem;
}

.price-range-slider input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.price-range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.products-content {
    min-height: 500px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-page-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 0;
}

.products-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.view-options {
    display: flex;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    color: var(--text-color);
}

.view-btn:hover {
    background: var(--light-background);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.products-count {
    font-size: 0.9rem;
    color: var(--light-text);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.sort-options select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.price-original-small {
    text-decoration: line-through;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.price-current-small {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Vue liste */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-list .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
}

/* Stock badges */
.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.low-stock {
    background: #ff9800;
    color: white;
}

.out-of-stock {
    background: var(--error-color);
    color: white;
}

.in-stock {
    color: var(--success-color);
    font-weight: bold;
}

/* Auth Pages */
/* Auth Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 3rem 1rem;
    background: var(--light-background);
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: transparent;
    padding: 3rem 2.5rem;
    border-radius: 0;
    box-shadow: none;
    border: none;
    width: 100%;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-header p {
    color: var(--light-text);
    font-size: 0.95rem;
}

.auth-form {
    margin-top: 2rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
    z-index: 1;
}

.input-wrapper input {
    padding-left: 3rem !important;
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-input-wrapper .input-icon {
    position: absolute;
    left: 1rem;
    z-index: 1;
}

.phone-prefix {
    position: absolute;
    left: 3rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    user-select: none;
    z-index: 1;
}

.phone-input-wrapper input {
    padding-left: 6.5rem !important;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.phone-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.optional {
    color: var(--light-text);
    font-weight: 400;
    font-size: 0.85rem;
}

.btn-auth-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-auth-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--light-text);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 2px solid #fc8181;
}

.alert-success {
    background: #f0fff4;
    color: #22543d;
    border: 2px solid #68d391;
}

.alert-success {
    background: #e8f5e9;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

/* Account Page */
.account-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.account-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.account-page-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 0;
}

.account-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.account-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.account-sidebar-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.account-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.account-content-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--light-background);
    transition: all 0.3s;
}

.order-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.order-info-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-color);
}

.order-date {
    font-size: 0.9rem;
    color: var(--light-text);
}

.order-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.order-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.order-card-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-view-details {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--text-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-view-details:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

/* Order Detail */
.order-detail-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.order-detail-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.order-detail-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: bold;
}

.order-detail-page {
    max-width: 100%;
}

.order-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.info-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.info-detail:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.address-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.address-content p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.order-items-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.order-items-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.order-items-table thead {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.order-items-table th {
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.order-items-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.order-items-table tbody tr:hover {
    background: var(--light-background);
}

.order-items-table tbody tr:last-child {
    border-bottom: none;
}

.order-items-table td {
    padding: 1rem;
    color: var(--text-color);
}

.order-items-table tfoot {
    border-top: 2px solid var(--border-color);
}

.total-row {
    font-weight: bold;
    font-size: 1.1rem;
    background: var(--light-background);
}

.total-row td {
    padding: 1rem;
}

.total-row td:last-child {
    text-align: right;
}

/* Confirmation */
.confirmation-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
}

.confirmation-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.confirmation-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.confirmation-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.confirmation-icon {
    font-size: 4rem;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.confirmation-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.confirmation-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.order-details-card {
    padding: 2.5rem;
}

.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.order-details-header h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 0;
}

.order-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

.order-items-section {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.order-items-section h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-item-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.order-item-qty {
    font-size: 0.9rem;
    color: var(--light-text);
}

.order-item-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.order-total-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--primary-color);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.total-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    margin-top: 0;
    padding: 2rem;
    background: var(--light-background);
}

.btn-continue-shopping {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cfe2ff;
    color: #084298;
}

.status-shipped {
    background: #d1e7dd;
    color: #0f5132;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Footer */
footer {
    background: #000;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo a {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-logo-image {
    height: 200px !important;
    width: auto !important;
    max-width: 700px !important;
    display: block;
    object-fit: contain;
}

.bee-logo {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.footer-brand {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.brand-miel {
    color: white;
}

.brand-store {
    color: var(--primary-color);
}

.footer-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.link-separator {
    color: white;
    margin: 0 0.25rem;
}

/* Admin Styles */
/* Admin Layout with Sidebar */
.admin-layout {
    display: flex;
    background: var(--light-background);
    position: relative;
}

.admin-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: fixed;
    top: 1rem;
    left: 1rem;
}

.admin-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.admin-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.admin-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.admin-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-sidebar-overlay.active {
    opacity: 1;
}

.admin-sidebar {
    width: 260px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 999;
    left: 0;
    transition: transform 0.3s ease;
}

.admin-sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-sidebar-header a {
    display: inline-block;
    text-decoration: none;
}

.admin-logo-image {
    height: 80px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
}

.admin-sidebar-header h1 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: white;
}

.admin-sidebar-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.admin-sidebar-link:hover {
    background: var(--light-background);
    border-left-color: var(--primary-color);
}

.admin-sidebar-link.active {
    background: rgba(212, 165, 116, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.admin-sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.admin-main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

.admin-sidebar.active {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .admin-menu-toggle {
        display: flex;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-sidebar-overlay {
        display: block;
    }
    
    .admin-main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem;
        min-height: auto;
    }
    
    body.admin-body {
        overflow-x: hidden;
    }
    
    .admin-page-header h1 {
        font-size: 1.3rem;
    }
    
    .admin-content {
        overflow-x: auto;
    }
    
    .admin-table {
        font-size: 0.8rem;
        min-width: 700px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.4rem;
    }
    
    .admin-actions .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
    
    .admin-form-card {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-small {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

.admin-page {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-page-header {
    margin-bottom: 2rem;
}

.admin-page-header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 700;
}

.variants-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.variants-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.no-variants {
    color: var(--light-text);
    font-style: italic;
    padding: 1rem;
    background: var(--light-background);
    border-radius: 5px;
}

.variants-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.variants-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
}

.variants-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.variants-actions {
    margin-top: 1rem;
}

.admin-header {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.admin-header h1 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 0.5rem 1rem;
    background: var(--light-background);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--primary-color);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    font-size: 3rem;
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.stat-info p {
    color: var(--light-text);
}

.admin-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-actions {
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table a.btn,
.admin-table .btn {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.admin-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
}

.admin-table th:nth-child(1) { width: 80px; } /* ID */
.admin-table th:nth-child(2) { width: 120px; } /* Client */
.admin-table th:nth-child(3) { width: 100px; } /* Téléphone */
.admin-table th:nth-child(4) { width: 150px; } /* Produits */
.admin-table th:nth-child(5) { width: 200px; } /* Adresse */
.admin-table th:nth-child(6) { width: 100px; } /* Total */
.admin-table th:nth-child(7) { width: 120px; } /* Statut */
.admin-table th:nth-child(8) { width: 100px; } /* Date */
.admin-table th:nth-child(9) { width: 80px; } /* Action */

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table td:last-child {
    white-space: nowrap;
    width: 80px;
    text-align: center;
}

.admin-table td:last-child .btn {
    margin: 0;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.admin-table td:last-child .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-table tr:hover {
    background: var(--light-background);
}

.admin-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.placeholder-thumbnail {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 5px;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    pointer-events: auto !important;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.admin-form-card {
    max-width: 800px;
    margin: 0 auto;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.admin-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.status-select {
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: white;
}

.inline-form {
    display: inline;
}

.role-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.role-admin {
    background: #ff9800;
    color: white;
}

.role-customer {
    background: #2196f3;
    color: white;
}

/* About Page */
.about-page {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.about-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-background);
    border-radius: 10px;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-page {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info,
.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-info h2,
.contact-form-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-form {
    margin-top: 1.5rem;
}

/* Mobile Logo in Navigation */
.mobile-logo-nav {
    display: none;
}

.mobile-logo-image {
    height: 80px !important;
    width: auto !important;
    max-width: 350px !important;
    display: block;
    object-fit: contain;
}

/* Mobile Touch Fixes */
a, button, input, select, textarea, label, .btn, .btn-primary, .btn-secondary, .btn-add-to-cart, .btn-add-cart-new, .filter-checkbox {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

a {
    pointer-events: auto !important;
    cursor: pointer !important;
}

button, .btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
}

input[type="checkbox"], input[type="radio"] {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top-section {
        display: none !important;
    }
    
    .header-top {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .header-logo {
        display: none;
    }
    
    .header-left {
        display: none;
    }
    
    .header-right {
        display: none;
    }
    
    .header-nav-section {
        padding: 0.6rem 0;
        position: relative;
    }
    
    .header-nav-section .container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: static;
        transform: none;
        order: 1;
        flex-shrink: 0;
    }
    
    .mobile-logo-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        order: 2;
    }
    
    .mobile-logo-nav a {
        display: inline-block;
        text-decoration: none;
    }
    
    .mobile-cart-link {
        display: flex;
        order: 3;
        position: static;
        flex-shrink: 0;
    }
    
    .header-nav-section .container {
        justify-content: space-between;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        pointer-events: auto;
    }
    
    .main-nav.active {
        left: 0;
        pointer-events: auto;
    }
    
    .main-nav:not(.active) {
        pointer-events: none;
    }
    
    main, .container, .products-page-wrapper, .products-content {
        pointer-events: auto !important;
        position: relative;
        z-index: 1;
    }
    
    .mobile-sidebar-header {
        display: flex;
    }
    
    .mobile-sidebar-overlay {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
        flex: 1;
        text-align: left;
        align-items: flex-start;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: left;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 1.2rem 1.5rem;
        width: 100%;
        font-size: 1rem;
        text-align: left;
    }
    
    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        opacity: 1;
    }
    
    .mobile-auth-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .mobile-auth-links a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-auth-links a:last-child {
        border-bottom: none;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 1rem;
        direction: ltr;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        direction: ltr;
        text-align: left;
        align-items: flex-start;
    }
    
    .nav-cart-wrapper {
        width: 100%;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-list .product-card {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 0.75rem;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .products-list .product-image {
        width: 100%;
        height: 100px;
        min-width: 100px;
        padding: 0.5rem;
    }
    
    .products-list .product-info {
        text-align: right;
        padding: 0.5rem 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .products-list .product-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .products-list .product-price {
        font-size: 1rem;
        margin: 0;
        justify-content: flex-start;
    }
    
    .products-list .btn-add-to-cart {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        width: fit-content;
        margin-top: 0.25rem;
    }
    
    .new-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .auth-page {
        padding: 2rem 1rem;
        min-height: calc(100vh - 150px);
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 0;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .auth-icon {
        font-size: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-auth-primary {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    .subtitle-line {
        max-width: 50px;
    }
    
    .new-product-image {
        height: 250px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-list .product-card {
        grid-template-columns: 80px 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .products-list .product-image {
        height: 80px;
        min-width: 80px;
        padding: 0.25rem;
    }
    
    .products-list .product-info {
        padding: 0;
        gap: 0.4rem;
    }
    
    .products-list .product-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
    
    .products-list .product-price {
        font-size: 0.9rem;
    }
    
    .products-list .btn-add-to-cart {
        font-size: 0.75rem;
        padding: 0.45rem 0.65rem;
    }
    
    .new-products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .subtitle-line {
        max-width: 30px;
    }
    
    .new-product-image {
        height: 200px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-page {
        grid-template-columns: 1fr;
    }
    
    .checkout-form {
        grid-template-columns: 1fr;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .product-action-buttons {
        flex-direction: column;
    }
    
    .weight-buttons {
        flex-wrap: wrap;
    }
    
    .products-page {
        grid-template-columns: 1fr;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .filters-sidebar {
        position: relative;
        top: 0;
    }
    
    .filter-checkbox {
        min-height: 44px;
        padding: 0.5rem 0;
        -webkit-tap-highlight-color: transparent;
    }
    
    .filter-checkbox input[type="checkbox"],
    .filter-checkbox input[type="radio"] {
        width: 24px !important;
        height: 24px !important;
        margin-right: 1rem;
        flex-shrink: 0;
        -webkit-appearance: none;
        appearance: none;
        border: 2px solid var(--border-color);
        border-radius: 3px;
        position: relative;
        cursor: pointer;
        pointer-events: auto;
    }
    
    .filter-checkbox input[type="radio"] {
        border-radius: 50%;
    }
    
    .filter-checkbox input[type="checkbox"]:checked,
    .filter-checkbox input[type="radio"]:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    .filter-checkbox input[type="checkbox"]:checked::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 14px;
        font-weight: bold;
    }
    
    .filter-checkbox input[type="radio"]:checked::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 10px;
        height: 10px;
        background-color: white;
        border-radius: 50%;
    }
    
    .filter-checkbox span {
        flex: 1;
        pointer-events: none;
        user-select: none;
    }
    
    .filter-form,
    .price-filter-form {
        pointer-events: auto;
        touch-action: manipulation;
    }
    
    .account-page {
        grid-template-columns: 1fr;
    }
    
    .account-page-container {
        padding: 1rem 10px;
    }
    
    .account-page-header h1 {
        font-size: 2rem;
    }
    
    .account-sidebar,
    .account-content {
        padding: 1.5rem;
    }
    
    .order-card-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .order-info-right {
        align-items: flex-start;
    }
    
    .order-info-section {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .checkout-right {
        position: static;
    }
    
    /* Confirmation page mobile */
    .confirmation-page {
        padding: 0 10px;
        margin: 1rem auto;
    }
    
    .confirmation-header {
        padding: 2rem 1.5rem;
    }
    
    .confirmation-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .confirmation-icon {
        font-size: 3rem;
    }
    
    .confirmation-title {
        font-size: 1.8rem;
    }
    
    .confirmation-message {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .order-details-card {
        padding: 1.5rem;
    }
    
    .order-details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .order-details-header h2 {
        font-size: 1.4rem;
    }
    
    .order-number {
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .order-items-section {
        margin: 1.5rem 0;
        padding-top: 1.5rem;
    }
    
    .order-items-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .order-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .order-item-price {
        align-self: flex-end;
        font-size: 1rem;
    }
    
    .order-total-section {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .total-label {
        font-size: 1.1rem;
    }
    
    .total-amount {
        font-size: 1.5rem;
    }
    
    .confirmation-actions {
        padding: 1.5rem 1rem;
    }
    
    .btn-continue-shopping {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

