/* ═══════════════════════════════════════════════
   STORE.CSS — Daraz-Inspired E-Commerce Design
   ═══════════════════════════════════════════════ */

:root {
    --primary: #F85606;
    --primary-dark: #d94800;
    --primary-light: #FF6B35;
    --secondary: #FFD700;
    --bg: #F5F5F5;
    --white: #FFFFFF;
    --text: #333333;
    --text-muted: #666666;
    --border: #E0E0E0;
    --success: #00B14F;
    --error: #E62929;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ─── Top Bar ─── */
.topbar {
    background: #333;
    color: #ccc;
    font-size: 12px;
    padding: 4px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-right a {
    color: #ccc;
    margin-left: 16px;
    transition: color 0.2s;
}
.topbar-right a:hover {
    color: var(--primary);
}
.topbar-promo {
    color: var(--secondary);
    font-weight: 500;
}
.topbar-logout-btn, .dropdown-logout-btn, .mobile-logout-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}
.topbar-logout-btn {
    color: #ccc;
    margin-left: 16px;
    transition: color 0.2s;
}
.topbar-logout-btn:hover {
    color: var(--primary);
}
.dropdown-logout-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    color: var(--text);
}
.dropdown-logout-btn:hover {
    background: var(--bg);
    color: var(--primary);
}
.mobile-logout-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    color: var(--text);
}
.bar-count {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 24px;
    text-align: right;
}

/* ─── Navbar ─── */
.navbar {
    background: var(--white);
    padding: 10px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* Search */
.navbar-search {
    flex: 1;
    max-width: 600px;
}
.search-form {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.search-form:focus-within {
    box-shadow: 0 0 0 3px rgba(248,86,6,0.15);
}
.search-category {
    border: none;
    background: #f7f7f7;
    padding: 8px 12px;
    font-size: 13px;
    border-right: 1px solid var(--border);
    outline: none;
    min-width: 120px;
}
.search-input-wrap {
    flex: 1;
    position: relative;
}
.search-input-wrap input {
    width: 100%;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}
.search-btn {
    background: var(--primary);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.search-btn:hover {
    background: var(--primary-dark);
}

/* Autocomplete */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 100;
}
.autocomplete-dropdown.show {
    display: block;
}
.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
}
.autocomplete-item:hover {
    background: #f5f5f5;
}

/* Nav icons */
.navbar-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.nav-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text);
    transition: color 0.2s;
}
.nav-icon-link:hover {
    color: var(--primary);
}
.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Account dropdown */
.nav-account-dropdown {
    position: relative;
}
.account-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text);
}
.account-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow);
    min-width: 160px;
    z-index: 100;
    padding: 8px 0;
}
.nav-account-dropdown:hover .account-dropdown-menu {
    display: block;
}
.account-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    transition: background 0.15s;
}
.account-dropdown-menu a:hover {
    background: #f5f5f5;
    color: var(--primary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 16px;
    border-top: 1px solid var(--border);
}
.mobile-menu.open {
    display: flex;
}
.mobile-menu a {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}
.mobile-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.mobile-search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
}
.mobile-search-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

/* Category bar */
.category-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.category-bar-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.category-bar-scroll::-webkit-scrollbar {
    display: none;
}
.category-bar-item {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    padding: 4px 0;
    transition: color 0.2s;
    flex-shrink: 0;
}
.category-bar-item:hover {
    color: var(--primary);
}

/* ─── Main Content ─── */
.main-content {
    min-height: 60vh;
    padding-bottom: 40px;
}

