html, body {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #0a1128 !important;
    overflow-x: hidden !important;
}

header, .products-section, .trust-bar, footer, .categories-container, .slim-banner, .request-strip {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

:root {
    --bg-dark: #0a1128;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-light: #64748b;
    --accent-orange: #ff6600;
    --accent-orange-hover: #e65c00;
    --border-color: #e2e8f0;
    --nav-bg: #070d1f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: #ffffff;
    line-height: 1.5;
    padding-bottom: 30px;
}

.location-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 300;
    display: none;
}
.location-overlay.active {
    display: block;
}

.location-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 380px;
    background-color: #0e1938;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    z-index: 310;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    display: none;
}
.location-modal.active {
    display: block;
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.location-modal h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.location-modal p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.location-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.location-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.location-btn.active {
    background: rgba(255, 102, 0, 0.15);
    border-color: var(--accent-orange);
}

.location-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loc-status {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: #cbd5e1;
}

.location-btn.active .loc-status {
    background: var(--accent-orange);
    color: #fff;
    font-weight: 700;
}

.proceed-store-btn {
    width: 100%;
    background-color: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
}

.location-badge-top {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

header {
    background-color: var(--nav-bg);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-area img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.brand-text p {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.cart-btn {
    background-color: var(--accent-orange);
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.cart-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ffffff;
    color: var(--accent-orange);
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
}

.search-bar svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #94a3b8;
}

.slim-banner {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    color: #ffffff;
    padding: 8px 16px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
}

.categories-container {
    padding: 12px 0;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
}

.chips-scroll::-webkit-scrollbar {
    display: none;
}

.chip {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
}

.chip.combo-chip {
    background: rgba(255, 102, 0, 0.2);
    border-color: var(--accent-orange);
    color: #ffaa66;
    font-weight: 700;
}

.chip.active {
    background-color: #ffffff;
    color: var(--bg-dark);
    border-color: #ffffff;
    font-weight: 700;
}

.subcategories-container {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 16px 0 16px;
    scrollbar-width: none;
}

.sub-chip {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    white-space: nowrap;
    cursor: pointer;
}

.sub-chip.active {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
    font-weight: 600;
}

.request-strip {
    margin: 12px 16px;
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.request-text {
    color: #78350f;
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.request-badge {
    background-color: var(--accent-orange);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.request-btn {
    background: none;
    border: none;
    color: #b45309;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.products-section {
    padding: 0 16px;
    margin-top: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.product-count {
    font-size: 0.75rem;
    color: #94a3b8;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-img-wrap {
    width: 100%;
    height: 130px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.value-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #16a34a;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.old-price {
    text-decoration: line-through;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-right: 4px;
}

.out-of-stock-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: rgba(220, 38, 38, 0.9);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-category {
    font-size: 0.62rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 2px;
}

.product-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.product-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
}

.add-btn {
    background-color: var(--bg-dark);
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.add-btn:disabled {
    background-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

.load-more-container {
    text-align: center;
    margin: 20px 0;
}

.load-more-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.trust-bar {
    margin: 20px 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.trust-badge {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.trust-icon {
    font-size: 1.1rem;
}

.trust-badge strong {
    font-size: 0.72rem;
    color: #fff;
    display: block;
    line-height: 1.1;
}

.trust-badge p {
    font-size: 0.62rem;
    color: #94a3b8;
    line-height: 1;
}

footer {
    padding: 20px 16px;
    text-align: center;
    background-color: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #25d366;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
}

.footer-text {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

.footer-text strong {
    color: #fff;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 210;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    box-shadow: -4px 0 15px rgba(0,0,0,0.5);
    border-left: 1px solid rgba(255,255,255,0.1);
}

.cart-drawer.active {
    transform: none;
    visibility: visible;
    pointer-events: auto;
}

.drawer-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header h3 {
    font-size: 1rem;
    font-weight: 800;
}

.close-drawer-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

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

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.04);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    gap: 8px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.cart-item-breakdown {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.2;
}

.cart-item-price {
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: 700;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.cart-item-qty {
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.75rem;
    cursor: pointer;
}

.cart-summary {
    background: rgba(0,0,0,0.2);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: #cbd5e1;
}

.summary-row.total {
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 6px;
    margin-top: 6px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-form h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.form-group label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 10px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.bank-info-box {
    background: rgba(255, 102, 0, 0.1);
    border: 1px dashed var(--accent-orange);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #fed7aa;
}

.bank-info-box strong {
    color: #fff;
}

.warning-text {
    font-size: 0.72rem;
    color: #fca5a5;
    font-weight: 700;
    text-align: center;
}

.transfer-btn {
    background-color: #25d366;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    margin-top: 8px;
}

.modal-content-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 20px)) scale(0.9);
    width: 90%;
    max-width: 380px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    z-index: 220;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s, visibility 0.2s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 16px;
}

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

.modal-header {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.modal-header h3 {
    font-size: 0.95rem;
    font-weight: 800;
}

.empty-cart-msg {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 20px 0;
}
#brandLogo { display: none !important; }