/* Somadhan Shopping - Main Stylesheet */

:root {
    --primary: #dc3545;
    --primary-dark: #b02a37;
    --secondary: #212529;
    --accent: #ffc107;
    --light: #f8f9fa;
    --dark: #1a1a1a;
}

body {
    font-family: 'Hind Siliguri', 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* Header */
.main-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.search-form input {
    border-radius: 4px 0 0 4px;
    border: 2px solid #dc3545;
    padding: 10px 15px;
}

.search-form button {
    border-radius: 0 4px 4px 0;
    padding: 10px 20px;
}

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

/* Navigation */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 12px 18px;
    transition: all 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Hero Slider */
.hero-slider {
    background: linear-gradient(135deg, #ffe6e6 0%, #fff0f0 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.hero-content {
    padding: 60px 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

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

.hero-feature i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.hero-feature small {
    display: block;
    font-size: 12px;
    color: #666;
}

.btn-hero {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-hero:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-image img {
    max-height: 350px;
    object-fit: contain;
}

/* Trust Badges */
.trust-badges {
    background: #fff0f0;
    border-radius: 12px;
    padding: 20px 0;
    margin: 20px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.trust-badge i {
    font-size: 28px;
    color: var(--primary);
}

.trust-badge h6 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--primary);
}

.trust-badge small {
    font-size: 11px;
    color: #666;
}

/* Categories */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title a {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.category-card h6 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #ffe6f0 0%, #fff0f5 100%);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.promo-banner h3 {
    color: var(--primary);
    font-weight: 700;
}

.promo-banner .promo-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

/* Flash Sale */
.flash-sale-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.flash-sale-header h3 {
    font-weight: 700;
    margin: 0;
}

.countdown {
    display: flex;
    gap: 8px;
}

.countdown-item {
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    min-width: 40px;
}

.countdown-item .number {
    font-size: 16px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.countdown-item .label {
    font-size: 10px;
    text-transform: uppercase;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 160px;
    object-fit: contain;
    transition: all 0.3s;
}

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

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    text-decoration: none;
    display: block;
    height: 40px;
    overflow: hidden;
}

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

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.price-current {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.btn-add-cart {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer-links li {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Admin Panel */
.admin-sidebar {
    min-height: 100vh;
    background: #1a1a2e;
    color: white;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 24px;
}

.admin-content {
    background: #f5f6fa;
    min-height: 100vh;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card i {
    font-size: 32px;
    color: var(--primary);
    opacity: 0.3;
}

/* Auth Pages */
.auth-card {
    max-width: 450px;
    margin: 50px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.auth-header {
    background: var(--primary);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-body {
    padding: 30px;
}

/* Product Detail */
.product-gallery {
    background: white;
    border-radius: 12px;
    padding: 30px;
}

.product-detail-info {
    background: white;
    border-radius: 12px;
    padding: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    border: 1px solid #ddd;
    text-align: center;
}

/* Cart */
.cart-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #eee;
}

/* Checkout */
.checkout-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
}

.payment-method {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--primary);
    background: #fff5f5;
}

/* User Dashboard */
.user-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
}

.user-sidebar .nav-link {
    color: #666;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.user-sidebar .nav-link:hover,
.user-sidebar .nav-link.active {
    background: #fff5f5;
    color: var(--primary);
}

.user-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-features {
        gap: 15px;
    }

    .header-icons {
        gap: 15px !important;
    }

    .header-icons small {
        display: none !important;
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Table Styles */
.table-admin th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-admin {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 4px;
}

/* Order Status Badges */
.badge-pending { background: #ffc107; color: #000; }
.badge-processing { background: #17a2b8; color: #fff; }
.badge-shipped { background: #6f42c1; color: #fff; }
.badge-delivered { background: #28a745; color: #fff; }
.badge-cancelled { background: #dc3545; color: #fff; }
