/* ============================================
   PRIMEMOTOPARTS - Main Stylesheet
   Engineering Speed Recommended
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #e63946;
    --primary-dark: #c0392b;
    --accent: #ff6b35;
    --accent-glow: rgba(255, 107, 53, 0.3);
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-color: #2a2a2a;
    --border-light: #333333;
    --success: #27ae60;
    --warning: #f39c12;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-dark: linear-gradient(180deg, #0a0a0a, #111111);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(230, 57, 70, 0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Barlow Condensed', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-width: 320px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Install Banner === */
.install-banner {
    background: var(--gradient-primary);
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.install-banner-icon {
    color: #fff;
    flex-shrink: 0;
}

.install-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
}

.install-banner-text strong {
    font-size: 14px;
    font-weight: 700;
}

.install-banner-btn {
    background: #fff;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.install-banner-btn:hover {
    transform: scale(1.05);
}

.install-banner-close {
    background: none;
    color: #fff;
    font-size: 18px;
    padding: 4px;
    opacity: 0.8;
}

.install-banner-close:hover {
    opacity: 1;
}

/* === Top Bar === */
.top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 12px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-text {
    color: var(--text-secondary);
}

.top-bar-links {
    display: flex;
    gap: 16px;
}

.top-bar-links a {
    color: var(--text-secondary);
    font-size: 12px;
}

.top-bar-links a:hover {
    color: var(--primary);
}

/* === Header === */
.main-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 900;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a img {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    background: none;
    color: var(--text-secondary);
    padding: 10px;
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
}

/* === Search Overlay === */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: -1;
}

.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.search-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-primary);
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-submit {
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
}

.search-submit:hover {
    transform: scale(1.05);
}

.search-close {
    background: none;
    color: var(--text-secondary);
    font-size: 20px;
    padding: 8px;
}

.search-close:hover {
    color: var(--text-primary);
}

/* === Cart Dropdown === */
.cart-dropdown-wrapper {
    position: relative;
}

.cart-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    max-width: 90vw;
    background: var(--bg-secondary);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
}

.cart-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .cart-dropdown {
        position: fixed;
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

.cart-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-dropdown-header h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-dropdown-close {
    background: none;
    color: var(--text-muted);
    font-size: 22px;
    padding: 4px;
    line-height: 1;
    cursor: pointer;
}

.cart-dropdown-close:hover {
    color: var(--text-primary);
}

.cart-dropdown-body {
    max-height: 280px;
    overflow-y: auto;
    padding: 0;
}

.cart-dropdown-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.cart-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.cart-dropdown-item:last-child {
    border-bottom: none;
}

.cart-dropdown-item-image {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.cart-dropdown-item-image svg {
    color: var(--text-muted);
}

.cart-dropdown-item-info {
    flex: 1;
    min-width: 0;
}

.cart-dropdown-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-dropdown-item-price {
    font-size: 13px;
    color: var(--text-secondary);
}

.cart-dropdown-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    flex-shrink: 0;
}

.cart-dropdown-item-remove:hover {
    color: var(--primary);
}

.cart-dropdown-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
}

.cart-dropdown-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
}

.cart-dropdown-total {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-primary);
}

.cart-dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-dropdown-view-cart {
    display: block;
    text-align: center;
    padding: 12px;
    background: #444;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-dropdown-view-cart:hover {
    background: #555;
}

.btn-dropdown-checkout {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--success);
    color: #fff;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-dropdown-checkout:hover {
    background: #219a52;
    transform: translateY(-1px);
}

/* Cart dropdown scrollbar */
.cart-dropdown-body::-webkit-scrollbar {
    width: 4px;
}

.cart-dropdown-body::-webkit-scrollbar-track {
    background: transparent;
}

.cart-dropdown-body::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

/* === Mobile Nav === */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
    background: none;
    color: var(--text-secondary);
    font-size: 24px;
}

.mobile-nav-links {
    padding: 16px 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a {
    display: block;
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.mobile-nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    padding-left: 24px;
}


/* === Hero Section === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.9), var(--bg-primary));
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 30px;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-title-line.accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-line.small {
    font-size: clamp(24px, 5vw, 48px);
    color: var(--text-secondary);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(230, 57, 70, 0.05);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-scroll-indicator span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--primary);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* === Search Section === */
.search-section {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.inline-search-form {
    max-width: 700px;
    margin: 0 auto;
}

.inline-search-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 6px 6px 6px 20px;
    gap: 12px;
    transition: var(--transition);
}

.inline-search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.inline-search-wrapper svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.inline-search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-primary);
    outline: none;
}

