:root {
    --primary: #7000FF;
    --primary-dark: #5600CC;
    --primary-light: #9B4DFF;
    --accent: #FFD54F;
    --accent-dark: #FFC107;
    --bg: #F5F5F5;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-muted: #6C757D;
    --text-light: #999;
    --border: #E8E8E8;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ===== NAVBAR ===== */
.top-navbar {
    background: var(--bg-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    flex-wrap: nowrap;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-logo i {
    font-size: 1.5rem;
}

.catalog-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.catalog-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

.search-box {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.search-box input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.search-box button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.nav-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.nav-action-btn i {
    font-size: 1.25rem;
}

.nav-action-btn:hover {
    color: var(--primary);
    background: rgba(112, 0, 255, 0.05);
}

.nav-cart-btn {
    color: var(--primary);
    font-weight: 600;
}

.nav-badge {
    position: absolute;
    top: 0;
    right: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-cart-btn .nav-badge {
    background: var(--primary);
}

@media (max-width: 768px) {
    .navbar-inner {
        gap: 6px;
    }

    .navbar-logo span {
        display: none;
    }

    .catalog-btn span {
        display: none;
    }

    .catalog-btn {
        padding: 10px;
    }

    .nav-action-btn span {
        display: none;
    }

    .nav-action-btn {
        padding: 6px 8px;
    }

    .search-box input {
        font-size: 0.85rem;
        padding: 8px 40px 8px 12px;
    }
}

/* ===== CATEGORIES BAR ===== */
.categories-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    max-width: 100%;
}

.categories-bar .container {
    overflow-x: auto;
    scrollbar-width: none;
}

.categories-bar .container::-webkit-scrollbar {
    display: none;
}

.categories-list {
    display: flex;
    gap: 4px;
    padding: 8px 0;
    list-style: none;
    white-space: nowrap;
    width: max-content;
}

.categories-list a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.categories-list a:hover,
.categories-list a.active {
    background: var(--primary);
    color: #fff;
}

.categories-list a img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
}

/* ===== HERO / BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    padding: 40px;
    color: #fff;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-banner .btn-hero {
    background: var(--accent);
    color: var(--text-dark);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition);
}

.hero-banner .btn-hero:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    border-radius: var(--radius);
    overflow: hidden;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.hero-slider .carousel-inner {
    border-radius: var(--radius);
}

.hero-slide {
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide .slide-content {
    color: #fff;
    text-align: center;
    max-width: 600px;
    z-index: 2;
}

.hero-slide .slide-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-slide .slide-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.hero-slide .btn-hero {
    background: var(--accent);
    color: var(--text-dark);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition);
}

.hero-slide .btn-hero:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    margin: 0 12px;
    opacity: 0;
    transition: var(--transition);
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.hero-slider .carousel-indicators {
    margin-bottom: 12px;
}

.hero-slider .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    margin: 0 4px;
    opacity: 0.5;
}

.hero-slider .carousel-indicators button.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-slide {
        height: 200px;
        padding: 24px;
    }

    .hero-slide .slide-content h2 {
        font-size: 1.4rem;
    }

    .hero-slide .slide-content p {
        font-size: 0.9rem;
    }
}

/* ===== SECTION TITLES ===== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 16px;
}

.section-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-title a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.section-title a:hover {
    text-decoration: underline;
}

/* ===== CARD SLIDER (mini carousel in product card) ===== */
.card-slider {
    position: relative;
    overflow: hidden;
}

.card-slider-track {
    position: relative;
    aspect-ratio: 1;
}

.card-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.card-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.card-slide .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}

.card-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.card-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.card-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.card-slider-prev {
    left: 6px;
}

.card-slider-next {
    right: 6px;
}

.card-slider:hover .card-slider-btn {
    opacity: 1;
}

.card-slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

/* ===== PRODUCT CARDS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ===== ARZON NARXLAR BANNER ===== */
.cheap-products-banner {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    border-radius: var(--radius);
    padding: 20px;
    border: 2px solid #FFD54F;
}

/* ===== LOAD MORE ===== */
.btn-load-more {
    background: #fff;
    color: var(--text-dark);
    border: 2px solid var(--border);
    padding: 14px 48px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-load-more:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-card .card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--bg);
}

.product-card .card-body {
    padding: 12px;
}

.product-card .card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.product-card .card-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
}

.product-card .card-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.product-card .card-actions {
    display: flex;
    gap: 6px;
}

.btn-cart {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

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

.btn-fav {
    background: rgba(112, 0, 255, 0.08);
    border: none;
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-fav:hover {
    background: rgba(112, 0, 255, 0.15);
}

.btn-fav.active {
    color: #E91E63;
    background: rgba(233, 30, 99, 0.1);
}


/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    margin-bottom: 40px;
}

.product-gallery {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg);
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-info-card,
.product-description-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-detail-price span {
    font-size: 1.25rem;
    font-weight: 600;
    margin-left: 4px;
}

.product-detail-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-detail-category a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.sizes-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 20px;
}

