/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8E9648;
    --secondary-color: #8E9648;
    --accent-color: #7a8440;
    --text-color: #1a1a1a;
    --light-bg: #ffffff;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow: rgba(0, 0, 0, 0.1) 0px 5px 20px -10px;
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'El Messiri', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
    direction: rtl;
}

html {
    background-color: #ffffff;
}

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

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 5px 20px -10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    height: 80px;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 80px;
    gap: 2rem;
}

.nav-left {
    justify-self: start;
}

.logo {
    justify-self: center;
    grid-column: 2;
    text-align: center;
}

.header-actions {
    justify-self: end;
    grid-column: 3;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s;
}

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

.logo-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'El Messiri', sans-serif;
    letter-spacing: 1px;
}

.logo-bee {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: bee-hover 2s ease-in-out infinite;
}

@keyframes bee-hover {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.logo-image {
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 400;
    font-family: 'El Messiri', sans-serif;
    margin: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400;
    font-size: 14px;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    color: var(--accent-color);
    background: transparent;
}

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

.cart-btn {
    position: relative;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
}

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

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--error-color);
    color: var(--white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Mobile Cart Button (Bottom Left) */
.mobile-cart-btn {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(142, 150, 72, 0.4);
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
}

.mobile-cart-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(142, 150, 72, 0.5);
}

.mobile-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid var(--white);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    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: 1500;
    display: none;
}

.cart-overlay.active {
    display: block;
}

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

.cart-header h2 {
    color: var(--primary-color);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

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

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

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

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

.cart-item-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
}

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

.quantity-btn {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
}

.remove-item {
    background: var(--error-color);
    color: var(--white);
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.checkout-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

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

/* Category Badges */
.category-badges {
    padding: 3rem 0;
    background: var(--white);
    margin-bottom: 3rem;
}

.badges-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.category-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
    cursor: pointer;
}

.category-badge:hover {
    transform: translateY(-5px);
}

.badge-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(142, 150, 72, 0.3);
    transition: all 0.3s;
}

.category-badge:hover .badge-circle {
    background: var(--accent-color);
    box-shadow: 0 6px 20px rgba(142, 150, 72, 0.4);
    transform: scale(1.05);
}

.badge-circle i {
    font-size: 3rem;
    color: var(--white);
}

.badge-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    transition: color 0.3s;
    max-width: 150px;
    line-height: 1.4;
}

.category-badge:hover .badge-label {
    color: var(--primary-color);
}

/* Responsive Category Badges */
@media (max-width: 768px) {
    .badges-grid {
        gap: 2rem;
    }
    
    .badge-circle {
        width: 100px;
        height: 100px;
    }
    
    .badge-circle i {
        font-size: 2.5rem;
    }
    
    .badge-label {
        font-size: 0.9rem;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .badges-grid {
        gap: 1.5rem;
    }
    
    .badge-circle {
        width: 80px;
        height: 80px;
    }
    
    .badge-circle i {
        font-size: 2rem;
    }
    
    .badge-label {
        font-size: 0.85rem;
        max-width: 100px;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 0;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    position: relative;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    margin-top: -60px;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 2;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Products Section */
.products-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

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

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--light-bg);
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--error-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    min-height: 3rem;
}

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

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

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

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

.buy-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

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

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

.view-more-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, opacity 0.3s;
}

.view-more-btn:hover {
    background: var(--accent-color);
    opacity: 0.9;
}

/* Categories Page */
.categories-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.categories-sidebar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.categories-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 5px;
    transition: background 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: var(--light-bg);
    color: var(--primary-color);
    font-weight: bold;
}

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

.page-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.8rem 1.2rem;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

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

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

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

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

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

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

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

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

.submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

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

