:root {
    --primary-color: #006837;
    --secondary-color: #008542;
    --background-light: #ffffff;
    --text-light: #1f2937;
    --border-light: #e5e7eb;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --header-height: 70px;
    --accent-color: #f43f5e;
    --success-color: #10b981;
    --warning-color: #f97316;
    --error-color: #ef4444;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--background-light);
    color: var(--text-light);
    transition: all 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
    direction: rtl;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    margin-right: 0.5rem;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.cart-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Notification Bar */
.notification-bar {
    background: linear-gradient(90deg, var(--warning-color), #fb923c);
    color: white;
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: var(--header-height);
    z-index: 999;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    font-weight: 600;
}

.notification-text {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile View Toggle */
.mobile-view-toggle {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-200);
    display: none;
}

.view-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.view-btn {
    background: var(--neutral-100);
    border: 2px solid var(--neutral-300);
    color: var(--neutral-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Side Menu */
.side-menu {
    position: fixed;
    right: -100%;
    top: 0;
    width: 300px;
    height: 100vh;
    background-color: var(--background-light);
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    padding: calc(var(--header-height) + 1rem) 1rem 1rem 1rem;
}

.side-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.menu-header h3 {
    color: var(--primary-color);
    font-weight: 700;
}

.menu-close {
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.menu-close:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.menu-items {
    list-style: none;
}

.menu-item {
    margin-bottom: 0.5rem;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
    font-weight: 500;
}

.menu-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateX(-5px);
}

.menu-link i {
    margin-left: 0.75rem;
    width: 20px;
    text-align: center;
}

.submenu {
    list-style: none;
    margin-right: 2rem;
    margin-top: 0.5rem;
    display: none;
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
}

.submenu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.submenu .menu-link {
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 1100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

.cart-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-cart {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--neutral-500);
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: var(--neutral-50);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--neutral-800);
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-stock {
    color: var(--success-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--neutral-300);
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.quantity-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--neutral-50);
}

.remove-item {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-right: auto;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--neutral-200);
    background: var(--neutral-50);
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--neutral-50);
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-200);
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    color: var(--neutral-400);
    font-size: 0.8rem;
    transform: rotate(180deg);
}

/* Search and Filters */
.filters-section {
    background: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--neutral-200);
}

.search-and-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.search-box-container {
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    background: var(--neutral-50);
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.1);
    background: white;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-500);
    font-size: 1.1rem;
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--neutral-300);
    border: none;
    color: var(--neutral-600);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background: var(--error-color);
    color: white;
}

.filters {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
    align-items: end;
}

.filter-group h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.filter-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--neutral-100);
    border: 2px solid var(--neutral-300);
    color: var(--neutral-700);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.1);
}

/* Section Styles */
.section {
    padding: 3rem 0;
}

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

.product-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, var(--error-color), #f87171);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--neutral-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
}

.product-category:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--neutral-800);
    line-height: 1.4;
}

.product-description {
    color: var(--neutral-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--success-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
}

.product-stock-info i {
    font-size: 0.8rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.add-to-cart {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.preview-btn {
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.preview-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--neutral-500);
}

.no-products i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Image Zoom Modal */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

.zoom-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.zoom-close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.zoom-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.zoom-image-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    min-height: 400px;
}

.zoom-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.zoom-prev, .zoom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-prev {
    right: 1rem;
}

.zoom-next {
    left: 1rem;
}

.zoom-prev:hover, .zoom-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.zoom-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    overflow-x: auto;
    justify-content: center;
}

.zoom-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.zoom-thumbnail:hover,
.zoom-thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Product Details Page */
.product-section {
    background: var(--neutral-50);
}

.product-details-container {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.05);
}