.size-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.size-option {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.size-option.active {
    border-color: var(--primary);
    background: rgba(112, 0, 255, 0.03);
}

.size-option .size-price {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.product-shipping-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shipping-item i {
    font-size: 1.25rem;
}

.shipping-item div {
    line-height: 1.2;
}

.shipping-item strong {
    display: block;
    font-size: 0.85rem;
}

.shipping-item small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.product-detail-actions {
    display: flex;
    gap: 12px;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

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

.btn-fav-detail {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-fav-detail.active {
    color: #E91E63;
    border-color: #E91E63;
    background: rgba(233, 30, 99, 0.05);
}

.product-description-card h6 {
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-description-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr !important;
    }

    .product-info-panel {
        gap: 16px;
    }
}

/* ===== AUTH PAGES ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #4A00B0 100%);
    padding: 20px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.auth-card h2 {
    text-align: center;
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 16px;
}

.form-floating-custom input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-floating-custom input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-floating-custom label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
    font-size: 0.9rem;
    background: #fff;
    padding: 0 4px;
}

.form-floating-custom input:focus+label,
.form-floating-custom input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 0.75rem;
    color: var(--primary);
}

.btn-primary-custom {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert-custom {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-danger {
    background: #FDECEA;
    color: var(--danger);
    border: 1px solid #F5C6CB;
}

.alert-success {
    background: #D4EDDA;
    color: var(--success);
    border: 1px solid #C3E6CB;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text-dark);
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: auto;
}

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

.footer-col h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* ===== CART PAGE ===== */
.cart-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

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

.cart-item-info h6 {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-info .size-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cart-item-price {
    font-weight: 800;
    font-size: 1.1rem;
    white-space: nowrap;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.qty-control button {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.qty-control button:hover {
    background: rgba(112, 0, 255, 0.1);
}

.qty-control span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-summary {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}

.cart-summary h5 {
    font-weight: 700;
    margin-bottom: 16px;
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.cart-summary .summary-total {
    border-top: 2px solid var(--border);
    padding-top: 12px;
    font-weight: 800;
    font-size: 1.2rem;
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 16px;
}

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

/* ===== PRODUCT DETAIL ===== */
.product-detail-img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
}

.size-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.size-option {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    background: #fff;
}

.size-option:hover {
    border-color: var(--primary);
}

.size-option.active {
    border-color: var(--primary);
    background: rgba(112, 0, 255, 0.05);
    color: var(--primary);
    font-weight: 600;
}

/* ===== PROFILE ===== */
.profile-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.order-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-new {
    background: #E3F2FD;
    color: #1565C0;
}

.status-confirmed {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-assembling {
    background: #FFF3E0;
    color: #EF6C00;
}

.status-shipped {
    background: #F3E5F5;
    color: #7B1FA2;
}

.status-delivered {
    background: #E8F5E9;
    color: #1B5E20;
}

.status-rejected {
    background: #FFEBEE;
    color: #C62828;
}

/* ===== CHECKOUT ===== */
.checkout-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1040;
    padding: 6px 0;
}

.mobile-bottom-nav .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-bottom-nav .nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 4px 8px;
    position: relative;
}

.mobile-bottom-nav .nav-item a.active,
.mobile-bottom-nav .nav-item a:hover {
    color: var(--primary);
}

.mobile-bottom-nav .nav-item a i {
    font-size: 1.3rem;
}

/* ===== ADMIN PANEL ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--text-dark);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1060;
    transition: var(--transition);
}

.admin-sidebar .sidebar-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.admin-sidebar .sidebar-logo h4 {
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-sidebar .sidebar-logo h4 i {
    color: var(--primary-light);
}

.admin-sidebar .nav-links {
    list-style: none;
    padding: 0;
}

.admin-sidebar .nav-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #aaa;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-links li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.admin-sidebar .nav-links li a.active {
    background: rgba(112, 0, 255, 0.15);
    color: var(--primary-light);
    border-left-color: var(--primary-light);
}

.admin-sidebar .nav-links li a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    margin-left: 260px;
    flex: 1;
    padding: 24px;
    background: var(--bg);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: #fff;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-header h3 {
    font-weight: 700;
    font-size: 1.3rem;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-table {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-table table {
    margin-bottom: 0;
}

.admin-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.admin-table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.btn-sm-action {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .navbar-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .catalog-btn span {
        display: none;
    }

    .search-box {
        order: 3;
        width: 100%;
        min-width: 100%;
    }

    .navbar-actions .nav-action-btn span {
        display: none;
    }

    .mobile-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 60px;
    }

    .hero-banner {
        padding: 24px;
    }

    .hero-banner h1 {
        font-size: 1.4rem;
    }

    .hero-banner p {
        font-size: 0.95rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card .card-body {
        padding: 8px;
    }

    .product-card .card-price {
        font-size: 0.95rem;
    }

    .product-card .card-title {
        font-size: 0.78rem;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .navbar-actions {
        gap: 2px;
    }

    .nav-action-btn {
        padding: 6px 8px;
    }
}

/* ===== MISC ===== */
.page-wrapper {
    padding: 16px 0;
    min-height: calc(100vh - 200px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: var(--border);
}

.empty-state h5 {
    margin-bottom: 8px;
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb-custom a {
    color: var(--primary);
}

.breadcrumb-custom span {
    color: var(--text-light);
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.toast-msg {
    background: var(--text-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.toast-msg.success {
    background: var(--success);
}

.toast-msg.error {
    background: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}