/* =====================================================
   ستار وير - Star Wear | ebay-theme.css
   Brand Colors:
     Primary   : #F26522
     Text Main : #000000
     Text Sec  : #222222
     Background: #F2F2F2
   ===================================================== */

:root {
    --sw-primary:    #F26522;
    --sw-primary-dk: #d4541a;
    --sw-black:      #000000;
    --sw-dark:       #222222;
    --sw-gray:       #555555;
    --sw-light-gray: #F2F2F2;
    --sw-white:      #FFFFFF;
    --sw-border:     #e0e0e0;
    --sw-green:      #25D366;

    /* Legacy aliases kept for backward compat */
    --ebay-blue:       #F26522;
    --ebay-red:        #F26522;
    --ebay-yellow:     #f5af02;
    --ebay-green:      #25D366;
    --ebay-light-gray: #F2F2F2;
    --ebay-dark-gray:  #222222;
    --ebay-text:       #000000;
    --ebay-border:     #e0e0e0;
    --ebay-hover-bg:   #F2F2F2;

    --sw-radius:    8px;
    --sw-shadow:    0 2px 12px rgba(0,0,0,0.08);
    --sw-transition: 0.25s ease;
}

/* ==============================
   GLOBAL BASE
   ============================== */
body {
    background-color: #fff;
    color: var(--sw-black);
    font-family: 'Tajawal', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* ==============================
   STAR WEAR HEADER
   ============================== */
.sw-header {
    background: var(--sw-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow var(--sw-transition);
}

.sw-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Top Bar */
.sw-topbar {
    background: var(--sw-black);
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
}

.sw-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sw-topbar-right a,
.sw-topbar-left a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color var(--sw-transition);
    margin-right: 12px;
    font-size: 12px;
}

.sw-topbar-right a:first-child,
.sw-topbar-left a:first-child { margin-right: 0; }

.sw-topbar-right a:hover,
.sw-topbar-left a:hover {
    color: var(--sw-primary);
}

.sw-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sw-topbar-right {
    display: flex;
    align-items: center;
}

/* Main Header Row */
.sw-main-header {
    background: var(--sw-white);
    padding: 12px 0;
    border-bottom: 1px solid var(--sw-border);
}

.sw-main-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger Button */
.sw-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.sw-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--sw-black);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animated hamburger → X */
.sw-hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.sw-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.sw-hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Logo */
.sw-logo {
    flex-shrink: 0;
}

.sw-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sw-logo img {
    height: 50px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.sw-logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--sw-primary);
    letter-spacing: -0.5px;
}

/* Search */
.sw-search-wrap {
    flex: 1;
    max-width: 600px;
    margin: 0 8px;
}

.sw-search-form {
    display: flex;
    border: 2px solid var(--sw-border);
    border-radius: 50px;
    overflow: hidden;
    height: 44px;
    transition: border-color var(--sw-transition);
}

.sw-search-form:focus-within {
    border-color: var(--sw-primary);
}

.sw-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 0 16px;
    font-family: 'Tajawal', sans-serif;
    background: transparent;
    color: var(--sw-black);
    min-width: 0;
}

.sw-search-btn {
    background: var(--sw-primary);
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background var(--sw-transition);
    flex-shrink: 0;
}

.sw-search-btn:hover {
    background: var(--sw-primary-dk);
}

/* Header Icons */
.sw-header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sw-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sw-black);
    text-decoration: none;
    position: relative;
    padding: 6px 10px;
    border-radius: var(--sw-radius);
    transition: background var(--sw-transition), color var(--sw-transition);
    font-size: 14px;
}

.sw-icon-btn:hover {
    background: var(--sw-light-gray);
    color: var(--sw-primary);
}

.sw-icon-btn i {
    font-size: 18px;
    margin-bottom: 2px;
}

.sw-icon-label {
    font-size: 10px;
    font-family: 'Tajawal', sans-serif;
    white-space: nowrap;
}

