/* ============================================================
   BWN PRINTINK - Mobile-First Override Layer
   Loaded AFTER bwn-theme.css to provide mobile-first CSS.
   Base styles = mobile (320px+), then scale UP via min-width.
   ============================================================ */

/* (bottom nav removed) */

/* Prevent horizontal overflow on all devices */
html, body {
    overflow-x: hidden;
}

/* ============================================================
   1. iOS INPUT ZOOM FIX
   iOS Safari auto-zooms viewport when input font-size < 16px
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
    font-size: 16px !important;
}

/* ============================================================
   2. MINIMUM TOUCH TARGETS (44px per Apple HIG / WCAG 2.5.5)
   ============================================================ */
.cart-item .remove-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
}

.pdp-info .size-btn {
    min-width: 44px;
    height: 44px;
}

.qty-selector .qty-btn {
    min-width: 44px;
    height: 44px;
}

.mobile-toggle {
    min-width: 44px;
    min-height: 44px;
}

.admin-mobile-toggle {
    min-width: 44px;
    min-height: 44px;
}

.bwn-pagination .page-btn,
.pagination-wrapper .page-btn {
    min-width: 44px;
    height: 44px;
}

.mobile-nav-overlay a {
    min-height: 44px;
    padding: 14px 0;
}

.admin-sidebar .sidebar-nav a {
    min-height: 44px;
}

/* ============================================================
   3. USER DROPDOWN — CLICK TOGGLE (touch-friendly)
   Keeps :hover on desktop, adds .open class for touch
   ============================================================ */
.bwn-navbar .user-dropdown.open .user-dropdown-menu {
    display: block;
}

/* ============================================================
   4. MOBILE-FIRST SECTION PADDING
   Base = mobile values. Scale up with min-width breakpoints.
   ============================================================ */
.categories-section,
.featured-products,
.how-it-works {
    padding: 48px 20px;
}

.cta-banner {
    padding: 48px 20px;
    height: auto;
}

.bwn-footer {
    padding: 40px 20px 24px;
}

.page-header {
    padding: 32px 20px;
}

.catalog-body {
    padding: 16px 20px 24px;
}

.shop-search-bar {
    padding: 0 20px;
}

.cart-body,
.checkout-body {
    padding: 16px 20px 24px;
}

/* Scale up for tablet */
@media (min-width: 768px) {
    .categories-section,
    .featured-products,
    .how-it-works {
        padding: 64px 40px;
    }

    .cta-banner {
        padding: 64px 40px;
    }

    .bwn-footer {
        padding: 48px 40px 32px;
    }

    .page-header {
        padding: 40px 40px;
    }

    .catalog-body {
        padding: 24px 40px 60px;
    }

    .shop-search-bar {
        padding: 0 40px;
    }

    .cart-body,
    .checkout-body {
        padding: 24px 40px 60px;
    }

}

/* Scale up for desktop */
@media (min-width: 1200px) {
    .categories-section,
    .featured-products,
    .how-it-works {
        padding: 80px;
    }

    .cta-banner {
        padding: 80px;
        height: 420px;
    }

    .bwn-footer {
        padding: 64px 80px 32px;
    }

    .page-header {
        padding: 48px 80px 40px;
    }

    .catalog-body {
        padding: 32px 80px 80px;
    }

    .shop-search-bar {
        padding: 0 80px;
    }

    .cart-body,
    .checkout-body {
        padding: 32px 80px 80px;
    }

}

/* ============================================================
   5. MOBILE-FIRST HERO SECTION
   ============================================================ */
.hero-section {
    height: auto;
    min-height: 420px;
    padding: 60px 20px 40px;
}

.hero-gradient {
    width: 100%;
}

.hero-left {
    max-width: 100%;
    gap: 16px;
}

.hero-title {
    font-size: 36px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 15px;
}

.hero-badge span {
    font-size: 11px;
}

