/* =============================================
   DonaldShop - E-Commerce CSS
   Inspired by Donald Ultimate Template
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #c89b5b;
    --primary-dark: #a67c3d;
    --primary-light: #e8d5b0;
    --secondary: #2c3e50;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --font-primary: 'Prompt', 'Segoe UI', sans-serif;
    --font-heading: 'Prompt', 'Segoe UI', sans-serif;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    color: #333;
    background: var(--white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 600; color: var(--dark); }

.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 0;
}
.section-title p {
    color: var(--gray);
    font-size: 1rem;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--dark);
    color: #ccc;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--primary); }
.top-bar .social-links a { margin-left: 12px; font-size: 0.9rem; }

/* ---------- Header / Navbar ---------- */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
}
.logo span { color: var(--primary); }
.logo:hover { color: var(--dark); text-decoration: none; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* Header Icons */
.header-icons { display: flex; align-items: center; gap: 20px; }
.header-icon {
    color: var(--dark);
    font-size: 1.2rem;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}
.header-icon:hover { color: var(--primary); }
.header-icon .badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Mobile Menu */
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); }

/* Search Bar */
.search-bar {
    display: flex;
    max-width: 500px;
    margin: 0 30px;
    flex: 1;
}
.search-bar input {
    flex: 1;
    border: 2px solid var(--gray-light);
    border-right: none;
    padding: 10px 15px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }

/* ---------- Hero Slider ---------- */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--dark);
}
.hero-slide {
    display: none;
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    animation: fadeIn 0.8s ease;
}
.hero-slide.active { display: flex; align-items: center; }
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.8) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
    padding: 60px;
}
.hero-content .subtitle {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}
.hero-content h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}
.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 60px;
    z-index: 5;
    display: flex;
    gap: 10px;
}
.slider-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.slider-btn:hover { background: var(--primary); border-color: var(--primary); }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: var(--dark-2); color: white; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white { background: white; color: var(--dark); }
.btn-white:hover { background: var(--primary); color: white; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn i { margin-right: 8px; }

/* ---------- Category Banners ---------- */
.category-banners {
    padding: 60px 0;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.category-banner {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 220px;
    background: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}
.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0.7;
}
.category-banner:hover img { transform: scale(1.1); opacity: 0.5; }
.category-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    color: white;
    z-index: 2;
}
.category-banner-content h3 { color: white; font-size: 1.5rem; margin-bottom: 5px; }
.category-banner-content p { opacity: 0.8; margin-bottom: 15px; }

/* ---------- Products Grid ---------- */
.products-section { padding: 60px 0; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}
.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: #f5f5f5;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-image img { transform: scale(1.08); }

/* Product Badges */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 3;
}
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 3px;
    color: white;
}
.badge-sale { background: var(--danger); }
.badge-new { background: var(--success); }
.badge-hot { background: var(--warning); color: #333; }

/* Product Actions Overlay */
.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: rgba(0,0,0,0.7);
    transition: var(--transition);
}
.product-card:hover .product-actions { bottom: 0; }
.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}
.product-action-btn:hover { background: var(--primary); color: white; }

