/* ============================================================
   EcomDigi - Digital Product eCommerce Main Stylesheet
   Premium Modern UI Design
   ============================================================ */

/* ====== CSS VARIABLES ====== */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --secondary: #00b894;
    --secondary-dark: #00a381;
    --accent: #fd79a8;
    --dark: #2d3436;
    --darker: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --gradient-1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-2: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    --gradient-3: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    --gradient-4: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ====== RESET & BASE ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    background: #f5f6fa;
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ====== TOP BAR ====== */
.top-bar {
    background: var(--darker);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
    position: relative;
    z-index: 1001;
}
.top-bar a {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    transition: var(--transition);
}
.top-bar a:hover { color: #fff; }
.top-bar-left span { color: rgba(255,255,255,0.7); }
.top-bar-left i { color: var(--primary-light); margin-right: 5px; }

/* ====== HEADER / NAVBAR ====== */
.main-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 12px 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo i {
    font-size: 32px;
    color: var(--primary);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-text {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}
.brand-logo img {
    max-height: 42px;
    width: auto;
    display: block;
}
.brand-logo .logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo .logo-fallback i {
    font-size: 32px;
    color: var(--primary);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-logo .logo-fallback span {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
    background: rgba(108,92,231,0.08);
}
.navbar-nav .nav-link i { margin-right: 6px; }

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gray-700);
    font-size: 18px;
    transition: var(--transition);
    position: relative;
}
.nav-icon:hover {
    background: rgba(108,92,231,0.1);
    color: var(--primary);
}
.badge-icon {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 220px;
}
.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-weight: 500;
    transition: var(--transition);
}
.dropdown-item:hover {
    background: rgba(108,92,231,0.08);
    color: var(--primary);
}

/* ====== SEARCH OVERLAY ====== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26,26,46,0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-overlay-content {
    width: 100%;
    padding: 20px;
    position: relative;
}
.search-input {
    height: 60px;
    font-size: 20px;
    border: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    padding: 0 25px;
    background: #fff;
}
.search-form .btn {
    padding: 0 40px;
    font-size: 18px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--gradient-1);
    border: none;
}
.search-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    margin: 3px;
    transition: var(--transition);
}
.search-tag:hover {
    background: var(--primary);
    color: #fff;
}
.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}
.search-close:hover { opacity: 1; }

/* ====== HERO SLIDER ====== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--gradient-4);
}
.hero-slider {
    position: relative;
}
.hero-slide {
    padding: 80px 0;
    position: relative;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(108,92,231,0.2);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-title span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
    max-width: 500px;
}
.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}
.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}
.hero-shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
}

/* ====== SECTION STYLES ====== */
.section-padding {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-subtitle {
    display: inline-block;
    padding: 5px 20px;
    background: rgba(108,92,231,0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}
.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}
.section-desc {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ====== PRODUCT CARDS ====== */
.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.product-badge .badge {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
}
.badge-featured { background: var(--primary); color: #fff; }
.badge-sale { background: var(--accent); color: #fff; }
.badge-new { background: var(--secondary); color: #fff; }
.badge-best { background: #fdcb6e; color: #2d3436; }

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    color: var(--gray-600);
}
.product-wishlist:hover,
.product-wishlist.active {
    background: var(--accent);
    color: #fff;
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: var(--transition);
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-image .placeholder-icon {
    font-size: 60px;
    color: var(--gray-300);
}

.product-body {
    padding: 20px;
}
.product-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}
.product-title a {
    color: var(--dark);
}
.product-title a:hover {
    color: var(--primary);
}
.product-desc {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-rating {
    margin-bottom: 12px;
}
.product-rating .star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.product-rating .star-rating i {
    font-size: 13px;
}
.product-rating small {
    margin-left: 5px;
    font-size: 12px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.current-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}
.old-price {
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: line-through;
}
.discount-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
}
.product-actions {
    display: flex;
    gap: 5px;
}
.btn-add-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.btn-add-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(108,92,231,0.4);
}

/* ====== BUTTONS ====== */
.btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 15px;
}
.btn-primary {
    background: var(--gradient-1);
    border: none;
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.35);
    color: #fff;
}
.btn-secondary {
    background: var(--gradient-2);
    border: none;
    color: #fff;
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,184,148,0.35);
    color: #fff;
}
.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.btn-lg { padding: 15px 40px; font-size: 16px; }
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-icon { display: inline-flex; align-items: center; gap: 8px; }

/* ====== FEATURES SECTION ====== */
.features-section {
    background: #fff;
}
.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}
.feature-icon.purple { background: rgba(108,92,231,0.1); color: var(--primary); }
.feature-icon.green { background: rgba(0,184,148,0.1); color: var(--secondary); }
.feature-icon.pink { background: rgba(253,121,168,0.1); color: var(--accent); }
.feature-icon.blue { background: rgba(116,185,255,0.1); color: #74b9ff; }
.feature-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
}

/* ====== CATEGORY CARDS ====== */
.category-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    transition: var(--transition);
}
.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}
.category-card h6 {
    font-weight: 700;
    margin-bottom: 5px;
}
.category-card small {
    color: var(--gray-600);
}