.hero-ctas {
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.hero-ctas a {
    width: 100%;
    justify-content: center;
}

.hero-next {
    right: 16px;
    width: 40px;
    height: 40px;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 0 40px;
    }

    .hero-left {
        max-width: 450px;
        gap: 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-desc {
        font-size: 17px;
    }

    .hero-ctas {
        flex-direction: row;
        width: auto;
    }

    .hero-ctas a {
        width: auto;
    }

    .hero-next {
        right: 24px;
        width: 48px;
        height: 48px;
    }
}

@media (min-width: 1200px) {
    .hero-section {
        height: 600px;
        padding: 0 80px;
    }

    .hero-left {
        max-width: 500px;
        gap: 24px;
    }

    .hero-title {
        font-size: 64px;
        letter-spacing: -2px;
    }

    .hero-desc {
        font-size: 18px;
    }

    .hero-gradient {
        width: 70%;
    }

    .hero-next {
        right: 32px;
    }
}

/* ============================================================
   6. MOBILE-FIRST PRODUCT GRID
   ============================================================ */

/* Mobile: 2 columns */
.product-grid,
.catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card .card-image {
    height: 180px;
}

.product-card .card-content {
    padding: 12px;
    gap: 8px;
}

.product-card .product-name {
    font-size: 14px;
}

.product-card .product-price {
    font-size: 16px;
}

/* Tablet: 3 columns */
@media (min-width: 640px) {
    .product-grid,
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .product-card .card-image {
        height: 220px;
    }

    .product-card .card-content {
        padding: 14px;
    }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .product-grid,
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .product-card .card-image {
        height: 280px;
    }

    .product-card .card-content {
        padding: 16px;
        gap: 10px;
    }

    .product-card .product-name {
        font-size: 16px;
    }
}

/* ============================================================
   7. SECTION HEADERS — MOBILE
   ============================================================ */
.section-title {
    font-size: 26px;
}

.section-desc {
    font-size: 14px;
}

.page-header h1 {
    font-size: 26px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 32px;
    }

    .page-header h1 {
        font-size: 32px;
    }
}

@media (min-width: 1200px) {
    .section-title {
        font-size: 40px;
    }

    .section-desc {
        font-size: 16px;
    }

    .page-header h1 {
        font-size: 36px;
    }
}

/* Featured section header stacks on mobile */
.featured-products .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