/* Product Info */
.product-info {
    padding: 20px;
}
.product-category {
    color: var(--gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.product-name a { color: var(--dark); }
.product-name a:hover { color: var(--primary); }

.product-rating { margin-bottom: 8px; }
.product-rating i { font-size: 0.8rem; }
.product-rating .count { color: var(--gray); font-size: 0.8rem; margin-left: 5px; }

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-price .current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}
.product-price .original {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: line-through;
}

/* ---------- Features Strip ---------- */
.features-strip {
    background: var(--dark);
    padding: 40px 0;
    color: white;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.feature-icon {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}
.feature-text h4 { color: white; font-size: 1rem; margin: 0 0 3px; }
.feature-text p { color: #aaa; font-size: 0.85rem; margin: 0; }

/* ---------- Deal Banner ---------- */
.deal-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f4ef 0%, #f0e6d3 100%);
}
.deal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.deal-image { text-align: center; }
.deal-image img { max-height: 400px; }
.deal-info .subtitle { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.deal-info h2 { font-size: 2.5rem; margin: 15px 0; }
.deal-info p { color: var(--gray); font-size: 1.05rem; margin-bottom: 25px; }
.countdown { display: flex; gap: 15px; margin-bottom: 30px; }
.countdown-item {
    background: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 70px;
    box-shadow: var(--shadow);
}
.countdown-item .number { font-size: 1.8rem; font-weight: 700; color: var(--primary); display: block; }
.countdown-item .label { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; }

/* ---------- Newsletter ---------- */
.newsletter-section {
    background: var(--primary);
    padding: 60px 0;
    color: white;
    text-align: center;
}
.newsletter-section h3 { color: white; font-size: 1.8rem; margin-bottom: 10px; }
.newsletter-section p { opacity: 0.9; margin-bottom: 25px; }
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
}
.newsletter-form button {
    background: var(--dark);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}
.newsletter-form button:hover { background: var(--dark-2); }

/* ---------- Brands Carousel ---------- */
.brands-section {
    padding: 50px 0;
    background: var(--light);
}
.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.brand-item {
    opacity: 0.4;
    transition: var(--transition);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray);
}
.brand-item:hover { opacity: 1; color: var(--primary); }

/* ---------- Footer ---------- */
.main-footer {
    background: var(--dark);
    color: #aaa;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}
.footer-col h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary);
    margin-top: 10px;
}
.footer-about p { font-size: 0.9rem; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aaa; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-contact p { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact i { color: var(--primary); width: 20px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: white; }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom .payment-icons { margin-top: 10px; }
.footer-bottom .payment-icons i { font-size: 1.5rem; margin: 0 8px; opacity: 0.6; }

/* ---------- Product Detail Page ---------- */
.product-detail-section { padding: 40px 0; }
.product-gallery {
    position: relative;
}
.main-gallery-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #f5f5f5;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-gallery-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { padding-left: 30px; }
.product-detail-info .breadcrumb { font-size: 0.85rem; color: var(--gray); margin-bottom: 15px; }
.product-detail-info .breadcrumb a { color: var(--gray); }
.product-detail-info .breadcrumb a:hover { color: var(--primary); }
.product-detail-info h1 { font-size: 1.8rem; margin-bottom: 10px; }
.product-detail-info .sku { color: var(--gray); font-size: 0.85rem; }
.product-detail-info .price-box { margin: 20px 0; }
.product-detail-info .price-box .current { font-size: 2rem; font-weight: 700; color: var(--primary); }
.product-detail-info .price-box .original { font-size: 1.2rem; color: var(--gray); text-decoration: line-through; margin-left: 10px; }
.product-detail-info .price-box .discount { background: var(--danger); color: white; padding: 3px 10px; border-radius: 3px; font-size: 0.85rem; margin-left: 10px; }
.product-detail-info .description { color: var(--gray); line-height: 1.8; margin: 20px 0; }
.product-detail-info .stock { margin: 15px 0; }
.product-detail-info .stock.in-stock { color: var(--success); }
.product-detail-info .stock.low-stock { color: var(--warning); }
.product-detail-info .stock.out-of-stock { color: var(--danger); }

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 20px 0;
}
.qty-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--gray-light);
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-input {
    width: 60px;
    height: 45px;
    border: 2px solid var(--gray-light);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
}
.add-to-cart-actions { display: flex; gap: 10px; margin-top: 25px; }

/* Tabs */
.product-tabs { margin-top: 50px; }
.tab-headers {
    display: flex;
    border-bottom: 2px solid var(--gray-light);
}
.tab-header {
    padding: 15px 30px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: var(--gray);
    transition: var(--transition);
    border: none;
    background: none;
    font-family: var(--font-primary);
    font-size: 1rem;
}
.tab-header.active { color: var(--primary); }
.tab-header.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}
.tab-content { display: none; padding: 30px 0; }
.tab-content.active { display: block; }