/* ====== TESTIMONIALS ====== */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 60px;
    color: var(--primary-light);
    opacity: 0.3;
    font-family: Georgia, serif;
}
.testimonial-text {
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 20px;
    padding-top: 20px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
.testimonial-name {
    font-weight: 700;
    margin: 0;
}
.testimonial-role {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
}

/* ====== CTA SECTION ====== */
.cta-section {
    background: var(--gradient-4);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.1;
    top: -100px;
    right: -100px;
}
.cta-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.1;
    bottom: -50px;
    left: -50px;
}
.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.cta-content h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}
.cta-content p {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    margin-bottom: 30px;
}

/* ====== FOOTER ====== */
.main-footer {
    background: var(--darker);
    color: rgba(255,255,255,0.8);
}
.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.footer-brand i {
    font-size: 30px;
    color: var(--primary);
}
.footer-brand span {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}
.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-widget h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}
.footer-links a i {
    font-size: 10px;
    margin-right: 8px;
    color: var(--primary);
}
.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.newsletter-form .input-group {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 15px;
}
.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}
.newsletter-form .btn {
    border-radius: 0;
    padding: 12px 20px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 5px;
}
.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    padding: 20px 0;
    font-size: 14px;
}
.footer-policy-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}
.footer-policy-links a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}
.footer-policy-links a:hover {
    color: #fff;
}

/* ====== BACK TO TOP ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ====== PAGE HEADER ====== */
.page-header {
    background: var(--gradient-4);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.1;
    top: -100px;
    right: -50px;
}
.page-header h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
}
.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 10px 0 0;
}
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.page-header .breadcrumb-item.active {
    color: #fff;
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ====== AUTH PAGES ====== */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}
.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.auth-header {
    background: var(--gradient-1);
    padding: 40px;
    text-align: center;
    color: #fff;
}
.auth-header h3 {
    font-weight: 800;
    margin-bottom: 5px;
}
.auth-header p {
    opacity: 0.9;
    font-size: 14px;
}
.auth-body {
    padding: 40px;
}
.auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
}
.auth-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    color: var(--gray-600);
    font-size: 13px;
}

/* ====== SHOP / PRODUCT GRID ====== */
.shop-sidebar {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}
.shop-sidebar .widget {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-200);
}
.shop-sidebar .widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.shop-sidebar .widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}
.shop-sidebar .form-check {
    margin-bottom: 8px;
}
.shop-sidebar .form-check-label {
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
}
.shop-sidebar .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ====== PRODUCT DETAIL ====== */
.product-detail-section {
    padding: 60px 0;
}
.product-gallery {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}
.product-info {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.product-info .product-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}
.product-meta-item {
    font-size: 14px;
    color: var(--gray-600);
}
.product-meta-item strong {
    color: var(--gray-800);
}
.product-description {
    margin-bottom: 25px;
}
.product-description h4 {
    font-weight: 700;
    margin-bottom: 15px;
}
.product-description ul {
    list-style: none;
    padding: 0;
}
.product-description ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}
.product-description ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
}
.product-actions-bar {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}
.product-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.product-qty button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}
.product-qty button:hover {
    background: var(--gray-200);
}
.product-qty input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--gray-300);
    border-right: 1px solid var(--gray-300);
    text-align: center;
    font-weight: 600;
}

/* ====== CART PAGE ====== */
.cart-table {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.cart-table thead {
    background: var(--gradient-1);
    color: #fff;
}
.cart-table th {
    font-weight: 600;
    font-size: 14px;
    padding: 15px;
    border: none;
}
.cart-table td {
    padding: 15px;
    vertical-align: middle;
}
.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-product img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    padding: 5px;
}
.cart-product-info h6 {
    font-weight: 600;
    margin: 0;
}
.cart-product-info small {
    color: var(--gray-600);
}
.cart-summary {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.cart-summary h5 {
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}
.cart-summary-row.total {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    padding-top: 15px;
    border-top: 2px solid var(--gray-200);
}

/* ====== CHECKOUT ====== */
.checkout-section {
    padding: 60px 0;
}
.checkout-form {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.checkout-form h4 {
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}
.order-summary {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}
.order-summary h4 {
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}
.order-item:last-child {
    border-bottom: none;
}
.payment-methods {
    margin-top: 20px;
}
.payment-method {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}
.payment-method:hover,
.payment-method.active {
    border-color: var(--primary);
    background: rgba(108,92,231,0.05);
}
.payment-method input[type="radio"] {
    margin-right: 10px;
}

/* ====== DASHBOARD ====== */
.dashboard-section {
    padding: 60px 0;
}
.dashboard-sidebar {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.dashboard-user {
    background: var(--gradient-1);
    padding: 30px 20px;
    text-align: center;
    color: #fff;
}
.dashboard-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    border: 3px solid rgba(255,255,255,0.3);
}
.dashboard-user h6 {
    font-weight: 700;
    margin: 0;
}
.dashboard-user small {
    opacity: 0.8;
}
.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dashboard-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.dashboard-menu li a:hover,
.dashboard-menu li a.active {
    background: rgba(108,92,231,0.05);
    color: var(--primary);
    border-left-color: var(--primary);
}
.dashboard-menu li a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}
.dashboard-content {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 15px;
}
.stat-card .stat-number {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}
.stat-card .stat-label {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
}

/* ====== FORMS ====== */
.form-control {
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}
.form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 6px;
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ====== ALERTS ====== */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px 20px;
}
.alert-success {
    background: rgba(0,184,148,0.1);
    color: var(--secondary-dark);
}
.alert-danger {
    background: rgba(253,121,168,0.1);
    color: #d63031;
}
.alert-warning {
    background: rgba(253,203,110,0.2);
    color: #b7950b;
}
.alert-info {
    background: rgba(116,185,255,0.1);
    color: #0984e3;
}

