/* =====================================================
   كازابلانكا - Casablanca E-Commerce Styles
   Inspired by Ovalete Store Design
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors - Warm Earthy Palette */
    --primary-color: #5c3d2e;
    --primary-light: #8b6b5d;
    --primary-dark: #3d2820;
    --secondary-color: #c5a992;
    --accent-color: #f78080;
    --accent-secondary: #178087;

    /* Neutrals */
    --text-dark: #212121;
    --text-medium: #687279;
    --text-light: #96989c;
    --bg-light: #f8f5f2;
    --bg-white: #ffffff;
    --bg-cream: #fbfbfb;
    --border-color: #e5e5e5;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 140px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--bg-white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

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

.btn-accent:hover {
    background-color: #e66b6b;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

/* Header Top */
.header-top {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 8px 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher .lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.language-switcher .lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--bg-white);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Header Main */
.header-main {
    padding: 15px 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Main Navigation */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav .nav-list > li {
    position: relative;
}

.main-nav .nav-list > li > a {
    display: block;
    padding: 10px 0;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.main-nav .nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-normal);
}

[dir="ltr"] .main-nav .nav-list > li > a::after {
    right: auto;
    left: 0;
}

.main-nav .nav-list > li > a:hover::after,
.main-nav .nav-list > li > a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    list-style: none;
    z-index: 100;
}

[dir="ltr"] .dropdown {
    right: auto;
    left: 0;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.dropdown li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icons button,
.header-icons a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border: none;
    border-radius: var(--radius-full);
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.header-icons button:hover,
.header-icons a:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="ltr"] .cart-count {
    right: auto;
    left: -5px;
}

.mobile-menu-btn {
    display: none;
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--primary-color);
    color: var(--bg-white);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.search-form button:hover {
    background-color: var(--primary-dark);
}

.close-search {
    background-color: var(--bg-light) !important;
    color: var(--text-dark) !important;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 2000;
    transition: right var(--transition-normal);
    overflow-y: auto;
}

[dir="ltr"] .mobile-menu {
    right: auto;
    left: -300px;
    transition: left var(--transition-normal);
}

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

[dir="ltr"] .mobile-menu.active {
    right: auto;
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.mobile-menu-header button {
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
}

.mobile-categories {
    padding: 0 20px 20px;
}

.mobile-categories h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.mobile-categories ul {
    list-style: none;
}

.mobile-categories li a {
    display: block;
    padding: 8px 0;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(92, 61, 46, 0.8), rgba(92, 61, 46, 0.4));
}

[dir="ltr"] .slide::before {
    background: linear-gradient(to right, rgba(92, 61, 46, 0.8), rgba(92, 61, 46, 0.4));
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--bg-white);
}

.slide-content h1 {
    font-size: 3rem;
    color: var(--bg-white);
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-full);
    color: var(--bg-white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--accent-color);
}

.slider-btn.prev {
    right: 20px;
}

.slider-btn.next {
    left: 20px;
}

[dir="ltr"] .slider-btn.prev {
    right: auto;
    left: 20px;
}

[dir="ltr"] .slider-btn.next {
    left: auto;
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active,
.dot:hover {
    background-color: var(--bg-white);
    transform: scale(1.2);
}

/* =====================================================
   SECTIONS
   ===================================================== */
section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.75rem;
}

