
:root {
    --primary: #ce1212;
    --primary-light: #e61414;
    --primary-dark: #a50e0e;
    --secondary: #212529;
    --accent: #ffc107;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 12px;
    --box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: #444;
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--secondary);
}

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

/* ======================
   HEADER & NAVIGATION
   ====================== */
#header {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

#header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    font-weight: 700;
    color: #F9CD64;
    margin: 0;
}

.logo span {
    color: var(--secondary);
}

.navbar {
    padding: 0;
}

.navbar-nav {
    align-items: center;
}

.nav-item {
    margin: 0 5px;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary);
    padding: 8px 15px !important;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #F9CD64;
}

.nav-link:hover:after,
.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: #F9CD64;
}
/* Fix for profile dropdown - Click instead of hover */
.nav-user-dropdown {
position: relative;
}

.nav-user-dropdown .dropdown-menu {
border: none;
box-shadow: var(--box-shadow);
border-radius: var(--border-radius);
padding: 0;
margin-top: 15px;
min-width: 220px;
display: none;
position: absolute;
right: 0;
background: white;
z-index: 1000;
}

/* Remove the hover effect */
/* .nav-user-dropdown:hover .dropdown-menu {
display: block;
} */

/* Add this class to show dropdown */
.nav-user-dropdown .dropdown-menu.show {
display: block;
}

.dropdown-item {
padding: 12px 20px;
font-weight: 500;
transition: var(--transition);
border-bottom: 1px solid var(--light-gray);
display: flex;
align-items: center;
gap: 10px;
}

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

.dropdown-item:hover {
background-color: rgba(206, 18, 18, 0.1);
color: #F9CD64;
padding-left: 25px;
}