/* ====== BREADCRUMB ====== */
.breadcrumb-section {
    background: var(--gray-100);
    padding: 15px 0;
}

/* ====== EMPTY STATE ====== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i {
    font-size: 80px;
    color: var(--gray-300);
    margin-bottom: 20px;
}
.empty-state h4 {
    font-weight: 700;
    margin-bottom: 10px;
}
.empty-state p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

/* ====== PAGINATION ====== */
.pagination {
    gap: 5px;
}
.page-link {
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
}
.page-link:hover {
    background: rgba(108,92,231,0.1);
    color: var(--primary);
}
.page-link.active {
    background: var(--gradient-1);
    color: #fff;
}

/* ====== REVIEWS ====== */
.review-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}
.review-user h6 {
    font-weight: 700;
    margin: 0;
}
.review-user small {
    color: var(--gray-600);
}

/* ====== COUPON ====== */
.coupon-form {
    display: flex;
    gap: 10px;
}
.coupon-form .form-control {
    flex: 1;
}
.coupon-applied {
    background: rgba(0,184,148,0.1);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.coupon-applied span {
    color: var(--secondary);
    font-weight: 600;
}
.coupon-applied .remove-coupon {
    color: #d63031;
    cursor: pointer;
    font-size: 13px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1199.98px) {
    .hero-title { font-size: 38px; }
}

@media (max-width: 991.98px) {
    .hero-title { font-size: 32px; }
    .hero-slide { padding: 50px 0; }
    .section-title { font-size: 28px; }
    .section-padding { padding: 60px 0; }
    .navbar-nav { padding: 15px 0; }
    .navbar-actions { flex-direction: row; padding: 10px 0; }
    .footer-policy-links { justify-content: flex-start; margin-top: 10px; }
}

@media (max-width: 767.98px) {
    .top-bar-left, .top-bar-right { text-align: center; }
    .top-bar-left span { display: block; margin: 0 !important; }
    .top-bar-right a { display: inline-block; margin: 5px; }
    .hero-title { font-size: 28px; }
    .hero-desc { font-size: 16px; }
    .hero-slide { padding: 40px 0; }
    .section-title { font-size: 24px; }
    .section-padding { padding: 40px 0; }
    .page-header { padding: 40px 0; }
    .page-header h1 { font-size: 28px; }
    .auth-body { padding: 25px; }
    .product-info .product-title { font-size: 22px; }
    .dashboard-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 24px; }
    .hero-desc { font-size: 14px; }
    .section-title { font-size: 20px; }
    .product-image { height: 180px; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .product-actions-bar { flex-direction: column; }
    .search-input { height: 50px; font-size: 16px; }
    .search-form .btn { padding: 0 20px; font-size: 14px; }
}

/* ====== UTILITY CLASSES ====== */
.text-gradient { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.bg-gradient-1 { background: var(--gradient-1); }
.bg-gradient-2 { background: var(--gradient-2); }
.bg-gradient-3 { background: var(--gradient-3); }
.bg-gradient-4 { background: var(--gradient-4); }
.shadow-hover { transition: var(--transition); }
.shadow-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.rounded-custom { border-radius: var(--radius-md); }

/* ====== LOADING SPINNER ====== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====== TOAST NOTIFICATION ====== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
}
.toast-custom {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    min-width: 300px;
}
.toast-custom.success { border-left: 4px solid var(--secondary); }
.toast-custom.error { border-left: 4px solid #d63031; }
.toast-custom i { font-size: 20px; }
.toast-custom.success i { color: var(--secondary); }
.toast-custom.error i { color: #d63031; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ====== DOWNLOAD SECTION ====== */
.download-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    transition: var(--transition);
}
.download-card:hover {
    box-shadow: var(--shadow-md);
}
.download-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.download-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(108,92,231,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
}
.download-details h6 {
    font-weight: 700;
    margin: 0;
}
.download-details small {
    color: var(--gray-600);
}

/* ====== INVOICE ====== */
.invoice-box {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.invoice-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.invoice-header h2 {
    color: var(--primary);
    font-weight: 800;
}
.invoice-table th {
    background: var(--gray-100);
    font-weight: 600;
}
.invoice-total {
    text-align: right;
    margin-top: 20px;
}
.invoice-total table {
    width: 300px;
    margin-left: auto;
}
.invoice-total td {
    padding: 5px 10px;
}
.invoice-total .grand-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}