/* ─── Messages ─── */
.messages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px;
}
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInDown 0.3s;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid var(--success); }
.alert-error, .alert-danger { background: #fbe9e7; color: #c62828; border-left: 4px solid var(--error); }
.alert-warning { background: #fff8e1; color: #f57f17; border-left: 4px solid #FFC107; }
.alert-info { background: #e3f2fd; color: #1565c0; border-left: 4px solid #2196F3; }
.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
}

/* ─── Hero Slider ─── */
.hero-slider {
    position: relative;
    overflow: hidden;
    max-height: 400px;
}
.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}
.slide {
    min-width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
    animation: fadeInUp 0.6s;
}
.slide-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.95;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}
.slider-btn:hover { background: var(--white); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.slider-dot.active {
    background: var(--white);
}

/* ─── Sections ─── */
.section {
    padding: 24px 0;
}
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.category-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.category-card-icon {
    margin-bottom: 8px;
}
.category-card-name {
    font-size: 13px;
    font-weight: 500;
}

/* Flash Sale */
.flash-sale-section {
    background: var(--white);
    border-radius: 8px;
    margin: 0 auto;
    max-width: 1200px;
}
.flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--error), #ff4444);
    border-radius: 8px 8px 0 0;
}
.flash-sale-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
}
.countdown {
    display: flex;
    align-items: center;
    gap: 4px;
}
.cd-block {
    background: var(--white);
    color: var(--text);
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    min-width: 48px;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    flex-direction: column;
}
.cd-block small {
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
}
.cd-sep {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
}

/* Horizontal Scroll */
.horizontal-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}
.horizontal-scroll::-webkit-scrollbar {
    height: 4px;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}
.horizontal-scroll .product-card {
    min-width: 180px;
    max-width: 200px;
    flex-shrink: 0;
}

/* ─── Product Grid ─── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* ─── Product Card ─── */
.product-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.product-card-link {
    display: block;
}
.product-card-img {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #fafafa;
}
.product-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-card-img img {
    transform: scale(1.05);
}
.product-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--error);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
}
.wishlist-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    background: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.wishlist-heart:hover {
    transform: scale(1.15);
}
.wishlist-heart.active svg {
    fill: var(--primary);
    stroke: var(--primary);
}
.product-card-info {
    display: block;
    padding: 10px 12px 4px;
}
.product-card-title {
    font-size: 13px;
    font-weight: 400;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
    margin-bottom: 4px;
}
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}
.star {
    font-size: 12px;
    color: #ddd;
}
.star.filled {
    color: var(--secondary);
}
.star.half {
    color: var(--secondary);
}
.review-count {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 4px;
}
.product-card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.price-current {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}
.price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-card-cart-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s, background 0.2s;
}
.product-card:hover .product-card-cart-btn {
    transform: translateY(0);
    opacity: 1;
}
.product-card-cart-btn:hover {
    background: var(--primary-dark);
}

/* Load more */
.load-more-wrap {
    text-align: center;
    padding: 20px 0;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
}
.btn-white:hover {
    background: #f5f5f5;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: #fff5f0;
}
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ─── Checkout Action Buttons ─── */
.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

/* Full browser-default reset */
button.checkout-action-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    text-align: left;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    outline: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
button.checkout-action-btn:hover {
    transform: translateY(-3px);
}
button.checkout-action-btn:active {
    transform: scale(0.975) translateY(0);
}

/* ── Confirm Order: cream bg + red border + red text ── */
button.confirm-order-btn {
    background-color: #FFF8E1 !important;
    border: 2.5px solid #D32F2F !important;
    box-shadow: 0 4px 14px rgba(211, 47, 47, 0.18);
}
button.confirm-order-btn:hover {
    background-color: #FFECB3 !important;
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.3);
}
button.confirm-order-btn .cab-title {
    color: #D32F2F;
}
button.confirm-order-btn .cab-subtitle {
    color: #B71C1C;
    opacity: 0.9;
}
button.confirm-order-btn .cab-arrow svg {
    stroke: #D32F2F;
}

/* Pulsing red glow on confirm button */
@keyframes redGlow {
    0%, 100% { box-shadow: 0 4px 14px rgba(211, 47, 47, 0.18); }
    50%       { box-shadow: 0 4px 22px rgba(211, 47, 47, 0.38); }
}
button.confirm-order-btn {
    animation: redGlow 2.5s ease-in-out infinite;
}
button.confirm-order-btn:hover {
    animation: none;
}

