﻿/* ==========================================================================
   ACCESSORY WORLD — SITE STYLESHEET
   Mobile-first. Breakpoints: 480 / 768 / 1024 / 1280
   Fonts (link in _Layout.cshtml <head>):
   https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    /* Brand */
    --black: #000000;
    --magenta: #E6007E;
    --magenta-dark: #A30058;
    --magenta-light: #FF4FA8;
    --magenta-pale: #FCE4F1;
    --blue: #29B6F4;
    --blue-light: #7DD3FC;
    --blue-pale: #E6F7FF;
    --navy: #0B3D91;
    --navy-dark: #062454;
    --white: #FFFFFF;
    /* Neutrals */
    --charcoal: #1A1A1A;
    --slate: #6B7280;
    --slate-light: #9CA3AF;
    --gray-50: #FAFAFA;
    --gray-100: #F4F4F5;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    /* Feedback */
    --success: #3FAE49;
    --error: #E02424;
    /* Type */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Radius / shadow / motion */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-pill: 999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 50px rgba(11,61,145,0.18);
    --ease: cubic-bezier(.4,0,.2,1);
    /* Layout */
    --container-max: 1200px;
    --nav-height: 64px;
    --gradient-brand: linear-gradient(120deg, var(--navy), var(--magenta) 60%, var(--magenta-light));
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 16px;
}