/* ---------- Cart Page ---------- */
.cart-section { padding: 40px 0; }
.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th {
    background: var(--light);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--gray);
}
.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
}
.cart-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-product-img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-product-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-remove {
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    font-size: 1.1rem;
}
.cart-remove:hover { color: var(--danger); }
.cart-summary {
    background: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
}
.cart-summary h3 { margin-bottom: 20px; }
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}
.cart-summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--dark);
    border-bottom: none;
    padding-top: 15px;
    margin-top: 10px;
}

/* ---------- Checkout ---------- */
.checkout-section { padding: 40px 0; }
.checkout-form .form-group { margin-bottom: 20px; }
.checkout-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.payment-methods { margin: 20px 0; }
.payment-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.payment-method:hover, .payment-method.selected { border-color: var(--primary); background: #faf6f0; }
.payment-method i { font-size: 1.5rem; color: var(--primary); width: 30px; }
.payment-method-info h5 { margin: 0; font-size: 0.95rem; }
.payment-method-info p { margin: 2px 0 0; font-size: 0.8rem; color: var(--gray); }

/* ---------- Account Pages ---------- */
.account-section { padding: 40px 0; }
.account-sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.account-user {
    padding: 25px;
    text-align: center;
    background: var(--dark);
    color: white;
}
.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 10px;
}
.account-menu { list-style: none; padding: 0; margin: 0; }
.account-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}
.account-menu li a:hover, .account-menu li a.active {
    background: #faf6f0;
    color: var(--primary);
}
.account-menu li a i { width: 20px; color: var(--primary); }

/* ---------- Login/Register ---------- */
.auth-section {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.auth-card {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.auth-card h2 { text-align: center; margin-bottom: 30px; }
.auth-card .form-group { margin-bottom: 20px; }
.auth-card label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.auth-card input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 0.95rem;
}
.auth-card input:focus { border-color: var(--primary); outline: none; }
.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-light);
}
.auth-divider span {
    background: white;
    padding: 0 15px;
    color: var(--gray);
    position: relative;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-section {
    background: var(--light);
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-light);
}
.breadcrumb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.breadcrumb-inner h1 { font-size: 1.5rem; margin: 0; }
.breadcrumb-trail { display: flex; gap: 10px; font-size: 0.9rem; }
.breadcrumb-trail a { color: var(--gray); }
.breadcrumb-trail a:hover { color: var(--primary); }
.breadcrumb-trail .separator { color: var(--gray-light); }

/* ---------- Sidebar Filters ---------- */
.shop-sidebar { }
.filter-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-light);
}
.filter-group h4 { font-size: 1rem; margin-bottom: 15px; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 8px; }
.filter-list li a {
    color: var(--gray);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}
.filter-list li a:hover { color: var(--primary); }
.filter-list li a .count { background: var(--gray-light); padding: 1px 8px; border-radius: 10px; font-size: 0.8rem; }
.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-range input {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
}

/* ---------- Shop Controls ---------- */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
}
.shop-controls .result-count { color: var(--gray); font-size: 0.9rem; }
.shop-controls select {
    padding: 8px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
}
.view-toggles { display: flex; gap: 5px; }
.view-toggle {
    width: 38px;
    height: 38px;
    border: 2px solid var(--gray-light);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.view-toggle.active, .view-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Alert Messages ---------- */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ---------- Container ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.container-fluid { width: 100%; padding: 0 30px; }

/* ---------- Grid System ---------- */
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-1 { width: 8.33%; padding: 0 15px; }
.col-2 { width: 16.66%; padding: 0 15px; }
.col-3 { width: 25%; padding: 0 15px; }
.col-4 { width: 33.33%; padding: 0 15px; }
.col-5 { width: 41.66%; padding: 0 15px; }
.col-6 { width: 50%; padding: 0 15px; }
.col-7 { width: 58.33%; padding: 0 15px; }
.col-8 { width: 66.66%; padding: 0 15px; }
.col-9 { width: 75%; padding: 0 15px; }
.col-10 { width: 83.33%; padding: 0 15px; }
.col-11 { width: 91.66%; padding: 0 15px; }
.col-12 { width: 100%; padding: 0 15px; }

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-gray { color: var(--gray) !important; }
.text-white { color: white !important; }
.bg-primary { background: var(--primary) !important; }
.bg-dark { background: var(--dark) !important; }
.bg-light { background: var(--light) !important; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.d-flex { display: flex; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 5px;
    margin-top: 30px;
}
.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-light);
    border-radius: 5px;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}