@media (min-width: 768px) {
    .featured-products .section-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

/* ============================================================
   8. CATEGORIES — MOBILE
   ============================================================ */
.cat-row {
    flex-direction: column;
}

.cat-card {
    height: 200px;
}

@media (min-width: 640px) {
    .cat-row {
        flex-direction: row;
    }

    .cat-card {
        height: 240px;
    }
}

@media (min-width: 1024px) {
    .cat-card {
        height: 280px;
    }
}

/* ============================================================
   9. STEPS GRID — MOBILE
   ============================================================ */
.steps-grid {
    flex-direction: column;
    gap: 16px;
}

.step-card {
    padding: 24px 20px;
}

@media (min-width: 768px) {
    .steps-grid {
        flex-direction: row;
        gap: 24px;
    }

    .step-card {
        padding: 32px;
    }
}

/* ============================================================
   10. CTA BANNER — MOBILE
   ============================================================ */
.cta-banner h2 {
    font-size: 28px;
}

.cta-banner .cta-buttons {
    flex-direction: column;
    width: 100%;
}

.cta-banner .cta-buttons a,
.cta-banner .cta-buttons button {
    width: 100%;
    justify-content: center;
}

@media (min-width: 768px) {
    .cta-banner h2 {
        font-size: 40px;
    }

    .cta-banner .cta-buttons {
        flex-direction: row;
        width: auto;
    }

    .cta-banner .cta-buttons a,
    .cta-banner .cta-buttons button {
        width: auto;
    }
}

/* ============================================================
   11. FOOTER — MOBILE + TABLET
   Brand full-width on top, then 3 footer-cols in a row.
   At desktop (≥1200px), all 4 items in one row.
   ============================================================ */
.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-brand {
    grid-column: 1 / -1; /* full width */
    width: 100%;
}

.footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

@media (min-width: 1200px) {
    .footer-top {
        display: flex;
        flex-direction: row;
        gap: 64px;
    }

    .footer-brand {
        grid-column: auto;
        width: 320px;
        flex-shrink: 0;
    }

    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

/* ============================================================
   12. NAVBAR — MOBILE
   ============================================================ */
@media (max-width: 1024px) {
    .bwn-navbar {
        padding: 0 20px;
    }
}

/* ============================================================
   13. PDP — MOBILE-FIRST
   ============================================================ */
.pdp-content {
    flex-direction: column;
    padding: 0 16px 40px;
    gap: 20px;
}

.pdp-gallery {
    position: static;
    flex: none;
    width: 100%;
}

.pdp-info h1 {
    font-size: 20px;
}

.pdp-info .current-price {
    font-size: 22px;
}

.pdp-trust-badges {
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .pdp-content {
        flex-direction: row;
        padding: 0 40px 60px;
        gap: 32px;
    }

    .pdp-gallery {
        position: sticky;
        top: 80px;
        flex: 0 0 50%;
    }

    .pdp-info h1 {
        font-size: 24px;
    }

    .pdp-info .current-price {
        font-size: 26px;
    }

    .pdp-trust-badges {
        flex-direction: row;
    }
}

@media (min-width: 1200px) {
    .pdp-content {
        padding: 0 80px 80px;
        gap: 48px;
    }

    .pdp-info h1 {
        font-size: 28px;
    }

    .pdp-info .current-price {
        font-size: 28px;
    }
}

/* ============================================================
   14. CART — MOBILE-FIRST
   ============================================================ */
.cart-body {
    flex-direction: column;
    gap: 24px;
}

.cart-table-header {
    display: none;
}

.cart-item {
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Mobile cart item card layout */
.cart-item .item-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cart-item .item-thumb {
    width: 72px;
    height: 72px;
}

.order-summary {
    width: 100%;
    position: static;
}

/* Cart item mobile — structured 2-row card */
@media (max-width: 767px) {
    .cart-item {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
    }

    .cart-item .item-info {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .cart-item .item-details {
        flex: 1;
        min-width: 0;
    }

    /* Size selector - compact on mobile */
    .cart-item .item-size-selector {
        flex-wrap: wrap;
        gap: 3px;
        margin-top: 4px;
    }

    .cart-item .cart-size-btn {
        width: 28px;
        height: 24px;
        font-size: 10px;
        border-radius: 4px;
    }

    /* Price/Qty/Total row */
    .cart-item .item-price,
    .cart-item .item-qty-control,
    .cart-item .item-total {
        display: flex;
        align-items: center;
        font-size: 14px;
        font-weight: 600;
    }

    .cart-item .item-price::before,
    .cart-item .item-total::before {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 2px;
    }

    .cart-item .item-price,
    .cart-item .item-total {
        flex-direction: column;
        align-items: center;
    }

    .cart-item .item-price::before {
        content: 'Price';
    }

    .cart-item .item-total::before {
        content: 'Total';
    }

    /* Quantity control compact */
    .cart-item .item-qty-control {
        border-radius: 6px;
    }

    .cart-item .cart-qty-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .cart-item .cart-qty-input {
        width: 32px;
        height: 28px;
        font-size: 13px;
    }

    /* Remove button aligned right inline with item-info */
    .cart-item .add-to-cart-form {
        position: absolute;
        right: 0;
        top: 16px;
    }

    .cart-item {
        position: relative;
    }

    .cart-item .remove-btn {
        font-size: 13px;
    }

    /* Create a row for price/qty/total */
    .cart-items .cart-item {
        padding-right: 60px;
    }

    .cart-item .item-price,
    .cart-item .item-qty-control,
    .cart-item .item-total {
        display: inline-flex;
        align-items: center;
        gap: 2px;
    }
}

@media (min-width: 768px) {
    .cart-body {
        flex-direction: row;
        gap: 32px;
    }

    .cart-table-header {
        display: grid;
    }

    .cart-item {
        grid-template-columns: 2fr 1fr auto 1fr auto;
        gap: 16px;
        align-items: center;
    }

    .cart-item .item-thumb {
        width: 72px;
        height: 72px;
    }

    .order-summary {
        width: 360px;
        position: sticky;
        top: 80px;
    }
}

/* ============================================================
   15. CHECKOUT — MOBILE-FIRST
   ============================================================ */
.checkout-body {
    flex-direction: column;
    gap: 24px;
}

.form-row {
    flex-direction: column;
}

.checkout-steps {
    justify-content: center;
}

@media (min-width: 768px) {
    .checkout-body {
        flex-direction: row;
        gap: 32px;
    }

    .form-row {
        flex-direction: row;
    }
}

/* ============================================================
   16. CSS LAYOUT CLASSES — REPLACE INLINE STYLES
   Used in Phase 3 when views are updated
   ============================================================ */

/* Auth pages (login, register) */
.auth-page-wrapper {
    padding: 24px 20px 60px;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px 24px;
}

.auth-card-wide {
    max-width: 560px;
}

@media (min-width: 768px) {
    .auth-page-wrapper {
        padding: 32px 40px 80px;
    }

    .auth-card {
        padding: 40px;
    }
}

@media (min-width: 1200px) {
    .auth-page-wrapper {
        padding: 32px 80px 80px;
    }
}

/* Auth form elements */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    transition: border-color 150ms ease;
}

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

.auth-form-row-2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .auth-form-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--brand-primary);
    font-weight: 600;
}

/* Account profile layout */
.account-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .account-layout {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 48px;
    }
}

