/* BrandStore Luxury Monochrome & Mobile App Experience CSS (v2.6.0) */

:root {
    --bw-black: #000000;
    --bw-white: #ffffff;
    --bw-dark-grey: #111111;
    --bw-light-grey: #f6f6f6;
    --bw-mid-grey: #888888;
    --bw-border: #e5e5e5;
    --bw-font: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.brandstore-bw-theme {
    background-color: var(--bw-white) !important;
    color: var(--bw-black) !important;
    font-family: var(--bw-font) !important;
    letter-spacing: -0.01em;
}

/* Force Monochrome - Override red links & default Astra link colors */
a, a:visited, a:hover, a:active {
    color: inherit !important;
    text-decoration: none !important;
}

.count, .bw-cat-content span, .bw-hero-glass-box .bw-link-arrow {
    color: #cccccc !important;
}

.bw-hero-actions a.bw-btn-black {
    background: #000000 !important;
    color: #ffffff !important;
}

.bw-hero-actions a.bw-btn-outline {
    background: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.bw-hero-side-card a.bw-link-arrow {
    color: #ffffff !important;
}

/* Hide default Astra / Elementor headers */
.site-header, #ast-desktop-header, #ast-mobile-header, header.entry-header {
    display: none !important;
}

/* Push notification bar positioning above mobile bottom bar */
body.brandstore-app-experience #push-notification-banner,
body.brandstore-app-experience .push-notification-container,
body.brandstore-app-experience div[id*="notification"],
body.brandstore-app-experience div[class*="notification"] {
    bottom: 65px !important;
    z-index: 9998 !important;
}

/* Custom Header */
.brandstore-main-header {
    background: var(--bw-white);
    border-bottom: 1px solid var(--bw-border);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.brandstore-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brandstore-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--bw-black) !important;
    text-decoration: none;
}

.brandstore-nav-menu {
    display: flex;
    gap: 24px;
}