.page-item.active .page-link,
.page-item .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ---------- Toast Notifications ---------- */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}
.toast {
    background: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    min-width: 300px;
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--info); }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---------- Loading Spinner ---------- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   Admin Portal Styles
   ============================================= */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    transition: var(--transition);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.admin-sidebar-header h3 { color: white; font-size: 1.3rem; margin: 0; }
.admin-sidebar-header h3 span { color: var(--primary); }
.admin-sidebar-header p { color: #888; font-size: 0.8rem; margin: 5px 0 0; }

.admin-nav { list-style: none; padding: 15px 0; margin: 0; }
.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #aaa;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav li a:hover, .admin-nav li a.active {
    color: white;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--primary);
}
.admin-nav li a i { width: 20px; text-align: center; font-size: 1rem; }
.admin-nav-divider {
    padding: 10px 20px 5px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    margin-top: 10px;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: #f0f2f5;
    min-height: 100vh;
}
.admin-topbar {
    background: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-topbar h2 { font-size: 1.3rem; margin: 0; }
.admin-topbar .user-info { display: flex; align-items: center; gap: 10px; }

.admin-content { padding: 30px; }

/* Admin Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stat-card-info h3 { font-size: 1.8rem; margin: 0; color: var(--dark); }
.stat-card-info p { color: var(--gray); font-size: 0.85rem; margin: 5px 0 0; }
.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.stat-card-icon.blue { background: #e3f2fd; color: #1976d2; }
.stat-card-icon.green { background: #e8f5e9; color: #388e3c; }
.stat-card-icon.orange { background: #fff3e0; color: #f57c00; }
.stat-card-icon.purple { background: #f3e5f5; color: #7b1fa2; }

/* Admin Table */
.admin-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}
.admin-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-card-header h3 { margin: 0; font-size: 1.1rem; }
.admin-card-body { padding: 25px; }
.admin-card-body.no-padding { padding: 0; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    background: var(--light);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--gray);
    white-space: nowrap;
}
.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.9rem;
}
.admin-table tr:hover td { background: #fafafa; }
.admin-table .actions a {
    color: var(--gray);
    margin-right: 10px;
    font-size: 1rem;
}
.admin-table .actions a:hover { color: var(--primary); }

/* Admin Form */
.admin-form .form-group { margin-bottom: 20px; }
.admin-form label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.admin-form .form-row { display: flex; gap: 20px; }
.admin-form .form-row .form-group { flex: 1; }

/* Admin Charts Area */
.chart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    position: relative;
}
.chart-container h4 { margin: 0 0 20px; }
.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: 1fr; }
    .deal-content { grid-template-columns: 1fr; text-align: center; }
    .hero-content { padding: 30px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-slide { min-height: 350px; }
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .search-bar { display: none; }
    .header-inner { padding: 10px 0; }
    .col-6 { width: 100%; }
    .col-3, .col-4, .col-8, .col-9 { width: 100%; }
    .product-detail-info { padding-left: 0; margin-top: 20px; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .stat-cards { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cart-table { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; gap: 15px; }
    .container { padding: 0 10px; }
    .hero-content h1 { font-size: 1.5rem; }
    .product-image { height: 200px; }
}

/* ---------- Print Styles ---------- */
@media print {
    .main-header, .main-footer, .admin-sidebar, .admin-topbar, .no-print { display: none !important; }
    .admin-main { margin-left: 0; }
    body { font-size: 12pt; }
}