.sw-cart-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background: var(--sw-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Desktop Nav Bar */
.sw-nav-bar {
    background: var(--sw-light-gray);
    border-bottom: 1px solid var(--sw-border);
}

.sw-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sw-nav-links::-webkit-scrollbar { display: none; }

.sw-nav-link {
    display: block;
    padding: 10px 14px;
    color: var(--sw-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color var(--sw-transition), border-color var(--sw-transition);
}

.sw-nav-link:hover,
.sw-nav-link.active {
    color: var(--sw-primary);
    border-bottom-color: var(--sw-primary);
}

/* ==============================
   MOBILE OVERLAY & SIDE NAV
   ============================== */
.sw-mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sw-mob-overlay.active {
    display: block;
    opacity: 1;
}

.sw-mob-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--sw-white);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.sw-mob-nav.active {
    right: 0;
}

.sw-mob-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--sw-black);
    color: #fff;
    flex-shrink: 0;
}

.sw-mob-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sw-primary);
    letter-spacing: 0.5px;
}

.sw-mob-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color var(--sw-transition);
}

.sw-mob-close:hover {
    color: var(--sw-primary);
}

.sw-mob-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.sw-mob-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sw-mob-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--sw-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background var(--sw-transition), color var(--sw-transition);
    border-right: 4px solid transparent;
}

.sw-mob-links li a:hover {
    background: var(--sw-light-gray);
    color: var(--sw-primary);
    border-right-color: var(--sw-primary);
}

.sw-mob-links li a i {
    color: var(--sw-primary);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.sw-mob-section-title {
    padding: 10px 20px 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--sw-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sw-mob-divider {
    height: 1px;
    background: var(--sw-border);
    margin: 8px 16px;
}

.sw-mob-nav-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--sw-border);
    background: var(--sw-light-gray);
    flex-shrink: 0;
}

.sw-mob-nav-footer p {
    font-size: 12px;
    color: var(--sw-gray);
    margin-bottom: 8px;
}

.sw-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sw-green);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity var(--sw-transition);
}

.sw-whatsapp-link:hover { opacity: 0.85; }

/* ==============================
   RESPONSIVE NAV (Mobile)
   ============================== */
@media (max-width: 991px) {
    .sw-hamburger { display: flex; }
    .sw-nav-bar { display: none; }
    .sw-topbar { display: none; }
    .sw-icon-label { display: none; }

    .sw-main-header {
        padding: 10px 0;
    }

    .sw-logo img {
        height: 40px;
    }

    .sw-icon-btn {
        padding: 6px 8px;
    }
}

@media (max-width: 600px) {
    .sw-search-wrap {
        order: 4;
        width: 100%;
        margin: 8px 0 0;
        max-width: 100%;
    }

    .sw-main-header-inner {
        flex-wrap: wrap;
    }

    .sw-logo { flex: 1; }
}

/* ==============================
   BUTTONS (Brand Consistent)
   ============================== */
.sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    padding: 12px 28px;
    transition: all var(--sw-transition);
    text-decoration: none;
    border: 2px solid transparent;
    font-family: 'Tajawal', sans-serif;
}

.sw-btn-primary {
    background: var(--sw-primary);
    color: #fff;
    border-color: var(--sw-primary);
}

.sw-btn-primary:hover {
    background: var(--sw-primary-dk);
    border-color: var(--sw-primary-dk);
}

.sw-btn-outline {
    background: transparent;
    color: var(--sw-primary);
    border-color: var(--sw-primary);
}

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

.sw-btn-whatsapp {
    background: var(--sw-green);
    color: #fff;
    border-color: var(--sw-green);
    width: 100%;
    height: 48px;
    font-size: 16px;
}

.sw-btn-whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
}

.sw-btn-black {
    background: var(--sw-black);
    color: #fff;
    border-color: var(--sw-black);
}

.sw-btn-black:hover {
    background: var(--sw-dark);
    border-color: var(--sw-dark);
}

/* Legacy button classes mapped to brand */
.ebay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    padding: 12px 28px;
    transition: all var(--sw-transition);
    text-decoration: none;
    border: 2px solid transparent;
    font-family: 'Tajawal', sans-serif;
}

.ebay-blue-btn {
    background: var(--sw-primary);
    color: #fff;
    border: none;
}

.ebay-blue-btn:hover {
    background: var(--sw-primary-dk);
}

.ebay-btn-primary {
    background: transparent;
    border: 2px solid var(--sw-black);
    color: var(--sw-black);
}

.ebay-btn-primary:hover {
    background: var(--sw-black);
    color: #fff;
}

