/* ════════════════════════════════════════════════════════════
   UBONGO SHOP — Main Stylesheet
   Design: Clean white + Orange accent (#f97316)
════════════════════════════════════════════════════════════ */

:root {
    --orange:       #f97316;
    --orange-dark:  #ea580c;
    --orange-light: #fff7ed;
    --orange-pale:  #ffedd5;
    --blue:         #1d4ed8;
    --text:         #1e293b;
    --text-muted:   #64748b;
    --text-light:   #94a3b8;
    --border:       #e2e8f0;
    --bg:           #f8fafc;
    --white:        #ffffff;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:       0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:    0 10px 40px rgba(0,0,0,.12);
    --radius:       12px;
    --radius-sm:    8px;
    --transition:   0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track  { background: #f1f5f9; }
::-webkit-scrollbar-thumb  { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ── NProgress bar ── */
#nprogress .bar { background: var(--orange) !important; }
#nprogress .peg  { box-shadow: 0 0 10px var(--orange), 0 0 5px var(--orange) !important; }

/* ════════════════════════════════════════════════
   TOP BAR
════════════════════════════════════════════════ */
.topbar {
    background: var(--text);
    color: rgba(255,255,255,.75);
    font-size: 12.5px;
    padding: 7px 0;
}
.topbar a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.topbar a:hover { color: var(--orange); }
.topbar .sep { margin: 0 10px; opacity: .3; }

/* ════════════════════════════════════════════════
   MAIN HEADER
════════════════════════════════════════════════ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex; align-items: center; gap: 20px;
    padding: 14px 0;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.site-logo img { height: 44px; width: auto; object-fit: contain; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--orange); letter-spacing: -0.5px; }
.logo-tag  { font-size: 10px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: -3px; }

/* Search */
.header-search { flex: 1; position: relative; }
.search-form { display: flex; }
.search-input {
    flex: 1; height: 46px; border: 2px solid var(--border);
    border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 0 18px; font-size: 14px; color: var(--text);
    background: var(--bg); outline: none;
    transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--orange); }
.search-input::placeholder { color: var(--text-light); }
.search-btn {
    height: 46px; padding: 0 22px;
    background: var(--orange); border: 2px solid var(--orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #fff; cursor: pointer; font-size: 16px;
    transition: background var(--transition);
}
.search-btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

/* Search suggestions */
.search-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    z-index: 500; display: none; max-height: 380px; overflow-y: auto;
}
.search-dropdown.show { display: block; }
.search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; transition: background var(--transition);
    cursor: pointer; border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--orange-light); }
.search-result-img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.search-result-name { font-size: 13.5px; font-weight: 500; color: var(--text); }
.search-result-price { font-size: 12px; color: var(--orange); font-weight: 600; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; }
.hdr-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 8px 12px; border-radius: var(--radius-sm); border: none;
    background: none; cursor: pointer; position: relative;
    transition: background var(--transition); color: var(--text); text-decoration: none;
    min-width: 52px;
}
.hdr-btn:hover { background: var(--orange-light); color: var(--orange); }
.hdr-btn i { font-size: 20px; }
.hdr-btn span { font-size: 10.5px; margin-top: 2px; font-weight: 500; }
.hdr-badge {
    position: absolute; top: 4px; right: 4px;
    background: var(--orange); color: #fff;
    font-size: 10px; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* ════════════════════════════════════════════════
   NAVIGATION BAR
════════════════════════════════════════════════ */
.site-nav {
    background: var(--orange);
}
.nav-menu {
    display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block; padding: 12px 18px;
    color: #fff; font-size: 14px; font-weight: 500;
    transition: background var(--transition);
    white-space: nowrap;
}
.nav-menu > li > a i { margin-right: 6px; font-size: 12px; }
.nav-menu > li > a:hover,
.nav-menu > li.active > a { background: rgba(0,0,0,.15); }

/* Dropdown */
.nav-dropdown {
    position: absolute; top: 100%; left: 0;
    background: var(--white); min-width: 220px;
    border: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg); z-index: 900;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all 0.22s ease; list-style: none; padding: 8px 0; margin: 0;
}
.nav-menu > li:hover > .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown li a {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 18px; font-size: 13.5px; color: var(--text);
    transition: all var(--transition);
}
.nav-dropdown li a:hover { color: var(--orange); padding-left: 24px; background: var(--orange-light); }
.nav-dropdown li a .count { margin-left: auto; font-size: 11px; color: var(--text-light); background: var(--bg); padding: 1px 7px; border-radius: 20px; }

