* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B4513;
    --primary-light: #a0522d;
    --primary-dark: #5c3317;
    --accent: #d4a574;
    --accent-light: #e8c9a8;
    --bg: #faf6f1;
    --bg-alt: #f0e8df;
    --text: #2d1810;
    --text-light: #6b5a4d;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(139, 69, 19, 0.12);
    --shadow-hover: 0 20px 60px rgba(139, 69, 19, 0.18);
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: var(--text);
    padding: 1.2rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 69, 19, 0.08);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateX(5px);
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.92) 0%, rgba(212, 165, 116, 0.85) 100%),
                url('https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=artisan%20pottery%20studio%20with%20beautiful%20handcrafted%20ceramics%20warm%20natural%20lighting%20elegant&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 10rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: right;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--white) 0%, #f0e8df 100%);
    color: var(--primary);
    padding: 1.1rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 900;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

/* Features */
.features {
    background: var(--white);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(145deg, var(--white) 0%, var(--bg) 100%);
    border-radius: 28px;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(139, 69, 19, 0.06);
}

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

.feature-card .icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.2rem;
    animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Products */
.products-preview {
    background: var(--bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(139, 69, 19, 0.06);
}

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

.product-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-image-container {
    overflow: hidden;
}

.product-info {
    padding: 2rem;
}

.product-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
    font-weight: 800;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

footer .container {
    text-align: center;
}

footer p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* About & Contact */
.about-section,
.contact-section {
    background: var(--white);
}

.about-text,
.contact-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.25rem;
    line-height: 2.2;
    color: var(--text-light);
}

.contact-info {
    background: linear-gradient(145deg, var(--bg) 0%, var(--bg-alt) 100%);
    padding: 3rem;
    border-radius: 28px;
    margin-top: 3rem;
    box-shadow: var(--shadow);
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.contact-info strong {
    color: var(--primary);
    font-weight: 800;
}

/* Admin Dashboard */
.admin-section {
    background: var(--bg);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid rgba(139, 69, 19, 0.08);
    transition: all 0.3s ease;
}

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

.card-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 900;
    line-height: 1;
}

.card-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-light);
}

.admin-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.admin-tab:hover {
    color: var(--primary);
}

.admin-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-form-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(139, 69, 19, 0.08);
    margin-bottom: 2rem;
}

.admin-form-container h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 900;
}

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

.form-group select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--accent-light);
    border-radius: 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    background: var(--white);
    transition: all 0.3s ease;
    color: var(--text);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.1);
}

.admin-product-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid rgba(139, 69, 19, 0.06);
    transition: all 0.3s ease;
}

.admin-product-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow);
}

.admin-product-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

.admin-product-details {
    flex: 1;
}

.admin-product-details h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.admin-product-details p {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.admin-product-category {
    display: inline-block;
    background: var(--accent-light);
    color: var(--primary-dark);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

.admin-product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
}

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

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

.checkbox-group input {
    width: 24px;
    height: 24px;
    accent-color: var(--primary);
}

.quick-actions {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.quick-actions h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.quick-action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
}

.quick-action-btn span:first-child {
    font-size: 2rem;
}

.admin-search {
    margin-bottom: 1.5rem;
}

.admin-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--accent-light);
    border-radius: 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.1);
}

.product-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.product-badge.featured {
    background: var(--primary);
    color: white;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--accent-light);
    border-radius: 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.1);
}

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

.admin-buttons {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

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

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

.admin-products-list {
    margin-top: 4rem;
}

.admin-products-list h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 900;
}

.admin-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 2.2rem;
    background: var(--white);
    border-radius: 20px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.admin-product-item:hover {
    transform: translateX(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.admin-product-item h4 {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 800;
}

.admin-product-item p {
    color: var(--text-light);
    font-weight: 600;
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 12px;
    font-weight: 700;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a02622 100%);
    transform: translateY(-2px);
}

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

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

/* Responsive */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

/* New Header Layout */
header .container {
    flex-direction: row;
    justify-content: space-between;
    direction: rtl;
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
}

.user-dropdown-container {
    position: relative;
}

.icon-link {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    position: relative;
}

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

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Products Section */
.products-section {
    background: var(--bg);
    padding: 4rem 0 6rem;
}

.products-title {
    text-align: center;
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 900;
}

.products-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 2;
}

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

/* Filters Sidebar */
.filters-sidebar {
    padding-right: 1rem;
}

.filter-group {
    margin-bottom: 2.5rem;
}