/* ==============================
   WHATSAPP FLOATING BUTTON
   ============================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--sw-green);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all var(--sw-transition);
    font-family: 'Tajawal', sans-serif;
}

.whatsapp-float.show {
    display: flex;
    animation: pop-in 0.3s ease;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
}

.whatsapp-float i {
    font-size: 20px;
}

.whatsapp-float .selected-count {
    background: var(--sw-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pop-in {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 16px;
        left: 16px;
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ==============================
   CART DRAWER
   ============================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.drawer-overlay.active {
    display: block;
    opacity: 1;
}

.pb-cart-drawer {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    max-width: 95vw;
    height: 100%;
    background: var(--sw-white);
    z-index: 1060;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pb-cart-drawer.active {
    left: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 2px solid var(--sw-primary);
    background: var(--sw-black);
    color: #fff;
    flex-shrink: 0;
}

.drawer-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.drawer-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--sw-border);
    flex-shrink: 0;
    background: var(--sw-light-gray);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.total-price {
    color: var(--sw-primary);
    font-size: 18px;
}

.empty-cart-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--sw-gray);
}

.empty-cart-msg i {
    font-size: 3rem;
    color: var(--sw-border);
    margin-bottom: 12px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sw-border);
}

.item-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--sw-light-gray);
}

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

.item-details {
    flex: 1;
    min-width: 0;
}

.item-details h4 {
    font-size: 13px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    color: var(--sw-primary);
    font-weight: 700;
    font-size: 14px;
}

.item-qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.item-qty-control button {
    width: 24px;
    height: 24px;
    border: 1px solid var(--sw-border);
    background: var(--sw-white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-qty-control span {
    width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.remove-item {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    transition: color var(--sw-transition);
}

.remove-item:hover {
    color: #e00;
}

/* ==============================
   SEARCH & NAV SECTION COLORS
   ============================== */
.ebay-search-btn {
    background: var(--sw-primary);
    color: #fff;
    border: none;
    padding: 0 28px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background var(--sw-transition);
}

.ebay-search-btn:hover {
    background: var(--sw-primary-dk);
}

.ebay-nav-bar {
    border-top: 1px solid var(--sw-border);
    background: var(--sw-light-gray);
}

.ebay-nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.ebay-nav-links li a {
    display: block;
    padding: 10px 14px;
    color: var(--sw-dark);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all var(--sw-transition);
}

.ebay-nav-links li a:hover {
    color: var(--sw-primary);
    border-bottom-color: var(--sw-primary);
}

/* ==============================
   SECTION TITLES
   ============================== */
.ebay-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--sw-black);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.ebay-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--sw-primary);
    border-radius: 2px;
}

/* ==============================
   PRODUCT CARDS
   ============================== */
.ebay-product-card {
    min-width: 190px;
    max-width: 190px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--sw-black);
    cursor: pointer;
    transition: transform var(--sw-transition);
    position: relative;
}

.ebay-product-card:hover {
    transform: translateY(-4px);
}

.ebay-product-card .img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    background: var(--sw-light-gray);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
}

.ebay-product-card .img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.ebay-product-card:hover .img-wrapper img {
    transform: scale(1.06);
}

.ebay-product-card h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ebay-product-card .price {
    font-size: 17px;
    font-weight: 800;
    color: var(--sw-primary);
    margin-bottom: 4px;
}

.ebay-product-card .old-price {
    font-size: 12px;
    color: var(--sw-gray);
    text-decoration: line-through;
}

/* ==============================
   HERO SLIDER
   ============================== */
.ebay-hero {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    min-height: 300px;
    position: relative;
    box-shadow: var(--sw-shadow);
}

/* ==============================
   CATEGORY CIRCLES
   ============================== */
.ebay-category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    cursor: pointer;
    text-decoration: none;
    gap: 8px;
}

.ebay-category-circle .img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--sw-light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform var(--sw-transition), box-shadow var(--sw-transition);
    border: 3px solid transparent;
}

.ebay-category-circle:hover .img-wrapper {
    transform: scale(1.08);
    border-color: var(--sw-primary);
    box-shadow: 0 4px 16px rgba(242,101,34,0.2);
}

.ebay-category-circle .img-wrapper img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.ebay-category-circle span {
    font-size: 13px;
    color: var(--sw-dark);
    font-weight: 600;
    text-align: center;
}

/* ==============================
   FOOTER (shared across pages)
   ============================== */
