/* ==========================================================================
   COMPLETE MERGED STYLESHEET (public_assets/css/style.css)
   ========================================================================== */
:root {
    --primary: #0f172a;
    --accent: #059669;
    --accent-hover: #047857;
    --danger: #e11d48;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 72px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* Announcement Bar & Sticky Header */
.topbar {
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 7px 12px;
    letter-spacing: 0.4px;
}

.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}

.brand-logo {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--primary);
}

.cart-btn {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-badge {
    background: var(--accent);
    color: #fff;
    padding: 1px 7px;
    border-radius: 99px;
    font-size: 11px;
}

/* Horizontal Touch Scroll Category Pills */
.cat-scroll-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.cat-scroll-bar::-webkit-scrollbar {
    display: none;
}
.cat-scroll-inner {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
}
.cat-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-main);
}
.cat-pill.active, .cat-pill:hover {
    background: var(--primary);
    color: #fff;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 28px 20px;
    margin: 14px 0 22px;
}
.hero-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.hero-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
}
.hero-sub {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 18px;
}
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-primary:hover {
    background: var(--accent-hover);
}

/* Trust Strip */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.trust-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Section Headers */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 22px 0 12px;
}
.section-title {
    font-size: 18px;
    font-weight: 800;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}
.card-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    overflow: hidden;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 5px;
}
.card-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 9px;
}
.sale-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}
.mrp-price {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.card-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    text-align: center;
}

/* Single Product Page */
.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 14px;
}
.gallery-main {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}
.thumb-item {
    width: 64px;
    height: 64px;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}
.thumb-item.active {
    border-color: var(--primary);
}
.product-info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.prod-sku {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.prod-h1 {
    font-size: 20px;
    font-weight: 800;
    margin: 4px 0 10px;
}
.prod-price-large {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}
.prod-mrp-large {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}
.prod-short-desc {
    background: #f8fafc;
    border-left: 3px solid var(--accent);
    padding: 10px 12px;
    font-size: 13px;
    margin: 14px 0;
}
.action-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0;
}
.btn-whatsapp {
    display: block;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}
.specs-table tr {
    border-bottom: 1px solid var(--border);
}
.specs-table th {
    text-align: left;
    padding: 8px 6px;
    color: var(--text-muted);
    width: 42%;
    font-weight: 600;
}
.specs-table td {
    padding: 8px 6px;
    font-weight: 600;
}
.mobile-sticky-buy {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 95;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.wa-float {
    position: fixed;
    bottom: 76px;
    right: 16px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 15px;
    border-radius: 99px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 90;
}
.site-footer {
    background: var(--primary);
    color: #94a3b8;
    font-size: 13px;
    padding: 32px 0;
    margin-top: 40px;
}

/* ==========================================================================
   CART, 1-STEP CHECKOUT & ORDER SUCCESS STYLES
   ========================================================================== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.cart-box, .checkout-box, .success-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

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

.cart-item:last-child {
    border-bottom: none;
}

img.cart-thumb {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

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

.cart-item-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}

.cart-item-sku {
    font-size: 11px;
    color: var(--text-muted);
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 8px;
}

.qty-btn {
    background: #f1f5f9;
    border: none;
    padding: 4px 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.qty-val {
    padding: 2px 12px;
    font-size: 13px;
    font-weight: 700;
}

.remove-link {
    font-size: 12px;
    color: var(--danger);
    font-weight: 600;
    margin-left: 12px;
    cursor: pointer;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-total {
    border-top: 2px solid var(--border);
    margin-top: 6px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.form-group {
    margin-bottom: 14px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    display: block;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--accent);
    background: #ecfdf5;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin: 6px 0 18px;
}

.success-badge {
    width: 54px;
    height: 54px;
    background: #d1fae5;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    margin: 0 auto 14px;
}

/* Desktop Breakpoint */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
    .hero-banner {
        padding: 48px 40px;
    }
    .hero-title {
        font-size: 34px;
    }
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    .card-title {
        font-size: 14px;
    }
    .product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .action-stack {
        grid-template-columns: 1fr 1fr;
    }
    .mobile-sticky-buy {
        display: none;
    }
    .wa-float {
        bottom: 24px;
        right: 24px;
    }
    .checkout-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 28px;
        align-items: start;
    }
    .cart-box, .checkout-box, .success-box {
        padding: 24px;
    }
}

/* ==========================================================================
   PART 4: CUSTOMER MOBILE LOGIN & PROFILE STYLES
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-btn {
    background: #f1f5f9;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 99px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.user-btn:hover {
    background: #e2e8f0;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    max-width: 420px;
    margin: 28px auto;
    box-shadow: var(--shadow);
}

.phone-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.phone-prefix {
    background: #f1f5f9;
    padding: 11px 12px;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    border-right: 1px solid #cbd5e1;
}

.phone-input-field {
    border: none;
    padding: 11px 12px;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    outline: none;
}

.otp-input-field {
    width: 100%;
    padding: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 8px;
    text-align: center;
    border: 2px solid var(--primary);
    border-radius: 8px;
}

.otp-demo-banner {
    background: #ecfdf5;
    border: 1px dashed var(--accent);
    color: #065f46;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 14px;
    text-align: center;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.order-history-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 99px;
    background: #f1f5f9;
    color: var(--primary);
}

@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 28px;
        align-items: start;
    }
}


/* FASHIONNOW MOBILE OVERFLOW FIX */

.product-layout,
.profile-grid {
    min-width: 0;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
}

.product-layout > *,
.profile-grid > * {
    min-width: 0;
    max-width: 100%;
}

.product-info-box,
.checkout-box,
.cart-box {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.product-info-box img,
.profile-grid img {
    max-width: 100%;
    height: auto;
}

.prod-h1,
.prod-short-desc,
.prod-sku,
.product-info-box p,
.order-history-card {
    overflow-wrap: anywhere;
}

.specs-table {
    width: 100%;
    table-layout: fixed;
}

.specs-table th,
.specs-table td {
    overflow-wrap: anywhere;
    word-break: normal;
}

.profile-grid .form-row-2 {
    grid-template-columns: minmax(0, 1fr);
}

.profile-grid input,
.profile-grid textarea,
.profile-grid select {
    min-width: 0;
    max-width: 100%;
}

.order-history-card {
    gap: 10px;
}

.order-history-card > * {
    min-width: 0;
}

.gallery-main,
.gallery-thumbs {
    max-width: 100%;
}

/* Restore desktop layouts */
@media (min-width: 768px) {
    .product-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }

    .profile-grid .form-row-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
  

/* FASHIONNOW PRODUCT PAGE: classes replacing inline style attributes */
.prod-discount { color: var(--danger); font-size: 13px; font-weight: 800; margin-left: 6px; }
.prod-tax-note { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.prod-section-title { font-size: 14px; font-weight: 800; }
.prod-specs-title { margin-top: 20px; }
.prod-description-title { margin: 20px 0 8px; }
.prod-description { font-size: 13px; color: var(--text-muted); overflow-wrap: anywhere; }
.sticky-buy-label { font-size: 11px; color: var(--text-muted); }
.sticky-buy-price { font-size: 17px; font-weight: 800; color: var(--primary); }
.sticky-buy-form { flex-grow: 1; max-width: 220px; min-width: 0; }
.sticky-buy-button { width: 100%; }
.thumb-item { padding: 0; background: transparent; display: block; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
