/* ===== Design System: الحلواني للبهارات ===== */
:root {
    --primary: #8B2500;
    --primary-light: #A0522D;
    --primary-dark: #5C1A00;
    --secondary: #D4AF37;
    --secondary-light: #F0D060;
    --accent: #C0392B;
    --accent-warm: #E67E22;
    --bg: #FDF8F0;
    --bg-card: #FFFFFF;
    --text: #2C1810;
    --text-light: #6B4F3F;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 2px 8px rgba(139, 37, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(139, 37, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(139, 37, 0, 0.16);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.3);
    --input-bg: #ffffff;
    --input-border: #e0d5c8;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
    --transition: cubic-bezier(0.23, 1, 0.32, 1);
}

body.dark-mode {
    --bg: #0F0A07;
    --bg-card: #1A1410;
    --text: #F5E6D3;
    --text-light: #B89F8F;
    --glass: rgba(26, 20, 16, 0.9);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --input-bg: #2A2018;
    --input-border: #4A3A2A;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4 {
    font-family: 'Amiri', serif;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Particles ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ===== Header ===== */
header {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 37, 0, 0.08);
}

header.scrolled {
    padding: 6px 0;
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.logo-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-glow);
    transition: transform 0.4s var(--transition);
}

.logo:hover .logo-img {
    transform: rotate(10deg) scale(1.05);
}

.logo-text h1 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: -4px;
    transition: color 0.3s ease;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--secondary);
    letter-spacing: 0.5px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(139, 37, 0, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-btn {
    background: none;
    border: 2px solid var(--input-border);
    font-size: 1rem;
    cursor: pointer;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(20deg);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border: 2px solid var(--input-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cart-icon #cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    color: white;
    font-size: 0.65rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    transition: transform 0.3s ease;
}

.cart-icon #cart-count.bump {
    animation: cartBump 0.4s ease;
}

@keyframes cartBump {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--primary);
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(139, 37, 0, 0.92), rgba(92, 26, 0, 0.88)),
        url('https://images.unsplash.com/photo-1596040033229-a9821ebd058d?w=1500&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(230, 126, 34, 0.1) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-badge i {
    color: var(--secondary);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-content h2 .highlight {
    color: var(--secondary);
    position: relative;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 1s ease 1s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--secondary);
    display: block;
    font-family: 'Tajawal', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    font-family: 'Tajawal', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--accent-warm));
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* ===== Categories ===== */
.categories {
    padding: 80px 0 40px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent-warm));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover,
.category-card.active {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-card.active::before {
    opacity: 1;
}

.category-card.active * {
    position: relative;
    color: white !important;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 37, 0, 0.08), rgba(212, 175, 55, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-card.active .category-icon {
    background: rgba(255, 255, 255, 0.2);
}

.category-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-light);
    background: rgba(139, 37, 0, 0.05);
    padding: 2px 12px;
    border-radius: var(--radius-full);
}

/* ===== Products ===== */
.products {
    padding: 40px 0 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(139, 37, 0, 0.05);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    color: white;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.product-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-img-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-tag {
    font-size: 0.75rem;
    color: var(--accent-warm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.4;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 37, 0, 0.06);
}

.product-price {
    font-weight: 900;
    color: var(--primary);
    font-size: 1.3rem;
    font-family: 'Tajawal', sans-serif;
}

.product-price small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

.add-to-cart {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(139, 37, 0, 0.3);
}

.add-to-cart:active {
    transform: scale(0.97);
}

/* ===== Features ===== */
.features {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent);
    border-radius: 50%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--accent-warm));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.feature-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* ===== Cart Overlay ===== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.cart-overlay.show {
    visibility: visible;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 100%;
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 0.4s var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.cart-overlay.show .cart-sidebar {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--input-border);
    background: var(--bg-card);
}

.cart-header h3 {
    font-size: 1.4rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

#close-cart {
    background: none;
    border: 2px solid var(--input-border);
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#close-cart:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px 25px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-light);
}

.empty-cart i {
    font-size: 3rem;
    opacity: 0.2;
    margin-bottom: 15px;
}

.empty-cart p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.empty-cart span {
    font-size: 0.85rem;
    opacity: 0.6;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 37, 0, 0.05);
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: var(--shadow-sm);
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
}

.item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-qty button {
    background: var(--bg);
    border: 1px solid var(--input-border);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-qty button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.item-qty span {
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.item-remove {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    margin-top: 5px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.item-remove:hover {
    opacity: 1;
}

/* Cart Footer */
.cart-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--primary);
    background: var(--bg-card);
    max-height: 60vh;
    overflow-y: auto;
}

.checkout-details {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(139, 37, 0, 0.03);
    border-radius: var(--radius-md);
}

body.dark-mode .checkout-details {
    background: rgba(255, 255, 255, 0.03);
}

.input-group {
    margin-bottom: 12px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.input-group label i {
    color: var(--primary);
    font-size: 0.8rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-sm);
    background-color: var(--input-bg);
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.input-group textarea {
    height: 60px;
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 37, 0, 0.08);
}

.input-group input.error,
.input-group textarea.error {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.cart-summary {
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.summary-row.total-row {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
    border-top: 2px solid var(--input-border);
    padding-top: 12px;
    margin-top: 5px;
}

.delivery-fee {
    color: #27ae60;
    font-weight: 600;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    width: 100%;
    font-size: 1.1rem;
    padding: 14px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.checkout-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.checkout-note i {
    color: #27ae60;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3000;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s var(--transition);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== Scroll To Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== Footer ===== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 70px 0 20px;
    margin-top: 0;
}

body.dark-mode .site-footer {
    background: linear-gradient(135deg, #050302, #0d0d0d);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

.footer-logo h2 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 2px;
}

.footer-logo span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.brand-col p {
    margin-top: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 300px;
    line-height: 1.7;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--secondary);
}

.links-col ul {
    list-style: none;
}

.links-col ul li {
    margin-bottom: 10px;
}

.links-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.links-col ul li a:hover {
    color: var(--secondary);
    padding-right: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--secondary);
    font-size: 1rem;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.contact-item a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 20px;
        box-shadow: var(--shadow-md);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 20px 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h3::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-links {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        justify-content: center;
    }
}

/* ===== Checkout Button ===== */
.btn-checkout {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    width: 100%;
    font-size: 1.1rem;
    padding: 14px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 37, 0, 0.2);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 37, 0, 0.3);
}

/* ===== Order Modal ===== */
.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s var(--transition);
    padding: 20px;
}

.order-modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

.order-modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(30px);
    transition: transform 0.4s var(--transition);
    border: 1px solid var(--input-border);
}

.order-modal-overlay.show .order-modal {
    transform: translateY(0);
}

.order-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.3);
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.order-modal h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.order-number {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    background: rgba(139, 37, 0, 0.05);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.order-summary {
    text-align: right;
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--input-border);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--input-border);
    padding-bottom: 5px;
}

.order-summary-item:last-child {
    border-bottom: none;
}

.order-customer-info {
    text-align: right;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0 5px;
    line-height: 1.6;
}

.order-total-box {
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.order-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.order-done-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 500px) {
    .order-modal {
        padding: 30px 15px;
    }

    .order-modal h2 {
        font-size: 1.5rem;
    }
}

/* ===== WebFinity Branding ===== */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.webfinity-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.webfinity-branding:hover {
    opacity: 1;
}

.webfinity-footer-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.webfinity-branding:hover .webfinity-footer-logo {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}