:root {
    --store-bg: #f7f8fa;
    --store-card: #ffffff;
    --store-text: #15171a;
    --store-muted: #6c737d;
    --store-border: #e5e7eb;
    --store-primary: #111827;
    --store-primary-hover: #273244;
    --store-radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--store-text);
    background: var(--store-bg);
    line-height: 1.6;
}

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

.store-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--store-border);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 36px;
}

.store-logo {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.store-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #505862;
    font-size: 14px;
}

.store-nav a:hover {
    color: var(--store-text);
}

.store-header-actions {
    margin-left: auto;
}

.store-cart-placeholder {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--store-border);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    background: #fff;
}

.store-hero {
    background: #111827;
    color: #fff;
    padding: 72px 0 76px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    opacity: .65;
}

.hero-copy h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.03;
    letter-spacing: -2px;
    margin: 12px 0 16px;
}

.hero-copy p {
    font-size: 18px;
    color: #d1d5db;
    margin: 0 0 28px;
}

.store-search {
    display: flex;
    max-width: 620px;
    background: #fff;
    padding: 5px;
    border-radius: 12px;
}

.store-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 13px 15px;
    font-size: 15px;
}

.store-search button {
    border: 0;
    background: #111827;
    color: #fff;
    padding: 0 22px;
    border-radius: 9px;
    cursor: pointer;
}

.store-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    padding-top: 42px;
    padding-bottom: 60px;
}

.sidebar-card {
    position: sticky;
    top: 100px;
    background: var(--store-card);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    padding: 20px;
}

.sidebar-card h3 {
    margin: 0 0 14px;
    font-size: 15px;
}

.sidebar-card a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--store-muted);
    font-size: 14px;
}

.sidebar-card a:hover,
.sidebar-card a.active {
    color: var(--store-text);
    background: #f0f2f5;
    font-weight: 600;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: 28px;
    letter-spacing: -.7px;
}

.section-heading .eyebrow {
    color: var(--store-muted);
}

.product-count {
    color: var(--store-muted);
    font-size: 13px;
}

.search-result-note {
    padding: 12px 15px;
    background: #fff;
    border: 1px solid var(--store-border);
    border-radius: 10px;
    margin-bottom: 18px;
    color: var(--store-muted);
    font-size: 13px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    overflow: hidden;
    background: var(--store-card);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0,0,0,.07);
}

.product-image-placeholder {
    aspect-ratio: 1 / .82;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0f3;
    color: #9aa1ab;
    font-size: 42px;
    font-weight: 800;
}

.product-image-placeholder.large {
    min-height: 480px;
    border-radius: var(--store-radius);
    aspect-ratio: auto;
}

.product-card-body {
    padding: 18px;
}

.product-category {
    color: var(--store-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 7px;
}

.product-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.product-card h3 a:hover {
    text-decoration: underline;
}

.product-description {
    color: var(--store-muted);
    font-size: 13px;
    min-height: 42px;
    margin: 9px 0 17px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-footer strong {
    font-size: 16px;
}

.product-footer small {
    color: var(--store-muted);
}

.product-button,
.primary-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    background: var(--store-primary);
    color: #fff;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 13px;
    cursor: pointer;
}

.product-button:hover,
.primary-action:hover {
    background: var(--store-primary-hover);
}

.empty-store {
    text-align: center;
    background: #fff;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    padding: 70px 20px;
}

.empty-icon {
    font-size: 40px;
    color: #9aa1ab;
}

.empty-store h3 {
    margin: 10px 0 5px;
}

.empty-store p {
    color: var(--store-muted);
    margin: 0 0 18px;
}

.product-detail-page {
    padding-top: 28px;
    padding-bottom: 70px;
}

.breadcrumb {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    color: var(--store-muted);
    font-size: 13px;
    margin-bottom: 30px;
}

.breadcrumb a:hover {
    color: var(--store-text);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    gap: 55px;
    align-items: start;
}

.detail-content {
    padding-top: 20px;
}

.detail-content h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin: 7px 0 20px;
}

.detail-price {
    font-size: 28px;
    font-weight: 800;
}

.detail-unit {
    color: var(--store-muted);
    font-size: 13px;
    margin-top: 2px;
}

.detail-description {
    border-top: 1px solid var(--store-border);
    margin-top: 28px;
    padding-top: 25px;
    color: #4d5560;
}

.detail-actions {
    margin-top: 28px;
}

.primary-action {
    min-width: 180px;
    min-height: 46px;
}

.catalog-reference {
    color: var(--store-muted);
    font-size: 12px;
    margin-top: 18px;
}

.store-footer {
    border-top: 1px solid var(--store-border);
    background: #fff;
    padding: 25px 0;
    color: var(--store-muted);
    font-size: 13px;
}

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

    .sidebar-card {
        position: static;
    }

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

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-image-placeholder.large {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .store-container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 64px;
        gap: 14px;
    }

    .store-nav {
        display: none;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .store-search {
        display: block;
        background: transparent;
        padding: 0;
    }

    .store-search input,
    .store-search button {
        width: 100%;
        min-height: 46px;
    }

    .store-search button {
        margin-top: 8px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }
}

.product-image-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.detail-gallery {
    min-width: 0;
}

.detail-image {
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #f1f3f5;
}

.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.product-thumbnail {
    width: 72px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--store-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--store-primary);
}

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

.product-actions {
    display: flex;
    gap: 7px;
    align-items: center;
}

.product-button.secondary {
    background: #f0f2f5;
    color: var(--store-text);
}

.product-button.secondary:hover {
    background: #e5e7eb;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.quantity-control,
.cart-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--store-border);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.quantity-control button,
.cart-quantity button {
    border: 0;
    background: #f6f7f9;
    width: 38px;
    height: 44px;
    cursor: pointer;
}

.quantity-control input,
.cart-quantity input {
    width: 52px;
    height: 44px;
    text-align: center;
    border: 0;
    border-left: 1px solid var(--store-border);
    border-right: 1px solid var(--store-border);
    outline: 0;
}

.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--store-border);
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
}

.cart-page {
    padding-top: 42px;
    padding-bottom: 70px;
}

.cart-page h1 {
    margin: 5px 0 0;
    font-size: 34px;
    letter-spacing: -1px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 18px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--store-border);
    border-radius: 14px;
}

.cart-item-image {
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef0f3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa1ab;
    font-weight: 800;
    font-size: 25px;
}

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

.cart-item-info h3 {
    margin: 2px 0 5px;
    font-size: 16px;
}

.cart-unit-price {
    color: var(--store-muted);
    font-size: 13px;
}

.cart-line-total {
    font-weight: 800;
    min-width: 100px;
    text-align: right;
}

.cart-remove {
    border: 0;
    background: transparent;
    color: #8a919b;
    font-size: 24px;
    cursor: pointer;
}

.cart-remove:hover {
    color: #111827;
}

.cart-summary {
    position: sticky;
    top: 100px;
    padding: 23px;
    background: #fff;
    border: 1px solid var(--store-border);
    border-radius: 15px;
}

.cart-summary h2 {
    margin: 0 0 20px;
    font-size: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    color: var(--store-muted);
}

.summary-row.total {
    border-top: 1px solid var(--store-border);
    margin-top: 8px;
    padding-top: 17px;
    color: var(--store-text);
    font-size: 17px;
}

.summary-note {
    color: var(--store-muted);
    font-size: 12px;
    margin: 14px 0 18px;
}

.checkout-placeholder {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 9px;
    background: #e5e7eb;
    color: #68707b;
    cursor: not-allowed;
}

.clear-cart {
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: var(--store-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 7px 0;
}

.clear-cart:hover {
    color: var(--store-text);
}

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

    .cart-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .cart-item {
        grid-template-columns: 70px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-quantity {
        grid-column: 2;
    }

    .cart-line-total {
        grid-column: 3;
        grid-row: 2;
        min-width: auto;
    }

    .cart-remove {
        grid-column: 3;
        grid-row: 1;
    }

    .product-actions {
        flex-wrap: wrap;
    }
}

.auth-page {
    padding-top: 60px;
    padding-bottom: 80px;
    min-height: calc(100vh - 150px);
}

.auth-card,
.success-card {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 34px;
    background: #fff;
    border: 1px solid var(--store-border);
    border-radius: 18px;
}

.auth-card.wide {
    width: min(650px, 100%);
}

.auth-card h1,
.success-card h1 {
    font-size: 34px;
    line-height: 1.1;
    margin: 8px 0;
    letter-spacing: -1px;
}

.auth-subtitle {
    color: var(--store-muted);
    margin: 0 0 25px;
}

.auth-card label,
.checkout-card label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin: 15px 0 7px;
}

.store-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--store-border);
    border-radius: 9px;
    padding: 10px 12px;
    outline: none;
    background: #fff;
    font: inherit;
}

.store-input:focus {
    border-color: #9ca3af;
}

textarea.store-input {
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-error {
    padding: 12px 14px;
    border: 1px solid #f0caca;
    background: #fff3f3;
    color: #9b2c2c;
    border-radius: 9px;
    margin-bottom: 18px;
    font-size: 13px;
}

.auth-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 22px;
}

.auth-switch {
    text-align: center;
    color: var(--store-muted);
    font-size: 13px;
    margin: 22px 0 0;
}

.auth-switch a {
    font-weight: 700;
    color: var(--store-text);
}

.checkout-page {
    padding-top: 42px;
    padding-bottom: 70px;
}

.checkout-page h1 {
    margin: 5px 0 0;
    font-size: 34px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

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

.checkout-card {
    background: #fff;
    border: 1px solid var(--store-border);
    border-radius: 15px;
    padding: 23px;
}

.checkout-card h2 {
    font-size: 19px;
    margin: 0 0 12px;
}

.customer-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--store-muted);
    font-size: 13px;
}

.customer-summary strong {
    color: var(--store-text);
    font-size: 15px;
}

.payment-placeholder {
    padding: 15px;
    background: #f7f8fa;
    border: 1px dashed var(--store-border);
    border-radius: 10px;
    color: var(--store-muted);
    font-size: 13px;
}

.checkout-submit {
    min-height: 48px;
    width: 100%;
}

.checkout-error {
    margin-bottom: 20px;
}

.summary-product {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f1f3;
    font-size: 13px;
}

.summary-product strong {
    white-space: nowrap;
}

.success-card {
    text-align: center;
}

.success-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef8f1;
    color: #277443;
    font-size: 28px;
    font-weight: 800;
}

.order-reference {
    margin: 25px auto 10px;
    padding: 13px 18px;
    background: #f7f8fa;
    border-radius: 10px;
    display: inline-flex;
    gap: 8px;
}

.success-total {
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 20px;
}

.text-muted {
    color: var(--store-muted);
}

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

@media (max-width: 640px) {
    .auth-card,
    .success-card,
    .checkout-card {
        padding: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.payment-card { max-width: 540px; }
.payment-message {
    min-height: 22px;
    margin: 15px 0;
    color: var(--store-muted);
    font-size: 13px;
}
.payment-confirmed {
    margin: 16px 0;
    padding: 10px 13px;
    background: #eef8f1;
    border-radius: 9px;
    color: #277443;
    font-size: 13px;
}

/* Phase 5.6 auth UI refinement */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    min-width: 0;
}

.auth-form .form-field label {
    display: block;
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--store-text);
}

.auth-form .store-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
}

.auth-form .form-grid {
    align-items: start;
}

.auth-submit {
    margin-top: 2px;
}

.auth-switch {
    line-height: 1.5;
}