.nav-user-info {
background: linear-gradient(135deg, #F9CD64 0%, #A82155 100%);
padding: 20px;
color: white;
border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.nav-user-name {
font-size: 1.1rem;
margin-bottom: 5px;
color: white;
}

.nav-user-info .status {
font-size: 0.85rem;
opacity: 0.9;
}

.cart-icon {
position: relative;
font-size: 1.2rem;
}

.cart-count {
position: absolute;
top: -8px;
right: -8px;
background: #F9CD64;
color: white;
font-size: 11px;
width: 18px;
height: 18px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

.user-profile {
display: flex;
align-items: center;
padding: 5px 15px;
border-radius: 50px;
background: rgba(206, 18, 18, 0.1);
margin-left: 10px;
cursor: pointer;
transition: var(--transition);
}

.user-profile:hover {
background: rgba(206, 18, 18, 0.15);
}

.user-avatar {
width: 35px;
height: 35px;
border-radius: 50%;
object-fit: cover;
margin-right: 10px;
border: 2px solid #F9CD64;
}

.user-name {
font-weight: 600;
font-size: 0.9rem;
}
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(206, 18, 18, 0.1);
    color: #F9CD64;
    padding-left: 25px;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #F9CD64;
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    border-radius: 50px;
    background: rgba(206, 18, 18, 0.1);
    margin-left: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #F9CD64;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ======================
   BREADCRUMBS SECTION
   ====================== */
.breadcrumbs {
    padding: 160px 0 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('../images/beriyth.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.breadcrumbs h2 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.breadcrumbs p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.breadcrumb-nav a {
    color: var(--accent);
    opacity: 0.9;
}

.breadcrumb-nav a:hover {
    opacity: 1;
    color: white;
}

.breadcrumb-nav .separator {
    opacity: 0.5;
    color: rgba(255, 255, 255, 0.6);
}

/* ======================
   PRODUCTS GRID SECTION (FULL WIDTH)
   ====================== */
.products-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.products-container {
    max-width: 100%;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3.2rem;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #F9CD64, var(--accent));
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 80px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

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

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 15px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

.btn-action {
    width: 50px;
    height: 50px;
    background: white;
    color: #F9CD64;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-action:hover {
    background: #F9CD64;
    color: white;
    transform: translateY(-5px) scale(1.1);
}

.product-content {
    padding: 30px;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--secondary);
    line-height: 1.4;
    min-height: 70px;
}

.product-price {
    font-size: 1.8rem;
    color: #F9CD64;
    font-weight: 700;
    margin-bottom: 25px;
}

.product-buttons {
    display: flex;
    gap: 15px;
}

.btn-add-to-cart {
    flex: 2;
    background: #F9CD64;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-to-cart:hover {
    background: #A82155;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(206, 18, 18, 0.2);
}

.btn-details {
    flex: 1;
    background: transparent;
    color: #F9CD64;
    border: 2px solid #F9CD64;
    padding: 13px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 60px;
}

.btn-details:hover {
    background: #F9CD64;
    color: white;
    transform: translateY(-3px);
}

/* ======================
   CATEGORIES SECTION (ENHANCED)
   ====================== */
.categories-section {
    padding: 120px 0;
    background: white;
}

.categories-section .section-title h2 {
    font-size: 3.5rem;
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.categories-section .section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, #F9CD64, var(--accent));
    border-radius: 3px;
}

.categories-section .section-title p {
    font-size: 1.3rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto 50px;
}

.category-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    position: relative;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.18);
}

.category-image-container {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-card:hover .category-image {
    transform: scale(1.12);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.btn-view-category {
    background: white;
    color: #F9CD64;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transform: translateY(30px);
    transition: all 0.5s ease;
    display: inline-flex;
    align-items: center;
    border: 2px solid white;
}

.category-card:hover .btn-view-category {
    transform: translateY(0);
}

.btn-view-category:hover {
    background: #F9CD64;
    color: white;
    border-color: #F9CD64;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(206, 18, 18, 0.3);
}

.category-content {
    padding: 35px 30px;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #f9f9f9);
}

.category-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--secondary);
    position: relative;
    padding-bottom: 20px;
}

.category-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #F9CD64;
    border-radius: 2px;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

.stat-item i {
    font-size: 1.2rem;
}

/* ======================
   FOOTER
   ====================== */
.footer {
    background: var(--secondary);
    color: white;
    padding: 100px 0 40px;
}

.footer-logo {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: white;
    margin-bottom: 25px;
    display: block;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.footer-heading {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #F9CD64;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: #F9CD64;
    padding-left: 8px;
}

.footer-links a i {
    width: 25px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-link:hover {
    background: #F9CD64;
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 50px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
}

/* ======================
   ANIMATIONS
   ====================== */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease forwards;
}

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

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

/* ======================
   RESPONSIVE DESIGN
   ====================== */
@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 1200px) {
    .breadcrumbs h2 {
        font-size: 3.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 25px;
    }
    
    .category-image-container {
        height: 320px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-top: 15px;
    }
    
    .user-profile {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
    
    .breadcrumbs {
        padding: 140px 0 60px;
    }
    
    .breadcrumbs h2 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.8rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .categories-section .section-title h2 {
        font-size: 3rem;
    }
    
    .category-image-container {
        height: 280px;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 120px 0 50px;
    }
    
    .breadcrumbs h2 {
        font-size: 2.5rem;
    }
    
    .breadcrumbs p {
        font-size: 1.1rem;
    }
    
    .products-section,
    .categories-section {
        padding: 80px 0;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .product-content {
        padding: 25px 20px;
    }
    
    .product-title {
        font-size: 1.3rem;
        min-height: 60px;
    }
    
    .product-price {
        font-size: 1.6rem;
    }
    
    .categories-section .section-title h2 {
        font-size: 2.5rem;
    }
    
    .category-image-container {
        height: 250px;
    }
    
    .category-content {
        padding: 25px 20px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 28px;
    }
    
    .breadcrumbs {
        padding: 100px 0 40px;
    }
    
    .breadcrumbs h2 {
        font-size: 2.2rem;
    }
    
    .breadcrumbs p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .products-section,
    .categories-section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 400px;
        margin: 0 auto 50px;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .btn-add-to-cart,
    .btn-details {
        width: 100%;
    }
    
    .categories-section .section-title h2 {
        font-size: 2.2rem;
    }
    
    .category-image-container {
        height: 220px;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* Animation for staggered loading */
.slide-up:nth-child(1) { animation-delay: 0.1s; }
.slide-up:nth-child(2) { animation-delay: 0.2s; }
.slide-up:nth-child(3) { animation-delay: 0.3s; }
.slide-up:nth-child(4) { animation-delay: 0.4s; }
.slide-up:nth-child(5) { animation-delay: 0.5s; }
.slide-up:nth-child(6) { animation-delay: 0.6s; }

/* Full width container */
.full-width-container {
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .full-width-container {
        padding: 0 20px;
    }
}
