:root {
    --primary-color: #0A2647;
    --white-color: #FFFFFF;
    --accent-color: #FFD700;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --logo-gradient: linear-gradient(45deg, var(--accent-color), #FFA500);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Header Styles */
.site-header {
    position: relative; /* Changed from sticky */
    background: var(--primary-color);
    color: var(--white-color);
    padding: 1rem 1rem 1.5rem; /* Increased bottom padding for the accent bar */
    z-index: 1000;
    box-shadow: var(--shadow);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--logo-gradient);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-bar {
    position: relative;
}

.search-bar input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    width: 200px;
    background: rgba(255,255,255,0.1);
    color: var(--white-color);
}

.cart-icon, .user-account {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Main Container Layout */
.main-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem;
    gap: 2rem;
}

/* Content Area */
.content {
    flex: 1;
    min-width: 0;
}

/* Refined Product Card Styles */
.product-card {
    background: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    height: 100%; /* Ensure equal height */
    max-width: none; /* Remove max-width constraint */
}

/* Product Card Styles - Simplified */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    width: 100%;
}

/* Product Image Container - Fixed ratio */
.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Changed from 100% to 75% for better proportions */
    background: var(--gray-light);
    overflow: hidden;
    border-bottom: 3px solid var(--accent-color);
}

.product-image {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: var(--gray-light);
    overflow: hidden;
    border-bottom: 3px solid var(--accent-color);
    height: 0;
    padding-top: 100%;
    width: 100%;
    padding-bottom: 75%; /* Changed from 100% to 75% for better proportions */
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed to cover for better random image display */
    transition: transform 0.3s ease;
    background: var(--gray-light);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
}

.product-badge.in-stock {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.product-badge.low-stock {
    background: rgba(255, 160, 0, 0.9);
    color: white;
}

.product-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}



.product-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

/* Update existing product subtitle and rating styles */
.product-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin: 0.5rem 0;
}

.rating-group {
    display: flex;
    align-items: center;
}

.sku-info {
    font-size: 0.75rem;
    color: #888;
    margin-left: 0.5rem;
}

.sku {
    
    font-size: 12px;
    color: #888;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.sku-info {
    font-size: 0.75rem;
    color: #888;
    margin-left: auto;
}

.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1;
}