@media (max-width: 768px) {
    .contact-page {
        margin: 1.5rem auto;
        padding: 1.5rem 1rem;
    }

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

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.3rem;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Elegant Success Message Card */
.success-card {
    max-width: 600px;
    margin: 3rem auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(142, 150, 72, 0.15), 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.success-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(142, 150, 72, 0.05) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(142, 150, 72, 0.3);
    position: relative;
    z-index: 1;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.success-icon i {
    font-size: 2.5rem;
    color: var(--white);
    animation: checkmark 0.6s ease-out 0.4s both;
}

.success-card h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.success-card p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.success-card .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(142, 150, 72, 0.3);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out 0.5s both;
    border: none;
    cursor: pointer;
}

.success-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(142, 150, 72, 0.4);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.success-card .btn-primary:active {
    transform: translateY(-1px);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

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

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

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Social Media Icons */
.social-media {
    margin-top: 1.5rem;
}

.social-media h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ccc;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.social-icons a i {
    transition: transform 0.3s;
}

.social-icons a:hover i {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(142, 150, 72, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(142, 150, 72, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .nav-left {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }
    
    .logo {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-bee {
        font-size: 1.3rem;
    }
    
    .logo-image {
        max-height: 45px;
    }
    
    .logo-image {
        max-height: 45px;
    }
    
    .header-actions {
        grid-column: 1;
        grid-row: 3;
        justify-self: center;
        display: none; /* Hide cart button in header on mobile/tablet */
    }
    
    /* Show mobile cart button on mobile and tablet */
    .mobile-cart-btn {
        display: flex;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    /* Back to top button - mobile */
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Categories page - mobile layout */
    .categories-page {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .categories-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 1rem;
    }

    .products-content {
        min-height: auto;
    }
}

/* Tablet styles (iPad and similar) */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Show mobile cart button on tablet */
    .mobile-cart-btn {
        display: flex;
    }
    
    .header-actions {
        display: none; /* Hide cart button in header on tablet */
    }
    
    .nav-list {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-slider,
    .slider-container,
    .slide {
        height: 300px;
    }
    
    .hero-logo {
        max-width: 140px;
    }

    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .categories-page {
        grid-template-columns: 1fr;
    }
    
    .categories-sidebar {
        position: static;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Success card responsive */
    .success-card {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
    }
    
    .success-icon i {
        font-size: 2rem;
    }
    
    .success-card h2 {
        font-size: 1.6rem;
    }
    
    .success-card p {
        font-size: 1rem;
    }
    
    .success-card .btn-primary {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

/* Product Detail Page */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

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

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

.breadcrumb span {
    margin: 0 0.5rem;
    color: #999;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.product-images {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    width: 100%;
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

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

.discount-badge-large {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--error-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
}

.product-info-detail {
    padding: 1rem 0;
}

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

.product-category {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #666;
}

.product-category i {
    color: var(--primary-color);
    margin-left: 0.5rem;
}

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

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

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.original-price-detail {
    color: #999;
    text-decoration: line-through;
    font-size: 1.2rem;
}

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

.product-description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.product-description h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.product-description p {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1rem;
}

.product-stock {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 5px;
}

.in-stock {
    color: var(--success-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.out-of-stock {
    color: var(--error-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-actions {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.quantity-selector {
    margin-bottom: 1.5rem;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

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

.quantity-controls input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
}

.buy-btn-large {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1.2rem;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.buy-btn-large:hover:not(:disabled) {
    background: var(--accent-color);
}

.buy-btn-large:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-color);
}

.related-products {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

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

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

/* Elegant Back Button - Used on all pages */
.back-button-container {
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(142, 150, 72, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.back-button span,
.back-button i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.back-button:hover {
    color: var(--white);
    transform: translateX(-8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(142, 150, 72, 0.3), 0 4px 10px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.back-button:hover::before {
    width: 100%;
}

.back-button i {
    font-size: 1.1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-button:hover i {
    transform: translateX(5px);
}

.back-button:active {
    transform: translateX(-5px) translateY(0);
    box-shadow: 0 4px 15px rgba(142, 150, 72, 0.25);
}

.about-hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border-radius: 15px;
    margin-bottom: 4rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-hero .page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.8;
}

.about-content {
    margin-bottom: 4rem;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 2rem 0;
}

.about-section.reverse {
    direction: rtl;
}

.about-section.reverse > * {
    direction: ltr;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(142, 150, 72, 0.1) 0%, rgba(122, 132, 64, 0.1) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-color);
}

.image-placeholder i {
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.value-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Products List */
.products-list {
    margin-top: 2rem;
}

.product-category {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.product-category:hover {
    transform: translateX(-5px);
}

.product-category h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.product-category h3 i {
    font-size: 1.3rem;
}

.product-category p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Why Choose Us */
.why-choose-us {
    background: linear-gradient(135deg, rgba(142, 150, 72, 0.05) 0%, rgba(122, 132, 64, 0.05) 100%);
    padding: 4rem 2rem;
    border-radius: 15px;
    margin: 4rem 0;
    text-align: center;
}

.why-choose-us h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 4rem 2rem;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    margin-top: 4rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f8f8;
}

/* Responsive for About Page and Back Button */
@media (max-width: 968px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-section.reverse {
        direction: ltr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .about-hero .page-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .image-placeholder {
        height: 300px;
    }
    
    .image-placeholder i {
        font-size: 4rem;
    }
    
    .back-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .back-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .back-button span {
        display: none;
    }
    
    .back-button::after {
        content: 'العودة';
        display: inline;
        position: relative;
        z-index: 1;
    }
}

/* Responsive for product detail */
@media (max-width: 968px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-images {
        position: static;
    }
    
    .product-title-detail {
        font-size: 2rem;
    }
    
    .current-price-detail {
        font-size: 2rem;
    }
}