@media (min-width:768px) {
    .container {
        padding-inline: 32px;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.topbar {
    display: none;
    background: var(--black);
    color: var(--gray-300);
    font-size: 12.5px;
}

    .topbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 34px;
    }

    .topbar a {
        color: var(--blue-light);
    }

    .topbar .topbar-links {
        display: flex;
        gap: 20px;
    }

@media (min-width:768px) {
    .topbar {
        display: block;
    }
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

    .navbar .container {
        height: var(--nav-height);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 19px;
    color: var(--black);
    white-space: nowrap;
}

    .nav-brand .cart-mark {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--gradient-brand);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .nav-brand .cart-mark svg {
            width: 16px;
            height: 16px;
            stroke: var(--white);
        }

    .nav-brand span.accent {
        color: var(--magenta);
    }

/* Desktop nav links */
.nav-links {
    display: none;
    gap: 28px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14.5px;
}

    .nav-links a {
        position: relative;
        padding: 8px 2px;
        color: var(--charcoal);
        transition: color .2s var(--ease);
    }

        .nav-links a:hover {
            color: var(--magenta);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            height: 2px;
            width: 0;
            background: var(--magenta);
            transition: width .2s var(--ease);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

/* Search (desktop) */
.nav-search {
    display: none;
    flex: 1;
    max-width: 380px;
    position: relative;
}

    .nav-search input {
        width: 100%;
        height: 42px;
        border-radius: var(--r-pill);
        border: 1.5px solid var(--gray-200);
        background: var(--gray-50);
        padding: 0 44px 0 18px;
        font-family: var(--font-body);
        font-size: 14px;
        transition: border-color .2s var(--ease), background .2s var(--ease);
    }

        .nav-search input:focus {
            border-color: var(--blue);
            background: var(--white);
            outline: none;
        }

    .nav-search button {
        position: absolute;
        right: 4px;
        top: 4px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: none;
        background: var(--magenta);
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .nav-search button svg {
            width: 16px;
            height: 16px;
        }

/* Right-side icons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 50%;
    color: var(--charcoal);
    transition: background .2s var(--ease);
}

    .icon-btn:hover {
        background: var(--gray-100);
    }

    .icon-btn svg {
        width: 22px;
        height: 22px;
    }

    .icon-btn .cart-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        background: var(--magenta);
        color: var(--white);
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 10px;
        min-width: 17px;
        height: 17px;
        border-radius: var(--r-pill);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        border: 2px solid var(--white);
    }

.nav-search-toggle {
    display: flex;
}

@media (min-width:768px) {
    .nav-search-toggle {
        display: none;
    }
}

/* Hamburger (mobile only) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    width: 42px;
    height: 42px;

    border: none;
    background: transparent !important;
    border-radius: 8px;

    cursor: pointer;
}

    .nav-toggle span {
    width: 10px !important;
    height: 3px !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
    border-radius: 2px;
}

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

@media (min-width:1024px) {
    .nav-links {
        display: flex;
    }

    .nav-search {
        display: block;
    }

    .nav-toggle {
        display: none;
    }
}

/* Mobile drawer */
.nav-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

    .nav-drawer.is-open {
        transform: translateX(0);
    }

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.nav-drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .nav-drawer-close svg {
        width: 18px;
        height: 18px;
    }

.nav-drawer-links {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

    .nav-drawer-links a {
        padding: 16px 20px;
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 16px;
        border-bottom: 1px solid var(--gray-100);
    }

        .nav-drawer-links a:active {
            background: var(--gray-50);
        }

.nav-drawer-contact {
    margin-top: auto;
    padding: 20px;
    background: var(--gray-50);
    font-size: 13px;
    color: var(--slate);
}

    .nav-drawer-contact a {
        color: var(--magenta);
        font-weight: 600;
    }

.nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease);
    z-index: 190;
}

    .nav-scrim.is-open {
        opacity: 1;
        visibility: visible;
    }

/* ==========================================================================
   BUTTONS & BADGES (shared across site)
   ========================================================================== */
.btn {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14.5px;
    padding: 13px 26px;
    border-radius: var(--r-sm);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px; /* touch target */
    transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}

    .btn:active {
        transform: scale(0.98);
    }

.btn-primary {
    background: var(--magenta);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(230,0,126,0.28);
}

    .btn-primary:hover {
        background: var(--magenta-dark);
    }

.btn-secondary {
    background: var(--black);
    color: var(--white);
}

    .btn-secondary:hover {
        background: #222;
    }

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

    .btn-outline:hover {
        background: var(--black);
        color: var(--white);
    }

.btn-block {
    width: 100%;
}

.badge {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11.5px;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    text-transform: uppercase;
    letter-spacing: .04em;
    display: inline-block;
}

.badge-pink {
    background: var(--magenta);
    color: var(--white);
}

.badge-blue {
    background: var(--blue-pale);
    color: var(--navy);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--black);
    color: #D6D6D6;
    margin-top: 72px;
    position: relative;
}

    .site-footer::before {
        content: '';
        display: block;
        height: 4px;
        width: 100%;
        background: var(--gradient-brand);
    }

.footer-top {
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr;
}

@media (min-width:640px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width:1024px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    }
}

.footer-brand .nav-brand {
    color: var(--white);
    margin-bottom: 14px;
}

.footer-tagline {
    font-size: 14px;
    color: #A3A3A3;
    max-width: 280px;
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

    .footer-social a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #1F1F1F;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .2s var(--ease);
    }

        .footer-social a:hover {
            background: var(--magenta);
        }

    .footer-social svg {
        width: 17px;
        height: 17px;
        stroke: var(--white);
    }

.footer-col h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col a {
    font-size: 14px;
    color: #B8B8B8;
    transition: color .2s var(--ease);
}

    .footer-col a:hover {
        color: var(--blue-light);
    }

.footer-contact li {
    display: flex;
    gap: 10px;
    font-size: 13.5px;
    color: #B8B8B8;
    align-items: flex-start;
}

.footer-contact svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--blue-light);
}

.footer-newsletter {
    background: #101010;
    border-radius: var(--r-md);
    padding: 22px;
    margin-top: 8px;
}

    .footer-newsletter p {
        font-size: 13px;
        color: #A3A3A3;
        margin-bottom: 12px;
    }

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .footer-newsletter-form input {
        flex: 1;
        min-width: 0;
        height: 44px;
        border-radius: var(--r-sm);
        border: 1px solid #333;
        background: #181818;
        color: var(--white);
        padding: 0 14px;
        font-size: 13.5px;
    }

        .footer-newsletter-form input::placeholder {
            color: #777;
        }

    .footer-newsletter-form button {
        flex-shrink: 0;
        padding: 0 20px;
    }

.footer-bottom {
    border-top: 1px solid #262626;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12.5px;
    color: #888;
}