.stars::before {
    content: '★★★★★';
    letter-spacing: 2px;
    background: linear-gradient(90deg, 
        var(--accent-color) var(--percent), 
        rgba(0,0,0,0.2) var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.review-count {
    color: #666;
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: flex;
    align-items: baseline;
    transition: color 0.3s ease;
}

.current-price::before {
    content: '$';
    font-size: 1.1rem;
    font-weight: 600;
    color: inherit;
    opacity: 0.8;
    margin-right: 4px;
    position: relative;
    top: -2px;
}

/* Add animation on hover */
.product-card:hover .current-price {
    color: var(--accent-color);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .current-price {
        font-size: 1.5rem;
    }
    
    .current-price::before {
        font-size: 1rem;
    }
}

.product-actions {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.product-actions .btn {
    padding: 0.9rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
    width: 100%;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Enhanced Hover Effects */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-card {
        border-radius: 12px;
    }

    .product-details {
        padding: 1.25rem;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.4rem;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }

    .product-image {
        padding-bottom: 70%; /* Slightly smaller on mobile */
    }

    .product-image img {
        padding: 0.5rem;
    }

    .btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .mega-menu {
        position: fixed;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white-color);
        transition: 0.3s;
    }

    .mega-menu.active {
        left: 0;
    }

    .header-container {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-bar input {
        width: 150px;
    }
}

/* Mega Menu Styles */
.mega-menu {
    background: var(--white-color);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-radius: 0 8px 8px 0;
    width: 280px;
    height: 100%;
    position: sticky;
    top: 0;
    transition: all 0.3s ease;
}

.category-group {
    margin-bottom: 2rem;
}

.category-group h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.category-group ul {
    list-style: none;
}

.category-group a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s;
}

.category-group a:hover {
    color: var(--accent-color);
}

/* Enhanced Footer Styles */
.site-footer {
    background: linear-gradient(to right, var(--primary-color), #083358);
    color: var(--white-color);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--logo-gradient);
}

.footer-container {
    display: grid;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-newsletter {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.footer-newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50px;
}

.newsletter-form input {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    flex: 1;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    background: var(--accent-color);
    color: var (--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--white-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--white-color);
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 0.5rem;
    color: var(--accent-color);
}

.footer-credits {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
}

.footer-credits p {
    opacity: 0.7;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }
}

@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-newsletter {
        grid-column: 1 / 3;
        text-align: left;
        margin: 0;
    }
}

@media (max-width: 767px) {
    .newsletter-form {
        flex-direction: column;
        background: none;
        padding: 0;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-container {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Logo Styles */
.logo a {
    text-decoration: none;
    display: block;
}

.logo-text {
    font-family: 'Russo One', sans-serif;
    font-size: 1.8rem;
    color: var(--white-color);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo-highlight {
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--logo-gradient);
    transition: width 0.3s ease;
}

.logo a:hover .logo-text::after {
    width: 100%;
}

/* Update existing header styles */
.logo {
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white-color);
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white-color);
    left: 0;
    transition: all 0.3s;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.mobile-menu-active .hamburger {
    background: transparent;
}

.mobile-menu-active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Updated Responsive Styles */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .mega-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        border-radius: 0;
        padding-top: 4rem;
    }

    .mega-menu.active {
        left: 0;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-container {
        padding: 1rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-color);
        padding: 5rem 2rem 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .mobile-menu-active .main-nav {
        left: 0;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .header-actions {
        margin-left: auto;
    }

    .search-bar {
        display: none;
    }

    .mega-menu {
        width: 75%;
    }
}

@media (max-width: 480px) {
    .mega-menu {
        width: 85%;
    }
    
    .header-container {
        padding: 0.75rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .cart-icon, 
    .user-account {
        transform: scale(0.9);
    }

    .main-container {
        padding: 1rem;
    }

    .product-image {
        padding-bottom: 100%; /* Maintain aspect ratio */
    }

    .product-image img {
        padding: 0.5rem;
    }

    .product-details {
        padding: 0.75rem;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-subtitle {
        font-size: 0.85rem;
        height: 2.6em;
    }
    
    .sku-info {
        font-size: 0.7rem;
    }

    .product-subtitle {
        font-size: 0.85rem;
    }

    .product-subtitle {
        font-size: 0.85rem;
        height: 2.6em;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .product-actions .btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Mobile Menu Toggle Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Overlay for mobile menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-menu-active .mobile-menu-overlay {
    display: block;
}

/* Content Layout */
.content {
    width: 100%;
    padding: 0 1rem;
    flex: 1;
    min-width: 0; /* Fix for flexbox overflow */
}

@media (max-width: 768px) {
    .content {
        padding: 0 0.5rem;
    }
}

/* Mega Menu Adjustments */
.mega-menu {
    flex-shrink: 0; /* Prevent sidebar from shrinking */
    width: 280px;
}

/* Products Section Styles */
.products-section {
    padding: 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card {
        min-width: 0;
    }

    .product-title {
        font-size: 1rem;
    }
}

/* ...existing code... */

.category-title {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.view-all-container {
    text-align: center;
    margin-top: 2rem;
}

.view-all-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.view-all-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.products-section {
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: 16px;
    background: var(--white-color);
    box-shadow: var(--shadow);
}

/* ...existing code... */

.subcategory-section {
    margin-left: 2rem;
}

.parent-category {
    font-size: 0.8em;
    color: #666;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .subcategory-section {
        margin-left: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title::after {
        width: 40px;
    }
    
    .section-title:hover::after {
        width: 80px;
    }
}

/* ...existing code... */

.category-description {
    text-align: justify;  /* Changed from center to justify */
    color: #666;
    line-height: 1.6;
    margin: 0 auto 3rem;
    max-width: 900px;
    padding: 2rem;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: relative;
}

.category-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .category-description {
        margin: 0 1rem 2rem;
        padding: 1.5rem;
        font-size: 1rem;
    }
}

.subcategory-section {
    margin: 3rem 0;
}

.subcategory-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-color);
}

/* Responsive styles for category descriptions */
@media (max-width: 1024px) {
    .category-description {
        margin: 0 1rem 2rem;
    }
}

@media (max-width: 768px) {
    .category-description {
        font-size: 0.95rem;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .subcategory-section {
        margin: 2rem 0;
    }

    .subcategory-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .category-description {
        font-size: 0.9rem;
        padding: 1rem;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .category-description::after {
        width: 30px;
    }

    .subcategory-section {
        margin: 1.5rem 0;
    }

    .subcategory-title {
        font-size: 1.2rem;
        padding-left: 0.75rem;
    }
}

/* ...existing code... */

.breadcrumb {
    background: var(--white-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-separator {
    color: #ccc;
    margin: 0 0.25rem;
}

.breadcrumb-current {
    color: var(--accent-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }
    
    .breadcrumb-item {
        font-size: 0.85rem;
    }
}

/* ...existing code... */

/* Product Detail Styles */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
    background: var(--white-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.product-gallery {
    position: sticky;
    top: 2rem;
}

.gallery-main {
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-light);
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1;
}

.gallery-thumbnails {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.thumbnails-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 400px; /* Adjust as needed */
}

.thumbnails-container::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.gallery-nav.prev { left: -15px; }
.gallery-nav.next { right: -15px; }

.gallery-nav:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-info .product-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    padding: 0.5rem;
    width: fit-content;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .product-gallery {
        position: static;
    }

    .product-info .product-title {
        font-size: 1.5rem;
    }
}

/* ...existing code... */

/* Enhanced Product Detail Styles */
.product-detail {
    margin-bottom: 1rem;
    background: linear-gradient(to bottom right, var(--white-color), var(--gray-light));
    border: 1px solid rgba(0,0,0,0.1);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-info .product-title {
    font-size: 2.2rem;
    background: linear-gradient(45deg, var(--primary-color), #2a547c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 8px;
}

.gallery-thumbnails {
    margin-top: 0.5rem;
}

.thumbnails-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--gray-light);
}

.thumbnails-container::-webkit-scrollbar {
    height: 4px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: var(--gray-light);
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Remove gallery navigation buttons */
.gallery-nav {
    display: none;
}

/* ...existing code... */

/* Enhanced Product Detail Styles */
.product-detail {
    margin-bottom: 2rem;
    background: linear-gradient(to bottom right, var(--white-color), var(--gray-light));
    border: 1px solid rgba(0,0,0,0.1);
}

.product-info .product-title {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), #2a547c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.product-sections {
    background: var(--white-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: 3rem;
    padding: 2rem;
}

.product-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--gray-medium);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-description {
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.shipping-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 2rem;
    color: var(--accent-color);
    background: var(--primary-color);
    padding: 1rem;
    border-radius: 50%;
}

.info-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-content p {
    color: #666;
}

.size-chart {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.size-chart th,
.size-chart td {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--gray-medium);
}

.size-chart th {
    background: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
}

.size-chart tr:nth-child(even) {
    background: var(--gray-light);
}

.size-chart tr:hover {
    background: rgba(var(--accent-color), 0.1);
}

/* Enhanced Form Elements */
.product-form {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.form-group select,
.quantity-selector {
    background: var(--white-color);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-group select:focus,
.quantity-selector:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255,215,0,0.2);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #2a547c);
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .product-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        flex: 1;
        text-align: center;
    }

    .shipping-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .product-form {
        padding: 1rem;
    }
}

/* ...existing code... */

/* Product Detail Styles - Updated Spacing */
.product-detail {
    margin-bottom: 1rem;
    padding: 1.5rem;
    gap: 2rem;
}

.product-info {
    gap: 0.75rem;
}

.product-info .product-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-meta {
    gap: 0.5rem;
    margin: 0;
}

.product-rating {
    margin: 0;
}

.product-price {
    margin: 0.5rem 0;
}

.product-form {
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.form-group {
    gap: 0.25rem;
}

.form-group label {
    margin-bottom: 0;
}

/* Gallery adjustments */
.gallery-thumbnails {
    margin-top: 0.5rem;
}

.thumbnails-container {
    gap: 0.5rem;
    padding: 0.25rem;
}

/* Product sections spacing */
.product-sections {
    margin-top: 1.5rem;
    padding: 1.5rem;
}

.product-tabs {
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
}

.shipping-info {
    gap: 1rem;
    padding: 1rem;
}

.info-item {
    gap: 0.75rem;
}

.info-content h4 {
    margin-bottom: 0.25rem;
}

/* Adjust line spacing */
.product-description {
    line-height: 1.5;
}

.info-content p {
    line-height: 1.4;
}

/* Size chart adjustments */
.size-chart {
    margin: 1rem 0;
}

.size-chart th,
.size-chart td {
    padding: 0.75rem;
}

@media (max-width: 768px) {
    .product-detail {
        padding: 1rem;
        gap: 1.5rem;
    }

    .product-sections {
        padding: 1rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
    }
}

/* ...existing code... */

/* Updated Product Info Styles */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.product-info .product-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.product-price {
    margin: 0.25rem 0 0.5rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(45deg, var(--primary-color), #2a547c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: baseline;
}

.currency-symbol {
    font-size: 65%;
    margin-right: 2px;
    font-weight: 500;
    color: inherit; /* Ensure it inherits the color from the parent */
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-group select {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    background: var(--white-color);
    cursor: pointer;
    color: var (--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group select:hover {
    border-color: var(--accent-color);
}

.form-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255,215,0,0.2);
    outline: none;
}

.form-group select option {
    padding: 1rem;
    font-size: 1.1rem;
}

.btn-primary {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .product-info .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .form-group select {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

/* ...existing code... */

/* ...existing code... */

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex: 1;
}

.cart-total {
    margin-top: 2rem;
    text-align: right;
}

/* ...existing code... */

/* ...existing code... */

.cart-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 2;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-summary {
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    flex: 1;
}

.cart-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-item.total {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    text-align: center;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .cart-container {
        flex-direction: row;
    }
}

/* ...existing code... */

/* ...existing code... */

.remove-form {
    display: flex;
    justify-content: flex-end;
}

.btn-remove {
    background: var(--gray-medium);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-remove:hover {
    background: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-remove:active {
    transform: translateY(0);
}

/* ...existing code... */

/* ...existing code... */

.cart-icon a {
    color: inherit;
    text-decoration: none;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var (--accent-color);
    color: var (--primary-color);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* ...existing code... */

/* ...existing code... */

.admin-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
}

.admin-header nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.admin-header nav a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
}

.admin-main {
    padding: 2rem;
    background: var(--gray-light);
    min-height: 100vh;
}

/* ...existing code... */

.category-header {
    margin: 2rem 0;
    padding: 0 0rem;
    text-align: center;
}

.page-title {
    font-size: 2rem;
    color: #0a2647;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ffd700;
    border-radius: 3px;
}

/* ...existing code... */

.category-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
}

/* Custom Pages */
.page-content {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 2rem;
    color: #0A2647;
    margin: 1.5rem auto;
    text-align: center;
}

.page-text {
    line-height: 1.6;
    color: #333;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}
/* === Product Page Redesign === */

/* Main product detail container */
.product-detail {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px; /* Space between gallery and info */
    margin-bottom: 40px;
    padding: 25px; /* Increased padding */
    background-color: #ffffff; /* Ensure white background */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Slightly enhanced shadow */
}

.product-gallery {
    flex: 1 1 55%;
    min-width: 300px;
}

.product-gallery .gallery-main {
    border-radius: 6px; /* Slightly softer radius */
    border: 1px solid #e9ecef; /* Lighter border */
    margin-bottom: 15px; /* Space below main image */
}

.product-gallery .thumbnail {
    border-radius: 4px;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow for thumbnails */
}
.product-gallery .thumbnail.active,
.product-gallery .thumbnail:hover {
    border-color: #007bff; /* Using a common primary color */
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.product-info {
    flex: 1 1 40%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content a bit more */
}

.product-info .product-title {
    font-size: 2rem; /* Responsive font size */
    font-weight: 700; /* Bolder title */
    color: #212529; /* Darker color */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-info .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d; /* Softer meta text color */
}

.product-info .product-rating .stars {
    color: #ffc107; /* Gold color for stars */
    margin-right: 0.5rem;
}

.product-info .product-price {
    margin-bottom: 1.5rem;
}

.product-info .product-price .current-price {
    font-size: 2.2rem; /* Larger price */
    font-weight: 700;
    color: #1a6a31; /* Darker green for price */
}
.product-info .product-price .currency-symbol {
    font-size: 1.5rem; /* Adjusted currency symbol size */
    margin-right: 0.1em;
}

.product-form .form-group {
    margin-bottom: 1.5rem;
}

.product-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600; /* Bolder labels */
    color: #495057;
}

.product-form .form-group select {
    width: 100%;
    padding: 0.75rem 1rem; /* Adjusted padding */
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 1rem;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23495057'%3E%3Cpath fill-rule='evenodd' d='M8 11.293l-4.146-4.147a.5.5 0 0 1 .708-.708L8 9.879l3.438-3.438a.5.5 0 0 1 .707.707L8 11.293z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.product-form .form-group select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.product-form .btn-primary {
    width: 100%;
    padding: 0.85rem 1rem; /* Adjusted padding */
    font-size: 1.1rem; /* Slightly larger button text */
    font-weight: 600;
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-form .btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.product-form .btn-primary .fa-shopping-cart {
    margin-right: 0.5rem;
}

/* Product Tabs Refinement */
.product-tabs {
    border-bottom: 1px solid #dee2e6; /* Lighter border */
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0; /* Remove gap, use borders for separation */
}

.product-tabs .tab-btn {
    padding: 0.75rem 1.25rem; /* Adjusted padding */
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -1px; /* Align with parent border */
    position: relative;
}

.product-tabs .tab-btn:hover {
    color: #0056b3;
}

.product-tabs .tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.tab-content .tab-panel {
    padding: 1.5rem 0.5rem; /* Add some horizontal padding too */
    line-height: 1.7;
    color: #343a40; /* Slightly darker text for content */
}

.product-description h3, .shipping-info h4, .size-guide h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #212529;
    font-weight: 600;
}

/* Responsive adjustments for product detail */
@media (max-width: 992px) { /* Adjusted breakpoint */
    .product-detail {
        gap: 20px;
    }
    .product-info .product-title {
        font-size: 1.75rem;
    }
    .product-info .product-price .current-price {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        padding: 15px;
    }
    .product-gallery, .product-info {
        flex-basis: auto;
        width: 100%;
    }
    .product-info .product-title {
        font-size: 1.5rem;
    }
    .product-info .product-price .current-price {
        font-size: 1.75rem;
    }
    .product-form .btn-primary {
        font-size: 1rem;
        padding: 0.75rem;
    }
    .product-tabs {
        overflow-x: auto;
    }
    .product-tabs .tab-btn {
        white-space: nowrap;
        padding: 0.6rem 1rem;
    }
}