/* Contact page layout */
.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-layout {
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 48px;
    }
}

/* Order detail layout */
.order-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .order-detail-layout {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 32px;
    }
}

/* Design services grid */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

@media (min-width: 768px) {
    .services-grid {
        flex-direction: row;
    }
}

/* Interior page section */
.interior-section {
    padding: 16px 20px 24px;
}

@media (min-width: 768px) {
    .interior-section {
        padding: 24px 40px 60px;
    }
}

@media (min-width: 1200px) {
    .interior-section {
        padding: 32px 80px 80px;
    }
}

/* Content card */
.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

@media (min-width: 768px) {
    .content-card {
        padding: 32px;
    }
}

@media (min-width: 1200px) {
    .content-card {
        padding: 40px;
    }
}

/* Card heading */
.card-heading {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .card-heading {
        font-size: 22px;
        margin-bottom: 24px;
    }
}

/* Contact info items */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-info-item i {
    font-size: 20px;
    color: var(--brand-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-info-value {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Business hours */
.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
}

.hours-day {
    color: var(--text-secondary);
}

.hours-time {
    color: var(--text-primary);
    font-weight: 600;
}

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

/* Order table for account pages */
.orders-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead tr {
    background: var(--bg-secondary);
}

.orders-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
}

.orders-table .order-number {
    font-weight: 600;
    color: var(--text-primary);
}

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* Order actions */
.order-actions {
    display: flex;
    gap: 8px;
}

.btn-cancel-order {
    padding: 8px 16px;
    font-size: 13px;
    border: 1px solid var(--error);
    color: var(--error);
    background: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.btn-cancel-order:hover {
    background: rgba(239,68,68,0.08);
}

/* Admin form grids */
.admin-form-grid-2 {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.admin-form-grid-3 {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 768px) {
    .admin-form-grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .admin-form-grid-3 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }
}

/* About page grid */
.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 900px;
}

@media (min-width: 768px) {
    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   17. ADMIN TABLE CARD-VIEW ON MOBILE
   Uses data-label attributes on <td> elements
   ============================================================ */
@media (max-width: 640px) {
    .admin-table-card-mobile thead {
        display: none;
    }

    .admin-table-card-mobile tr {
        display: block;
        background: var(--bg-card);
        margin-bottom: 12px;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-light);
        padding: 12px 16px;
    }

    .admin-table-card-mobile td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid var(--border-light);
        font-size: 13px;
    }

    .admin-table-card-mobile td:last-child {
        border-bottom: none;
    }

    .admin-table-card-mobile td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .admin-table-card-mobile tr:hover td {
        background: transparent;
    }

    /* Account orders table card view */
    .orders-table-card-mobile thead {
        display: none;
    }

    .orders-table-card-mobile tbody tr {
        display: block;
        padding: 16px;
        border-bottom: 1px solid var(--border-light);
    }

    .orders-table-card-mobile td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
        font-size: 14px;
    }

    .orders-table-card-mobile td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 12px;
        text-transform: uppercase;
        flex-shrink: 0;
        margin-right: 12px;
    }
}

/* (Bottom nav removed — using hamburger menu instead) */

/* ============================================================
   19. STICKY PDP ADD-TO-CART BAR (mobile only)
   ============================================================ */
