/* ========================================
   SHOPNOW - Complete Theme
======================================== */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #ffc107;
    --primary-dark: #e0a800;
    --dark: #0f4c5c;
    --dark2: #134e5e;
    --text: #333;
    --text-light: #6c757d;
    --bg: #f8f9fa;
    --white: #ffffff;
    --success: #28a745;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ===== BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ========================================
   NAVBAR
======================================== */
.navbar {
    background: var(--dark) !important;
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: var(--white) !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--primary);
}

.navbar-brand i {
    color: var(--primary);
}

.nav-link {
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: rgba(255,255,255,0.85) !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(255,193,7,0.1);
}

/* Search Bar */
.navbar .form-control {
    border-radius: 25px 0 0 25px !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    color: white;
}

.navbar .form-control::placeholder { color: rgba(255,255,255,0.5); }
.navbar .form-control:focus {
    background: rgba(255,255,255,0.15);
    box-shadow: none !important;
    color: white;
}

.navbar .btn-warning {
    border-radius: 0 25px 25px 0 !important;
    padding: 10px 18px !important;
    font-weight: 600;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255,193,7,0.1);
    color: var(--dark);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, #0f3460 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,193,7,0.05);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,193,7,0.03);
    border-radius: 50%;
}

    .hero-section h1 {
        font-size: 3rem;
        font-weight: 800;
        line-height: 1.2;
        color: #e6e6e6;
        text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    }
.hero-section .lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: var(--radius) !important;
    transition: all 0.3s;
}

.btn-warning {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--dark) !important;
}

.btn-warning:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,193,7,0.4);
}

.btn-dark {
    background: var(--dark) !important;
    border-color: var(--dark) !important;
}

.btn-dark:hover {
    background: #2d2d4e !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline-dark {
    border-color: var(--dark) !important;
    color: var(--dark) !important;
}

.btn-outline-dark:hover {
    background: var(--dark) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ========================================
   PRODUCT CARDS
======================================== */
.card {
    border: none !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img-top {
    transition: transform 0.5s;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 20px !important;
}

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

/* Product Price */
.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success);
}

/* Badge */
.badge {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px !important;
    font-size: 0.75rem;
}

.bg-warning {
    background: var(--primary) !important;
    color: var(--dark) !important;
}

/* ========================================
   CATEGORY BUTTONS
======================================== */
.category-btn {
    border: 2px solid #e9ecef;
    border-radius: 25px !important;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    color: var(--dark);
    background: white;
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
}

/* ========================================
   SECTION HEADINGS
======================================== */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ========================================
   FORMS
======================================== */
.form-control {
    border-radius: var(--radius) !important;
    padding: 12px 16px !important;
    border: 2px solid #e9ecef !important;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.2) !important;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-select {
    border-radius: var(--radius) !important;
    padding: 12px 16px !important;
    border: 2px solid #e9ecef !important;
    font-family: 'Poppins', sans-serif;
}

.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.2) !important;
}

/* ========================================
   TABLES
======================================== */
.table {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.table thead th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
}

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(255,193,7,0.05);
}

/* ========================================
   CART PAGE
======================================== */
.cart-item-card {
    border-radius: var(--radius) !important;
    border: none !important;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    transition: all 0.3s;
}

.cart-item-card:hover {
    box-shadow: var(--shadow-hover);
}

.order-summary-card {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}

/* ========================================
   ADMIN PANEL
======================================== */
.admin-stat-card {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.admin-stat-card i {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* ========================================
   ALERTS & MESSAGES
======================================== */
.alert {
    border: none !important;
    border-radius: var(--radius) !important;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(40,167,69,0.1) !important;
    color: #155724 !important;
}

.alert-warning {
    background: rgba(255,193,7,0.1) !important;
    color: #856404 !important;
}

.alert-danger {
    background: rgba(220,53,69,0.1) !important;
    color: #721c24 !important;
}

/* ========================================
   SIDEBAR (Products Page)
======================================== */
.sidebar-card {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.sidebar-card .card-header {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.list-group-item {
    border: none !important;
    padding: 12px 20px !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}

.list-group-item:hover {
    background: rgba(255,193,7,0.1);
    color: var(--dark);
    padding-left: 28px !important;
}

.list-group-item.active {
    background: var(--primary) !important;
    color: var(--dark) !important;
    border: none !important;
}

/* ========================================
   PRODUCT DETAIL PAGE
======================================== */
.product-detail-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    width: 100%;
    object-fit: cover;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--success);
}

.stock-badge-success {
    background: rgba(40,167,69,0.1);
    color: var(--success);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.stock-badge-danger {
    background: rgba(220,53,69,0.1);
    color: #dc3545;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: linear-gradient(135deg, var(--dark), var(--dark2)) !important;
    color: rgba(255,255,255,0.7) !important;
    padding: 40px 0 !important;
    margin-top: 80px;
}

footer p {
    font-size: 0.9rem;
    margin: 0;
}

footer i {
    color: var(--primary);
}

/* ========================================
   ORDER STATUS BADGES
======================================== */
.status-pending {
    background: rgba(255,193,7,0.15);
    color: #856404;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.status-processing {
    background: rgba(13,110,253,0.1);
    color: #0d6efd;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.status-shipped {
    background: rgba(13,202,240,0.1);
    color: #0dcaf0;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.status-delivered {
    background: rgba(40,167,69,0.1);
    color: var(--success);
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .hero-section { padding: 60px 0; }
    .hero-section h1 { font-size: 2rem; }
    .navbar .form-control { width: 100% !important; }
    .card:hover { transform: none; }
    .order-summary-card { position: static; }
    .sidebar-card { position: static; margin-bottom: 20px; }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.6rem; }
    .product-detail-price { font-size: 1.5rem; }
}

/* ========================================
   PAGE TRANSITIONS
======================================== */
main {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   EMPTY STATE
======================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-state p {
    color: #adb5bd;
    margin-bottom: 20px;
}