/* ── Inquiry Only: solid dark bg + white text ── */
button.inquiry-only-btn {
    background-color: #212121 !important;
    border: 2.5px solid #212121 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
button.inquiry-only-btn:hover {
    background-color: #424242 !important;
    border-color: #424242 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}
button.inquiry-only-btn .cab-title {
    color: #FFFFFF;
}
button.inquiry-only-btn .cab-subtitle {
    color: rgba(255, 255, 255, 0.72);
}
button.inquiry-only-btn .cab-arrow svg {
    stroke: #FFFFFF;
}

/* Shimmer sweep on hover */
button.checkout-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
    transition: left 0.55s ease;
    pointer-events: none;
    z-index: 0;
}
button.checkout-action-btn:hover::before {
    left: 110%;
}

/* Text block */
.cab-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}
.cab-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.25px;
    line-height: 1.2;
}
.cab-subtitle {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

/* Arrow on right */
.cab-arrow {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    opacity: 0.65;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
button.checkout-action-btn:hover .cab-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}
.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s, opacity 0.4s;
    opacity: 0;
}
.ripple:active::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: 0s;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 9px 18px;
    background: #fff;
    border: 1.5px solid rgba(248,86,6,0.18);
    border-radius: 40px;
    font-size: 13px;
    margin: 14px 0 24px;
    box-shadow: 0 2px 10px rgba(248,86,6,0.08), 0 1px 4px rgba(0,0,0,0.05);
}
.breadcrumb a {
    color: #555;
    font-weight: 500;
    text-decoration: none;
    padding: 0 3px;
    transition: color 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.breadcrumb a:first-child::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F85606' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    width: 14px;
    height: 14px;
    position: relative;
    font-size: 0;
    flex-shrink: 0;
}
.breadcrumb .sep::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-60%, -50%) rotate(45deg);
    width: 5px;
    height: 5px;
    border-top: 1.5px solid rgba(248,86,6,0.35);
    border-right: 1.5px solid rgba(248,86,6,0.35);
}
.breadcrumb > span:not(.sep) {
    color: var(--primary);
    font-weight: 700;
    padding: 0 3px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Page Header ─── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
}
.page-header h1 {
    font-size: 22px;
    font-weight: 700;
}
.page-title {
    font-size: 22px;
    font-weight: 700;
    padding: 16px 0;
}
.sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-bar select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    background: var(--white);
    outline: none;
}
.category-desc {
    color: var(--text-muted);
    margin-top: -8px;
    width: 100%;
}

/* ─── Pagination ─── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 24px 0;
}
.page-link {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
}
.page-link:hover, .page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ─── Product Detail ─── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}
.pd-gallery {
    position: relative;
}
.pd-main-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    background: #fafafa;
}
.pd-main-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.3s;
}
.pd-main-image:hover img {
    transform: scale(1.1);
}
.img-counter {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.pd-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}
.pd-thumb {
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.pd-thumb.active {
    border-color: var(--primary);
}
.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pd-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
.pd-rating-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pd-rating-bar .stars {
    display: flex;
    gap: 2px;
}
.pd-rating-bar .stars .star {
    font-size: 16px;
}
.rating-num {
    font-weight: 600;
    color: var(--primary);
}
.review-link {
    color: var(--text-muted);
    font-size: 13px;
}
.review-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.pd-price-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #fef5f0;
    padding: 16px;
    border-radius: 4px;
}
.pd-price-current {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.pd-price-original {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.pd-discount-badge {
    background: var(--error);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.pd-stock {
    font-size: 14px;
    font-weight: 500;
}
.pd-stock.in-stock { color: var(--success); }
.pd-stock.out-of-stock { color: var(--error); }

.pd-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pd-quantity label {
    font-weight: 500;
}
.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.qty-btn {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.qty-btn:hover { background: #eee; }
.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 14px;
    height: 36px;
    outline: none;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.pd-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.pd-actions .add-to-cart-form {
    flex: 1;
}

/* Tabs */
.pd-tabs {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}
.tab-headers {
    display: flex;
    border-bottom: 2px solid var(--border);
    gap: 24px;
    margin-bottom: 16px;
}
.tab-header {
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tab-header.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}
.tab-content.active {
    display: block;
}