.auth-switch a {
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ==========================================================
   Client-approved electronics-store inspired theme
   ========================================================== */
.top-strip { background:#fff; border-bottom:1px solid #ececec; font-size:11px; color:#555; }
.top-strip-inner { min-height:28px; display:flex; align-items:center; justify-content:space-between; }
.top-strip-inner div { display:flex; gap:18px; }
.top-strip-inner a:hover { text-decoration:underline; }

.market-header { background:#fff; border-bottom:1px solid #e7e7e7; }
.market-main { min-height:76px; display:flex; align-items:center; gap:28px; }
.brand-lockup { display:inline-flex; align-items:center; gap:8px; font-size:25px; font-weight:900; letter-spacing:-1px; white-space:nowrap; }
.brand-lockup > span:last-child > span { color:#f6b900; }
.brand-mark { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#ffc400; color:#111; font-weight:900; font-size:18px; }
.market-search { flex:1; max-width:620px; height:44px; display:flex; border:2px solid #ffc400; border-radius:24px; overflow:hidden; background:#fff; }
.market-search select { border:0; border-right:1px solid #e5e5e5; padding:0 14px; min-width:145px; outline:0; background:#fff; font-size:12px; }
.market-search input { flex:1; min-width:0; border:0; outline:0; padding:0 14px; font-size:13px; }
.market-search button { width:50px; border:0; background:#ffc400; font-size:22px; cursor:pointer; }
.header-links { margin-left:auto; display:flex; align-items:center; gap:18px; font-size:12px; white-space:nowrap; }
.header-links a:hover { color:#d29400; }
.header-cart { font-weight:700; }
.yellow-nav { background:#ffc400; }
.yellow-nav-inner { display:flex; align-items:center; min-height:42px; gap:0; }
.yellow-nav-inner > a { padding:12px 17px; font-size:12px; font-weight:650; }
.yellow-nav-inner > a.active, .yellow-nav-inner > a:hover { background:#f2b800; }
.category-button { background:#111827 !important; color:#fff !important; min-width:205px; }
.nav-spacer { flex:1; }

.hero-shop { background:linear-gradient(110deg,#eef2ef,#f7f8f6); overflow:hidden; }
.hero-shop-grid { min-height:350px; display:grid; grid-template-columns:1fr 1fr; align-items:center; }
.hero-shop-copy { padding:45px 0; max-width:560px; }
.hero-kicker { font-size:10px; font-weight:800; letter-spacing:1.6px; color:#555; }
.hero-shop-copy h1 { font-size:46px; line-height:1.02; margin:12px 0; letter-spacing:-2px; }
.hero-shop-copy h1 strong { color:#e2a800; }
.hero-shop-copy p { max-width:500px; color:#626a72; font-size:15px; margin-bottom:24px; }
.yellow-button { display:inline-flex; background:#ffc400; color:#111; padding:12px 25px; border-radius:22px; font-size:11px; font-weight:850; }
.yellow-button:hover { background:#e9ad00; }
.hero-product-showcase { position:relative; height:350px; display:flex; align-items:center; justify-content:center; }
.hero-product-showcase > img { width:72%; height:82%; object-fit:contain; mix-blend-mode:multiply; }
.hero-floating-card { position:absolute; right:20px; bottom:30px; width:205px; padding:13px 16px; background:#fff; box-shadow:0 10px 28px rgba(0,0,0,.1); border-radius:5px; }
.hero-floating-card span { display:block; font-size:9px; color:#8b8f95; text-transform:uppercase; }
.hero-floating-card strong { display:block; font-size:12px; margin:4px 0; }
.hero-floating-card b { color:#e51d25; font-size:14px; }

.service-strip { background:#fff; border-bottom:1px solid #eee; }
.service-grid { display:grid; grid-template-columns:repeat(5,1fr); padding:21px 0; }
.service-grid > div { display:flex; align-items:center; gap:10px; padding:0 18px; border-right:1px solid #e8e8e8; }
.service-grid > div:last-child { border:0; }
.service-grid b { font-size:20px; }
.service-grid strong,.service-grid small { display:block; }
.service-grid strong { font-size:10px; }
.service-grid small { font-size:8px; color:#8a8e94; }

.shop-section { padding:42px 0; background:#fff; }
.soft-section { background:#f5f7fa; }
.shop-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:22px; }
.shop-heading > div > span { color:#8c9198; font-size:9px; font-weight:800; letter-spacing:1.3px; }
.shop-heading h2 { margin:4px 0 0; font-size:22px; letter-spacing:-.5px; }
.shop-heading > a { font-size:11px; color:#777; }
.shop-heading > a:hover { color:#111; }
.deal-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.deal-card { display:grid; grid-template-columns:42% 58%; border:1px solid #e5e5e5; border-radius:4px; background:#fff; overflow:hidden; min-height:155px; }
.deal-image { background:#f5f5f5; display:flex; align-items:center; justify-content:center; padding:12px; }
.deal-image img { width:100%; height:125px; object-fit:contain; }
.deal-image span { font-size:10px; color:#aaa; }
.deal-info { padding:13px; }
.deal-info small { color:#999; font-size:8px; text-transform:uppercase; }
.deal-info h3 { margin:5px 0 8px; font-size:12px; line-height:1.3; }
.deal-info strong { display:block; color:#e31d2a; font-size:14px; margin-bottom:10px; }
.mini-yellow { border:0; background:#ffc400; color:#111; border-radius:15px; padding:7px 10px; font-size:8px; font-weight:850; cursor:pointer; }
.mini-yellow:hover { background:#eeb300; }
.mini-yellow:disabled { opacity:.6; cursor:wait; }
.mini-yellow.is-added { background:#2d9d62; color:#fff; }

.product-row { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.clean-product-card { min-width:0; }
.clean-product-image { display:flex; height:185px; background:#fff; align-items:center; justify-content:center; border:1px solid #e9eaec; }
.clean-product-image img { width:100%; height:100%; object-fit:contain; padding:12px; }
.clean-product-card .stars,.catalog-card .stars,.featured-card .stars { margin-top:8px; font-size:9px; letter-spacing:1px; color:#f5b600; }
.clean-product-card h3,.catalog-card h3,.featured-card h3 { margin:4px 0; font-size:11px; line-height:1.35; }
.clean-product-card b,.catalog-price,.featured-card b { color:#e31d2a; font-size:12px; }

.promo-band { background:#eaf0f4; padding:28px 0; }
.promo-grid { min-height:175px; display:grid; grid-template-columns:1fr 1fr; align-items:center; }
.promo-copy span { font-size:9px; font-weight:800; }
.promo-copy h2 { font-size:27px; line-height:1.1; margin:6px 0 13px; }
.promo-copy a { color:#111; font-size:10px; font-weight:850; border-bottom:2px solid #ffc400; padding-bottom:4px; }
.promo-products { display:flex; align-items:center; justify-content:center; gap:10px; }
.promo-products a { width:31%; height:140px; background:#fff; display:flex; align-items:center; justify-content:center; }
.promo-products img { width:100%; height:100%; object-fit:contain; padding:12px; }

.tabs-heading { align-items:center; }
.fake-tabs { display:flex; gap:7px; align-items:center; }
.fake-tabs > * { font-size:8px; padding:7px 12px; border-radius:14px; background:#f2f3f5; }
.fake-tabs b { background:#ffc400; }
.catalog-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:13px; }
.catalog-card { background:#fff; min-width:0; }
.catalog-image { height:180px; border:1px solid #e7e8ea; display:flex; align-items:center; justify-content:center; background:#fff; }
.catalog-image img { width:100%; height:100%; object-fit:contain; padding:10px; }
.catalog-card h3 { min-height:30px; }
.catalog-card .mini-yellow { margin-top:7px; }

.featured-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.featured-card { display:grid; grid-template-columns:82px 1fr; gap:11px; background:#fff; border:1px solid #e7e7e7; padding:9px; min-width:0; }
.featured-thumb { height:82px; display:flex; align-items:center; justify-content:center; background:#f7f7f7; }
.featured-thumb img { width:100%; height:100%; object-fit:contain; }
.featured-card h3 { margin-top:2px; }

.newsletter { background:#ffc400; padding:19px 0; }
.newsletter-inner { display:flex; align-items:center; justify-content:space-between; gap:25px; }
.newsletter-inner span { font-size:9px; font-weight:900; letter-spacing:1px; }
.newsletter-inner h2 { margin:3px 0 0; font-size:19px; }
.newsletter form { display:flex; background:#fff; border-radius:18px; padding:3px; min-width:390px; }
.newsletter input { flex:1; min-width:0; border:0; outline:0; padding:8px 13px; font-size:10px; }
.newsletter button { border:0; border-radius:15px; background:#111827; color:#fff; padding:0 15px; font-size:9px; font-weight:800; }

.modern-footer { background:#eef2f6; padding:34px 0 0; color:#656d76; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1.4fr; gap:30px; padding-bottom:30px; }
.footer-grid .brand-lockup { color:#111; font-size:20px; }
.footer-grid p { font-size:10px; max-width:290px; line-height:1.7; }
.footer-grid h4 { color:#222; margin:3px 0 9px; font-size:11px; }
.footer-grid a:not(.brand-lockup) { display:block; font-size:10px; margin:5px 0; }
.footer-grid a:hover { color:#111; }
.footer-bottom { border-top:1px solid #dce0e5; padding:14px 0; font-size:9px; }

.product-reference-page { background:#f7f8fa; padding-bottom:60px; }
.reference-breadcrumb { display:flex; gap:9px; padding:25px 0; color:#7a8087; font-size:10px; }
.reference-breadcrumb strong { color:#222; font-weight:600; }
.reference-product-top { background:#fff; display:grid; grid-template-columns:1.05fr .95fr; gap:40px; padding:28px; border:1px solid #e4e5e7; }
.reference-gallery { min-width:0; }
.reference-main-image { height:470px; display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid #e5e5e5; }
.reference-main-image img { width:100%; height:100%; object-fit:contain; padding:18px; }
.reference-main-image span { color:#aaa; }
.reference-thumbs { display:flex; gap:10px; margin-top:12px; }
.reference-thumbs .product-thumbnail { width:70px; height:70px; }
.reference-info { padding:7px 4px; }
.reference-brand { color:#d3a000; font-size:10px; font-weight:700; }
.reference-info h1 { font-size:30px; line-height:1.12; margin:5px 0 10px; letter-spacing:-.7px; }
.reference-rating { font-size:10px; color:#7d8389; }
.reference-stock { margin:14px 0; display:inline-block; background:#eef8ef; color:#2d8b4b; padding:5px 9px; font-size:9px; }
.reference-short { font-size:12px; color:#626971; line-height:1.7; }
.reference-option-label { font-weight:800; font-size:11px; margin-top:20px; }
.reference-buy-row { display:flex; align-items:center; gap:20px; margin:8px 0 14px; }
.reference-price { font-size:25px; color:#e31d2a; }
.reference-buttons { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.yellow-wide,.dark-wide { min-height:44px; border:0; border-radius:22px; font-size:10px; font-weight:850; cursor:pointer; }
.yellow-wide { background:#ffc400; color:#111; }
.dark-wide { background:#111827; color:#fff; }
.yellow-wide:disabled,.dark-wide:disabled { opacity:.65; cursor:wait; }
.reference-features { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid #e6e6e6; margin-top:20px; }
.reference-features span { padding:10px 8px; text-align:center; border-right:1px solid #e6e6e6; font-size:8px; }
.reference-features span:last-child { border:0; }
.reference-tabs { margin-top:25px; background:#fff; border:1px solid #e3e3e3; }
.reference-tab-nav { display:flex; border-bottom:1px solid #e3e3e3; overflow:auto; }
.reference-tab-nav span { padding:15px 25px; font-size:10px; white-space:nowrap; }
.reference-tab-nav .active { border-bottom:2px solid #ffc400; font-weight:800; }
.reference-description { padding:20px 25px; font-size:11px; color:#5e656d; line-height:1.8; }
.reference-description h2 { font-size:14px; color:#222; }

.button-spinner { width:12px; height:12px; border:2px solid rgba(255,255,255,.5); border-top-color:#fff; border-radius:50%; display:inline-block; animation:spin .7s linear infinite; margin-right:5px; vertical-align:-2px; }
@keyframes spin { to { transform:rotate(360deg); } }

@media (max-width:900px) {
  .market-main { flex-wrap:wrap; padding:10px 0; }
  .market-search { order:3; flex-basis:100%; max-width:none; }
  .yellow-nav-inner > a:not(.category-button) { display:none; }
  .hero-shop-grid,.promo-grid,.reference-product-top { grid-template-columns:1fr; }
  .hero-product-showcase { height:280px; }
  .service-grid { grid-template-columns:repeat(2,1fr); }
  .service-grid > div { padding:12px; border-bottom:1px solid #eee; }
  .product-row { grid-template-columns:repeat(3,1fr); }
  .catalog-grid { grid-template-columns:repeat(3,1fr); }
  .featured-grid { grid-template-columns:repeat(2,1fr); }
  .newsletter-inner { flex-direction:column; align-items:flex-start; }
  .newsletter form { min-width:0; width:100%; }
}
@media (max-width:640px) {
  .top-strip-inner div { display:none; }
  .brand-lockup { font-size:21px; }
  .header-links { gap:9px; }
  .category-button { min-width:auto; }
  .hero-shop-copy h1 { font-size:36px; }
  .service-grid { grid-template-columns:1fr; }
  .deal-grid,.product-row,.catalog-grid,.featured-grid { grid-template-columns:1fr 1fr; }
  .deal-card { grid-template-columns:1fr; }
  .deal-image { min-height:150px; }
  .catalog-image,.clean-product-image { height:150px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .reference-main-image { height:320px; }
  .reference-product-top { padding:15px; }
  .reference-buttons { grid-template-columns:1fr; }
}

/* ============================================================
   Phase 7 - Client Approved Common Store Theme
   ============================================================ */
:root{
    --ps-yellow:#ffc400;
    --ps-yellow-dark:#f5b800;
    --ps-navy:#101827;
    --ps-text:#242b35;
    --ps-muted:#7a8491;
    --ps-border:#e7e9ed;
    --ps-bg:#f5f7fa;
    --ps-white:#fff;
    --ps-red:#e53935;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ps-text);font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.5}
a{color:inherit}
button,input,select{font:inherit}
.ps-container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.ps-top-strip{height:30px;border-bottom:1px solid #ececec;background:#fff;font-size:11px;color:#333}
.ps-top-inner{height:30px;display:flex;align-items:center;justify-content:space-between}
.ps-top-links{display:flex;gap:18px}.ps-top-links a{text-decoration:none}
.ps-header{background:#fff}
.ps-header-main{min-height:68px;display:grid;grid-template-columns:210px 1fr auto;gap:24px;align-items:center}
.ps-brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-size:24px;font-weight:800;letter-spacing:-.8px;color:var(--ps-text)}
.ps-brand>span:last-child>span{font-weight:400}
.ps-brand-mark{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--ps-yellow);font-size:17px}
.ps-header-search{height:40px;border:2px solid var(--ps-yellow);border-radius:22px;display:flex;overflow:hidden;background:#fff}
.ps-header-search select{border:0;background:#fff;padding:0 12px;outline:0;color:#444;border-right:1px solid #eee}
.ps-header-search input{flex:1;border:0;outline:0;padding:0 12px;min-width:0}
.ps-header-search button{width:45px;border:0;background:#fff;cursor:pointer;font-size:20px}
.ps-header-actions{display:flex;align-items:center;gap:13px;white-space:nowrap;font-size:13px}
.ps-header-actions a{text-decoration:none;font-size:18px}
.ps-phone{font-size:12px}.ps-cart{position:relative}.ps-cart span{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:50%;background:var(--ps-yellow);font-size:10px;font-weight:700}.ps-cart-total{font-weight:700}
.ps-yellow-nav{background:var(--ps-yellow)}
.ps-nav-inner{display:flex;align-items:center;height:42px;gap:0}
.ps-nav-inner>a{padding:0 17px;text-decoration:none;font-size:12px;font-weight:700;height:42px;display:flex;align-items:center}
.ps-nav-inner>a.active{background:#ffd33a}
.ps-category-button{background:var(--ps-navy)!important;color:#fff!important;min-width:210px}
.ps-nav-spacer{flex:1}
.ps-sale,.ps-hot{font-size:8px;margin-left:4px;padding:2px 4px;border-radius:3px;color:#fff}.ps-sale{background:#26a9e0}.ps-hot{background:#f04444}

.ps-page-hero{background:#f1f4f8;border-bottom:1px solid #e5e8ec}
.ps-page-hero .ps-container{height:94px;display:flex;align-items:center;justify-content:space-between}
.ps-page-hero h1{margin:0;font-size:21px}.ps-breadcrumb{font-size:12px;color:#7b8490}.ps-breadcrumb a{text-decoration:none}

.ps-shop-layout{display:grid;grid-template-columns:180px 1fr;gap:28px;padding:26px 0 60px}
.ps-sidebar{min-width:0}
.ps-filter-card{border:1px solid var(--ps-border);margin-bottom:14px;background:#fff}
.ps-filter-card h3{font-size:12px;margin:0;padding:11px 12px;background:#f6f8fb;border-bottom:1px solid var(--ps-border);display:flex;justify-content:space-between}
.ps-filter-body{padding:10px 12px;font-size:11px}
.ps-filter-link{display:block;text-decoration:none;padding:3px 0;color:#606975}
.ps-filter-link.active,.ps-filter-link:hover{color:#d79d00}
.ps-check{display:flex;gap:7px;align-items:center;padding:3px 0;color:#69727e}.ps-check input{width:11px;height:11px}
.ps-price-list span{display:block;padding:4px 0}
.ps-color-list{display:flex;flex-wrap:wrap;gap:7px}.ps-color{width:17px;height:17px;border-radius:50%;border:1px solid #ddd;display:block}
.ps-tag-list{display:flex;flex-wrap:wrap;gap:5px}.ps-tag{border:1px solid #ddd;border-radius:3px;padding:3px 6px;font-size:10px}

.ps-shop-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:11px}
.ps-shop-toolbar .ps-sort{border:1px solid var(--ps-border);padding:7px 9px;background:#fff}
.ps-product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.ps-product-card{border:1px solid var(--ps-border);background:#fff;min-width:0;transition:.2s}
.ps-product-card:hover{box-shadow:0 5px 16px rgba(0,0,0,.07);transform:translateY(-2px)}
.ps-product-image{height:155px;display:flex;align-items:center;justify-content:center;padding:12px;position:relative;background:#fff}
.ps-product-image img{width:100%;height:100%;object-fit:contain}
.ps-product-badge{position:absolute;top:5px;left:5px;background:var(--ps-yellow);font-size:9px;padding:2px 5px;font-weight:700}
.ps-product-body{padding:8px 10px 11px}
.ps-stars{color:#f7b500;font-size:11px;letter-spacing:-2px;margin-bottom:4px}
.ps-product-card h3{font-size:11px;line-height:1.35;margin:0 0 7px;font-weight:500;min-height:30px}
.ps-product-card h3 a{text-decoration:none}
.ps-price{font-size:14px;font-weight:800;color:#ef2027}
.ps-old-price{font-size:10px;color:#999;text-decoration:line-through;margin-left:5px}
.ps-product-actions{display:flex;gap:5px;margin-top:9px}
.ps-add-button{flex:1;border:0;background:var(--ps-yellow);border-radius:14px;padding:6px 7px;font-size:10px;font-weight:800;cursor:pointer}
.ps-view-button{border:1px solid #ddd;background:#fff;border-radius:14px;padding:6px 7px;font-size:10px;text-decoration:none}
.ps-empty{border:1px dashed #ddd;padding:50px;text-align:center}

.ps-section{padding:42px 0}
.ps-section-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:16px}.ps-section-title h2{margin:0;font-size:19px}.ps-section-title p{margin:0;color:#999;font-size:11px}
.ps-promo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.ps-promo{min-height:135px;padding:22px;background:#eef2f4;display:flex;align-items:center;justify-content:space-between}.ps-promo.yellow{background:#ffd029}.ps-promo.green{background:#65b42f;color:#fff}.ps-promo h3{margin:0 0 5px;font-size:18px}.ps-promo a{font-size:10px;font-weight:700}
.ps-brand-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.ps-brand-box{border:1px solid var(--ps-border);padding:18px;text-align:center;font-weight:800;color:#263c91;background:#fff}

.ps-newsletter{background:var(--ps-yellow);padding:13px 0}.ps-newsletter-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}.ps-newsletter-title{font-size:14px}.ps-newsletter-title strong{font-size:18px}.ps-newsletter-title span{font-size:10px;margin-left:12px}.ps-newsletter-form{width:min(420px,100%);height:34px;background:#fff;border-radius:18px;display:flex;overflow:hidden}.ps-newsletter-form input{flex:1;border:0;outline:0;padding:0 14px;font-size:11px}.ps-newsletter-form button{width:42px;border:0;background:#fff}
.ps-footer{background:#edf2f8}.ps-footer-grid{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:28px;padding:36px 0}.ps-footer h4{margin:0 0 12px;font-size:12px}.ps-footer a{display:block;text-decoration:none;font-size:11px;color:#5e6874;margin:6px 0}.ps-footer p{font-size:11px;color:#6b7480;margin:10px 0;line-height:1.6}.ps-footer-about .ps-brand{font-size:20px}.ps-app-buttons{display:flex;gap:6px}.ps-app-buttons span{border:1px solid #aaa;background:#fff;padding:5px 7px;font-size:9px}.ps-footer-bottom{border-top:1px solid #dfe4eb;padding:12px 0;font-size:10px;color:#7b8490}.ps-footer-bottom .ps-container{display:flex;justify-content:space-between}

.ps-auth-wrap,.ps-simple-page{padding:48px 0 70px;background:#f5f7fa;min-height:500px}.ps-auth-card{max-width:560px;margin:auto;background:#fff;border:1px solid var(--ps-border);padding:34px;box-shadow:0 5px 20px rgba(0,0,0,.04)}.ps-auth-card.wide{max-width:760px}.ps-auth-card h1{margin:5px 0 8px;font-size:30px}.ps-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.6px;color:#6e7681}.ps-auth-subtitle{color:#7c8590}.ps-form{display:grid;gap:15px}.ps-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.ps-field label{display:block;font-weight:700;font-size:12px;margin-bottom:6px}.ps-field input,.ps-field textarea,.ps-field select{width:100%;border:1px solid #dfe3e8;border-radius:2px;padding:11px 12px;outline:0;background:#fff}.ps-field input:focus,.ps-field textarea:focus,.ps-field select:focus{border-color:#f2b800}.ps-primary{border:0;background:var(--ps-yellow);color:#111;font-weight:800;padding:13px 20px;border-radius:2px;cursor:pointer}.ps-dark{border:0;background:var(--ps-navy);color:#fff;font-weight:800;padding:13px 20px;border-radius:2px;cursor:pointer}.ps-form-error{background:#fff0f0;border:1px solid #f1c0c0;color:#a82020;padding:10px;margin-bottom:15px;font-size:12px}.ps-auth-switch{text-align:center;margin:18px 0 0;font-size:12px}.ps-auth-switch a{font-weight:700}

.ps-cart-page,.ps-checkout-page{padding:35px 0 70px}.ps-cart-layout,.ps-checkout-layout{display:grid;grid-template-columns:1fr 330px;gap:24px}.ps-cart-item{display:grid;grid-template-columns:100px 1fr 135px 110px 30px;gap:14px;align-items:center;border:1px solid var(--ps-border);padding:12px;margin-bottom:10px}.ps-cart-item img{width:100px;height:85px;object-fit:contain}.ps-cart-item h3{font-size:13px;margin:0 0 5px}.ps-cart-qty{display:flex;border:1px solid #ddd}.ps-cart-qty button,.ps-cart-qty input{border:0;background:#fff;width:32px;height:30px;text-align:center}.ps-cart-qty input{border-left:1px solid #eee;border-right:1px solid #eee}.ps-cart-summary{border:1px solid var(--ps-border);padding:20px;height:max-content}.ps-cart-summary h2{font-size:18px;margin-top:0}.ps-summary-row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #eee}.ps-checkout-button{display:block;text-align:center;background:var(--ps-yellow);padding:12px;text-decoration:none;font-weight:800;margin-top:18px}.ps-remove{border:0;background:none;font-size:20px;cursor:pointer;color:#999}

.ps-order-success{text-align:center;padding:70px 20px}.ps-success-icon{width:70px;height:70px;border-radius:50%;background:#e9f8e9;color:#22922a;display:grid;place-items:center;margin:0 auto 15px;font-size:35px}

@media(max-width:1050px){
    .ps-header-main{grid-template-columns:180px 1fr auto}.ps-phone{display:none}
    .ps-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
    .ps-shop-layout{grid-template-columns:165px 1fr}
}
@media(max-width:800px){
    .ps-container{width:min(100% - 24px,680px)}
    .ps-top-links{display:none}.ps-header-main{grid-template-columns:1fr auto;gap:12px;padding:12px 0}.ps-header-search{grid-column:1/-1;grid-row:2}.ps-brand{font-size:21px}
    .ps-yellow-nav{overflow:auto}.ps-nav-inner{width:max-content}.ps-nav-inner>a{padding:0 11px}.ps-category-button{min-width:175px}
    .ps-shop-layout{grid-template-columns:1fr}.ps-sidebar{display:none}.ps-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ps-promo-grid{grid-template-columns:1fr}.ps-brand-grid{grid-template-columns:repeat(3,1fr)}
    .ps-footer-grid{grid-template-columns:1fr 1fr}.ps-newsletter-inner{flex-direction:column;align-items:stretch}
    .ps-cart-layout,.ps-checkout-layout{grid-template-columns:1fr}.ps-cart-item{grid-template-columns:80px 1fr 35px}.ps-cart-item .ps-cart-qty,.ps-cart-item .ps-line-total{grid-column:2}.ps-cart-item img{width:80px;height:70px}
    .ps-form-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
    .ps-product-grid{grid-template-columns:1fr 1fr;gap:8px}.ps-product-image{height:130px}.ps-product-body{padding:7px}.ps-product-card h3{font-size:10px}.ps-price{font-size:12px}
    .ps-footer-grid{grid-template-columns:1fr}.ps-brand-grid{grid-template-columns:repeat(2,1fr)}
}

/* Product detail harmonization with the common theme */
.product-reference-page{background:#fff}
.reference-breadcrumb{background:#f1f4f8;padding:18px 22px;margin:0 0 25px;font-size:11px;color:#7d8691}
.reference-product-top{border:1px solid #e5e7eb;background:#fff}
.reference-brand{color:#d7a500;font-size:12px;font-weight:700}
.reference-info h1{font-size:24px;line-height:1.2}
.reference-price{color:#ef2027}
.reference-buttons .yellow-wide{background:var(--ps-yellow)!important;color:#111!important}
.reference-buttons .dark-wide{background:var(--ps-navy)!important}

/* Common page backgrounds */
.ps-auth-wrap{background:#f5f7fa;padding:48px 20px 70px;min-height:540px}
.ps-auth-wrap .auth-card,.ps-auth-wrap .ps-auth-card{background:#fff}
.ps-cart-page,.ps-checkout-page{min-height:540px}
.ps-simple-page{min-height:540px}

/* ============================================================
   Phase 8 - Safe Cart / Checkout Theme Layer
   Built on Phase 7 known-good backend + views.
   Existing business logic is intentionally preserved.
   ============================================================ */
.store-container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.cart-page,.checkout-page{padding:34px 0 70px;background:#fff}
.section-heading{margin-bottom:22px}
.section-heading h1{font-size:28px;margin:5px 0}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.5px;color:#727b86}
.cart-layout,.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px}
.cart-items{min-width:0}
.cart-item{display:grid;grid-template-columns:105px minmax(0,1fr) 120px 110px 30px;gap:15px;align-items:center;border:1px solid var(--store-border);background:#fff;padding:14px;margin-bottom:10px}
.cart-item-image{width:105px;height:90px;display:flex;align-items:center;justify-content:center;border:1px solid #eee;background:#fff}
.cart-item-image img{width:100%;height:100%;object-fit:contain}
.cart-item-info h3{margin:2px 0 5px;font-size:14px}
.product-category{font-size:10px;color:#8a929c}
.cart-item-price,.cart-item-total{font-weight:800;color:#e62127}
.cart-summary{border:1px solid var(--store-border);border-top:3px solid #ffc400;padding:20px;background:#fff;height:max-content}
.cart-summary h2{font-size:18px;margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid #eee}
.summary-row{display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #eee}
.summary-row.total{font-size:16px;border-bottom:0;padding-top:15px}
.cart-actions{display:flex;gap:10px;margin-top:15px}
.product-button,.primary-action{display:inline-block;background:#ffc400;color:#111;border:0;padding:12px 18px;font-weight:800;border-radius:2px;cursor:pointer;text-decoration:none}
.secondary-action{display:inline-block;border:1px solid #dfe3e8;background:#fff;padding:11px 17px;font-weight:700;text-decoration:none}
.empty-store{text-align:center;border:1px dashed #d8dde3;padding:65px 20px;background:#fff}
.empty-store .empty-icon{font-size:40px}
.checkout-page{background:#fff}
.checkout-card{border:1px solid var(--store-border);padding:22px;margin-bottom:15px;background:#fff}
.checkout-card h2{font-size:16px;margin:0 0 15px;padding-bottom:10px;border-bottom:1px solid #eee}
.checkout-card label{display:block;font-size:12px;font-weight:700;margin:10px 0 5px}
.store-input{width:100%;padding:11px 12px;border:1px solid #dfe3e8;border-radius:2px;outline:0;background:#fff}
.store-input:focus{border-color:#ffc400}
.customer-summary{display:flex;flex-direction:column;gap:3px;color:#68727e;font-size:12px}
.customer-summary strong{color:#222;font-size:14px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.checkout-error,.form-error{padding:10px 12px;background:#fff1f1;border:1px solid #efc2c2;color:#a71f1f;margin-bottom:15px}
.order-success,.payment-page{padding:60px 20px;min-height:520px;background:#f5f7fa}
.order-success .success-card,.payment-card{max-width:650px;margin:0 auto;background:#fff;border:1px solid var(--store-border);padding:40px;text-align:center}
.payment-confirmed{margin:15px 0;padding:10px;background:#ebf8eb;color:#23872b}
.auth-page{padding:50px 20px 70px;background:#f5f7fa;min-height:540px}
.auth-card{max-width:560px;margin:0 auto;background:#fff;border:1px solid var(--store-border);padding:35px}
.auth-card h1{font-size:30px;margin:5px 0 10px}
.auth-form{display:grid;gap:15px}
.form-field label{display:block;font-size:12px;font-weight:700;margin-bottom:6px}
.form-field input{width:100%;padding:11px 12px;border:1px solid #dfe3e8}
.auth-switch{text-align:center;color:#69727d;font-size:12px}
.auth-switch a{font-weight:700;color:#111}
.quantity-control{display:flex;border:1px solid #ddd;width:max-content}
.quantity-control button,.quantity-control input{width:32px;height:32px;border:0;background:#fff;text-align:center}
@media(max-width:800px){
 .cart-layout,.checkout-layout{grid-template-columns:1fr}
 .cart-item{grid-template-columns:80px 1fr 30px}
 .cart-item-image{width:80px;height:70px}
 .cart-item-price,.cart-item-total,.quantity-control{grid-column:2}
 .form-grid{grid-template-columns:1fr}
}


/* ============================================================
   Phase 8.1 - Theme Cleanup / Single Common Layout
   ============================================================ */

/* The storefront now has one source of truth for the top strip,
   header, navigation, newsletter and footer. */
body{
    overflow-x:hidden;
    background:#fff;
}
body > .top-strip,
body > .modern-header,
body > .modern-footer{
    display:none;
}

/* Home legacy classes remain available for content, but inherit
   the same container width as the approved common theme. */
.store-container{
    width:min(1180px,calc(100% - 40px));
    margin-left:auto;
    margin-right:auto;
}

/* Do not allow old header/footer rules to alter the common theme. */
.ps-top-strip{display:block!important}
.ps-header{display:block!important}
.ps-yellow-nav{display:block!important}
.ps-footer{display:block!important}
.ps-newsletter{display:block!important}

/* Common page content width */
.hero-shop-grid,
.service-grid,
.shop-section > .store-container,
.promo-grid,
.newsletter-inner{
    width:min(1180px,calc(100% - 40px));
    margin-left:auto;
    margin-right:auto;
}

/* Consistent client-approved desktop proportions */
.hero-shop-grid{min-height:350px}
.hero-shop-copy h1{font-size:46px}
.shop-section{padding:42px 0}
.deals-section{padding-top:34px}

/* Product imagery should never stretch/crop */
.hero-product-showcase img,
.deal-image img,
.clean-product-image img,
.catalog-image img,
.featured-thumb img,
.promo-products img{
    object-fit:contain;
    display:block;
}

/* Common button treatment */
.yellow-button,
.mini-yellow,
.ps-primary,
.ps-checkout-button{
    background:#ffc400!important;
    color:#111!important;
}

/* Remove the legacy Home newsletter because the common footer
   contains the approved newsletter component. */
.newsletter{display:none!important}

/* Prevent duplicate legacy top strip if any old template is still loaded. */
.top-strip{display:none!important}

/* The partial header provides the only top strip. */
.ps-top-strip .ps-top-inner{
    width:min(1180px,calc(100% - 40px));
}

/* Common footer width */
.ps-footer .ps-container{
    width:min(1180px,calc(100% - 40px));
}

@media(max-width:800px){
    .store-container,
    .hero-shop-grid,
    .service-grid,
    .shop-section > .store-container,
    .promo-grid,
    .newsletter-inner,
    .ps-top-strip .ps-top-inner,
    .ps-footer .ps-container{
        width:calc(100% - 24px);
    }
}

/* ============================================================
   Phase 9 - Working Filters + Server-side Pagination
   ============================================================ */
.ps-filter-card form{margin:0}
.ps-check input[type="radio"],
.ps-check input[type="checkbox"]{accent-color:#ffc400}
.ps-check{cursor:pointer}
.ps-price-inputs{display:grid;grid-template-columns:1fr 12px 1fr;gap:5px;align-items:center}
.ps-price-inputs input{
    width:100%;height:30px;border:1px solid #dfe3e8;padding:4px 6px;
    font-size:10px;outline:0;border-radius:2px;
}
.ps-price-inputs input:focus{border-color:#ffc400}
.ps-filter-options{max-height:175px;overflow:auto}
.ps-filter-submit{width:100%;padding:9px 8px;font-size:10px}
.ps-clear-filters{
    display:block;text-align:center;margin-top:9px;font-size:10px;
    color:#777;text-decoration:none;
}
.ps-clear-filters:hover{color:#111}
.ps-sort-form{display:flex;align-items:center;gap:8px}
.ps-sort-form label{font-size:11px;color:#777}
.ps-sort{border:1px solid #e0e4e9;padding:7px 28px 7px 9px;background:#fff;font-size:11px;outline:0}
.ps-active-filter{
    background:#fff9dc;border:1px solid #f2df82;padding:9px 12px;
    margin-bottom:12px;font-size:11px;display:flex;gap:6px;align-items:center;
}
.ps-active-filter a{margin-left:auto;color:#a06f00;text-decoration:none;font-weight:700}
.ps-pagination{
    display:flex;justify-content:center;align-items:center;gap:5px;
    margin:30px 0 10px;
}
.ps-pagination a,.ps-pagination span{
    min-width:34px;height:34px;display:inline-flex;align-items:center;
    justify-content:center;border:1px solid #e0e4e9;background:#fff;
    text-decoration:none;font-size:11px;color:#333;
}
.ps-pagination a:hover{border-color:#ffc400;background:#fff8d8}
.ps-pagination a.active{background:#ffc400;border-color:#ffc400;color:#111;font-weight:800}
.ps-pagination .ps-page-arrow{font-size:18px}
@media(max-width:800px){
    .ps-shop-toolbar{align-items:flex-start;gap:10px;flex-direction:column}
    .ps-sort-form{width:100%;justify-content:space-between}
    .ps-sort{flex:1}
}


/* Phase 10 - AJAX filters and pagination */
.ps-product-results{position:relative;min-height:220px}
.ps-product-results.is-loading .ps-product-grid,
.ps-product-results.is-loading .ps-shop-toolbar,
.ps-product-results.is-loading .ps-active-filter,
.ps-product-results.is-loading .ps-pagination{opacity:.35;pointer-events:none}
.ps-ajax-loading{position:absolute;top:95px;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:9px;z-index:10;font-size:12px}
.ps-spinner{width:18px;height:18px;border:2px solid #ddd;border-top-color:#ffc400;border-radius:50%;animation:ps-spin .7s linear infinite}
@keyframes ps-spin{to{transform:rotate(360deg)}}
.ps-ajax-error{border:1px solid #efcaca;background:#fff6f6;padding:35px 20px;text-align:center;margin:20px 0}
.ps-ajax-error p{margin:6px 0 0;color:#777;font-size:11px}

/* ============================================================
   Phase 11 - Client-approved Product Detail refinement
   ============================================================ */
.phase11-product-top{
    align-items:start;
    box-shadow:0 1px 0 rgba(0,0,0,.02);
}
.phase11-main-image{
    position:relative;
    cursor:zoom-in;
}
.phase11-main-image img{
    cursor:zoom-in;
}
.phase11-image-zoom{
    position:absolute;
    right:14px;
    top:14px;
    z-index:3;
    width:38px;
    height:38px;
    border:1px solid #e2e4e7;
    border-radius:50%;
    background:#fff;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    box-shadow:0 4px 14px rgba(0,0,0,.08);
}
.phase11-image-zoom:hover{
    background:var(--ps-yellow,#ffc400);
    border-color:var(--ps-yellow,#ffc400);
}
.phase11-thumbs .product-thumbnail{
    border-radius:10px;
    transition:border-color .15s ease,transform .15s ease;
}
.phase11-thumbs .product-thumbnail:hover{
    transform:translateY(-2px);
}
.phase11-gallery-note{
    margin-top:8px;
    font-size:10px;
    color:#858b92;
}
.phase11-product-info{
    position:relative;
}
.phase11-rating-row{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:10px;
    color:#7d8389;
}
.phase11-rating-row .stars{
    color:#ffb400;
    letter-spacing:1px;
}
.phase11-meta{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-top:12px;
    padding:10px 12px;
    background:#f7f8fa;
    border:1px solid #e7e8ea;
    font-size:10px;
}
.phase11-meta span{color:#7b828a}
.phase11-divider{
    height:1px;
    background:#e6e7e9;
    margin:18px 0;
}
.phase11-buy-row{
    margin-top:10px;
}
.phase11-quantity{
    border-radius:6px;
}
.phase11-quantity button{
    font-size:18px;
}
.phase11-price{}
.phase11-buttons{
    gap:10px;
}
.phase11-cart-button,
.phase11-buy-button{
    min-height:48px;
    letter-spacing:.2px;
}
.phase11-features{
    margin-top:18px;
}
.phase11-features span{
    min-height:58px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:2px;
}
.phase11-features b{
    font-size:9px;
}
.phase11-features small{
    display:block;
    color:#818891;
    font-size:8px;
}
.phase11-tabs{
    overflow:hidden;
}
.phase11-tab-nav{
    background:#fff;
}
.phase11-tab-nav button{
    appearance:none;
    border:0;
    border-bottom:2px solid transparent;
    background:transparent;
    padding:15px 25px;
    font:inherit;
    font-size:10px;
    color:#444;
    cursor:pointer;
    white-space:nowrap;
}
.phase11-tab-nav button.active{
    border-bottom-color:#ffc400;
    font-weight:800;
    color:#111;
}
.phase11-tab-panel{
    display:none;
}
.phase11-tab-panel.active{
    display:block;
}
.phase11-information-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1px;
    background:#e8e9eb;
    margin:20px 25px;
    border:1px solid #e8e9eb;
}
.phase11-information-grid>div{
    background:#fff;
    padding:15px;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.phase11-information-grid span{
    color:#818891;
    font-size:9px;
}
.phase11-information-grid strong{
    font-size:11px;
}
.phase11-lightbox{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:35px;
    background:rgba(0,0,0,.82);
}
.phase11-lightbox.is-open{
    display:flex;
}
.phase11-lightbox img{
    max-width:min(1100px,92vw);
    max-height:88vh;
    object-fit:contain;
    background:#fff;
    box-shadow:0 15px 50px rgba(0,0,0,.35);
}
.phase11-lightbox-close{
    position:absolute;
    right:22px;
    top:16px;
    width:44px;
    height:44px;
    border:0;
    border-radius:50%;
    background:#fff;
    color:#111;
    font-size:28px;
    line-height:1;
    cursor:pointer;
}
body.phase11-no-scroll{
    overflow:hidden;
}
@media (max-width:760px){
    .phase11-product-top{padding:14px}
    .phase11-main-image{height:340px}
    .phase11-buttons{grid-template-columns:1fr}
    .phase11-information-grid{grid-template-columns:1fr;margin:15px}
    .phase11-tab-nav{overflow-x:auto}
    .phase11-tab-nav button{padding:13px 15px}
}

/* ============================================================
   Phase 12 - Shopping Cart UI + AJAX operations
   ============================================================ */
.phase12-cart-page{padding-top:42px;padding-bottom:80px}
.phase12-cart-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:28px}
.phase12-cart-hero h1{margin:5px 0 7px;font-size:38px;letter-spacing:-1.2px}
.phase12-cart-hero p{margin:0;color:var(--store-muted);font-size:13px}
.phase12-continue-shopping{display:inline-flex;align-items:center;min-height:42px;padding:0 18px;border:1px solid var(--store-border);border-radius:8px;background:#fff;font-size:12px;font-weight:700}
.phase12-continue-shopping:hover{border-color:#ffc400;background:#fffaf0}
.phase12-cart-layout{grid-template-columns:minmax(0,1fr) 360px;gap:30px}
.phase12-cart-items{gap:0}
.phase12-cart-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:0 0 14px;border-bottom:1px solid var(--store-border);margin-bottom:14px}
.phase12-cart-toolbar strong{display:block;font-size:15px}
.phase12-cart-toolbar span{color:var(--store-muted);font-size:10px}
.phase12-clear-cart{margin:0;color:#7a8088;font-weight:600}
.phase12-clear-cart:hover{color:#d33}
.phase12-cart-list{display:flex;flex-direction:column;gap:10px}
.phase12-cart-item{position:relative;grid-template-columns:104px minmax(0,1fr) auto 120px 30px;gap:18px;min-height:132px;padding:14px;border-radius:10px;transition:opacity .18s ease,transform .18s ease}
.phase12-cart-item.is-removing{opacity:0;transform:translateX(15px)}
.phase12-cart-item.is-loading{pointer-events:none}
.phase12-cart-image{width:104px;height:104px;border-radius:7px;border:1px solid #e8e9eb;background:#f7f8f9}
.phase12-cart-info{align-self:center}
.phase12-cart-info h3{font-size:14px;line-height:1.35}
.phase12-cart-info .product-category{font-size:9px;letter-spacing:.7px;text-transform:uppercase}
.phase12-quantity{align-self:center;display:flex;align-items:center;border:1px solid #dfe2e5;border-radius:7px;overflow:hidden;background:#fff}
.phase12-quantity button{width:34px;height:36px;border:0;background:#f8f9fa;font-size:17px;cursor:pointer}
.phase12-quantity button:hover{background:#ffc400}
.phase12-quantity input{width:42px;height:36px;border:0;border-left:1px solid #e5e6e8;border-right:1px solid #e5e6e8;text-align:center;font-weight:700;outline:none}
.phase12-line-total-wrap{align-self:center;display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.phase12-line-total-wrap>span{color:#8a9199;font-size:9px;text-transform:uppercase;letter-spacing:.5px}
.phase12-line-total-wrap strong{color:#e52323;font-size:15px}
.phase12-remove{align-self:center;width:30px;height:30px;border-radius:50%;background:#f7f8f9;font-size:20px}
.phase12-remove:hover{background:#fff0f0;color:#d22}
.phase12-item-loading{position:absolute;inset:0;display:none;align-items:center;justify-content:center;background:rgba(255,255,255,.72);z-index:4}
.phase12-cart-item.is-loading .phase12-item-loading{display:flex}
.phase12-security-note{display:flex;align-items:center;gap:10px;margin-top:15px;padding:13px 15px;border:1px solid #e5e7ea;background:#fafbfc;border-radius:8px}
.phase12-security-note>span{width:27px;height:27px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e9f7ec;color:#16833a;font-weight:800}
.phase12-security-note strong{display:block;font-size:10px}
.phase12-security-note small{color:#858b93;font-size:9px}
.phase12-cart-summary{top:95px;border-top:3px solid #ffc400;border-radius:10px;padding:25px}
.phase12-summary-heading h2{margin:5px 0 20px;font-size:23px}
.phase12-total-row{font-size:18px!important}
.phase12-total-row strong{color:#e52323;font-size:21px}
.phase12-summary-divider{height:1px;background:#e7e8ea;margin:16px 0}
.phase12-checkout-button{display:flex;align-items:center;justify-content:space-between;min-height:50px;padding:0 18px;background:#ffc400;color:#111827;border-radius:8px;font-weight:800;cursor:pointer}
.phase12-checkout-button:hover{background:#ffcf27;color:#111827}
.phase12-summary-shopping{display:block;text-align:center;margin-top:14px;font-size:11px;font-weight:700;color:#666d76}
.phase12-mobile-checkout{display:none}
.phase12-empty-cart{padding:70px 30px;border:1px solid var(--store-border);border-radius:12px}
.phase12-empty-icon{width:72px;height:72px;display:flex;align-items:center;justify-content:center;margin:0 auto 18px;border-radius:50%;background:#fff7d6;font-size:30px}
.phase12-empty-cart h3{font-size:23px}
.phase12-empty-cart p{max-width:460px;margin:0 auto 22px;color:var(--store-muted)}
.phase12-cart-notice{position:fixed;right:24px;bottom:24px;z-index:1000;max-width:320px;padding:12px 16px;border-radius:8px;background:#111827;color:#fff;font-size:11px;font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,.18);opacity:0;transform:translateY(10px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.phase12-cart-notice.is-visible{opacity:1;transform:translateY(0)}
.phase12-clear-cart.is-loading{opacity:.6;pointer-events:none}
@media(max-width:1100px){.phase12-cart-item{grid-template-columns:90px minmax(0,1fr) auto 105px 30px;gap:12px}.phase12-cart-image{width:90px;height:90px}}
@media(max-width:900px){.phase12-cart-hero{align-items:flex-start;flex-direction:column;gap:15px}.phase12-cart-layout{grid-template-columns:1fr}.phase12-cart-summary{position:static}}
@media(max-width:640px){
 .phase12-cart-page{padding-top:25px;padding-bottom:90px}.phase12-cart-hero h1{font-size:30px}
 .phase12-cart-item{grid-template-columns:76px minmax(0,1fr) 28px;gap:10px;padding:10px}.phase12-cart-image{width:76px;height:76px}
 .phase12-cart-info h3{font-size:12px}.phase12-quantity{grid-column:2;justify-self:start}
 .phase12-line-total-wrap{grid-column:2;grid-row:3;justify-self:start;align-items:flex-start}.phase12-remove{grid-column:3;grid-row:1}
 .phase12-cart-summary{display:none}
 .phase12-mobile-checkout{position:fixed;left:0;right:0;bottom:0;z-index:500;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 14px;background:#fff;border-top:1px solid #ddd;box-shadow:0 -5px 20px rgba(0,0,0,.08)}
 .phase12-mobile-checkout>div{display:flex;flex-direction:column}.phase12-mobile-checkout span{font-size:9px;color:#858b93}.phase12-mobile-checkout strong{font-size:16px}
 .phase12-mobile-checkout a{padding:12px 17px;border-radius:7px;background:#ffc400;color:#111;font-size:11px;font-weight:800}
}

/* ============================================================
   Phase 13 - Checkout + Billing/Shipping UI
   ============================================================ */
.phase13-checkout-page{
    padding-top:42px;
    padding-bottom:80px;
}
.phase13-checkout-hero{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:30px;
    margin-bottom:28px;
}
.phase13-checkout-hero h1{
    margin:5px 0 7px;
    font-size:38px;
    letter-spacing:-1.2px;
}
.phase13-checkout-hero p{
    margin:0;
    color:var(--store-muted);
    font-size:13px;
}
.phase13-checkout-steps{
    display:flex;
    align-items:center;
    gap:10px;
    padding-bottom:5px;
}
.phase13-checkout-steps span{
    display:flex;
    align-items:center;
    gap:7px;
    color:#9aa0a8;
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
}
.phase13-checkout-steps span.is-active{
    color:#111827;
}
.phase13-checkout-steps b{
    width:24px;
    height:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#e8eaed;
    font-size:10px;
}
.phase13-checkout-steps .is-active b{
    background:#ffc400;
    color:#111827;
}
.phase13-checkout-steps i{
    width:34px;
    height:1px;
    background:#dfe2e5;
}
.phase13-checkout-error{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 16px;
    margin-bottom:20px;
    border:1px solid #f1b6b1;
    border-radius:8px;
    background:#fff5f4;
    color:#a52a21;
    font-size:11px;
}
.phase13-checkout-error strong{
    font-size:12px;
}
.phase13-checkout-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:30px;
    align-items:start;
}
.phase13-checkout-main{
    display:flex;
    flex-direction:column;
    gap:16px;
}
.phase13-checkout-card{
    padding:24px;
    border:1px solid var(--store-border);
    border-radius:10px;
    background:#fff;
}
.phase13-card-heading{
    display:flex;
    align-items:center;
    gap:13px;
    margin-bottom:20px;
}
.phase13-card-number{
    width:36px;
    height:36px;
    flex:0 0 36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    background:#fff6cf;
    color:#111827;
    font-size:11px;
    font-weight:800;
}
.phase13-card-heading .eyebrow{
    margin:0 0 2px;
}
.phase13-card-heading h2{
    margin:0;
    font-size:19px;
    letter-spacing:-.2px;
}
.phase13-customer-details{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    padding:15px;
    border-radius:7px;
    background:#f7f8fa;
}
.phase13-customer-details div{
    min-width:0;
}
.phase13-customer-details span{
    display:block;
    margin-bottom:4px;
    color:#8b929a;
    font-size:9px;
    text-transform:uppercase;
    letter-spacing:.5px;
}
.phase13-customer-details strong{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:11px;
}
.phase13-change-account{
    display:inline-block;
    margin-top:12px;
    color:#737a83;
    font-size:10px;
    font-weight:700;
}
.phase13-address-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.phase13-field{
    min-width:0;
}
.phase13-field-full{
    grid-column:1 / -1;
}
.phase13-checkout-card label:not(.phase13-same-address):not(.phase13-shipping-option){
    display:block;
    margin:0 0 6px;
    color:#343a40;
    font-size:10px;
    font-weight:700;
}
.phase13-checkout-card label em{
    color:#e52323;
    font-style:normal;
}
.phase13-checkout-card label span{
    color:#9aa0a8;
    font-weight:400;
}
.phase13-checkout-card .store-input{
    width:100%;
    min-height:43px;
    border:1px solid #dfe2e5;
    border-radius:6px;
    background:#fff;
    padding:10px 12px;
    font-size:11px;
    outline:none;
}
.phase13-checkout-card .store-input:focus{
    border-color:#ffc400;
    box-shadow:0 0 0 3px rgba(255,196,0,.12);
}
.phase13-same-address{
    display:flex!important;
    align-items:center;
    gap:10px;
    margin-bottom:18px!important;
    padding:12px 13px;
    border:1px solid #e8e9eb;
    border-radius:7px;
    cursor:pointer;
}
.phase13-same-address input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}
.phase13-checkmark{
    width:19px;
    height:19px;
    flex:0 0 19px;
    border:1px solid #b9bec5;
    border-radius:4px;
    position:relative;
}
.phase13-same-address input:checked + .phase13-checkmark{
    border-color:#ffc400;
    background:#ffc400;
}
.phase13-same-address input:checked + .phase13-checkmark:after{
    content:'✓';
    position:absolute;
    left:3px;
    top:0;
    color:#111827;
    font-size:13px;
    font-weight:800;
}
.phase13-same-address>span:last-child{
    display:flex;
    flex-direction:column;
}
.phase13-same-address strong{
    font-size:11px;
}
.phase13-same-address small{
    margin-top:2px;
    color:#8b929a;
    font-size:9px;
}
#phase13-shipping-fields{
    transition:opacity .18s ease;
}
#phase13-shipping-fields.is-disabled{
    opacity:.62;
}
.phase13-shipping-option{
    display:flex!important;
    align-items:center;
    gap:12px;
    margin:0 0 10px!important;
    padding:15px;
    border:1px solid #dfe2e5;
    border-radius:8px;
    cursor:pointer;
}
.phase13-shipping-option:has(input:checked){
    border-color:#ffc400;
    background:#fffaf0;
}
.phase13-shipping-option input{
    position:absolute;
    opacity:0;
}
.phase13-radio{
    width:18px;
    height:18px;
    flex:0 0 18px;
    border:1px solid #aeb4bc;
    border-radius:50%;
    position:relative;
}
.phase13-shipping-option input:checked + .phase13-radio{
    border-color:#ffc400;
}
.phase13-shipping-option input:checked + .phase13-radio:after{
    content:'';
    position:absolute;
    width:8px;
    height:8px;
    left:4px;
    top:4px;
    border-radius:50%;
    background:#ffc400;
}
.phase13-shipping-copy{
    display:flex!important;
    flex-direction:column;
    flex:1;
    gap:3px;
}
.phase13-shipping-copy strong{
    color:#222831!important;
    font-size:11px;
}
.phase13-shipping-copy small{
    color:#8b929a!important;
    font-size:9px;
    font-weight:400!important;
}
.phase13-shipping-price{
    color:#16833a!important;
    font-size:11px;
}
.phase13-shipping-info{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:14px;
    padding:11px 12px;
    border-radius:7px;
    background:#f7f8fa;
}
.phase13-shipping-info>span{
    font-size:17px;
}
.phase13-shipping-info strong{
    display:block;
    font-size:10px;
}
.phase13-shipping-info small{
    display:block;
    margin-top:2px;
    color:#8b929a;
    font-size:9px;
}
.phase13-notes{
    min-height:95px!important;
    resize:vertical;
}
.phase13-payment-preview{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:14px 16px;
    border:1px solid #e4e6e9;
    border-radius:8px;
    background:#fafbfc;
}
.phase13-payment-preview>div{
    display:flex;
    align-items:center;
    gap:10px;
}
.phase13-payment-icon{
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#e9f7ec;
    color:#16833a;
    font-weight:800;
}
.phase13-payment-preview strong{
    display:block;
    font-size:10px;
}
.phase13-payment-preview small{
    display:block;
    margin-top:2px;
    color:#8b929a;
    font-size:9px;
}
.phase13-payment-badge{
    padding:5px 8px;
    border-radius:4px;
    background:#e8f0ff;
    color:#345b9a;
    font-size:9px;
    font-weight:800;
}
.phase13-submit{
    display:flex!important;
    justify-content:space-between;
    align-items:center;
    width:100%;
    min-height:52px;
    padding:0 20px!important;
    border:0;
    border-radius:8px;
    background:#ffc400!important;
    color:#111827!important;
    font-size:12px!important;
    font-weight:800!important;
    cursor:pointer;
}
.phase13-submit:hover{
    background:#ffcf27!important;
}
.phase13-submit b{
    font-size:18px;
}
.phase13-checkout-sidebar{
    position:sticky;
    top:95px;
}
.phase13-order-summary{
    padding:24px;
    border:1px solid var(--store-border);
    border-top:3px solid #ffc400;
    border-radius:10px;
    background:#fff;
}
.phase13-summary-title h2{
    margin:5px 0 18px;
    font-size:22px;
}
.phase13-summary-products{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding-bottom:15px;
    border-bottom:1px solid #e7e8ea;
}
.phase13-summary-product{
    display:grid;
    grid-template-columns:52px minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
}
.phase13-summary-image{
    width:52px;
    height:52px;
    position:relative;
    overflow:visible;
    border:1px solid #e7e8ea;
    border-radius:6px;
    background:#f7f8f9;
}
.phase13-summary-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:5px;
}
.phase13-summary-image>span{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
}
.phase13-summary-image b{
    position:absolute;
    right:-7px;
    top:-7px;
    min-width:18px;
    height:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 4px;
    border-radius:10px;
    background:#111827;
    color:#fff;
    font-size:8px;
}
.phase13-summary-product>div:nth-child(2){
    min-width:0;
}
.phase13-summary-product>div:nth-child(2) strong{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:10px;
}
.phase13-summary-product small{
    display:block;
    margin-top:3px;
    color:#8b929a;
    font-size:8px;
}
.phase13-summary-product>strong{
    font-size:10px;
    white-space:nowrap;
}
.phase13-summary-calculation{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:15px 0;
}
.phase13-summary-calculation div{
    display:flex;
    justify-content:space-between;
    gap:15px;
    font-size:11px;
}
.phase13-summary-calculation span{
    color:#777f88;
}
.phase13-summary-calculation strong{
    font-weight:700;
}
.phase13-summary-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:15px;
    border-top:1px solid #e7e8ea;
}
.phase13-summary-total span{
    font-size:14px;
    font-weight:700;
}
.phase13-summary-total strong{
    color:#e52323;
    font-size:20px;
}
.phase13-secure-checkout{
    display:flex;
    align-items:center;
    gap:9px;
    margin-top:17px;
    padding:11px;
    border-radius:7px;
    background:#f7f8fa;
}
.phase13-secure-checkout>span{
    width:25px;
    height:25px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#e9f7ec;
    color:#16833a;
    font-weight:800;
}
.phase13-secure-checkout strong{
    display:block;
    font-size:9px;
}
.phase13-secure-checkout small{
    display:block;
    color:#8b929a;
    font-size:8px;
}
.phase13-back-cart{
    display:block;
    margin-top:13px;
    text-align:center;
    font-size:10px;
    font-weight:700;
    color:#6e757d;
}
@media(max-width:900px){
    .phase13-checkout-layout{
        grid-template-columns:1fr;
    }
    .phase13-checkout-sidebar{
        position:static;
        grid-row:1;
    }
    .phase13-checkout-main{
        grid-row:2;
    }
}
@media(max-width:640px){
    .phase13-checkout-page{
        padding-top:25px;
        padding-bottom:50px;
    }
    .phase13-checkout-hero{
        align-items:flex-start;
        flex-direction:column;
        gap:15px;
    }
    .phase13-checkout-hero h1{
        font-size:30px;
    }
    .phase13-checkout-steps{
        display:none;
    }
    .phase13-checkout-card{
        padding:17px;
    }
    .phase13-customer-details{
        grid-template-columns:1fr;
    }
    .phase13-address-grid{
        grid-template-columns:1fr;
        gap:12px;
    }
    .phase13-field-full{
        grid-column:auto;
    }
    .phase13-payment-preview{
        align-items:flex-start;
        flex-direction:column;
    }
}

/* ============================================================
   Phase 14 - Razorpay Payment
   ============================================================ */
.phase14-payment-page{padding-top:55px;padding-bottom:90px}
.phase14-payment-wrap{max-width:980px;margin:0 auto}
.phase14-payment-header{text-align:center;margin-bottom:30px}
.phase14-payment-header h1{margin:6px 0 7px;font-size:36px;letter-spacing:-1px}
.phase14-payment-header p{margin:0;color:var(--store-muted);font-size:12px}
.phase14-payment-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}
.phase14-payment-card{padding:30px;border:1px solid var(--store-border);border-top:3px solid #ffc400;border-radius:10px;background:#fff}
.phase14-payment-status{display:flex;align-items:center;gap:12px;padding-bottom:22px;border-bottom:1px solid #e7e8ea}
.phase14-payment-check{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e9f7ec;color:#16833a;font-weight:800}
.phase14-payment-status strong{display:block;font-size:12px}
.phase14-payment-status small{display:block;margin-top:3px;color:#8b929a;font-size:9px}
.phase14-payment-amount{text-align:center;padding:30px 0 25px}
.phase14-payment-amount span{display:block;color:#8b929a;font-size:10px;text-transform:uppercase;letter-spacing:.6px}
.phase14-payment-amount strong{display:block;margin-top:7px;color:#e52323;font-size:32px}
.phase14-pay-button{width:100%;min-height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border:0;border-radius:8px;background:#ffc400;color:#111827;font-size:12px;font-weight:800;cursor:pointer}
.phase14-pay-button:hover{background:#ffcf27}
.phase14-pay-button:disabled{opacity:.6;cursor:not-allowed}
.phase14-pay-button b{font-size:18px}
.phase14-payment-processing{display:none;align-items:center;justify-content:center;gap:10px;margin-top:15px;padding:12px;border-radius:7px;background:#f7f8fa}
.phase14-payment-processing.is-visible{display:flex}
.phase14-payment-processing strong{display:block;font-size:10px}
.phase14-payment-processing small{display:block;margin-top:2px;color:#8b929a;font-size:8px}
.phase14-payment-error{display:none;margin-top:13px;padding:11px 13px;border-radius:7px;background:#fff1f0;color:#a52a21;font-size:10px}
.phase14-payment-error.is-visible{display:block}
.phase14-payment-trust{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:24px}
.phase14-payment-trust>div{padding:10px;text-align:center;border:1px solid #e8e9eb;border-radius:7px;background:#fafbfc}
.phase14-payment-trust span{display:block;font-size:14px}
.phase14-payment-trust strong{display:block;margin-top:4px;font-size:9px}
.phase14-payment-trust small{display:block;margin-top:2px;color:#8b929a;font-size:7px}
.phase14-back-cart{display:block;margin-top:18px;text-align:center;color:#717982;font-size:10px;font-weight:700}
.phase14-order-mini{position:sticky;top:95px;padding:22px;border:1px solid var(--store-border);border-radius:10px;background:#fff}
.phase14-order-mini h2{margin:5px 0 18px;font-size:20px}
.phase14-mini-row{display:flex;justify-content:space-between;padding:9px 0;font-size:10px}
.phase14-mini-row span{color:#7b838c}
.phase14-mini-total{display:flex;justify-content:space-between;margin-top:6px;padding-top:14px;border-top:1px solid #e7e8ea}
.phase14-mini-total span{font-size:13px;font-weight:700}
.phase14-mini-total strong{color:#e52323;font-size:17px}
.phase14-order-mini p{margin:17px 0 0;padding-top:14px;border-top:1px solid #e7e8ea;color:#8b929a;font-size:9px;line-height:1.5}
@media(max-width:760px){
 .phase14-payment-page{padding-top:30px}
 .phase14-payment-header h1{font-size:29px}
 .phase14-payment-layout{grid-template-columns:1fr}
 .phase14-order-mini{position:static}
 .phase14-payment-card{padding:20px}
}

/* Phase 14 cart action fix */
.add-to-cart.is-added,
.product-button.is-added,
[data-buy-now].is-added{
    background:#1f9d55 !important;
    color:#fff !important;
}

/* ============================================================
   Phase 15 - Order Success / My Orders / Order Details
   ============================================================ */
.phase15-page{padding-top:48px;padding-bottom:85px}.phase15-wrap{max-width:1080px;margin:0 auto}.phase15-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}.phase15-heading h1{margin:6px 0 5px;font-size:34px;letter-spacing:-.7px}.phase15-heading p{margin:0;color:var(--store-muted);font-size:11px}.phase15-outline-btn,.phase15-primary-btn,.phase15-text-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 17px;border-radius:7px;font-size:10px;font-weight:800;text-decoration:none}.phase15-outline-btn{border:1px solid var(--store-border);background:#fff;color:#4d555d}.phase15-primary-btn{border:1px solid #ffc400;background:#ffc400;color:#111827}.phase15-text-btn{color:#737b84}.phase15-orders-card,.phase15-panel,.phase15-success-summary,.phase15-success-card{background:#fff;border:1px solid var(--store-border);border-radius:10px}.phase15-table-head,.phase15-order-row{display:grid;grid-template-columns:1.1fr 1.3fr 1fr 1fr 1fr .6fr;gap:12px;align-items:center}.phase15-table-head{padding:13px 18px;background:#f8f9fa;border-bottom:1px solid #e7e8ea;color:#858d96;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.6px}.phase15-order-row{padding:17px 18px;border-bottom:1px solid #eef0f2;font-size:9px;color:#656e77}.phase15-order-row:last-child{border-bottom:0}.phase15-order-row strong{color:#222a31}.phase15-order-row small{display:block;margin-top:3px;color:#9aa1a8;font-size:7px}.phase15-view-btn{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 12px;border-radius:5px;background:#f5f6f7;color:#3e464d;text-decoration:none;font-size:8px;font-weight:800}.phase15-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 7px;border-radius:20px;background:#f1f3f5;color:#606972;font-size:7px;font-weight:800}.phase15-badge.paid,.phase15-badge.confirmed,.phase15-badge.completed,.phase15-badge.captured{background:#eaf7ee;color:#19813e}.phase15-badge.pending,.phase15-badge.processing,.phase15-badge.created{background:#fff7df;color:#916b00}.phase15-badge.failed,.phase15-badge.cancelled,.phase15-badge.signature_failed{background:#fff0ef;color:#b02d24}.phase15-pagination{display:flex;justify-content:center;gap:6px;margin-top:22px}.phase15-pagination a{min-width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:1px solid var(--store-border);border-radius:5px;background:#fff;color:#69727b;text-decoration:none;font-size:9px;font-weight:800}.phase15-pagination a.active{background:#ffc400;border-color:#ffc400;color:#111827}.phase15-empty{text-align:center;padding:65px 25px;background:#fff;border:1px solid var(--store-border);border-radius:10px}.phase15-empty-icon{font-size:34px;margin-bottom:12px}.phase15-empty h2{margin:0 0 6px;font-size:20px}.phase15-empty p{margin:0 0 20px;color:#8b929a;font-size:10px}.phase15-status-banner{display:flex;justify-content:space-between;gap:20px;margin-bottom:18px;padding:16px 20px;border:1px solid var(--store-border);border-radius:9px;background:#fff}.phase15-status-banner>div{display:flex;align-items:center;gap:10px}.phase15-status-dot{width:9px;height:9px;border-radius:50%;background:#ffc400}.phase15-status-dot.payment{background:#2a9d5b}.phase15-status-banner strong{display:block;font-size:10px}.phase15-status-banner small{display:block;margin-top:2px;color:#8b929a;font-size:7px}.phase15-detail-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:18px}.phase15-panel{padding:20px}.phase15-panel+.phase15-panel{margin-top:18px}.phase15-panel-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.phase15-panel-title h2{margin:0;font-size:15px}.phase15-panel-title span{color:#8b929a;font-size:8px}.phase15-item{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:13px;align-items:center;padding:13px 0;border-bottom:1px solid #eef0f2}.phase15-item-image{width:54px;height:54px;border:1px solid #e7e9eb;border-radius:6px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fafafa;color:#a0a6ac;font-size:7px}.phase15-item-image img{width:100%;height:100%;object-fit:cover}.phase15-item-main strong{display:block;font-size:10px;color:#222a31}.phase15-item-main small{display:block;margin-top:4px;color:#89919a;font-size:8px}.phase15-item-total{font-size:10px;color:#222a31}.phase15-total-box{margin-top:17px;padding-top:14px;border-top:1px solid #e5e7e9}.phase15-total-box>div{display:flex;justify-content:space-between;padding:6px 0;font-size:9px}.phase15-total-box span{color:#7e8790}.phase15-total-box .grand{margin-top:5px;padding-top:12px;border-top:1px solid #e7e8ea;font-size:12px}.phase15-total-box .grand strong{color:#e52323}.phase15-info-list>div,.phase15-address>div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #eef0f2;font-size:8px}.phase15-info-list>div:last-child,.phase15-address>div:last-child{border-bottom:0}.phase15-info-list span,.phase15-address span{color:#8b929a}.phase15-info-list strong,.phase15-address strong{text-align:right;color:#303840;font-size:8px}.phase15-info-list strong.break{max-width:180px;overflow-wrap:anywhere}.phase15-address .address-block{display:block}.phase15-address .address-block strong{display:block;text-align:left;margin-top:6px;line-height:1.55}.phase15-payment-pending{padding:14px;border-radius:7px;background:#fff8e5}.phase15-payment-pending strong{font-size:9px}.phase15-payment-pending p{margin:5px 0 0;color:#8b929a;font-size:8px}.phase15-no-items{padding:20px;color:#8b929a;font-size:9px;text-align:center}.phase15-success-wrap{max-width:780px;margin:0 auto}.phase15-success-card{text-align:center;padding:45px 35px;border-top:3px solid #ffc400}.phase15-success-icon{width:64px;height:64px;margin:0 auto 18px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#eaf7ee;color:#19813e;font-size:30px;font-weight:800}.phase15-success-card h1{margin:8px 0 8px;font-size:32px}.phase15-success-card>p{margin:0;color:#7e8790;font-size:11px}.phase15-success-card>p strong{color:#20282f}.phase15-success-payment{display:inline-flex;flex-direction:column;gap:4px;margin:25px auto;padding:13px 24px;border:1px solid #e4e7e9;border-radius:8px;background:#fafbfc}.phase15-success-payment span{color:#8b929a;font-size:8px;text-transform:uppercase}.phase15-success-payment strong{color:#19813e;font-size:11px}.phase15-success-payment small{color:#8b929a;font-size:7px}.phase15-success-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px}.phase15-success-summary{margin-top:18px;padding:20px}.phase15-success-item{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid #eef0f2;font-size:9px}.phase15-success-item strong{display:block}.phase15-success-item small{display:block;margin-top:3px;color:#8b929a;font-size:7px}@media(max-width:800px){.phase15-table-head{display:none}.phase15-order-row{grid-template-columns:1fr 1fr;padding:16px}.phase15-order-row>div:nth-child(3),.phase15-order-row>div:nth-child(4),.phase15-order-row>div:nth-child(5){display:flex;align-items:center;justify-content:space-between}.phase15-order-row>div:nth-child(6){grid-column:2;text-align:right}.phase15-detail-grid{grid-template-columns:1fr}.phase15-heading{align-items:flex-start;flex-direction:column}.phase15-status-banner{flex-direction:column}.phase15-success-card{padding:35px 20px}}@media(max-width:520px){.phase15-heading h1{font-size:28px}.phase15-item{grid-template-columns:45px minmax(0,1fr)}.phase15-item-image{width:45px;height:45px}.phase15-item-total{grid-column:2}.phase15-success-actions{flex-direction:column}.phase15-success-actions a{width:100%}}

/* Phase 15 - Human-readable shipping/billing address */
.phase15-address-display {
    display: block !important;
    padding: 12px 0 !important;
}

.phase15-address-display > span:first-child {
    display: block;
    margin-bottom: 7px;
    color: #8b929a;
    font-size: 8px;
    font-weight: 500;
}

.phase15-address-display > strong {
    display: block !important;
    text-align: left !important;
    color: #303840 !important;
    font-size: 9px !important;
    line-height: 1.65 !important;
}

.phase15-address-display > strong > span {
    display: block;
}

.phase15-delivery-box {
    margin: 5px 0 10px;
    padding: 11px 13px;
    border-radius: 6px;
    background: #fff9df;
    border-left: 3px solid #ffc400;
}

.phase15-delivery-box strong {
    display: block !important;
    color: #303840 !important;
    font-size: 9px !important;
    text-align: left !important;
}

.phase15-delivery-box span {
    display: block;
    margin-top: 3px;
    color: #737b84;
    font-size: 8px;
    line-height: 1.5;
}

.phase15-delivery-box small {
    display: block;
    margin-top: 4px;
    color: #8b929a;
    font-size: 7px;
}

.phase15-billing-block {
    margin-top: 7px;
    padding-top: 17px !important;
    border-top: 1px solid #eef0f2;
}

/* ============================================================
   Phase 16 - Customer account, category navigation and links
   ============================================================ */
.ps-account-menu{position:relative;display:inline-flex;align-items:center}
.ps-account-trigger{border:0;background:transparent;cursor:pointer;display:inline-flex;align-items:center;gap:6px;color:inherit;font:inherit;padding:6px 4px}
.ps-account-label{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ps-account-chevron{font-size:12px}
.ps-account-dropdown,.ps-category-dropdown,.ps-nav-category-dropdown{display:none;position:absolute;z-index:1000;background:#fff;border:1px solid #e7eaee;box-shadow:0 12px 30px rgba(16,24,40,.12)}
.ps-account-dropdown{top:calc(100% + 8px);right:0;min-width:180px;padding:7px;border-radius:8px}
.ps-account-menu.open .ps-account-dropdown{display:block}
.ps-account-dropdown a,.ps-category-dropdown a,.ps-nav-category-dropdown a{display:block;color:#283039;text-decoration:none}
.ps-account-dropdown a{padding:9px 11px;border-radius:5px;font-size:13px}
.ps-account-dropdown a:hover,.ps-category-dropdown a:hover,.ps-nav-category-dropdown a:hover{background:#fff7d8;color:#111827}
.ps-account-divider{height:1px;background:#edf0f3;margin:5px 0}
.ps-account-logout{color:#c62828!important}
.ps-category-menu,.ps-nav-category-menu{position:relative}
.ps-category-menu:hover .ps-category-dropdown,.ps-nav-category-menu:hover .ps-nav-category-dropdown{display:block}
.ps-category-dropdown{top:100%;left:0;width:260px;max-height:420px;overflow-y:auto;padding:8px}
.ps-category-dropdown a{padding:9px 12px;font-size:13px;border-radius:4px}
.ps-nav-category-dropdown{top:100%;left:0;width:230px;max-height:420px;overflow-y:auto;padding:8px}
.ps-nav-category-dropdown a{padding:8px 10px;font-size:12px;border-radius:4px}
.phase16-wrap{max-width:1180px;margin:0 auto;padding:55px 20px 70px}
.phase16-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.phase16-profile{display:flex;align-items:center;gap:18px;padding:24px}
.phase16-avatar{width:58px;height:58px;border-radius:50%;background:#ffc400;color:#172033;display:flex;align-items:center;justify-content:center;font-size:23px;font-weight:800}
.phase16-profile h3{margin:0 0 6px;font-size:20px}
.phase16-profile p{margin:3px 0;color:#6f7881;font-size:13px}
.phase16-links{padding:10px}
.phase16-links a{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 16px;margin:3px 0;border-radius:7px;text-decoration:none;color:#283039}
.phase16-links a:hover{background:#fff8dd}
.phase16-links strong{font-size:13px}
.phase16-links span{color:#7b838b;font-size:11px}
.phase16-links .logout{color:#c62828}
.phase16-info-panel{padding:30px}
.phase16-info-panel h2{margin-top:0}
.phase16-info-panel p{color:#66717c;line-height:1.8}
.phase16-contact-list{display:grid;gap:10px;margin-top:20px}
.phase16-contact-list div,.phase16-faq{padding:16px;background:#f7f9fb;border-radius:7px}
.phase16-contact-list strong{display:block;margin-bottom:5px}
.phase16-contact-list span{color:#66717c}
.phase16-faq{margin-top:12px}
.phase16-faq strong{display:block;margin-bottom:6px}
.phase16-faq p{margin:0}
@media(max-width:850px){
.phase16-grid{grid-template-columns:1fr}
.ps-account-label{display:none}
.ps-header-search{order:3;width:100%}
.ps-header-main{flex-wrap:wrap}
}


/* ============================================================
   Phase 16.1 - Header All Categories dropdown
   ============================================================ */
.ps-header-search {
    position: relative;
}

.ps-header-category {
    position: relative;
    flex: 0 0 205px;
    height: 100%;
    min-width: 205px;
    border-right: 1px solid #e4e4e4;
}

.ps-header-category-trigger {
    width: 100%;
    height: 100%;
    min-height: 48px;
    border: 0;
    background: #fff;
    color: #333;
    padding: 0 16px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    text-align: left;
}

.ps-header-category-trigger:hover {
    background: #fffdf3;
}

.ps-header-category-arrow {
    font-size: 16px;
    line-height: 1;
    transition: transform .18s ease;
}

.ps-header-category.open .ps-header-category-arrow {
    transform: rotate(180deg);
}

.ps-header-category-current {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ps-header-category-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 250px;
    max-height: 360px;
    overflow-y: auto;
    padding: 7px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(17, 24, 39, .16);
    z-index: 3000;
    display: none;
}

.ps-header-category.open .ps-header-category-dropdown {
    display: block;
}

.ps-header-category-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #27313b;
    padding: 10px 12px;
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
}

.ps-header-category-option:hover,
.ps-header-category-option:focus {
    background: #fff5c7;
    color: #111827;
    outline: none;
}

.ps-header-category-dropdown::-webkit-scrollbar {
    width: 6px;
}

.ps-header-category-dropdown::-webkit-scrollbar-thumb {
    background: #d7d7d7;
    border-radius: 10px;
}

@media (max-width: 850px) {
    .ps-header-category {
        flex-basis: 165px;
        min-width: 165px;
    }

    .ps-header-category-dropdown {
        width: 220px;
    }
}


/* ============================================================
   Phase 16.2 - Approved header search/category/menu alignment
   ============================================================ */

/* Search pill */
.ps-header-search{
    height:48px;
    min-width:0;
    border:2px solid var(--ps-yellow);
    border-radius:25px;
    display:flex;
    align-items:stretch;
    overflow:visible;
    background:#fff;
    position:relative;
}

.ps-header-category{
    position:relative;
    flex:0 0 174px;
    min-width:174px;
    height:44px;
    border-right:1px solid #e5e5e5;
    z-index:3100;
}

.ps-header-category-trigger{
    width:100%;
    height:44px;
    min-height:44px;
    padding:0 14px 0 18px;
    border:0;
    background:#fff;
    color:#333;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    cursor:pointer;
    font:inherit;
    font-size:13px;
    font-weight:500;
    text-align:left;
    border-radius:23px 0 0 23px;
}

.ps-header-category-trigger:hover{
    background:#fffdf4;
}

.ps-header-category-arrow{
    font-size:14px;
    color:#777;
    line-height:1;
    transition:transform .18s ease;
}

.ps-header-category.open .ps-header-category-arrow{
    transform:rotate(180deg);
}

.ps-header-category-current{
    display:block;
    max-width:135px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.ps-header-category-dropdown{
    position:absolute;
    top:49px;
    left:-2px;
    width:245px;
    max-height:360px;
    overflow-y:auto;
    padding:7px;
    background:#fff;
    border:1px solid #e1e4e8;
    border-radius:8px;
    box-shadow:0 12px 28px rgba(20,25,30,.15);
    z-index:5000;
    display:none;
}

.ps-header-category.open .ps-header-category-dropdown{
    display:block;
}

.ps-header-category-option{
    display:block;
    width:100%;
    min-height:36px;
    padding:8px 11px;
    border:0;
    border-radius:5px;
    background:#fff;
    color:#30353a;
    cursor:pointer;
    font:inherit;
    font-size:13px;
    text-align:left;
}

.ps-header-category-option:hover,
.ps-header-category-option:focus{
    background:#fff5c7;
    color:#111827;
    outline:none;
}

.ps-header-search input{
    height:44px;
    flex:1;
    min-width:0;
    border:0;
    outline:0;
    padding:0 14px;
    background:#fff;
    color:#333;
    font-size:13px;
}

.ps-header-search > button{
    flex:0 0 48px;
    width:48px;
    height:44px;
    border:0;
    border-radius:0 23px 23px 0;
    background:#fff;
    color:#111;
    cursor:pointer;
    font-size:23px;
    line-height:1;
}

.ps-header-search > button:hover{
    background:#fffdf4;
}

/* Navigation dropdowns */
.ps-yellow-nav{
    position:relative;
    z-index:2500;
}

.ps-nav-inner{
    position:relative;
    z-index:2500;
}

.ps-category-menu,
.ps-nav-category-menu{
    position:relative;
    z-index:2600;
}

.ps-category-dropdown,
.ps-nav-category-dropdown{
    top:100%;
    z-index:6000;
    display:none;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:0 0 7px 7px;
    box-shadow:0 12px 28px rgba(20,25,30,.16);
}

.ps-category-menu:hover .ps-category-dropdown,
.ps-category-menu:focus-within .ps-category-dropdown,
.ps-nav-category-menu:hover .ps-nav-category-dropdown,
.ps-nav-category-menu:focus-within .ps-nav-category-dropdown{
    display:block;
}

.ps-category-dropdown{
    left:0;
    width:260px;
    max-height:420px;
    overflow-y:auto;
    padding:7px;
}

.ps-category-dropdown a{
    display:block;
    padding:9px 12px;
    border-radius:5px;
    color:#27313b;
    text-decoration:none;
    font-size:13px;
}

.ps-category-dropdown a:hover{
    background:#fff5c7;
    color:#111827;
}

.ps-nav-category-dropdown{
    left:0;
    width:245px;
    max-height:420px;
    overflow-y:auto;
    padding:7px;
}

.ps-nav-category-dropdown a{
    display:block;
    padding:8px 10px;
    border-radius:5px;
    color:#27313b;
    text-decoration:none;
    font-size:12px;
}

.ps-nav-category-dropdown a:hover{
    background:#fff5c7;
    color:#111827;
}

.ps-nav-chevron{
    margin-left:3px;
    font-size:10px;
    line-height:1;
}

@media(max-width:850px){
    .ps-header-category{
        flex-basis:145px;
        min-width:145px;
    }

    .ps-header-category-current{
        max-width:108px;
    }

    .ps-header-category-dropdown{
        width:220px;
    }
}


/* ============================================================
   Phase 16.3 - Final approved main menu/header treatment
   ============================================================ */

/* Golden navigation is a full-width container. */
.ps-yellow-nav{
    position:relative;
    z-index:2500;
    width:100%;
    min-height:50px;
    background:#ffc400;
}

/* Keep the black Shop By Categories block at exactly the
   same height as the golden navigation container. */
.ps-yellow-nav .ps-nav-inner{
    position:relative;
    z-index:2500;
    min-height:50px;
    height:50px;
    display:flex;
    align-items:stretch;
}

.ps-category-menu{
    position:relative;
    z-index:2600;
    flex:0 0 300px;
    min-width:300px;
    height:50px;
    align-self:stretch;
}

.ps-category-button{
    height:50px !important;
    min-height:50px !important;
    width:100%;
    box-sizing:border-box;
    display:flex !important;
    align-items:center !important;
    gap:12px;
    padding:0 22px !important;
    margin:0;
    background:#101722 !important;
    color:#fff !important;
    border-radius:0 !important;
    text-decoration:none !important;
    font-size:15px;
    font-weight:600;
    line-height:1;
}

.ps-category-button:hover{
    background:#0b1018 !important;
    color:#fff !important;
}

.ps-category-menu-icon{
    font-size:18px;
    line-height:1;
}

/* Main menu contains ONLY Home / Store / Offers / Hot Deals. */
.ps-main-menu{
    display:flex;
    align-items:stretch;
    height:50px;
    min-height:50px;
    flex:1;
}

.ps-main-menu > a{
    height:50px;
    min-height:50px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    padding:0 27px;
    color:#15191f;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    line-height:1;
    white-space:nowrap;
}

.ps-main-menu > a:hover,
.ps-main-menu > a.active{
    background:rgba(255,255,255,.22);
    color:#111827;
}

.ps-main-menu > a:last-child{
    margin-left:auto;
    padding-right:0;
}

/* Category dropdown stays attached to the black category block. */
.ps-category-menu .ps-category-dropdown{
    top:50px !important;
    left:0;
    z-index:6000;
}

/* Ensure the old category-menu styles don't create a second
   visible navigation treatment. */
.ps-nav-category-menu{
    display:none !important;
}

@media(max-width:850px){
    .ps-yellow-nav .ps-nav-inner{
        height:50px;
        min-height:50px;
    }

    .ps-category-menu{
        flex-basis:230px;
        min-width:230px;
    }

    .ps-category-button{
        padding:0 15px !important;
        font-size:13px;
    }

    .ps-main-menu > a{
        padding:0 14px;
        font-size:13px;
    }

    .ps-main-menu > a:last-child{
        margin-left:0;
        padding-right:14px;
    }
}