.sw-footer {
    background: var(--sw-black);
    color: rgba(255,255,255,0.85);
    padding: 48px 0 0;
    margin-top: 60px;
}

.sw-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.sw-footer-brand .sw-footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--sw-primary);
    margin-bottom: 12px;
    display: block;
}

.sw-footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
}

.sw-footer-social {
    display: flex;
    gap: 12px;
}

.sw-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: background var(--sw-transition);
}

.sw-footer-social a:hover {
    background: var(--sw-primary);
}

.sw-footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sw-primary);
    display: inline-block;
}

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

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

.sw-footer-col ul li a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--sw-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.sw-footer-col ul li a i {
    color: var(--sw-primary);
    width: 16px;
    font-size: 12px;
}

.sw-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.sw-footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--sw-transition);
}

.sw-footer-bottom a:hover {
    color: var(--sw-primary);
}

@media (max-width: 900px) {
    .sw-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .sw-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sw-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==============================
   PRODUCT PAGE ELEMENTS
   ============================== */
.ebay-product-page-container {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--sw-black);
}

.ebay-product-main-grid {
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: 40px;
}

.product-title { color: var(--sw-black); }

.btn-buy-now {
    background: var(--sw-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    height: 48px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background var(--sw-transition);
    margin-bottom: 12px;
    font-family: 'Tajawal', sans-serif;
}

.btn-buy-now:hover { background: var(--sw-primary-dk); }

.btn-add-cart {
    background: #fff;
    color: var(--sw-primary);
    border: 2px solid var(--sw-primary);
    border-radius: 50px;
    height: 48px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--sw-transition);
    margin-bottom: 12px;
    font-family: 'Tajawal', sans-serif;
}

.btn-add-cart:hover {
    background: var(--sw-primary);
    color: #fff;
}

.add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid var(--sw-primary);
    background: var(--sw-white);
    color: var(--sw-primary);
    transition: all var(--sw-transition);
    font-family: 'Tajawal', sans-serif;
}

.add-to-cart:hover,
.add-to-cart.selected {
    background: var(--sw-primary);
    color: #fff;
}

/* ==============================
   MOBILE PRODUCT ADJUSTMENTS
   ============================== */
@media (max-width: 768px) {
    .ebay-product-main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ebay-product-images-section {
        flex-direction: column;
        height: auto;
    }

    .thumbnail-list { display: none !important; }
    .thumbnail-list-mobile {
        display: flex !important;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        width: 100%;
    }

    .main-image-container {
        height: auto;
        min-height: 250px;
        max-height: 360px;
        width: 100%;
    }

    .product-title { font-size: 18px; }
    .price-value { font-size: 26px; }
}

/* ==============================
   LOADING SPINNER
   ============================== */
.loading-spinner {
    text-align: center;
    padding: 24px;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--sw-light-gray);
    border-top-color: var(--sw-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

/* ==============================
   HORIZONTAL SCROLL (products row)
   ============================== */
.ebay-horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
}

.ebay-horizontal-scroll::-webkit-scrollbar { display: none; }

/* ==============================
   PRODUCT MODAL
   ============================== */
.product-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.product-modal.active { display: flex; }

.product-modal-content {
    background: var(--sw-white);
    border-radius: 16px;
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sw-border);
    position: sticky;
    top: 0;
    background: var(--sw-white);
    z-index: 1;
}

.product-modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--sw-black);
}

.close-product-modal {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--sw-gray);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 20px;
}

.product-modal-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--sw-light-gray);
}

.modal-image-container {
    display: flex;
    transition: transform 0.4s ease;
}

.modal-image-container img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    flex-shrink: 0;
}

.modal-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    box-shadow: var(--sw-shadow);
    z-index: 2;
}

.modal-image-nav.prev { right: 8px; }
.modal-image-nav.next { left: 8px; }

.modal-image-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px;
}

.modal-image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sw-border);
    cursor: pointer;
    transition: background var(--sw-transition);
}

.modal-image-dot.active { background: var(--sw-primary); }

.product-modal-category {
    display: inline-block;
    background: var(--sw-light-gray);
    color: var(--sw-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.product-modal-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--sw-primary);
    margin: 8px 0;
}

.product-modal-id {
    font-size: 12px;
    color: var(--sw-gray);
    margin-bottom: 12px;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.quantity-label { font-size: 14px; font-weight: 600; }

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--sw-border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: var(--sw-light-gray);
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--sw-transition);
}