/* Specs table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.specs-table td:first-child {
    font-weight: 500;
    color: var(--text-muted);
    width: 200px;
}

/* Reviews */
.reviews-section {
    max-width: 100%;
}
.review-summary {
    display: flex;
    gap: 32px;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 24px;
}
.review-avg {
    text-align: center;
    min-width: 120px;
}
.big-rating {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.review-avg .stars { display: flex; justify-content: center; gap: 2px; margin: 4px 0; }
.review-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.bar-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bar-track { flex: 1; height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--secondary); border-radius: 4px; }

.review-list {
    margin-bottom: 24px;
}
.review-card {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.review-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.review-body { flex: 1; }
.review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.review-meta .stars.small .star { font-size: 12px; }
.review-date { font-size: 12px; color: var(--text-muted); }

/* Star rating input */
.star-rating-input {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}
.star-input {
    font-size: 28px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.15s, transform 0.15s;
}
.star-input.active, .star-input.hover {
    color: var(--secondary);
    transform: scale(1.1);
}
.review-form-wrap h3 {
    margin-bottom: 12px;
}
.review-form-wrap form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.login-prompt {
    padding: 16px;
    background: #fef5f0;
    border-radius: 4px;
    text-align: center;
}
.login-prompt a {
    color: var(--primary);
    font-weight: 500;
}

/* Related section */
.related-section {
    margin-bottom: 24px;
}

/* ─── Cart Page ─── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
.cart-items {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fafafa;
}
.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-info { flex: 1; }
.cart-item-name {
    font-weight: 500;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item-name:hover { color: var(--primary); }
.cart-item-price { color: var(--text-muted); margin-top: 4px; }
.cart-item-total { font-weight: 600; white-space: nowrap; }
.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.cart-item-remove:hover { color: var(--error); }
.continue-shopping {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    font-size: 14px;
}

.cart-summary {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 80px;
}
.cart-summary h3 {
    margin-bottom: 16px;
    font-size: 18px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    padding: 12px 0;
}
.cart-summary hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}
.cart-summary .btn {
    margin-top: 16px;
}
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--success);
}

/* ─── Checkout ─── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}
.checkout-form {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
}
.checkout-form h2 {
    margin-bottom: 20px;
}
.checkout-summary {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 80px;
}
.checkout-summary h3 {
    margin-bottom: 16px;
}
.checkout-items {
    margin-bottom: 12px;
}
.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}
.ci-name {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ci-price { font-weight: 500; flex-shrink: 0; margin-left: 12px; }

/* ─── Forms ─── */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}
.form-input, .form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-input:focus, .form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(248,86,6,0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.field-error {
    color: var(--error);
    font-size: 12px;
    margin-top: 2px;
    display: block;
}
.form-errors {
    background: #fbe9e7;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.error-msg {
    color: var(--error);
    font-size: 13px;
}

/* ─── Auth Pages ─── */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 24px 16px;
}
.auth-card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
    text-align: center;
}
.auth-logo { margin-bottom: 16px; }
.auth-card h2 {
    font-size: 22px;
    margin-bottom: 4px;
}
.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
}
.auth-card form {
    text-align: left;
}
.auth-card .btn {
    margin-top: 8px;
}
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 13px;
}
.auth-switch {
    color: var(--text-muted);
    font-size: 14px;
}
.auth-switch a {
    color: var(--primary);
    font-weight: 500;
}