.pdp-sticky-atc {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    z-index: 800;
    gap: 12px;
    align-items: center;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.pdp-sticky-atc .pdp-sticky-price {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

.pdp-sticky-atc .atc-btn {
    flex: 1;
}

@media (max-width: 768px) {
    .pdp-sticky-atc.visible {
        display: flex;
    }
}

/* ============================================================
   20. SKELETON LOADER (AJAX category filter)
   ============================================================ */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
}

.skeleton-img {
    height: 200px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, #e8e8e8 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

.skeleton-text {
    height: 14px;
    margin: 12px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--bg-secondary) 25%, #e8e8e8 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

/* ============================================================
   21. PAGINATION — MOBILE FIX
   ============================================================ */
@media (max-width: 640px) {
    .bwn-pagination,
    .pagination-wrapper {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 32px;
    }

    .bwn-pagination .page-btn,
    .pagination-wrapper .page-btn {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
    }
}

/* ============================================================
   22. ADMIN SIDEBAR — MOBILE OVERLAY WITH BACKDROP
   ============================================================ */
.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.admin-sidebar-backdrop.active {
    display: block;
}

@media (max-width: 768px) {
    .admin-content {
        padding: 16px;
    }

    .admin-topbar {
        padding: 0 16px;
    }

    .admin-topbar .page-title {
        font-size: 16px;
    }

    .admin-topbar .search-box {
        display: none;
    }

    .stat-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-table-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 16px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   23. GLOBAL MOBILE TYPOGRAPHY ADJUSTMENTS
   ============================================================ */
@media (max-width: 640px) {
    /* Tighter line-height on mobile for headings */
    h1, h2, h3 {
        line-height: 1.15;
    }
}

/* ============================================================
   24. SCROLL BEHAVIOR — SMOOTH SCROLL
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* (Safe area insets for bottom nav removed) */

/* ============================================================
   26. QUICK LINKS (Profile sidebar)
   ============================================================ */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    transition: background 150ms;
}

.quick-link:hover {
    background: var(--bg-secondary);
}

.quick-link i {
    font-size: 18px;
    color: var(--brand-primary);
    flex-shrink: 0;
}

.quick-link-danger {
    color: var(--error);
}

.quick-link-danger i {
    color: var(--error);
}

.input-disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ============================================================
   27. ORDER DETAIL — TRACKING + TABLE
   ============================================================ */
.card-header-bar {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.order-item-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-item-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.price-cell {
    font-weight: 600;
    color: var(--text-primary);
}

.total-label {
    text-align: right;
    font-weight: 700;
    border-top: 2px solid var(--border-light);
    padding: 14px 20px;
}

.total-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-primary);
    border-top: 2px solid var(--border-light);
    padding: 14px 20px;
}

.address-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.address-text p {
    margin: 0;
}

.tracking-status-box {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.tracking-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tracking-item {
    padding-left: 20px;
    border-left: 2px solid var(--border-light);
    position: relative;
}

.tracking-dot {
    position: absolute;
    left: -5px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-primary);
}

.tracking-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.tracking-date {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0;
}

.tracking-remark {
    font-size: 13px;
    color: var(--text-secondary);
}

.tracking-empty {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================================
   28. HIRE DESIGNER — SERVICES + CTA
   ============================================================ */
.hero-centered {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 24px;
    min-height: 400px;
}

@media (min-width: 768px) {
    .hero-centered {
        min-height: 500px;
    }
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.67);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 18px;
    }
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero-actions {
        gap: 16px;
    }
}

.section-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

@media (min-width: 768px) {
    .section-centered {
        gap: 48px;
    }
}

.bg-secondary {
    background: var(--bg-secondary);
}

.service-card {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .service-card {
        padding: 32px;
        gap: 16px;
    }
}

.service-icon {
    font-size: 32px;
    color: var(--brand-primary);
}

@media (min-width: 768px) {
    .service-icon {
        font-size: 36px;
    }
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .service-card h3 {
        font-size: 18px;
    }
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cta-dark {
    background: var(--bg-dark);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .cta-dark {
        padding: 64px 40px;
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .cta-dark {
        padding: 64px 80px;
    }
}

.cta-title {
    font-family: 'Sora', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 42px;
    }
}

.cta-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.67);
    max-width: 560px;
}

@media (min-width: 768px) {
    .cta-subtitle {
        font-size: 18px;
    }
}

.cta-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .cta-meta {
        gap: 32px;
    }
}

.cta-meta span {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

@media (min-width: 768px) {
    .cta-meta span {
        font-size: 14px;
    }
}

/* ============================================================
   29. FORM TEXTAREA
   ============================================================ */
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    resize: vertical;
    min-height: 120px;
}

@media (min-width: 768px) {
    .form-textarea {
        font-size: 14px;
    }
}

/* ============================================================
   30. ADMIN FILTER BAR + BUTTON SIZES
   ============================================================ */