.qty-btn:hover { background: var(--sw-border); }

.qty-value {
    min-width: 32px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .product-modal-body {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   IMAGE MODAL (FULLSCREEN)
   ============================== */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
}

.image-modal.active { display: flex; }

.image-modal .modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* ==============================
   ABOUT / POLICY PAGES
   ============================== */
.sw-page-hero {
    background: linear-gradient(135deg, var(--sw-black) 0%, var(--sw-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sw-page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(242,101,34,0.15) 0%, transparent 60%);
}

.sw-page-hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 12px;
    position: relative;
}

.sw-page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    position: relative;
}

.sw-page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.sw-page-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sw-primary);
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sw-light-gray);
}

.sw-page-content p, .sw-page-content li {
    color: var(--sw-dark);
    line-height: 1.8;
    font-size: 15px;
}

.sw-page-content ul {
    padding-right: 20px;
    margin: 12px 0;
}

.sw-page-content li {
    margin-bottom: 8px;
}

.sw-info-box {
    background: var(--sw-light-gray);
    border-right: 4px solid var(--sw-primary);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.sw-info-box p {
    margin: 0;
    font-weight: 500;
}

/* ==============================
   MISC / UTILITY
   ============================== */
.w-100 { width: 100%; }

.text-primary { color: var(--sw-primary) !important; }

.bg-primary { background-color: var(--sw-primary) !important; }

/* WhatsApp send container (legacy) */
.whatsapp-send-container { display: none; }

/* Top Bar eBay legacy */
.ebay-top-bar { display: none; }

/* Product badge */
.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--sw-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
}

/* =====================================================
   NEW HOMEPAGE COMPONENTS (Added in redesign pass 2)
   ===================================================== */

/* ── Section Header with Slider Controls ────────────── */
.sw-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sw-slider-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.sw-slider-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--sw-border);
    background: var(--sw-white);
    color: var(--sw-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--sw-transition);
    flex-shrink: 0;
}

.sw-slider-btn:hover {
    background: var(--sw-primary);
    border-color: var(--sw-primary);
    color: #fff;
}

/* ── Latest Products Section / Slider ───────────────── */
.sw-latest-section {
    padding: 32px 0 40px;
    background: #fff;
}

.sw-latest-slider-wrap {
    overflow: hidden;
    position: relative;
}

/* The actual track that scrolls */
.sw-latest-track {
    display: flex;
    gap: 16px;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* ── Product Cards ───────────────────────────────────── */
.sw-prod-card {
    flex: 0 0 calc((100% - 64px) / 5);  /* 5 cards, 4 gaps of 16px */
    min-width: 160px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--sw-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--sw-transition), transform var(--sw-transition);
    position: relative;
}

.sw-prod-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* Image area */
.sw-prod-img-link {
    display: block;
    text-decoration: none;
}

.sw-prod-img {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: var(--sw-light-gray);
}

.sw-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.sw-prod-card:hover .sw-prod-img img {
    transform: scale(1.06);
}

/* Overlay with Quick View button */
.sw-prod-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sw-prod-card:hover .sw-prod-overlay {
    opacity: 1;
}

.sw-qv-btn {
    background: rgba(255,255,255,0.95);
    color: var(--sw-dark);
    border: none;
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background var(--sw-transition), color var(--sw-transition), transform var(--sw-transition);
    transform: translateY(8px);
    font-family: 'Tajawal', sans-serif;
}

.sw-prod-card:hover .sw-qv-btn {
    transform: translateY(0);
}

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

/* Info area */
.sw-prod-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sw-prod-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--sw-black);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color var(--sw-transition);
}

.sw-prod-name:hover { color: var(--sw-primary); }

.sw-prod-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--sw-primary);
    margin-top: 2px;
}

/* Add to Cart Button on card */
.sw-add-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 36px;
    border: 2px solid var(--sw-primary);
    background: transparent;
    color: var(--sw-primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--sw-transition);
    position: relative;
    overflow: hidden;
    font-family: 'Tajawal', sans-serif;
}

.sw-add-btn:hover,
.sw-add-btn.in-cart {
    background: var(--sw-primary);
    color: #fff;
}

.sw-add-btn.in-cart {
    border-color: var(--sw-primary);
}