/* All products link */
.nav-all-link {
    margin-left: auto;
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px; color: rgba(255,255,255,.9);
    font-size: 13.5px; font-weight: 500; transition: color var(--transition);
}
.nav-all-link:hover { color: #fff; }

/* ════════════════════════════════════════════════
   TRUST BADGES BAR
════════════════════════════════════════════════ */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.trust-item {
    display: flex; align-items: center; gap: 12px;
    padding: 0 16px;
    border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--orange-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.trust-icon i { font-size: 20px; color: var(--orange); }
.trust-label { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.trust-sub   { font-size: 11.5px; color: var(--text-muted); }

/* ════════════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════════════ */
.hero-section { padding: 0; }
.hero-carousel { position: relative; overflow: hidden; }
.hero-slide {
    height: 420px;
    display: flex; align-items: center;
    border-radius: 0;
    position: relative;
}
.hero-slide-1 { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1d4ed8 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #134e4a 0%, #0f766e 50%, #14b8a6 100%); }
.hero-slide-3 { background: linear-gradient(135deg, #431407 0%, #9a3412 50%, #f97316 100%); }

.hero-content { position: relative; z-index: 2; padding: 40px; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,.2);
    color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
    margin-bottom: 16px;
}
.hero-title { font-size: 42px; font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 12px; }
.hero-sub   { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 28px; }
.hero-price { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 24px; }
.hero-price small { font-size: 14px; font-weight: 400; opacity: .7; }
.hero-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--text); padding: 14px 28px;
    border-radius: 50px; font-size: 15px; font-weight: 700;
    transition: all var(--transition);
}
.hero-cta:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
.hero-img {
    position: absolute; right: 40px; bottom: 0;
    height: 90%; object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.3));
}

/* Carousel controls */
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.3);
    color: #fff; cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition); z-index: 10;
}
.carousel-btn:hover { background: var(--orange); border-color: var(--orange); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: all var(--transition); }
.carousel-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ════════════════════════════════════════════════
   SECTION HEADER
════════════════════════════════════════════════ */
.section { padding: 48px 0; }
.section-sm { padding: 32px 0; }
.section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 28px;
}
.section-title { font-size: 24px; font-weight: 800; color: var(--text); margin: 0; }
.section-title span { color: var(--orange); }
.section-subtitle { font-size: 14px; color: var(--text-muted); margin: 4px 0 0; }
.view-all-link {
    font-size: 13.5px; font-weight: 600; color: var(--orange);
    display: flex; align-items: center; gap: 5px; transition: gap var(--transition);
    white-space: nowrap;
}
.view-all-link:hover { gap: 9px; }

/* ════════════════════════════════════════════════
   CATEGORY GRID
════════════════════════════════════════════════ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 24px 16px;
    text-align: center; cursor: pointer;
    transition: all var(--transition); display: block;
}
.category-card:hover {
    border-color: var(--orange); transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(249,115,22,.15);
    color: var(--orange);
}
.category-card:hover .cat-icon { background: var(--orange); }
.category-card:hover .cat-icon i { color: #fff; }
.cat-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--orange-light);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; transition: all var(--transition);
}
.cat-icon i { font-size: 22px; color: var(--orange); transition: color var(--transition); }
.cat-name  { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cat-count { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }

/* ════════════════════════════════════════════════
   PRODUCT CARD
════════════════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.product-card {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden; transition: all var(--transition);
    position: relative; display: flex; flex-direction: column;
}
.product-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.product-card-img {
    aspect-ratio: 1/1; overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    position: relative;
}
.product-card-img img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.4s ease; padding: 12px;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-badges {
    position: absolute; top: 10px; left: 10px;
    display: flex; flex-direction: column; gap: 5px;
}
.badge-new      { background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.badge-low      { background: #f59e0b; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.badge-out      { background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }

/* Wishlist btn on card */
.wish-btn {
    position: absolute; top: 10px; right: 10px;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--white); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all var(--transition);
    font-size: 15px; color: var(--text-muted);
    opacity: 0; transform: scale(0.8);
}
.product-card:hover .wish-btn { opacity: 1; transform: scale(1); }
.wish-btn:hover, .wish-btn.active { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }

.product-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 11px; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 8px; flex: 1; }
.product-sku  { font-size: 11px; color: var(--text-light); margin-bottom: 8px; }
.product-price { font-size: 18px; font-weight: 800; color: var(--orange); }
.product-stock { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

.product-card-footer { padding: 12px 16px; border-top: 1px solid var(--border); }
.btn-add-cart {
    width: 100%; height: 40px; border-radius: var(--radius-sm);
    background: var(--orange); border: none; color: #fff;
    font-size: 13.5px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all var(--transition);
}
.btn-add-cart:hover { background: var(--orange-dark); }
.btn-add-cart.out-of-stock { background: var(--border); color: var(--text-muted); cursor: not-allowed; }

/* ════════════════════════════════════════════════
   PRODUCT LISTING PAGE
════════════════════════════════════════════════ */
.listing-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}
.sidebar-panel {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 24px;
    position: sticky; top: 90px;
}
.sidebar-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 24px; }
.filter-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 6px; }
.filter-list li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 10px; border-radius: var(--radius-sm);
    font-size: 13.5px; color: var(--text-muted); transition: all var(--transition);
}
.filter-list li a:hover { background: var(--orange-light); color: var(--orange); }
.filter-list li a.active { background: var(--orange); color: #fff; font-weight: 600; }
.filter-list li a.active .count { background: rgba(255,255,255,.25); }
.filter-list .count { font-size: 11px; background: var(--bg); padding: 1px 8px; border-radius: 20px; }

/* Price range */
.price-range-inputs { display: flex; gap: 8px; align-items: center; }
.price-range-inputs input {
    flex: 1; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0 10px; font-size: 13px; color: var(--text); background: var(--bg);
    outline: none; transition: border-color var(--transition);
}
.price-range-inputs input:focus { border-color: var(--orange); }
.price-range-sep { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* Toolbar */
.listing-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px; gap: 12px;
}
.toolbar-count { font-size: 13.5px; color: var(--text-muted); }
.toolbar-count strong { color: var(--text); }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.sort-select {
    height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0 30px 0 12px; font-size: 13px; color: var(--text);
    background: var(--bg) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 8px center/14px;
    appearance: none; -webkit-appearance: none; outline: none; cursor: pointer;
}
.sort-select:focus { border-color: var(--orange); }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
    width: 34px; height: 34px; border: 1px solid var(--border); background: none;
    border-radius: var(--radius-sm); cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    transition: all var(--transition);
}
.view-btn.active, .view-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* List view */
.products-list .product-card { flex-direction: row; }
.products-list .product-card-img { width: 160px; flex-shrink: 0; aspect-ratio: unset; min-height: 160px; }
.products-list .product-card-body { padding: 20px; }
.products-list .product-name { font-size: 16px; }
.products-list .product-price { font-size: 22px; }

/* ════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
════════════════════════════════════════════════ */
.product-detail { padding: 40px 0; }
.product-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: start;
}
.product-gallery { position: sticky; top: 90px; }
.main-image-wrap {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
    padding: 24px; margin-bottom: 12px;
}
.main-image-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.no-image-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; color: var(--text-light);
}
.no-image-placeholder i { font-size: 60px; margin-bottom: 12px; }
.no-image-placeholder p { font-size: 14px; }