/* ─── Orders ─── */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.order-card {
    background: var(--white);
    border-radius: 8px;
    padding: 16px 20px;
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.order-date {
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 8px;
}
.order-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: capitalize;
}
.status-pending { background: #fff8e1; color: #f57f17; }
.status-confirmed { background: #e3f2fd; color: #1565c0; }
.status-shipped { background: #e8eaf6; color: #283593; }
.status-delivered { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #fbe9e7; color: #c62828; }
.order-badges, .order-card-header-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.order-type-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: capitalize;
}
.type-confirmed { background: #e8f5e9; color: #2e7d32; }
.type-inquiry { background: #f3e5f5; color: #7b1fa2; }
.order-card-body {
    margin-bottom: 8px;
}

/* Order Detail */
.order-detail-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.order-info-card, .order-items-card {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
}
.order-info-card h1 {
    font-size: 20px;
    margin-bottom: 8px;
}
.order-info-card h3 {
    margin-top: 16px;
    margin-bottom: 8px;
}
.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.order-item-info span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
}
.order-item-price {
    font-weight: 600;
}

/* ─── Profile ─── */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}
.profile-card {
    background: var(--white);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 16px;
    text-transform: uppercase;
}
.profile-card h2 { margin-bottom: 4px; }
.profile-card p { color: var(--text-muted); font-size: 14px; }
.text-muted { color: var(--text-muted); }

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.profile-section {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
}
.profile-section h3 { margin-bottom: 12px; }
.mini-order-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.mini-order-row a {
    color: var(--primary);
    font-weight: 500;
}
.view-all-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary);
    font-size: 13px;
}
.mini-wishlist {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mini-wishlist-item {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.mini-wishlist-item:hover { color: var(--primary); }

/* ─── Wishlist ─── */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}
.empty-state h2 {
    margin: 16px 0 8px;
    font-size: 20px;
}
.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}
.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ─── Footer ─── */
.store-footer {
    background: #222;
    color: #ccc;
    padding: 40px 0 0;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul a:hover {
    color: var(--primary);
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.footer-tagline {
    font-size: 13px;
    margin-bottom: 16px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    color: #999;
    transition: color 0.2s;
}
.footer-social a:hover { color: var(--primary); }

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.app-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.app-badge:hover { border-color: #777; }
.app-badge small {
    font-size: 10px;
    display: block;
}
.app-badge strong {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 13px;
}
.payment-icons {
    display: flex;
    gap: 8px;
}
.payment-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
.payment-badge.visa { background: #1a1f71; color: var(--white); }
.payment-badge.mastercard { background: #eb001b; color: var(--white); }
.payment-badge.esewa { background: #60bb46; color: var(--white); }
.payment-badge.khalti { background: #5c2d91; color: var(--white); }

/* ─── Toast Notifications ─── */
#toast-container {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast-notification {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease-out;
    min-width: 280px;
    font-size: 14px;
}
.toast-notification .toast-icon {
    color: var(--success);
    font-weight: 700;
}
.toast-notification .toast-msg { flex: 1; }
.toast-notification .toast-close-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
}
.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

/* ─── Animations ─── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.cart-icon-link.shake {
    animation: shake 0.5s;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .navbar-search { display: none; }
    .navbar-icons { display: none; }
    .category-bar { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-detail { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .order-detail-page { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .slide-content h1 { font-size: 24px; }
    .slide-content p { font-size: 14px; }
    .pd-price-current { font-size: 22px; }
    .review-summary { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .cart-item { flex-wrap: wrap; }
    .auth-card { padding: 24px; }
}

/* ═══════════════════════════════════════════════
   ENHANCED VISUAL DESIGN v2 — Professional & Animated
   ═══════════════════════════════════════════════ */

/* —— Base & Background —— */
body {
    background: #f0f0f0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(248,86,6,0.055) 1px, transparent 0);
    background-size: 28px 28px;
}

/* —— Topbar —— */
.topbar {
    background: linear-gradient(90deg, #181818 0%, #2a2a2a 50%, #181818 100%);
}

/* —— Navbar Premium —— */
.navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(248,86,6,0.05);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, rgba(248,86,6,0.22) 50%, transparent 100%) 1;
}

/* —— Logo gradient text —— */
.logo-text {
    background: linear-gradient(135deg, #F85606 30%, #d94800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* —— Search bar premium —— */
.search-form {
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.25s;
}
.search-form:focus-within {
    box-shadow: 0 0 0 4px rgba(248,86,6,0.12), 0 4px 18px rgba(248,86,6,0.08);
    transform: translateY(-1px);
}
.search-btn {
    border-radius: 0;
    background: linear-gradient(135deg, #F85606, #d94800);
    transition: filter 0.2s;
}
.search-btn:hover {
    filter: brightness(1.1);
    background: linear-gradient(135deg, #d94800, #bf3900);
}

/* —— Hero Slider Premium —— */
.hero-slider {
    max-height: none;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(248,86,6,0.15);
}
.slide {
    min-height: 390px;
    position: relative;
}
.slide::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 90px;
    background: linear-gradient(to top, rgba(0,0,0,0.22), transparent);
    pointer-events: none;
    z-index: 1;
}
.slide-content {
    position: relative;
    z-index: 2;
    padding: 44px 24px;
}
.slide-content h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.28), 0 4px 24px rgba(0,0,0,0.12);
    animation: heroTextIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
.slide-content p {
    font-size: 20px;
    animation: heroTextIn 0.7s 0.1s cubic-bezier(0.22,1,0.36,1) both;
    text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}
.slide-content .btn { animation: heroTextIn 0.7s 0.2s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.btn-white {
    background: rgba(255,255,255,0.96);
    color: var(--primary);
    font-weight: 700;
    border-radius: 40px;
    padding: 12px 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-white:hover {
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    transform: translateY(-2px) scale(1.02);
}
.slider-btn {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    font-size: 16px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.slider-btn:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.28);
    transform: translateY(-50%) scale(1.1);
}
.slider-dot { width: 8px; height: 8px; transition: all 0.35s; }
.slider-dot.active { width: 26px; border-radius: 4px; background: #fff; }

/* —— Section title with accent bar —— */
.section-title {
    font-size: 21px;
    font-weight: 800;
    color: #111;
    position: relative;
    padding-bottom: 11px;
    margin-bottom: 22px;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: linear-gradient(90deg, var(--primary), #FF6B35);
    border-radius: 2px;
}

/* —— Category cards premium —— */
.category-card {
    border-radius: 14px;
    border: 1.5px solid transparent;
    padding: 22px 12px 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.28s, border-color 0.28s;
}
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(248,86,6,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.category-card:hover {
    transform: translateY(-7px) scale(1.025);
    box-shadow: 0 10px 28px rgba(248,86,6,0.13);
    border-color: rgba(248,86,6,0.28);
}
.category-card:hover::before { opacity: 1; }
.category-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(248,86,6,0.09), rgba(255,107,53,0.04));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: background 0.3s, transform 0.3s;
}
.category-card:hover .category-card-icon {
    background: linear-gradient(135deg, rgba(248,86,6,0.18), rgba(255,107,53,0.12));
    transform: scale(1.1) rotate(-6deg);
}
.category-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    transition: color 0.2s;
}
.category-card:hover .category-card-name { color: var(--primary); }

/* —— Product card premium —— */
.product-card {
    border-radius: 12px;
    border: 1.5px solid #ebebeb;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.28s, border-color 0.28s;
    position: relative;
    background: #fff;
}
.product-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #FF6B35);
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: 12px 12px 0 0;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(248,86,6,0.09), 0 2px 8px rgba(0,0,0,0.07);
    border-color: rgba(248,86,6,0.18);
}
.product-card:hover::after { opacity: 1; }
.product-card-img img {
    transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-cart-btn {
    background: linear-gradient(135deg, var(--primary), #d94800);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
    transition: transform 0.3s, opacity 0.3s, filter 0.2s;
}
.product-card-cart-btn:hover {
    background: linear-gradient(135deg, #d94800, #bf3900);
    filter: brightness(1.07);
}
.price-current {
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #F85606, #d94800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.wishlist-heart {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wishlist-heart:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 14px rgba(248,86,6,0.22);
}
.discount-badge {
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, var(--error), #cc1111);
    box-shadow: 0 2px 6px rgba(230,41,41,0.28);
}

/* —— Flash sale section premium —— */
.flash-sale-section {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(230,41,41,0.09);
}
.flash-sale-header {
    background: linear-gradient(90deg, #c62828, #e53935, #f44336, #e53935, #c62828);
    background-size: 300% 100%;
    animation: flashGradient 4s linear infinite;
}
@keyframes flashGradient {
    0%   { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}
.flash-sale-title {
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}
.cd-block {
    background: rgba(255,255,255,0.96);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-radius: 6px;
    font-size: 20px;
    min-width: 52px;
    transition: transform 0.2s;
}
.cd-block:hover { transform: scale(1.05); }

/* —— Buttons premium —— */
.btn-primary {
    background: linear-gradient(135deg, #F85606, #d94800);
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(248,86,6,0.24);
    transition: all 0.22s;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #d94800, #bf3900);
    box-shadow: 0 6px 22px rgba(248,86,6,0.35);
    transform: translateY(-2px);
}
.btn-outline {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.22s;
}
.btn-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(248,86,6,0.2);
}

/* —— Page title —— */
.page-title {
    font-size: 24px;
    font-weight: 800;
    padding: 16px 0;
    color: #111;
}

/* —— Form inputs enhanced —— */
.form-input,
.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 8px;
    border: 1.5px solid #ddd;
    transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.form-input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(248,86,6,0.09);
    transform: translateY(-1px);
}
.form-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #666;
    margin-bottom: 6px;
}

/* —— Pagination premium —— */
.page-link {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.22s;
}
.page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(248,86,6,0.2);
}
.page-link.active {
    background: linear-gradient(135deg, var(--primary), #d94800);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(248,86,6,0.3);
}

/* —— Product detail premium —— */
.product-detail {
    border-radius: 14px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.07);
    border: 1px solid #ebebeb;
}
.pd-price-block {
    background: linear-gradient(135deg, #fff5f0, #fff9f7);
    border: 1.5px solid rgba(248,86,6,0.12);
    border-radius: 10px;
}
.pd-price-current {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, #F85606, #d94800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* —— Card components premium —— */
.cart-item:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,0.07); }
.qc-form-card,
.qc-summary-card,
.checkout-form,
.checkout-summary,
.auth-card,
.profile-card,
.profile-section,
.pd-tabs {
    border-radius: 14px !important;
}
.auth-card {
    box-shadow: 0 8px 40px rgba(0,0,0,0.09) !important;
    border: 1px solid #f0f0f0;
}
.checkout-form,
.checkout-summary {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    border: 1px solid #ebebeb !important;
}
.profile-avatar {
    background: linear-gradient(135deg, var(--primary), #d94800);
    box-shadow: 0 4px 18px rgba(248,86,6,0.3);
}

/* —— Category bar hover line —— */
.category-bar-item {
    position: relative;
    padding-bottom: 7px;
}
.category-bar-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.22s;
}
.category-bar-item:hover::after,
.category-bar-item.active::after { transform: scaleX(1); }
.category-bar-item.active { color: var(--primary); font-weight: 700; }

/* —— Footer premium —— */
.store-footer {
    background: linear-gradient(175deg, #1b1b1b 0%, #111 100%);
    position: relative;
}
.store-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--primary) 0%,
        #FF6B35 25%,
        var(--secondary) 50%,
        #FF6B35 75%,
        var(--primary) 100%);
    background-size: 300% 100%;
    animation: footerRainbow 5s linear infinite;
}
@keyframes footerRainbow {
    0%   { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}
.footer-col h4 {
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0; left: 0;
    width: 26px; height: 2px;
    background: var(--primary);
    border-radius: 1px;
}
.footer-bottom { border-top: 1px solid #272727; }

/* —— Toast premium —— */
.toast-notification {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    border-left-width: 5px;
}

/* —— Alert premium —— */
.alert {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* —— Scroll-reveal smoothed —— */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.65s cubic-bezier(0.22,1,0.36,1),
        transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* —— Product card stagger: applied via JS inline style on reveal only —— */

/* —— New arrivals section accent —— */
.new-arrivals-section .section-title::after {
    background: linear-gradient(90deg, #00B14F, #00d466);
}

/* —— Empty state fade in —— */
.empty-state { animation: fadeInUp 0.5s ease-out; }

/* —— Quick checkout cards enhanced —— */
.qc-form-card,
.qc-summary-card {
    box-shadow: 0 4px 22px rgba(0,0,0,0.07) !important;
    border: 1px solid #ebebeb !important;
}

/* —— Sort bar select —— */
.sort-bar select {
    border-radius: 8px;
    border: 1.5px solid #ddd;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sort-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(248,86,6,0.1);
    outline: none;
}