/* Ripple effect on Add to Cart */
.sw-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: sw-ripple-anim 0.6s ease forwards;
    pointer-events: none;
}

@keyframes sw-ripple-anim {
    to { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* Pulse after add */
@keyframes sw-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sw-cart-pulse { animation: sw-pulse 0.4s ease; }

/* Empty state */
.sw-no-products {
    text-align: center;
    padding: 40px;
    color: var(--sw-gray);
    font-size: 16px;
    width: 100%;
}

/* Responsive card sizes */
@media (max-width: 1100px) {
    .sw-prod-card { flex: 0 0 calc((100% - 48px) / 4); }
}

@media (max-width: 768px) {
    .sw-prod-card { flex: 0 0 calc((100% - 32px) / 3); }
}

@media (max-width: 576px) {
    .sw-prod-card { flex: 0 0 calc((100% - 16px) / 2); min-width: 140px; }
    .sw-section-header { align-items: center; }
}

/* ── Quick View Modal ─────────────────────────────────── */
.qv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 2100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.qv-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.qv-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.96);
    width: min(900px, 96vw);
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    z-index: 2200;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qv-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.qv-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.08);
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: background var(--sw-transition);
}

.qv-close:hover {
    background: var(--sw-primary);
    color: #fff;
}

/* Image section */
.qv-img-section {
    background: var(--sw-light-gray);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.qv-img-wrap {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.qv-img-track {
    display: flex;
    height: 100%;
    min-height: 300px;
    transition: transform 0.4s ease;
}

.qv-img-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    padding: 16px;
}

.qv-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--sw-dark);
    cursor: pointer;
    box-shadow: var(--sw-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 2;
    transition: background var(--sw-transition), color var(--sw-transition);
}

.qv-img-nav:hover {
    background: var(--sw-primary);
    color: #fff;
}

.qv-img-prev { right: 8px; }
.qv-img-next { left: 8px; }

.qv-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    flex-shrink: 0;
}

.qv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sw-border);
    cursor: pointer;
    transition: background var(--sw-transition), transform var(--sw-transition);
}

.qv-dot.active {
    background: var(--sw-primary);
    transform: scale(1.3);
}

/* Details section */
.qv-details {
    padding: 32px 24px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qv-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--sw-primary);
    background: rgba(242,101,34,0.1);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 4px;
}

.qv-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sw-black);
    line-height: 1.4;
    margin: 0;
}

.qv-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--sw-primary);
}

.qv-code {
    font-size: 12px;
    color: var(--sw-gray);
}

.qv-desc {
    font-size: 14px;
    color: var(--sw-dark);
    line-height: 1.7;
    margin: 4px 0 8px;
}

.qv-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.qv-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid var(--sw-border);
    border-radius: 8px;
    overflow: hidden;
}

.qv-qty-ctrl button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--sw-light-gray);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background var(--sw-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-qty-ctrl button:hover { background: var(--sw-border); }

.qv-qty-ctrl span {
    min-width: 36px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.qv-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.qv-action-btn {
    width: 100%;
    height: 46px;
    font-size: 15px;
    border-radius: 50px;
}

.qv-action-btn.in-cart {
    background: var(--sw-green) !important;
    border-color: var(--sw-green) !important;
}

.qv-full-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sw-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    transition: opacity var(--sw-transition);
}

.qv-full-link:hover { opacity: 0.75; }

/* QV Mobile */
@media (max-width: 700px) {
    .qv-modal {
        grid-template-columns: 1fr;
        grid-template-rows: 280px auto;
        max-height: 95vh;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(20px) scale(0.98);
        border-radius: 20px 20px 0 0;
        width: 100%;
    }

    .qv-modal.active {
        transform: translateY(0) scale(1);
    }

    .qv-img-track {
        min-height: 240px;
    }
}

/* ── Hero Slider Improvements ─────────────────────────── */
.hero-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.ebay-hero-content {
    flex: 1;
    z-index: 2;
    max-width: 55%;
}

.ebay-hero-images {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 280px;
}

.ebay-hero-images img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.3);
}

@media (max-width: 600px) {
    .hero-slide {
        flex-direction: column;
        padding: 24px 20px;
        text-align: center;
    }
    .ebay-hero-content { max-width: 100%; }
    .ebay-hero-images { flex: none; max-height: 160px; }
}