/* Product info */
.product-info {}
.product-info .breadcrumb { font-size: 13px; margin-bottom: 16px; background: none; padding: 0; }
.product-info .breadcrumb-item a { color: var(--orange); }
.product-info .breadcrumb-item.active { color: var(--text-muted); }
.product-info h1 { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1.3; margin-bottom: 12px; }
.product-info .sku { font-size: 12.5px; color: var(--text-light); margin-bottom: 16px; }
.product-info .big-price { font-size: 36px; font-weight: 800; color: var(--orange); margin-bottom: 8px; }
.product-info .price-note { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.stock-info {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
    margin-bottom: 24px;
}
.stock-info.in-stock { background: #dcfce7; color: #166534; }
.stock-info.low-stock { background: #fef9c3; color: #854d0e; }
.stock-info.out-stock { background: #fee2e2; color: #991b1b; }
.stock-info i { font-size: 16px; }
.detail-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Quantity + action */
.qty-action { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qty-wrap {
    display: flex; align-items: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.qty-btn {
    width: 40px; height: 48px; border: none; background: var(--bg);
    font-size: 18px; color: var(--text); cursor: pointer;
    transition: background var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--orange-pale); color: var(--orange); }
.qty-input {
    width: 56px; height: 48px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    text-align: center; font-size: 16px; font-weight: 600; color: var(--text);
    outline: none;
}
.btn-cart {
    flex: 1; height: 48px; border-radius: var(--radius-sm);
    background: var(--orange); border: none; color: #fff;
    font-size: 15px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all var(--transition);
}
.btn-cart:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-wish {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--white);
    font-size: 20px; color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.btn-wish:hover, .btn-wish.active { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 10px 14px; vertical-align: top; }
.specs-table td:first-child { color: var(--text-muted); font-weight: 500; width: 40%; background: var(--bg); }
.specs-table td:last-child { color: var(--text); }

/* ════════════════════════════════════════════════
   CART PAGE
════════════════════════════════════════════════ */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-align: left; background: var(--bg); border-bottom: 1px solid var(--border); }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table .product-thumb { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cart-item-price { font-size: 13px; color: var(--text-muted); }
.cart-remove { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 16px; padding: 4px 8px; }
.cart-summary {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    position: sticky; top: 90px;
}
.cart-summary-title { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total { font-size: 18px; font-weight: 700; color: var(--orange); }
.btn-checkout {
    width: 100%; height: 50px; margin-top: 16px;
    background: var(--orange); border: none; border-radius: var(--radius-sm);
    color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
    transition: all var(--transition);
}
.btn-checkout:hover { background: var(--orange-dark); }

/* ════════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════════ */
.pagination-wrap { display: flex; justify-content: center; margin-top: 40px; }
.pagination { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.page-link {
    display: flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13.5px; color: var(--text-muted); background: var(--white);
    transition: all var(--transition); cursor: pointer;
}
.page-link:hover { border-color: var(--orange); color: var(--orange); }
.page-item.active .page-link { background: var(--orange); color: #fff; border-color: var(--orange); font-weight: 600; }
.page-item.disabled .page-link { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ════════════════════════════════════════════════
   BREADCRUMB
════════════════════════════════════════════════ */
.page-breadcrumb {
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.breadcrumb { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.breadcrumb-item { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.breadcrumb-item::after { content: '/'; color: var(--text-light); }
.breadcrumb-item:last-child::after { display: none; }
.breadcrumb-item a { color: var(--orange); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ════════════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════════════ */
.empty-state {
    text-align: center; padding: 80px 20px;
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border);
}
.empty-state i { font-size: 64px; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* ════════════════════════════════════════════════
   FLASH MESSAGE
════════════════════════════════════════════════ */
.flash-msg {
    position: fixed; top: 90px; right: 20px; z-index: 9999;
    background: var(--white); border-radius: var(--radius-sm);
    border: 1px solid var(--border); padding: 14px 20px;
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
    font-size: 14px; max-width: 360px;
    animation: slideIn 0.3s ease both;
}
.flash-msg.success { border-left: 4px solid #22c55e; }
.flash-msg.error   { border-left: 4px solid #ef4444; }
.flash-msg i { font-size: 18px; }
.flash-msg.success i { color: #22c55e; }
.flash-msg.error   i { color: #ef4444; }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,.75);
    padding: 56px 0 0;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-text { color: var(--orange); font-size: 26px; display: block; margin-bottom: 6px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; margin: 12px 0 20px; }
.footer-contact li {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; margin-bottom: 10px; list-style: none;
}
.footer-contact li i { color: var(--orange); width: 16px; flex-shrink: 0; }
.footer-contact { padding: 0; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.75); font-size: 16px;
    transition: all var(--transition);
}
.social-link:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-col h5 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
    padding: 16px 0;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12.5px; color: rgba(255,255,255,.4);
}
.payment-badges { display: flex; gap: 8px; align-items: center; }
.pay-badge {
    background: rgba(255,255,255,.1); border-radius: 4px;
    padding: 4px 10px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.65);
}

/* ════════════════════════════════════════════════
   UTILITIES & MISC
════════════════════════════════════════════════ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.btn-primary-orange {
    background: var(--orange); color: #fff; border: none;
    padding: 11px 24px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-orange:hover { background: var(--orange-dark); color: #fff; }
.btn-outline-orange {
    background: none; color: var(--orange); border: 1.5px solid var(--orange);
    padding: 10px 22px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-orange:hover { background: var(--orange); color: #fff; }

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

/* Back to top */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--orange); color: #fff; border: none;
    font-size: 18px; cursor: pointer; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--orange-dark); }

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .listing-layout { grid-template-columns: 220px 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-detail-grid { gap: 28px; }
}
@media (max-width: 768px) {
    .topbar { display: none; }
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .site-logo { min-width: auto; }
    .header-search { order: 3; flex: 0 0 100%; }
    .hero-slide { height: 280px; }
    .hero-title { font-size: 26px; }
    .hero-img { display: none; }
    .trust-bar .row > div { margin-bottom: 12px; }
    .listing-layout { grid-template-columns: 1fr; }
    .sidebar-panel { position: static; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .nav-menu { overflow-x: auto; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .category-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
@media (max-width: 480px) {
    .hero-slide { height: 220px; }
    .hero-content { padding: 20px; }
    .hero-title { font-size: 20px; }
    .hero-cta { padding: 10px 20px; font-size: 13px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
}
