/* Minimalist Light Theme Styles - Based on minimalist_theme_test.php */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2D3748;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #2D3748;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #CBD5E0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2D3748;
    gap: 12px;
    transition: transform 0.3s ease;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: #4A5568;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #2D3748;
}

.logo-text span {
    font-size: 12px;
    color: #4A5568;
    font-weight: 400;
    display: block;
    margin-top: -2px;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #4A5568;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link:hover {
    color: #2D3748;
    background: #F7FAFC;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: #2D3748;
    color: white;
}

.btn-primary:hover {
    background: #1A202C;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #2D3748;
    border: 1px solid #CBD5E0;
}

.btn-secondary:hover {
    background: #F7FAFC;
    border-color: #E2E8F0;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #4A5568;
    color: white;
}

.btn-primary:hover {
    background: #2D3748;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: #4A5568;
    border: 1px solid #E2E8F0;
}

.btn-secondary:hover {
    background: #F7FAFC;
    color: #2D3748;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Titles */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #2D3748;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    text-align: center;
    color: #4A5568;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #F7FAFC;
}

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

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

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 1rem;
}

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

.product-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #CBD5E0;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #CBD5E0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    color: #2D3748;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4A5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.form-input::placeholder {
    color: #A0AEC0;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #2D3748;
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    color: #4A5568;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Product Grid - Row Based */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem;
}

.product-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: #CBD5E0;
}

.product-image-container {
    position: relative;
    width: 60px;
    height: 60px;
    overflow: hidden;
    background: #F7FAFC;
    border-radius: 6px;
    flex-shrink: 0;
    margin-right: 1rem;
}

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

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

.product-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: transparent;
}

.product-details {
    flex: 1;
    margin-right: 1rem;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    font-family: 'DM Sans', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0;
    font-family: 'DM Sans', sans-serif;
    position: relative;
}

.product-price::before {
    content: '৳';
    font-size: 0.8rem;
    font-weight: 600;
    color: #4A5568;
    margin-right: 0.2rem;
    vertical-align: top;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.product-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 80px;
}

/* Enhanced Category Cards */
.category-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A5568, #2D3748);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #CBD5E0;
    text-decoration: none;
    color: inherit;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4A5568, #2D3748);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.3);
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem;
    font-family: 'DM Sans', sans-serif;
}

.category-count {
    font-size: 0.8rem;
    color: #4A5568;
    margin-bottom: 0.75rem;
    font-weight: 500;
    background: #F7FAFC;
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    display: inline-block;
}

.category-description {
    color: #4A5568;
    line-height: 1.5;
    font-size: 0.8rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #CBD5E0;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4A5568, #2D3748);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.3);
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.75rem;
    font-family: 'DM Sans', sans-serif;
}

.feature-item p {
    color: #4A5568;
    line-height: 1.5;
    font-size: 0.8rem;
}

/* Cart Styles */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #CBD5E0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: white;
    transition: all 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border-color: #E2E8F0;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 0.75rem;
}

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

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.2rem;
    font-family: 'DM Sans', sans-serif;
}

.cart-item-price {
    color: #4A5568;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #CBD5E0;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4A5568;
}

.quantity-btn:hover {
    background: #F7FAFC;
    border-color: #E2E8F0;
    color: #2D3748;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #CBD5E0;
    border-radius: 6px;
    padding: 4px;
    font-weight: 500;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-success {
    background: #F0FFF4;
    color: #22543D;
    border-color: #9AE6B4;
}

.alert-error {
    background: #FED7D7;
    color: #C53030;
    border-color: #FC8181;
}

.alert-info {
    background: #EBF8FF;
    color: #2B6CB0;
    border-color: #90CDF4;
}

/* Footer */
.footer {
    background: #F7FAFC;
    border-top: 1px solid #CBD5E0;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 1rem;
    font-family: 'DM Sans', sans-serif;
}

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

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

.footer-section ul li a {
    color: #4A5568;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2D3748;
}

.footer-bottom {
    border-top: 1px solid #CBD5E0;
    padding-top: 1rem;
    text-align: center;
    color: #4A5568;
    font-size: 0.875rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4A5568;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #CBD5E0;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-list {
    flex-direction: column;
    gap: 0;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* User Menu */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-toggle {
    background: none;
    border: none;
    color: #4A5568;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.user-menu-toggle:hover {
    background: #F7FAFC;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #CBD5E0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #4A5568;
    text-decoration: none;
    transition: background 0.3s ease;
}

.user-dropdown a:hover {
    background: #F7FAFC;
}

.user-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
}

/* Cart Badge */
.cart-badge {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #E53E3E;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Page Headers */
.page-header {
    background: #F7FAFC;
    padding: 3rem 0;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    margin-top: 1rem;
}

.page-subtitle {
    color: #4A5568;
    font-size: 1.1rem;
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cart-quantity {
        margin: 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 2rem 1.5rem;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
}