.admin-filter-bar {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .admin-filter-bar {
        padding: 12px 16px;
        gap: 6px;
    }
}

.btn-filter {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

@media (max-width: 640px) {
    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ============================================================
   31. ORDERS TABLE — MOBILE CARD VIEW
   ============================================================ */
@media (max-width: 640px) {
    .orders-table thead {
        display: none;
    }

    .orders-table tbody tr {
        display: block;
        padding: 16px;
        border-bottom: 1px solid var(--border-light);
    }

    .orders-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
        font-size: 14px;
    }

    .orders-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 12px;
        text-transform: uppercase;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .orders-table tfoot tr {
        display: flex;
        justify-content: space-between;
        padding: 12px 16px;
        border-top: 2px solid var(--border-light);
    }

    .orders-table tfoot td {
        padding: 0;
        border: none;
    }

    .orders-table .total-label {
        text-align: left;
        border-top: none;
        padding: 0;
    }

    .orders-table .total-value {
        border-top: none;
        padding: 0;
    }

    .order-item-cell {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .order-item-thumb {
        width: 40px;
        height: 40px;
    }

    .business-hours {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================================
   32. CUSTOM PRINTS PAGE — PRODUCT CARDS
   ============================================================ */
.custom-print-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1100px;
}

@media (min-width: 640px) {
    .custom-print-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .custom-print-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.custom-print-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.custom-print-img {
    height: 200px;
    overflow: hidden;
}

.custom-print-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-print-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.custom-print-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-print-title-row i {
    font-size: 22px;
    color: var(--brand-primary);
}

.custom-print-title-row h3 {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.custom-print-body p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.custom-print-body .btn-outline-brand {
    margin-top: auto;
    text-align: center;
}

/* Info note banner */
.info-note {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 640px;
    width: 100%;
}

@media (min-width: 768px) {
    .info-note {
        padding: 24px 32px;
    }
}

.info-note i {
    font-size: 24px;
    color: var(--brand-primary);
    flex-shrink: 0;
}

.info-note p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Section divider */
.section-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0 20px;
}

@media (min-width: 768px) {
    .section-divider {
        margin: 0 40px;
    }
}

@media (min-width: 1200px) {
    .section-divider {
        margin: 0 80px;
    }
}

/* Business hours base styles */
.business-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Width utility */
.w-100 {
    width: 100%;
}

/* ============================================================
   33. PDP MOBILE ENHANCEMENTS
   ============================================================ */

/* Back link icon size */
.pdp-back-link i {
    font-size: 16px;
}

/* Qty button icon size */
.qty-btn i {
    font-size: 14px;
}

/* ATC button icon size */
.atc-btn i {
    font-size: 18px;
}

/* Trust badge icon size */
.trust-badge i {
    font-size: 16px;
}

/* Sticky form takes full remaining width */
.pdp-sticky-form {
    flex: 1;
    margin: 0;
}

.pdp-sticky-form .atc-btn {
    width: 100%;
}

/* Mobile PDP spacing adjustments */
@media (max-width: 768px) {
    .pdp-back-row {
        padding: 12px 16px 0;
        margin-bottom: 8px;
    }

    .pdp-content {
        padding: 0 16px 32px;
    }

    /* Ensure thumbnails scroll horizontally on small screens */
    .pdp-gallery .thumbnails {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pdp-gallery .thumbnails::-webkit-scrollbar {
        display: none;
    }

    /* Larger touch targets for size buttons */
    .pdp-info .size-btn {
        min-width: 44px;
        height: 44px;
    }

    /* Larger touch targets for qty buttons */
    .qty-btn {
        min-width: 44px;
        height: 44px;
    }

    .qty-selector input {
        min-width: 48px;
        height: 44px;
        font-size: 16px;
    }

    /* Full-width ATC button on mobile */
    .add-to-cart-row .atc-btn {
        width: 100%;
    }

    /* Trust badges stack on small mobile */
    .pdp-trust-badges {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================================
   34. FOOTER COLUMNS — 3-col grid sizing
   ============================================================ */
.footer-col {
    min-width: 0; /* prevent grid blowout from long text */
}

.footer-col a {
    word-break: break-word;
}

/* ============================================================
   35. PRODUCT CARD ATC BUTTON — MOBILE FIT
   ============================================================ */
@media (max-width: 479px) {
    .product-card .add-to-cart-btn {
        font-size: 12px;
        padding: 10px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ============================================================
   36. TOUCH TARGETS — HERO ARROW + FOOTER SOCIALS
   ============================================================ */
.hero-next {
    min-width: 44px;
    min-height: 44px;
}

.footer-socials a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   37. ABOUT PAGE — TEXT + GRID CLASSES
   ============================================================ */
.about-text-content {
    max-width: 800px;
    text-align: left;
}

.about-text-content h2 {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-text-content .about-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .about-text-content {
        text-align: center;
    }

    .about-text-content h2 {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .about-text-content .about-description {
        font-size: 16px;
    }
}

.why-choose-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .why-choose-card {
        padding: 32px;
    }
}

.why-choose-card i {
    font-size: 32px;
    color: var(--brand-primary);
    display: block;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .why-choose-card i {
        font-size: 36px;
        margin-bottom: 16px;
    }
}

.why-choose-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .why-choose-card h3 {
        font-size: 18px;
    }
}

.why-choose-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   38. HIDE BOTTOM NAV PADDING ON TABLET+
   Ensure footer padding resets to normal on larger screens
   ============================================================ */
@media (min-width: 769px) {
    .bwn-footer {
        padding: 64px 80px 32px;
    }
}

/* ============================================================
   39. HEADER — MOBILE CLEANUP
   bwn-theme.css breakpoints:
     - ≤1024px (tablet): nav links hidden, mobile-toggle shown
     - ≤768px  (mobile): same + smaller padding
   Bottom nav is shown on ≤768px, hidden on ≥769px.

   Rules:
   - Mobile (≤768px):  hide hamburger, cart, user — bottom nav covers these
   - Tablet (769-1024px): hamburger shown (needed — no bottom nav, no nav links)
                           cart + user shown
   - Desktop (>1024px): hamburger hidden (nav links visible), cart + user shown
   ============================================================ */

/* Mobile only: hide cart/user (covered by bottom nav), but keep hamburger */
@media (max-width: 768px) {
    .bwn-navbar .mobile-toggle {
        display: block !important;
    }

    .bwn-navbar .cart-btn {
        display: none;
    }

    .bwn-navbar .nav-right .user-icon,
    .bwn-navbar .user-dropdown {
        display: none;
    }
}

/* Logo image (replaces the 'B' icon div) */
.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

/* ============================================================
   40. HERO SECTION — MOBILE ADJUSTMENTS
   ============================================================ */

/* Hide next arrow on mobile — swipe handles slide changes */
@media (max-width: 768px) {
    .hero-next {
        display: none !important;
    }

    /* Center hero content on mobile */
    .hero-left {
        text-align: center;
        align-items: center;
    }
}

/* ============================================================
   41. CATEGORIES — HORIZONTAL SCROLL CAROUSEL ON MOBILE
   Replace the tall stacked layout with a compact swipeable row.
   ============================================================ */
@media (max-width: 768px) {
    .cat-grid {
        gap: 0;
    }

    /* Stack both rows into one horizontal scroll strip */
    .cat-row {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 8px;
        /* Hide scrollbar visually */
        scrollbar-width: none;
    }

    .cat-row::-webkit-scrollbar {
        display: none;
    }

    /* Second row: add top margin */
    .cat-row + .cat-row {
        margin-top: 12px;
    }

    .cat-card {
        flex: 0 0 160px;
        min-width: 160px;
        height: 180px;
        scroll-snap-align: start;
        border-radius: var(--radius-md);
    }

    .cat-card .cat-name {
        font-size: 13px;
    }
}

/* ============================================================
   42. HOW IT WORKS — COMPACT HORIZONTAL STEPS ON MOBILE
   Replace tall vertical cards with compact horizontal items.
   ============================================================ */
@media (max-width: 768px) {
    .steps-grid {
        flex-direction: column;
        gap: 12px;
    }

    .step-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
        text-align: left;
    }

    .step-card .step-number {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .step-card .step-icon {
        display: none; /* hide large icon in horizontal layout */
    }

    .step-card h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .step-card p {
        font-size: 13px;
        line-height: 1.5;
        margin: 0;
    }
}

/* ============================================================
   43. FOOTER — CENTER BRAND, LEFT-ALIGN COLUMNS (≤1199px)
   Brand row centered; 3-col link grid left-aligned.
   ============================================================ */
@media (max-width: 1199px) {
    .footer-brand {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }
}