.inline-search-input::placeholder {
    color: var(--text-muted);
}

.inline-search-btn {
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.inline-search-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* === Section Styles === */
.categories-section,
.new-arrivals-section,
.all-products-section {
    padding: 80px 0;
}

.new-arrivals-section {
    background: var(--bg-secondary);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-tag {
    display: block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: 1px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.section-link:hover {
    color: var(--primary);
}

.section-link:hover svg {
    transform: translateX(4px);
}

.section-link svg {
    transition: transform 0.3s ease;
}

/* === Categories Grid === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.category-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.category-image {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon {
    font-size: 28px;
}

.category-info {
    flex: 1;
}

.category-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.category-count {
    font-size: 13px;
    color: var(--text-muted);
}

.category-arrow {
    color: var(--text-muted);
    transition: var(--transition);
}

.category-card:hover .category-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* === Product Grid === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.product-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.badge-new {
    background: var(--primary);
    color: #fff;
}

.badge-hot {
    background: var(--accent);
    color: #fff;
}

.badge-popular {
    background: var(--success);
    color: #fff;
}

.badge-best-seller {
    background: var(--warning);
    color: #000;
}

.badge-pre-order {
    background: #8e44ad;
    color: #fff;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view-specs {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: translateY(10px);
    transition: var(--transition);
}

.product-card:hover .btn-view-specs {
    transform: translateY(0);
}

.btn-view-specs:hover {
    background: #fff;
    color: #000;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-currency {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.product-sold {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-add-cart {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-add-cart:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* === Product Filters === */
.product-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* === Promo Banner === */
.promo-banner {
    padding: 60px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(255, 107, 53, 0.05));
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    gap: 24px;
    flex-wrap: wrap;
}

.banner-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.banner-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.banner-desc {
    color: var(--text-secondary);
    font-size: 15px;
}

.banner-desc strong {
    color: var(--accent);
}


/* === Footer === */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-content p {
    font-size: 13px;
    color: var(--text-muted);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.payment-icons {
    display: flex;
    gap: 8px;
}

.payment-icon {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* === Mobile Bottom Navigation === */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 800;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav {
    display: none;
    grid-template-columns: repeat(4, 1fr);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-cart {
    position: relative;
}

.bottom-cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .top-bar-links {
        display: none;
    }
    
    .hero-section {
        min-height: 85vh;
        overflow: hidden;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .category-card {
        padding: 12px;
        gap: 10px;
    }

    .category-image {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .category-name {
        font-size: 13px;
        line-height: 1.3;
    }

    .category-count {
        font-size: 11px;
    }

    .category-arrow {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .price-amount {
        font-size: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .banner-content {
        padding: 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-bottom-content p {
        display: block;
        width: 100%;
    }

    .payment-scroll-wrapper {
        width: 100%;
    }

    .main-footer {
        padding-bottom: 100px;
    }
    
    .mobile-bottom-nav {
        display: grid;
    }
    
    .main-footer {
        padding-bottom: 80px;
    }
    
    .categories-section,
    .new-arrivals-section,
    .all-products-section {
        padding: 50px 0;
    }
    
    .install-banner-text span {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        height: 60px;
    }
    
    .logo-text {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .logo a {
        max-width: 180px;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .logo a img {
        height: 28px !important;
        width: auto !important;
        flex-shrink: 0;
    }
    
    .hero-title-line {
        letter-spacing: 2px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .btn-add-cart {
        font-size: 10px;
        padding: 10px 8px;
        letter-spacing: 1px;
    }
    
    .product-sold {
        display: none;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-contact li span {
        font-size: 13px;
        word-break: break-word;
    }
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

/* === Toast Notification === */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.toast.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: var(--success);
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* === Selection === */
::selection {
    background: rgba(230, 57, 70, 0.3);
    color: var(--text-primary);
}


/* ============================================
   Product Detail Page Styles
   ============================================ */

/* === Breadcrumb === */
.breadcrumb-section {
    padding: 20px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--text-muted);
    font-size: 11px;
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* === Product Detail Grid === */
.product-detail-section {
    padding: 40px 0 60px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* === Product Gallery === */
.product-gallery {
    position: sticky;
    top: 90px;
}

.gallery-main {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.gallery-placeholder span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
}

.gallery-main:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: rgba(230, 57, 70, 0.8);
    border-color: var(--primary);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-share {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.gallery-share:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary);
}

.thumb-placeholder {
    color: var(--text-muted);
}

/* === Product Detail Info === */
.product-detail-info {
    padding-top: 10px;
}

.detail-product-name {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.detail-sku {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.detail-price-currency {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-price-amount {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.detail-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    padding: 6px 14px;
    border-radius: var(--radius-md);
}

.detail-stock.in-stock {
    color: var(--success);
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.detail-stock.pre-order {
    color: var(--warning);
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

.detail-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

/* === Quantity Selector === */
.detail-actions {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qty-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary);
    color: #fff;
}

.qty-input {
    width: 56px;
    height: 44px;
    text-align: center;
    background: var(--bg-secondary);
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    outline: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-detail-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 32px;
    height: 44px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-detail-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

/* === Product Meta === */
.detail-meta {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.meta-label {
    color: var(--text-muted);
    font-weight: 500;
}

.meta-value {
    color: var(--text-secondary);
    font-weight: 600;
}

/* === Product Description Box === */
.product-description-section {
    padding: 40px 0 60px;
}

.description-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.description-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 20px 30px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    font-style: italic;
}

.description-content {
    padding: 24px 30px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* === Related Products === */
.related-products-section {
    padding: 40px 0 80px;
    border-top: 1px solid var(--border-color);
}

.related-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 30px;
}

/* === Product Card Link === */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.product-name a:hover {
    color: var(--primary);
}

/* === Responsive Product Detail === */
@media (max-width: 1024px) {
    .product-detail-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .detail-product-name {
        font-size: 22px;
    }
    
    .detail-price-amount {
        font-size: 28px;
    }
    
    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-detail-add-cart {
        justify-content: center;
        width: 100%;
    }
    
    .description-title {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .description-content {
        padding: 20px;
    }
    
    .related-products-section {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .product-detail-section {
        padding: 20px 0 40px;
    }
    
    .gallery-thumbs {
        gap: 8px;
    }
    
    .gallery-thumb {
        width: 56px;
        height: 56px;
    }
    
    .detail-actions {
        gap: 12px;
    }
    
    .qty-controls {
        width: 100%;
    }
    
    .qty-input {
        flex: 1;
    }
}


/* ============================================
   Cart Page Styles
   ============================================ */

.cart-page-section {
    padding: 30px 0 80px;
}

.cart-page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.cart-back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition);
}

.cart-back-btn:hover {
    color: var(--primary);
    background: var(--bg-tertiary);
}

.cart-page-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.cart-page-count {
    font-size: 14px;
    color: var(--text-muted);
    padding-left: 12px;
    border-left: 1px solid var(--border-color);
}

.cart-page-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

/* Cart Table */
.cart-page-items {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    gap: 12px;
    padding: 14px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cart-table-body {
    min-height: 120px;
}

.cart-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    gap: 12px;
    padding: 16px 24px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.cart-table-row:last-child {
    border-bottom: none;
}

.cart-table-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.cart-col-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-row-image {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

.cart-row-info {
    flex: 1;
    min-width: 0;
}

.cart-row-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.cart-row-price,
.cart-row-total {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.cart-row-total {
    color: var(--text-primary);
}

/* Quantity controls in cart page */
.cart-row-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-row-qty-btn {
    width: 32px;
    height: 34px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.cart-row-qty-btn:hover {
    background: var(--primary);
    color: #fff;
}

.cart-row-qty-input {
    width: 40px;
    height: 34px;
    text-align: center;
    background: var(--bg-secondary);
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-heading);
    outline: none;
    -moz-appearance: textfield;
}

.cart-row-qty-input::-webkit-outer-spin-button,
.cart-row-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-row-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: var(--transition);
}

.cart-row-remove:hover {
    color: var(--primary);
}

.cart-page-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
    gap: 12px;
}

.cart-page-empty p {
    font-size: 16px;
    font-weight: 500;
}

/* Order Summary */
.cart-page-summary {
    position: sticky;
    top: 90px;
}

.order-summary-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.order-summary-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--text-secondary);
}

.order-summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

.order-summary-muted {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.order-summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

.order-summary-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.order-summary-total-value {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Coupon */
.order-coupon {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.coupon-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-primary);
    outline: none;
    transition: var(--transition);
}

.coupon-input:focus {
    border-color: var(--primary);
}

.coupon-input::placeholder {
    color: var(--text-muted);
}

.coupon-btn {
    background: var(--success);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.coupon-btn:hover {
    background: #219a52;
}

/* Proceed Button */
.btn-proceed-checkout {
    width: 100%;
    padding: 14px;
    background: var(--success);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}

.btn-proceed-checkout:hover {
    background: #219a52;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.order-summary-note {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.4;
}

.order-continue-shopping {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: underline;
    transition: var(--transition);
}

.order-continue-shopping:hover {
    color: var(--primary);
}

/* Responsive Cart Page */
@media (max-width: 1024px) {
    .cart-page-grid {
        grid-template-columns: 1fr 300px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .cart-page-grid {
        grid-template-columns: 1fr;
    }

    .cart-page-summary {
        position: static;
    }

    .cart-table-header {
        display: none;
    }

    .cart-table-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 20px;
    }

    .cart-col-product {
        grid-column: 1 / -1;
    }

    .cart-col-price,
    .cart-col-qty,
    .cart-col-total {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .cart-col-price::before {
        content: 'Price:';
        font-size: 12px;
        color: var(--text-muted);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .cart-col-qty::before {
        content: 'Qty:';
        font-size: 12px;
        color: var(--text-muted);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .cart-col-total::before {
        content: 'Total:';
        font-size: 12px;
        color: var(--text-muted);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .cart-col-remove {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .cart-table-row {
        position: relative;
    }

    .cart-page-section {
        padding-bottom: 100px;
    }

    .cart-page-title {
        font-size: 22px;
    }
}


/* ============================================
   Checkout Page Styles
   ============================================ */

.checkout-section {
    padding: 40px 0 80px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* Checkout Cards */
.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}

.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.checkout-step-number {
    width: 28px;
    height: 28px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.checkout-step-number.small {
    width: 22px;
    height: 22px;
    font-size: 11px;
}

.checkout-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.checkout-card-body {
    padding: 28px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--primary);
}

.form-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    font-size: 11px;
}

.form-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-primary);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Shipping Option */
.shipping-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.shipping-option.selected {
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.05);
}

.shipping-option-radio {
    flex-shrink: 0;
}

.radio-dot {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.radio-dot.active {
    border-color: var(--success);
}

.radio-dot.active::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.shipping-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shipping-option-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.shipping-option-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.shipping-option-price {
    font-size: 14px;
    color: var(--text-muted);
}

.shipping-option-icon {
    color: var(--text-muted);
}

.shipping-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

/* Checkout Summary */
.checkout-summary {
    position: sticky;
    top: 90px;
}

.checkout-summary-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.checkout-summary-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* Checkout Items */
.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-image {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.checkout-item-price {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

/* Coupon Toggle */
.checkout-coupon-toggle {
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.coupon-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.coupon-toggle-btn:hover {
    color: var(--primary);
}

.coupon-input-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.coupon-code-input {
    flex: 1;
    padding: 10px 12px !important;
    font-size: 13px !important;
}

.coupon-apply-btn {
    background: var(--success);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.coupon-apply-btn:hover {
    background: #219a52;
}

/* Points Banner */
.checkout-points-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.points-banner-icon {
    width: 36px;
    height: 36px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.points-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.points-banner-text strong {
    font-size: 13px;
    color: var(--text-primary);
}

.points-banner-text span {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.points-banner-btn {
    background: var(--success);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.points-banner-btn:hover {
    background: #219a52;
}

/* Checkout Totals */
.checkout-totals {
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
}

.checkout-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkout-totals-value {
    font-weight: 600;
    color: var(--text-primary);
}

.checkout-free {
    color: var(--success) !important;
    font-weight: 700;
}

.checkout-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.checkout-grand-total span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.checkout-grand-total-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Payment Methods */
.checkout-payment {
    margin-bottom: 24px;
}

.payment-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}

.payment-option.selected {
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.05);
}

.payment-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-option-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-option-icon.fpx {
    background: var(--success);
    color: #fff;
}

.payment-option-icon.card {
    background: #444;
    color: #fff;
}

.payment-option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-option-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-option-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.payment-option-check {
    color: var(--border-light);
    flex-shrink: 0;
}

.payment-option-check.active {
    color: var(--success);
}

/* Bank Select */
.bank-select-wrapper {
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-top: -12px;
    margin-bottom: 10px;
}

.bank-select-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.bank-select {
    background-color: var(--bg-secondary) !important;
}

.payment-secure-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
}

.payment-secure-note strong {
    color: var(--success);
}

/* Place Order Button */
.btn-place-order {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--success);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-place-order:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.checkout-secure-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

/* Responsive Checkout */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr 340px;
    }
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-card-body {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-section {
        padding-bottom: 120px;
    }

    .checkout-points-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}


/* ============================================
   Category Page Styles
   ============================================ */

/* Category Search */
.category-search-section {
    padding: 20px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.category-search-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 6px 6px 16px;
    gap: 10px;
    max-width: 600px;
    transition: var(--transition);
}

.category-search-wrapper:focus-within {
    border-color: var(--primary);
}

.category-search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.category-search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-primary);
    outline: none;
}

.category-search-input::placeholder {
    color: var(--text-muted);
}

.category-search-btn {
    background: var(--gradient-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.category-search-btn:hover {
    transform: scale(1.02);
}

/* Category Page Section */
.category-page-section {
    padding: 30px 0 80px;
}

/* Category Header */
.category-page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.category-page-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.category-header-emoji {
    font-size: 24px;
}

.category-page-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-page-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

.category-page-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* Category Grid Layout */
.category-page-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar */
.category-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 90px;
}

.sidebar-toggle-btn {
    display: none;
}

.sidebar-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-of-type {
    border-bottom: none;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.sidebar-section-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.sidebar-category-list,
.sidebar-sort-list {
    max-height: 300px;
    overflow-y: auto;
}

.sidebar-category-list li,
.sidebar-sort-list li {
    margin-bottom: 2px;
}

.sidebar-category-list a,
.sidebar-sort-list a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-category-list a:hover,
.sidebar-sort-list a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.sidebar-category-list a.active,
.sidebar-sort-list a.active {
    color: var(--primary);
    background: rgba(230, 57, 70, 0.08);
    font-weight: 600;
}

/* Sidebar scrollbar */
.sidebar-category-list::-webkit-scrollbar,
.sidebar-sort-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-category-list::-webkit-scrollbar-track,
.sidebar-sort-list::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-category-list::-webkit-scrollbar-thumb,
.sidebar-sort-list::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

/* Clear filters */
.sidebar-clear {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.sidebar-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.sidebar-clear-btn:hover {
    color: var(--primary);
}

/* Mobile Filter Bar */
.mobile-filter-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-sort-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-primary);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* No Products */
.category-no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-muted);
    text-align: center;
    gap: 16px;
}

.category-no-products p {
    font-size: 16px;
    font-weight: 500;
}

/* Responsive Category */
@media (max-width: 1024px) {
    .category-page-grid {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .category-page-grid {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        border-radius: 0;
        overflow-y: auto;
        padding: 20px;
        animation: slideUp 0.3s ease;
    }

    .category-sidebar.mobile-open {
        display: block;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .sidebar-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        padding: 14px 0;
        margin-bottom: 16px;
        border-bottom: 1px solid var(--border-color);
        font-family: var(--font-heading);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1px;
        color: var(--text-primary);
        cursor: pointer;
    }

    .mobile-filter-bar {
        display: flex;
    }

    .category-page-header {
        margin-bottom: 20px;
    }

    .category-page-title {
        font-size: 22px;
    }

    .category-page-section {
        padding-bottom: 100px;
    }
}


/* ============================================
   Sale Price & Sold Badge Styles
   ============================================ */

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 12px;
    margin-right: 4px;
}

.detail-price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 16px;
    margin-right: 8px;
}

.detail-sold-badge {
    display: inline-block;
    margin-left: 12px;
    padding: 3px 10px;
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}


/* ============================================
   Fly to Cart Animation
   ============================================ */

.fly-to-cart {
    border: 2px solid var(--primary);
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.cart-bounce {
    animation: cartBounce 0.4s ease !important;
}

.cart-btn {
    transition: transform 0.2s ease;
}


/* ============================================
   Load More Button
   ============================================ */

.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-load-more:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}


/* ============================================
   Policy Pages Styles
   ============================================ */

.page-section {
    padding: 40px 0 80px;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.page-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.policy-content h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.policy-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.policy-content ul,
.policy-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.policy-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
    list-style: disc;
}

.policy-content ol li {
    list-style: decimal;
}

.policy-content strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .page-section {
        padding: 24px 0 100px;
    }

    .policy-content h2 {
        font-size: 16px;
        margin-top: 24px;
    }

    .policy-content p,
    .policy-content li {
        font-size: 14px;
    }
}


/* ============================================
   Purchase Notification Ticker
   ============================================ */

.purchase-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.ticker-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.ticker-text {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
    .top-bar-links {
        display: none;
    }
    
    .ticker-text {
        font-size: 11px;
    }
}


/* ============================================
   Payment Page Styles
   ============================================ */

.payment-page-wrapper {
    max-width: 550px;
    margin: 0 auto;
}

.payment-header-box {
    text-align: center;
    padding: 32px 20px;
    margin-bottom: 24px;
}

.payment-header-icon {
    width: 64px;
    height: 64px;
    background: rgba(243, 156, 18, 0.1);
    border: 2px solid rgba(243, 156, 18, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--warning);
    animation: pulse 2s infinite;
}

.payment-header-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.payment-header-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.payment-order-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

.payment-total-amount {
    color: var(--primary);
    font-size: 15px;
}

.payment-instructions-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.payment-method-header {
    margin-bottom: 20px;
}

.payment-method-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.payment-method-badge.duitnow { background: rgba(39, 174, 96, 0.15); color: var(--success); }
.payment-method-badge.ewallet { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }
.payment-method-badge.bank { background: rgba(52, 152, 219, 0.15); color: var(--info); }

.payment-qr-wrapper {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius-md);
    display: inline-block;
    width: 100%;
}

.payment-qr-image {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.payment-details-list {
    margin-bottom: 20px;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.payment-detail-row:last-child { border-bottom: none; }

.payment-detail-label {
    font-size: 13px;
    color: var(--text-muted);
}

.payment-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-detail-value.amount {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--primary);
}

.payment-detail-value.copyable {
    cursor: pointer;
    transition: var(--transition);
}

.payment-detail-value.copyable:hover {
    color: var(--primary);
}

.payment-note {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.payment-whatsapp {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.payment-whatsapp p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.btn-whatsapp-confirm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-whatsapp-confirm:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.payment-back-link {
    text-align: center;
    padding: 16px 0;
}

.payment-back-link a {
    font-size: 13px;
    color: var(--text-secondary);
}

.payment-back-link a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .payment-instructions-box { padding: 20px; }
    .payment-order-info { flex-direction: column; gap: 8px; }
    .payment-header-title { font-size: 20px; }
}


/* Fix Place Order button clickability */
.btn-place-order {
    position: relative;
    z-index: 10;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.checkout-summary-box {
    position: relative;
    z-index: 5;
}


/* ============================================
   Payment Scroll (Rolling) Animation
   ============================================ */

.payment-scroll-wrapper {
    overflow: hidden;
    width: 100%;
}

.payment-scroll-track {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: paymentScroll 20s linear infinite;
    width: max-content;
}

.payment-scroll-img {
    height: 30px;
    width: auto;
    border-radius: 4px;
    flex-shrink: 0;
}

@keyframes paymentScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.payment-scroll-wrapper:hover .payment-scroll-track {
    animation-play-state: paused;
}


/* ============================================
   Testimonial Section
   ============================================ */

.testimonial-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding: 10px 0 20px;
    width: 100%;
}

.testimonial-slider .testimonial-track {
    display: flex;
    gap: 20px;
    animation: testimonialScroll 30s linear infinite;
    width: max-content;
    flex-wrap: nowrap;
}

.testimonial-slider:hover .testimonial-track {
    animation-play-state: paused;
}

@keyframes testimonialScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 300px;
    max-width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    flex-shrink: 0;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #f39c12;
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-info strong {
    font-size: 13px;
    color: var(--text-primary);
}

.testimonial-info span {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .testimonial-section { padding: 40px 0; }
    .testimonial-card { min-width: 260px; max-width: 280px; padding: 20px; }
    .testimonial-slider { overflow: hidden; }
    .testimonial-slider .testimonial-track { flex-wrap: nowrap; }
}


.testimonial-image {
    margin-bottom: 14px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.testimonial-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