.view-all {
    color: var(--accent-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-all:hover {
    text-decoration: underline;
}

/* Categories Section */
.categories-section {
    background-color: var(--bg-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: var(--bg-white);
}

.category-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 15px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-image i {
    font-size: 2.5rem;
    color: var(--bg-white);
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

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

/* Products Section */
.products-section {
    background-color: var(--bg-cream);
}

.products-section.featured-section {
    background-color: var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Product Card */
.product-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-color: var(--bg-light);
    overflow: hidden;
    flex-shrink: 0;
    isolation: isolate;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
    z-index: 1;
}

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

.product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1;
}

[dir="ltr"] .product-badges {
    right: auto;
    left: 10px;
}

.badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.badge-new {
    background-color: var(--accent-secondary);
    color: var(--bg-white);
}

.badge-featured {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.badge-sale {
    background-color: #f78080;
    color: var(--bg-white);
}

.product-actions {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 10;
    pointer-events: none;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.product-actions .btn {
    width: 100%;
    pointer-events: auto;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
    flex-shrink: 0;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 2.8em;
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    flex-shrink: 0;
}

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

.price-old, .price-original {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-sale {
    color: #f78080 !important;
}

.price-range {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
}

/* Product Gallery Styles */
.product-gallery {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
}

.main-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
    margin-bottom: 15px;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

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

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

.thumbnails::-webkit-scrollbar {
    height: 6px;
}

.thumbnails::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.thumbnail {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--primary-rgb), 0.1);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    touch-action: none;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.lightbox-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-gallery {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 20px;
    }

    .lightbox-nav,
    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-zoom-controls {
        bottom: 10px;
        right: 10px;
    }

    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .thumbnails {
        -webkit-overflow-scrolling: touch;
    }
}

/* Features Section */
.features-section {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.feature-card h3 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    opacity: 0.8;
    transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-list li i {
    margin-top: 4px;
    color: var(--accent-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transition: all var(--transition-normal);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

/* =====================================================
   STATUS BADGES
   ===================================================== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1ecf1; color: #0c5460; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-paid { background: #d4edda; color: #155724; }
.status-unpaid { background: #fff3cd; color: #856404; }

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-medium);
    margin-bottom: 25px;
}

/* =====================================================
   SKELETON LOADING
   ===================================================== */
.skeleton-box {
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--border-color) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
}

.skeleton .product-image {
    padding-top: 100%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   BACK TO TOP BUTTON
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

[dir="ltr"] .back-to-top {
    right: auto;
    left: 30px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* =====================================================
   PRICE RANGE
   ===================================================== */
.price-range {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Header */
    :root {
        --header-height: 120px;
    }

    .header-top {
        padding: 6px 0;
        font-size: 0.8rem;
    }

    .header-top-content {
        flex-direction: column;
        gap: 8px;
    }

    .contact-info {
        gap: 15px;
        font-size: 0.75rem;
    }

    .header-main {
        padding: 10px 0;
    }

    .logo img {
        height: 40px;
    }

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

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-icons button,
    .header-icons a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .header-icons {
        gap: 10px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Grids */
    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

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

    .footer-social {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center;
    }

    /* Hero Slider */
    .hero-slider {
        height: 350px;
    }

    .slide-content h1 {
        font-size: 1.75rem;
    }

    .slide-content p {
        font-size: 0.95rem;
    }

    .slide-content {
        padding: 0 15px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-btn.prev {
        right: 10px;
    }

    .slider-btn.next {
        left: 10px;
    }

    [dir="ltr"] .slider-btn.prev {
        right: auto;
        left: 10px;
    }

    [dir="ltr"] .slider-btn.next {
        left: auto;
        right: 10px;
    }

    /* Sections */
    section {
        padding: 40px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Product Cards */
    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 0.95rem;
    }

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

    /* Category Cards */
    .category-card {
        padding: 20px 15px;
    }

    .category-image {
        width: 80px;
        height: 80px;
    }

    .category-card h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }

    /* Grids */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Hero Slider */
    .hero-slider {
        height: 280px;
    }

    .slide-content h1 {
        font-size: 1.35rem;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .slide-content .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    /* Sections */
    section {
        padding: 30px 0;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    /* Product Cards */
    .product-card {
        border-radius: var(--radius-md);
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .product-category {
        font-size: 0.7rem;
    }

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

    .price-old, .price-original {
        font-size: 0.8rem;
    }

    .badge {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    /* Category Cards */
    .category-card {
        padding: 15px 10px;
    }

    .category-image {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .category-card h3 {
        font-size: 0.9rem;
    }

    .category-card .products-count {
        font-size: 0.75rem;
    }

    /* Features */
    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-col p,
    .footer-col ul li a {
        font-size: 0.85rem;
    }

    /* Toast & Loading */
    .toast {
        bottom: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
        max-width: 90%;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    [dir="ltr"] .back-to-top {
        right: auto;
        left: 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch */
    .btn {
        min-height: 44px;
    }

    .header-icons button,
    .header-icons a {
        min-width: 44px;
        min-height: 44px;
    }

    .nav-list > li > a {
        padding: 12px 0;
    }

    /* Disable hover effects on touch devices */
    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: translateY(-3px);
    }

    /* Show product actions by default on touch */
    .product-actions {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .product-actions .btn {
        pointer-events: auto;
    }
}

/* =====================================================
   STICKY WHATSAPP BUTTON
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}

[dir="ltr"] .whatsapp-float {
    left: auto;
    right: 30px;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float-btn:active {
    transform: scale(0.95);
}

.whatsapp-float-tooltip {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all var(--transition-normal);
    position: relative;
}

[dir="ltr"] .whatsapp-float-tooltip {
    transform: translateX(10px);
}

.whatsapp-float-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--bg-white);
}

[dir="ltr"] .whatsapp-float-tooltip::after {
    left: auto;
    right: 100%;
    border-left-color: transparent;
    border-right-color: var(--bg-white);
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }

    [dir="ltr"] .whatsapp-float {
        left: auto;
        right: 20px;
    }

    .whatsapp-float-btn {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }

    .whatsapp-float-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        left: 15px;
    }

    [dir="ltr"] .whatsapp-float {
        left: auto;
        right: 15px;
    }

    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