.zoom-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.main-image-container:hover .zoom-icon {
    opacity: 1;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.product-info-detailed {
    padding: 0;
}

.product-category-detailed {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title-detailed {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--neutral-900);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-text {
    color: var(--neutral-600);
    font-size: 0.9rem;
}

.product-price-detailed {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.original-price {
    text-decoration: line-through;
    color: var(--neutral-400);
    font-size: 1.2rem;
    font-weight: 500;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.discount-percent {
    background: var(--error-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.product-description-detailed {
    color: var(--neutral-700);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.product-features {
    background: var(--neutral-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
}

.product-features h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.product-features li i {
    color: var(--success-color);
    font-size: 1rem;
    width: 16px;
}

.product-specifications {
    background: var(--neutral-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
}

.product-specifications h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.specs-grid {
    display: grid;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neutral-200);
}

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

.spec-label {
    font-weight: 600;
    color: var(--neutral-700);
}

.spec-value {
    color: var(--neutral-600);
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--success-color);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.product-actions-detailed {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    min-width: 150px;
}

.quantity-selector button {
    background: var(--neutral-100);
    border: none;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    color: var(--neutral-700);
    font-size: 1.2rem;
}

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

.quantity-selector input {
    border: none;
    padding: 1rem;
    width: 60px;
    text-align: center;
    font-weight: 600;
    background: white;
    font-size: 1.1rem;
}

.add-to-cart-detailed {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.add-to-cart-detailed:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.preview-section {
    margin-bottom: 2rem;
}

.preview-btn-large {
    width: 100%;
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.preview-btn-large:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-guarantees {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--neutral-700);
}

.guarantee-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

/* Embed Section */
.embed-section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.embed-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
}

.embed-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem 0;
    border-radius: var(--radius-sm);
}

/* Product Tabs */
.product-tabs {
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--neutral-200);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--neutral-600);
    border-bottom: 3px solid transparent;
    font-size: 1rem;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--neutral-50);
}

.tab-content {
    min-height: 200px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

.specifications-table {
    display: grid;
    gap: 0;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid var(--neutral-200);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-key {
    padding: 1rem;
    background: var(--neutral-50);
    font-weight: 600;
    color: var(--neutral-700);
    border-left: 1px solid var(--neutral-200);
}

.spec-value {
    padding: 1rem;
    background: white;
    color: var(--neutral-600);
}

.reviews-summary {
    text-align: center;
    padding: 2rem;
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stars-large {
    display: flex;
    gap: 0.25rem;
}

.stars-large i {
    color: #fbbf24;
    font-size: 1.5rem;
}

.rating-count {
    color: var(--neutral-600);
    font-size: 0.9rem;
}

/* Related Products */
.related-products {
    background: white;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
}

/* Contact Section */
.contact {
    background: var(--neutral-100);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-methods {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    color: inherit;
    text-decoration: none;
}

.contact-method i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-method h4 {
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: var(--neutral-800);
}

.contact-method p {
    color: var(--neutral-600);
    margin: 0;
}

.contact-description {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--neutral-800);
    font-weight: 700;
}

.feature-item p {
    color: var(--neutral-600);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.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;
    font-weight: 700;
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: calc(var(--header-height) + 20px);
    right: 1rem;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1200;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: var(--error-color);
}

.toast.warning {
    background: var(--warning-color);
}

.notification {
    position: fixed;
    top: calc(var(--header-height) + 20px);
    right: 20px;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

/* Hide notification bar initially */
.notification-bar.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    body {
        padding-top: var(--header-height);
    }

    .mobile-view-toggle {
        display: block;
    }

    .container {
        padding: 0.75rem;
    }

    .header-content {
        padding: 0 0.75rem;
    }

    .menu-toggle {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

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

    .contact-description {
        order: -1;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-and-filters {
        gap: 1rem;
    }

    .filters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filter-options {
        gap: 0.25rem;
    }

    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .cart-sidebar {
        width: 85%;
        max-width: 350px;
        right: -100%;
    }

    .side-menu {
        width: 85%;
        max-width: 300px;
    }

    .products-grid.mobile-single {
        grid-template-columns: 1fr;
    }

    .products-grid.mobile-double {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .products-grid.mobile-double .product-card {
        font-size: 0.9rem;
    }

    .products-grid.mobile-double .product-image {
        height: 150px;
    }

    .products-grid.mobile-double .product-info {
        padding: 1rem;
    }

    .products-grid.mobile-double .product-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .products-grid.mobile-double .product-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
    }

    .products-grid.mobile-double .product-stock-info {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.75rem;
    }

    .products-grid.mobile-double .product-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .products-grid.mobile-double .add-to-cart {
        padding: 0.5rem;
        font-size: 0.8rem;
        justify-content: center;
    }

    .products-grid.mobile-double .preview-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
        justify-content: center;
    }

    /* Product Details Mobile */
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-image {
        height: 300px;
    }

    .product-title-detailed {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .product-actions-detailed {
        flex-direction: column;
        gap: 1rem;
    }

    .quantity-selector {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .specs-grid {
        display: block;
    }

    .spec-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .spec-key {
        border-left: none;
        border-bottom: 1px solid var(--neutral-200);
    }

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

    .toast,
    .notification {
        right: 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    .image-zoom-modal .zoom-modal-content {
        width: 95%;
        height: 90%;
    }

    .zoom-thumbnails {
        padding: 0.5rem;
    }

    .zoom-thumbnail {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    .section {
        padding: 2rem 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .search-box input {
        font-size: 0.9rem;
        padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    }

    .filter-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .products-grid.mobile-double {
        gap: 0.75rem;
    }

    .products-grid.mobile-double .product-image {
        height: 120px;
    }

    .products-grid.mobile-double .product-info {
        padding: 0.75rem;
    }

    .products-grid.mobile-double .product-title {
        font-size: 0.85rem;
    }

    .products-grid.mobile-double .product-description {
        font-size: 0.75rem;
    }

    .products-grid.mobile-double .product-stock-info {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .products-grid.mobile-double .add-to-cart {
        padding: 0.4rem;
        font-size: 0.75rem;
    }

    .product-details-container {
        padding: 1rem;
    }

    .product-title-detailed {
        font-size: 1.25rem;
    }

    .current-price {
        font-size: 1.25rem;
    }

    .main-image {
        height: 250px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .zoom-modal-content {
        width: 98%;
        height: 95%;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--neutral-300);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}