@media (min-width:640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom .payments {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .footer-bottom .payments span {
        border: 1px solid #333;
        border-radius: 6px;
        padding: 4px 8px;
        font-size: 11px;
        color: #999;
    }

/* ==========================================================================
   AUTH PAGES (Login / Register)
   ========================================================================== */
.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width:960px) {
    .auth-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.auth-visual {
    background: var(--gradient-brand);
    color: var(--white);
    padding: 40px 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
}

@media (min-width:960px) {
    .auth-visual {
        padding: 64px;
        min-height: auto;
    }
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 28px solid rgba(255,255,255,0.15);
}

.auth-visual::after {
    content: '';
    position: absolute;
    bottom: -140px;
    right: -90px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 28px solid rgba(255,255,255,0.12);
}

.auth-visual-inner {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.auth-visual .eyebrow {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 14px;
    display: block;
}

.auth-visual h1 {
    font-size: clamp(26px, 4vw, 40px);
    color: var(--white);
    margin-bottom: 14px;
}

.auth-visual p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}

.auth-visual-points {
    margin-top: 28px;
    display: none;
    flex-direction: column;
    gap: 14px;
}

@media (min-width:960px) {
    .auth-visual-points {
        display: flex;
    }
}

.auth-visual-points li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
}

.auth-visual-points svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 56px;
}

@media (min-width:960px) {
    .auth-form-side {
        padding: 64px;
    }
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

    .auth-card .back-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--slate);
        margin-bottom: 24px;
    }

        .auth-card .back-link svg {
            width: 16px;
            height: 16px;
        }

    .auth-card h2 {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .auth-card .sub {
        font-size: 14.5px;
        color: var(--slate);
        margin-bottom: 28px;
    }

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 13.5px;
        margin-bottom: 7px;
        color: var(--charcoal);
    }

.input-wrap {
    position: relative;
}

    .input-wrap svg.field-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        stroke: var(--slate-light);
        pointer-events: none;
    }

.form-control {
    width: 100%;
    height: 50px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-sm);
    background: var(--gray-50);
    padding: 0 16px 0 44px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--charcoal);
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

    .form-control::placeholder {
        color: var(--slate-light);
    }

    .form-control:focus {
        outline: none;
        border-color: var(--magenta);
        background: var(--white);
        box-shadow: 0 0 0 4px var(--magenta-pale);
    }

.input-wrap.has-toggle .form-control {
    padding-right: 44px;
}

.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
}

    .pw-toggle svg {
        width: 19px;
        height: 19px;
    }

.field-validation-error, .text-danger {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--error);
    font-weight: 500;
}

.validation-summary-errors {
    background: #FDEDEE;
    border: 1px solid #F6C6C9;
    color: var(--error);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13.5px;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
        list-style: disc;
    }

input.input-validation-error {
    border-color: var(--error);
    background: #FFF8F8;
}

.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .checkbox-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--magenta);
        border-radius: 4px;
    }

    .checkbox-row label {
        font-size: 13.5px;
        color: var(--slate);
        font-weight: 500;
        margin: 0;
    }

.link-muted {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--magenta);
}

    .link-muted:hover {
        text-decoration: underline;
    }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0;
    font-size: 12.5px;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: .05em;
}

    .auth-divider::before, .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--gray-200);
    }

.external-logins {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-external {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    color: var(--charcoal);
    gap: 10px;
}

    .btn-external:hover {
        background: var(--gray-50);
    }

    .btn-external svg {
        width: 18px;
        height: 18px;
    }

.auth-footer-note {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: var(--slate);
}

    .auth-footer-note a {
        color: var(--magenta);
        font-weight: 700;
    }

/* Password strength meter (optional JS hook: .strength-bar[data-level]) */
.strength-meter {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

    .strength-meter i {
        flex: 1;
        height: 4px;
        border-radius: 2px;
        background: var(--gray-200);
    }

    .strength-meter.level-1 i:nth-child(1) {
        background: var(--error);
    }

    .strength-meter.level-2 i:nth-child(-n+2) {
        background: #F59E0B;
    }

    .strength-meter.level-3 i:nth-child(-n+3) {
        background: var(--blue);
    }

    .strength-meter.level-4 i {
        background: var(--success);
    }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.mt-0 {
    margin-top: 0
}

.mb-0 {
    margin-bottom: 0
}

.text-center {
    text-align: center
}

.d-none {
    display: none
}

@media (min-width:768px) {
    .d-md-block {
        display: block;
    }
}