.filter-title {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid var(--accent-light);
    padding-bottom: 0.8rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

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

.filter-option input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.color-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-option {
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: block;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.color-option input:checked + .color-circle {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.2);
}

/* Products Main */
.products-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Updated Product Card */
.product-card {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
    border: none;
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image-container {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    position: relative;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: var(--text-light);
}

.favorite-btn:hover {
    transform: scale(1.1);
    color: var(--primary);
}

.favorite-btn.favorited {
    color: #ef4444;
    background: #fef2f2;
}

.favorite-btn.favorited svg {
    fill: #ef4444;
}

.product-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
}

.product-info {
    padding: 0;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-description {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

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

.add-to-cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.add-to-cart-btn.in-cart {
    background: var(--accent-light);
    color: var(--primary-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.pagination-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--accent-light);
    background: var(--white);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

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

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* New Footer */
.new-footer {
    background: var(--bg);
    color: var(--text);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--accent-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo-img {
    height: 70px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

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

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

/* Cart Panel */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: -2px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

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

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

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

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

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

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

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 12px;
    margin-bottom: 1rem;
}

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

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

.cart-item-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: var(--primary);
}

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

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

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

/* Responsive Updates */
@media (max-width: 968px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        padding-right: 0;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--accent-light);
    }

    .products-title {
        font-size: 2.5rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav ul {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 6rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2.3rem;
    }

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

    .admin-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-product-item {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-product-image {
        width: 100%;
        height: 150px;
    }
    
    .admin-product-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    
    .cart-panel {
        width: 100%;
    }
}

/* ===== PROFESSIONAL HOME PAGE STYLES ===== */

/* Hero Section - Professional */
.hero-pro {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

.hero-decoration-1 {
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.hero-decoration-2 {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    opacity: 0.15;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

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

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

.hero-image {
    position: relative;
}

.hero-image-bg {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
    display: block;
}
.hero-image-bg:not(img) {
    background: linear-gradient(135deg, #FFFBEB 0%, #FFF8E1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 150px;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 600;
}

/* Features - Professional */
.features-pro {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature-card-pro {
    background: var(--bg);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--accent-light);
}

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

.feature-icon-pro {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: block;
}

.feature-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.feature-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

/* Products Preview Pro */
.products-preview-pro {
    background: var(--bg);
}

.products-cta {
    text-align: center;
    margin-top: 3rem;
}

/* About Home Section */
.about-home {
    background: var(--white);
}

.about-home-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.about-home-image {
    position: relative;
}

.about-image-bg {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow);
    display: block;
}
.about-image-bg:not(img) {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 150px;
}

.about-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--primary-dark);
    padding: 0.5rem 1.3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.about-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.about-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 2rem;
}

.about-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.about-list li {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.about-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 900;
    margin-left: 0.8rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.btn-light {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    background: var(--accent-light);
}

/* Enhanced Footer */
.new-footer .footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    text-align: right;
    gap: 3rem;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-section h4 {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-desc {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.footer-links {
    flex-direction: column;
    gap: 0.7rem;
    align-items: start;
}

.footer-contact p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--accent-light);
}

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

/* Responsive for Professional Styles */
@media (max-width: 1200px) {
    .features-grid-pro {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .new-footer .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 968px) {
    .hero-content,
    .about-home-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-list li::before {
        margin-right: 0.8rem;
        margin-left: 0;
    }
    
    .new-footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-pro {
        padding: 4rem 0 5rem;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .features-grid-pro {
        grid-template-columns: 1fr;
    }
}

/* ===== USER DROPDOWN STYLES ===== */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 200px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.9rem 1.3rem;
    text-decoration: none;
    color: var(--text);
    border-radius: 10px;
    font-weight: 600;
    text-align: right;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.dropdown-item:hover {
    background: var(--bg);
    color: var(--primary);
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
    position: relative;
    z-index: 1001;
}

#user-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
}

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

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

.modal-header h3 {
    color: var(--primary);
    font-weight: 900;
}

.modal-content {
    padding: 2rem;
}

/* ===== ADMIN TABS ===== */
#add-tab,
#categories-tab,
.admin-users-list,
.admin-products-list {
    display: none;
}

#add-tab.show,
#categories-tab.show,
.admin-users-list.show,
.admin-products-list.show {
    display: block;
}

.user-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(139, 69, 19, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.user-email {
    color: var(--text-light);
    font-size: 0.95rem;
}

.user-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.user-badge {
    background: var(--accent-light);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-badge.admin {
    background: var(--primary);
    color: white;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-actions button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background: #2563eb;
}

.btn-promote {
    background: #10b981;
    color: white;
}

.btn-promote:hover {
    background: #059669;
}

.btn-demote {
    background: #f59e0b;
    color: white;
}

.btn-demote:hover {
    background: #d97706;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    border-right: 4px solid var(--primary);
}

.toast.success {
    border-color: #16a34a;
}

.toast.error {
    border-color: #dc2626;
}

.toast.warning {
    border-color: #d97706;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.dropdown-item {
    cursor: pointer;
}

.dropdown-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
}

/* Product Detail Page Styles */
.product-detail-container {
    padding: 4rem 0;
}

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

.product-detail-image {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-detail-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    font-weight: 900;
    margin: 0;
}

.product-detail-price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 900;
}

.product-detail-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 2;
}

.product-detail-stock {
    color: var(--text-light);
}

.product-detail-stock strong {
    color: var(--primary);
}

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

.product-detail-quantity label {
    font-weight: 700;
}

.quantity-controls {
    display: flex;
    border: 2px solid var(--accent-light);
    border-radius: 10px;
    overflow: hidden;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.quantity-controls button:hover {
    background: var(--accent-light);
}

.quantity-controls input {
    width: 60px;
    text-align: center;
    border: none;
    padding: 0.5rem;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
}

/* Responsive for Product Detail */
@media (max-width: 968px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-detail-quantity {
        justify-content: center;
    }
    
    .product-detail-actions {
        justify-content: center;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 1rem 2rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: #dc2626;
}

.toast.warning {
    background: #ca8a04;
}

.toast.info {
    background: #2563eb;
}

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Lazy Loading Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