.brandstore-nav-menu a {
    color: var(--bw-black) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.brandstore-nav-menu a:hover { opacity: 0.6; }

.brandstore-header-actions { display: flex; align-items: center; gap: 16px; }

.header-action-btn {
    background: none; border: none;
    color: var(--bw-black) !important;
    cursor: pointer; position: relative;
    padding: 4px;
}

.header-cart-badge {
    position: absolute; top: -4px; right: -6px;
    background: var(--bw-black); color: var(--bw-white);
    font-size: 10px; font-weight: 800;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Marquee Ticker */
.brandstore-marquee-bar {
    background: var(--bw-black);
    color: var(--bw-white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.brandstore-marquee-track {
    display: inline-block;
    animation: marqueeScroll 25s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Gen-Z High Fashion Hero Grid Section */
.bw-hero-grid-section {
    max-width: 1280px;
    margin: 24px auto 40px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .bw-hero-grid-section { grid-template-columns: 1fr; padding: 0 16px; gap: 20px; }
}

.bw-hero-main-card {
    background: #0d0d0d;
    color: #fff;
    padding: 50px 36px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

@media (max-width: 768px) {
    .bw-hero-main-card { padding: 36px 20px; }
    .bw-hero-title { font-size: 26px !important; }
}

.bw-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px; font-weight: 700;
    width: fit-content;
    margin-bottom: 16px;
}

.bw-hero-title {
    font-size: 38px; font-weight: 900; line-height: 1.15;
    letter-spacing: -1px; margin-bottom: 14px; color: #ffffff !important;
}

.bw-hero-desc {
    font-size: 15px; color: #aaa; max-width: 500px; margin-bottom: 24px;
}

.bw-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }

.bw-hero-side-card {
    background: #161616;
    border-radius: 16px;
    padding: 36px 24px;
    display: flex; align-items: flex-end;
    color: #fff;
    position: relative;
    min-height: 220px;
}

.bw-hero-glass-box .badge {
    background: #fff; color: #000;
    font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 4px; text-transform: uppercase;
}

.bw-hero-glass-box h3 { font-size: 20px; font-weight: 800; margin: 10px 0; color: #ffffff !important; }
.bw-link-arrow { color: #fff !important; text-decoration: none; font-weight: 700; font-size: 13px; text-transform: uppercase; }

/* Categories Grid Section */
.bw-categories-section { margin-top: 40px; margin-bottom: 50px; }

.bw-app-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.bw-app-cat-card {
    display: block; position: relative; border-radius: 14px; overflow: hidden;
    text-decoration: none; color: #fff !important; background: #000;
}

.bw-cat-img-box { height: 260px; overflow: hidden; position: relative; background: #111; }
.bw-cat-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.bw-app-cat-card:hover .bw-cat-img-box img { transform: scale(1.08); }

.bw-cat-placeholder-bg {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #111111 0%, #262626 100%);
    display: flex; align-items: center; justify-content: center;
}
.bw-cat-placeholder-bg span {
    font-size: 54px; font-weight: 900; color: rgba(255,255,255,0.12); letter-spacing: 2px;
}

.bw-cat-overlay-glass {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}

.bw-cat-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 18px;
}

.bw-cat-content h3 { font-size: 18px; font-weight: 800; margin-bottom: 2px; color: #ffffff !important; }
.bw-cat-content .count { font-size: 12px; color: #ccc !important; font-weight: 600; }

/* Buttons */
.bw-btn-black {
    background: var(--bw-black) !important;
    color: var(--bw-white) !important;
    padding: 12px 24px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 4px !important;
    border: 1px solid var(--bw-black) !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.bw-btn-black:hover {
    background: var(--bw-white) !important;
    color: var(--bw-black) !important;
}

.bw-btn-outline {
    background: transparent !important;
    color: var(--bw-black) !important;
    padding: 12px 24px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    border: 1px solid var(--bw-black) !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.bw-btn-outline:hover {
    background: var(--bw-black) !important;
    color: var(--bw-white) !important;
}

.btn-full { width: 100% !important; box-sizing: border-box !important; margin-bottom: 8px; }

/* Shein-Style Mobile App Category & Products UX */
.bw-cat-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.bw-cat-heading h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; margin: 0; }
.bw-items-count-badge { font-size: 12px; font-weight: 700; background: var(--bw-light-grey); padding: 4px 12px; border-radius: 12px; }

.bw-shein-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .bw-shein-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.bw-shein-card {
    background: var(--bw-white);
    border: 1px solid var(--bw-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bw-shein-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.bw-shein-img-container {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #fafafa;
}

@media (max-width: 480px) {
    .bw-shein-img-container { height: 210px; }
}

.bw-shein-img-container img.primary-img {
    width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s;
}

.bw-shein-img-container img.secondary-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 0.3s;
}

.bw-shein-card:hover img.secondary-img { opacity: 1; }

.bw-shein-badge-sale {
    position: absolute; top: 8px; left: 8px;
    background: var(--bw-black); color: var(--bw-white);
    font-size: 9px; font-weight: 800; padding: 3px 6px; border-radius: 4px; text-transform: uppercase;
}

.bw-shein-wishlist-btn {
    position: absolute; top: 8px; right: 8px;
    background: rgba(255,255,255,0.9); border: none;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #000;
}

.bw-shein-info {
    padding: 12px;
    display: flex; flex-direction: column; flex: 1;
}

.bw-shein-cat-tag {
    font-size: 10px; font-weight: 700; color: var(--bw-mid-grey); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}

.bw-shein-title {
    font-size: 13px; font-weight: 700; line-height: 1.3;
    margin-bottom: 8px; height: 34px; overflow: hidden;
}

.bw-shein-title a { color: var(--bw-black) !important; text-decoration: none; }

.bw-shein-price-row { font-size: 14px; font-weight: 900; margin-bottom: 8px; color: var(--bw-black); }

.bw-shein-sizes { display: flex; gap: 4px; margin-bottom: 10px; }
.bw-shein-sizes span {
    font-size: 9px; font-weight: 800; border: 1px solid var(--bw-border);
    padding: 1px 5px; border-radius: 3px; color: #666;
}

.bw-shein-add-btn {
    margin-top: auto;
    width: 100%;
    background: var(--bw-black) !important;
    color: var(--bw-white) !important;
    padding: 9px 12px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

/* Sticky Shop Search & Subcategory Pill Slider */
.bw-shop-app-header {
    position: sticky;
    top: 61px;
    z-index: 998;
    background: var(--bw-white);
    border-bottom: 1px solid var(--bw-border);
    padding: 14px 24px;
}

.bw-shop-search-bar {
    max-width: 1280px; margin: 0 auto 12px;
    display: flex; align-items: center; gap: 10px;
    background: var(--bw-light-grey);
    border-radius: 25px; padding: 8px 18px;
}

.bw-shop-search-bar input {
    width: 100%; background: transparent; border: none; outline: none;
    font-size: 14px; font-weight: 600; color: var(--bw-black);
}

.bw-pills-slider {
    max-width: 1280px; margin: 0 auto;
    display: flex; gap: 10px; overflow-x: auto;
    padding-bottom: 4px; scrollbar-width: none;
}
.bw-pills-slider::-webkit-scrollbar { display: none; }

.bw-pill-item {
    background: var(--bw-light-grey);
    color: var(--bw-black) !important;
    padding: 8px 18px; border-radius: 20px;
    font-size: 13px; font-weight: 700; text-decoration: none;
    white-space: nowrap; transition: all 0.2s;
    border: 1px solid transparent;
}

.bw-pill-item.active, .bw-pill-item:hover {
    background: var(--bw-black) !important; color: var(--bw-white) !important;
}

/* Slide-out Cart Drawer */
.brandstore-cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99998;
}
.brandstore-cart-overlay.active { opacity: 1; visibility: visible; }

.brandstore-cart-drawer {
    position: fixed;
    top: 0; right: -420px;
    width: 100%; max-width: 400px; height: 100%;
    background: var(--bw-white);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
    z-index: 99999;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
[dir="rtl"] .brandstore-cart-drawer { right: auto; left: -420px; transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1); }

.brandstore-cart-drawer.active { right: 0; }
[dir="rtl"] .brandstore-cart-drawer.active { left: 0; }

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--bw-border);
    display: flex; justify-content: space-between; align-items: center;
}
.cart-drawer-header h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; margin: 0; }
.cart-drawer-close { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--bw-black); }

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

.cart-drawer-item {
    display: flex; gap: 14px;
    padding-bottom: 16px; margin-bottom: 16px;
    border-bottom: 1px solid var(--bw-light-grey);
}
.cart-drawer-item .item-img img { width: 70px; height: 90px; object-fit: cover; }
.cart-drawer-item .item-details { flex: 1; }
.cart-drawer-item .item-title { font-weight: 700; font-size: 13px; color: var(--bw-black) !important; text-decoration: none; display: block; margin-bottom: 4px; }
.cart-drawer-item .item-price { font-size: 13px; font-weight: 800; margin-bottom: 8px; }

.item-qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 26px; height: 26px; border: 1px solid var(--bw-border); background: #fff; cursor: pointer; font-weight: bold; }
.qty-val { font-size: 13px; font-weight: 700; }
.remove-btn { background: none; border: none; font-size: 18px; color: #ff3b30; cursor: pointer; margin-left: auto; }

.cart-drawer-footer { padding: 20px; border-top: 1px solid var(--bw-border); background: var(--bw-white); }
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 16px; font-weight: 800; }

/* Mobile App Bottom Bar */
.brandstore-mobile-appbar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: var(--bw-white);
    border-top: 1px solid var(--bw-border);
    padding: 8px 0;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .brandstore-mobile-appbar { display: flex; justify-content: space-around; align-items: center; }
    body.brandstore-app-experience { padding-bottom: 60px !important; }
    .brandstore-nav-menu { display: none !important; }
}

.appbar-item {
    background: none; border: none;
    color: var(--bw-black) !important;
    text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 700;
    cursor: pointer; padding: 4px;
}

.appbar-icon-wrap { position: relative; display: inline-block; }
.appbar-badge {
    position: absolute; top: -4px; right: -8px;
    background: var(--bw-black); color: var(--bw-white);
    font-size: 9px; font-weight: 800;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
