/* ==========================================================================
   SKZ STORE — ORGANIZED STYLESHEET (CUSTOMER + ADMIN)

   Sections are separated with comments for easier maintenance.
   Existing CSS rules and their original order are preserved intentionally,
   because later rules may override earlier rules in the cascade.

   Main sections: Base styles, header/navigation, hero, buttons, products,
   forms/tables, admin, footer, checkout, homepage, header enhancements,
   product details, shopping cart, and responsive breakpoints.
   ========================================================================== */

/* ==========================================================================
   SKZ Store — Clean & Responsive Stylesheet (Customer + Admin)
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
    padding-top: 28px;
    padding-bottom: 48px;
}

/* Header & Navigation */

.site-header {
    background-color: var(--dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo span {
    color: #60a5fa;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.96rem;
    transition: color 0.15s;
}

.main-nav a:hover {
    color: #ffffff;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.cart-badge {
    background-color: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
}

.admin-link {
    border: 1px solid #475569;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.88rem !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #475569;
    color: #fff;
    font-size: 1.3rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Hero Banner */

.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 48px 32px;
    border-radius: 12px;
    margin-bottom: 36px;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.hero p {
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 22px;
    font-size: 1.05rem;
}

/* Buttons */

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    transition: background-color 0.15s;
}

.btn:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: #f1f5f9;
    color: var(--dark);
}

.btn-danger {
    background-color: var(--danger);
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section Headings */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
}

/* Product Grid & Cards */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}

.product-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.product-thumb {
    height: 210px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: var(--muted);
    font-size: 0.9rem;
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 14px;
    flex: 1;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

/* Single Product Details Page */

.product-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: start;
}

.product-detail-img {
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-img img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.stock-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 14px;
}

.in-stock {
    background: #dcfce7;
    color: #166534;
}

.out-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* Tables, Forms & Cards */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.94rem;
}

th {
    background-color: #f1f5f9;
    color: var(--dark);
    font-weight: 700;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
    font-size: 0.92rem;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.qty-input {
    width: 75px;
    padding: 6px 8px;
    text-align: center;
}

/* Checkout Two-Column Layout */

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 24px;
    align-items: start;
}

/* Alerts & Badges */

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-Pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-Processing {
    background: #dbeafe;
    color: #1e40af;
}

.badge-Shipped {
    background: #ede9fe;
    color: #5b21b6;
}

.badge-Delivered {
    background: #dcfce7;
    color: #166534;
}

/* Admin Topbar & Dashboard Stats */

.admin-header {
    background: #1e293b;
    color: #fff;
    padding: 14px 0;
    margin-bottom: 28px;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.admin-nav-links a {
    color: #e2e8f0;
    font-weight: 500;
}

.admin-nav-links a:hover {
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
}

.stat-card span {
    font-size: 0.86rem;
    color: var(--muted);
    font-weight: 600;
}

.stat-card h3 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-top: 4px;
}

/* Footer */

.site-footer {
    background-color: var(--dark);
    color: #cbd5e1;
    padding-top: 42px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    padding-bottom: 32px;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
    margin-bottom: 12px;
}

.site-footer a {
    color: #93c5fd;
}

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.social-icon:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 16px 0;
    text-align: center;
    font-size: 0.88rem;
    color: #94a3b8;
}

/* Responsive Media Queries */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background-color: var(--dark);
        flex-direction: column;
        padding: 16px 20px;
        border-top: 1px solid #1e293b;
        align-items: flex-start;
    }

    .main-nav.active {
        display: flex;
    }

    .product-detail-card,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.65rem;
    }
}

/* ================================
   CHECKOUT PAGE
================================ */

.checkout-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

.checkout-page .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.checkout-page .section-header h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--dark);
}

.checkout-intro {
    color: var(--muted);
    margin: 8px 0 0;
    line-height: 1.6;
}

.checkout-card {
    min-width: 0;
    padding: clamp(18px, 3vw, 28px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.checkout-card h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 1.2rem;
}

.checkout-card-description {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

.checkout-page .form-group {
    margin-bottom: 19px;
}

.checkout-page .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.94rem;
    font-weight: 600;
}

.checkout-page .form-control {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-page textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.checkout-page .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.checkout-page .btn-block {
    display: block;
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 700;
}

.checkout-payment {
    padding: 16px;
    margin: 8px 0 22px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.checkout-payment-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    color: var(--dark);
    font-weight: 700;
}

.checkout-payment p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.checkout-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.checkout-summary-table th,
.checkout-summary-table td {
    padding: 13px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.checkout-summary-table th {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.checkout-summary-table td {
    color: var(--text);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.checkout-summary-table th:last-child,
.checkout-summary-table td:last-child {
    text-align: right;
}

.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--dark);
    font-size: 1.05rem;
}

.checkout-total strong {
    font-size: 1.25rem;
}

.checkout-trust-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.checkout-confirmation {
    max-width: 850px;
    margin: 24px auto 40px;
    padding: clamp(20px, 4vw, 36px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(15, 23, 42, 0.06);
}

.checkout-success-heading {
    margin-bottom: 24px;
    text-align: center;
}

.checkout-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    font-size: 1.8rem;
    font-weight: 700;
}

.checkout-success-heading h2 {
    margin: 0 0 10px;
    color: var(--dark);
}

.checkout-success-heading p {
    max-width: 570px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.7;
}

.checkout-order-number {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 13px;
    background: #f1f5f9;
    border-radius: 7px;
    color: var(--dark);
    font-weight: 700;
}

.checkout-confirmation .checkout-grid {
    margin: 24px 0;
}

.checkout-details-box {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow-wrap: anywhere;
}

.checkout-details-box h3 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 1rem;
}

.checkout-details-box p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.checkout-details-box p:last-child {
    margin-bottom: 0;
}

.checkout-confirmation-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.checkout-confirmation-total {
    color: var(--muted);
}

.checkout-confirmation-total strong {
    display: block;
    margin-top: 5px;
    color: var(--dark);
    font-size: 1.35rem;
}

@media (max-width: 800px) {
    .checkout-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 520px) {
    .checkout-page {
        padding-top: 16px;
    }

    .checkout-page .section-header {
        align-items: flex-start;
    }

    .checkout-card {
        padding: 17px;
        border-radius: 9px;
    }

    .checkout-summary-table th,
    .checkout-summary-table td {
        padding: 11px 5px;
        font-size: 0.84rem;
    }

    .checkout-confirmation {
        margin: 16px auto 28px;
        padding: 18px;
    }

    .checkout-confirmation-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .checkout-confirmation-footer .btn {
        width: 100%;
        text-align: center;
    }
}


/* =========================================
   SKZ STORE HOMEPAGE UI IMPROVEMENTS
========================================= */

.home-page {
    width: 100%;
    min-width: 0;
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: center;
    gap: 30px;
    min-height: 370px;
    padding: clamp(28px, 5vw, 58px);
    margin-bottom: 55px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(125deg, #0f172a, #172f61 65%, #2563eb);
    color: #fff;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.home-eyebrow,
.home-section-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.home-eyebrow {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    color: #bfdbfe;
}

.home-hero h1 {
    max-width: 650px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 4.3vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -1.5px;
    color: #fff;
}

.home-hero h1 span {
    display: block;
    color: #93c5fd;
}

.home-hero-description {
    max-width: 550px;
    margin-bottom: 25px;
    color: #dbeafe;
    font-size: 1rem;
    line-height: 1.8;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 47px;
    padding: 12px 20px;
    background: #fff;
    color: #172554;
    border-radius: 7px;
}

.home-primary-btn:hover {
    background: #dbeafe;
    color: #172554;
}

.home-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 7px;
    color: #fff;
    font-weight: 600;
}

.home-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.home-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 25px;
}

.home-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #dbeafe;
    font-size: 0.85rem;
}

.home-benefits span span {
    color: #86efac;
    font-weight: 800;
}

.home-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 260px;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-decoration-one {
    width: 260px;
    height: 260px;
}

.hero-decoration-two {
    width: 205px;
    height: 205px;
    background: rgba(255, 255, 255, 0.035);
}

.hero-shopping-card {
    position: relative;
    z-index: 1;
    width: min(100%, 300px);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.hero-shopping-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    border-radius: 12px;
    background: #fff;
    color: #1d4ed8;
    font-size: 1.6rem;
    font-weight: 900;
}

.hero-card-label {
    display: block;
    margin-bottom: 10px;
    color: #bfdbfe;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.hero-shopping-card > strong {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.4;
}

.hero-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #dbeafe;
    font-size: 0.8rem;
}

.hero-card-bottom span {
    font-size: 1.1rem;
}

.hero-floating-tag {
    position: absolute;
    z-index: 2;
    right: -5px;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.hero-floating-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
}

.hero-floating-tag strong,
.hero-floating-tag small {
    display: block;
}

.hero-floating-tag strong {
    font-size: 0.82rem;
}

.hero-floating-tag small {
    margin-top: 2px;
    color: #64748b;
    font-size: 0.72rem;
}

/* Product Section Heading */

.home-products-section {
    padding-bottom: 15px;
    scroll-margin-top: 90px;
}

.home-products-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.home-section-eyebrow {
    margin-bottom: 8px;
    color: var(--primary);
}

.home-products-heading h2 {
    color: var(--dark);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.25;
}

.home-section-description {
    margin-top: 9px;
    color: var(--muted);
    font-size: 0.96rem;
}

.home-product-count {
    flex-shrink: 0;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 0.8rem;
}

.home-product-count span {
    margin-right: 5px;
    color: var(--primary);
}

/* Product Search */

.product-search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 30px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
}

.product-search-label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 43px;
    height: 43px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--primary);
}

.search-icon svg {
    width: 23px;
    height: 23px;
}

.product-search-label strong,
.product-search-label span {
    display: block;
}

.product-search-label strong {
    color: var(--dark);
    font-size: 0.94rem;
}

.product-search-label div > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.8rem;
}

.product-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(100%, 390px);
    min-width: 0;
    padding: 4px 5px 4px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.product-search-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.product-search-input {
    width: 100%;
    min-width: 0;
    height: 39px;
    padding: 7px 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--dark);
    font: inherit;
    font-size: 0.92rem;
}

.product-search-input::placeholder {
    color: #94a3b8;
}

.clear-search-btn {
    flex-shrink: 0;
    padding: 7px 9px;
    border: none;
    border-radius: 5px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.clear-search-btn[hidden],
.home-product-card[hidden],
.home-empty-state[hidden] {
    display: none !important;
}

/* Improved Product Cards */

.home-product-grid {
    align-items: stretch;
    gap: 24px;
}

.home-product-card {
    min-width: 0;
    border-radius: 12px;
    border-color: #e5eaf2;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.home-product-card:hover {
    transform: translateY(-4px);
    border-color: #cbdcfb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.home-product-thumb {
    position: relative;
    height: auto;
    aspect-ratio: 1 / 0.83;
    padding: 14px;
    background: #f8fafc;
}

.home-product-thumb img {
    object-fit: contain;
    transition: transform 0.25s ease;
}

.home-product-card:hover .home-product-thumb img {
    transform: scale(1.035);
}

.product-image-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.home-product-body {
    gap: 0;
    padding: 17px;
}

.home-product-title {
    margin-bottom: 7px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.home-product-title a {
    color: var(--dark);
}

.home-product-title a:hover {
    color: var(--primary);
}

.home-product-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    min-height: 4.2em;
    margin-bottom: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.home-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding-top: 13px;
    border-top: 1px solid #edf0f5;
}

.home-product-price {
    margin: 0;
    font-size: 1.13rem;
    overflow-wrap: anywhere;
}

.home-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 700;
}

.home-stock-status > span {
    font-size: 0.65rem;
}

.home-stock-status.out-of-stock {
    color: var(--danger);
}

.home-product-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 8px;
    margin-top: auto;
}

.home-product-actions > * {
    min-width: 0;
}

.home-product-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 39px;
    padding: 8px 9px;
    white-space: normal;
    line-height: 1.3;
}

.home-product-actions .home-details-btn {
    border-color: #cbd5e1;
    background: #fff;
    color: #334155;
}

.home-product-actions .home-details-btn:hover {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
}

.home-add-cart-form {
    display: flex;
    min-width: 0;
}

.home-add-cart-btn {
    font-weight: 700;
}

.home-disabled-btn {
    grid-column: 1 / -1;
    opacity: 0.65;
    cursor: not-allowed;
}

/* Empty States */

.home-empty-state {
    padding: 45px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.home-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary);
    font-size: 1.7rem;
}

.home-empty-state h3 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.2rem;
}

.home-empty-state p {
    margin-bottom: 17px;
    color: var(--muted);
    font-size: 0.93rem;
}

/* Accessibility */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tablet */

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
        gap: 15px;
        padding: 32px;
    }

    .home-floating-tag {
        right: 0;
    }

    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-products-heading {
        align-items: flex-start;
    }
}

/* Mobile */

@media (max-width: 650px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
        min-height: auto;
        padding: 30px 22px;
        margin-bottom: 38px;
        border-radius: 13px;
    }

    .home-hero h1 {
        font-size: clamp(2rem, 8vw, 2.7rem);
        letter-spacing: -0.8px;
    }

    .home-hero-description {
        font-size: 0.94rem;
    }

    .home-hero-visual {
        min-height: 235px;
        margin-top: 5px;
    }

    .hero-shopping-card {
        width: min(100%, 280px);
    }

    .hero-floating-tag {
        right: 0;
        bottom: 0;
    }

    .home-benefits {
        gap: 10px 16px;
    }

    .home-products-heading {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .home-product-count {
        max-width: 100%;
    }

    .product-search-panel {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin-bottom: 22px;
    }

    .product-search-input-wrap {
        width: 100%;
    }

    .home-product-grid {
        gap: 13px;
    }

    .home-product-thumb {
        padding: 9px;
    }

    .home-product-body {
        padding: 12px;
    }

    .home-product-title {
        font-size: 0.96rem;
    }

    .home-product-description {
        min-height: 0;
        font-size: 0.82rem;
        -webkit-line-clamp: 3;
    }

    .home-product-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .home-product-price {
        font-size: 1rem;
    }

    .home-product-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-product-actions .btn {
        min-height: 39px;
    }

    .product-image-label {
        top: 7px;
        left: 7px;
        padding: 4px 6px;
        font-size: 0.55rem;
    }
}

/* Very Small Phones */

@media (max-width: 360px) {
    .home-hero {
        padding: 25px 16px;
    }

    .home-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-hero-actions a {
        width: 100%;
        text-align: center;
    }

    .home-product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-product-thumb {
        aspect-ratio: 1 / 0.8;
    }

    .home-product-actions {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    }

    .home-product-body {
        padding: 15px;
    }
}

/* =========================================
   SKZ STORE HEADER IMPROVEMENTS
========================================= */

.site-header {
    background: rgba(15, 23, 42, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 72px;
    height: auto;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
    font-size: 1.55rem;
    letter-spacing: -0.7px;
}

.logo span {
    color: #60a5fa;
}

.main-nav {
    gap: 8px;
}

.main-nav .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 13px;
    border-radius: 7px;
    color: #e2e8f0;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff !important;
    transition: background 0.2s ease;
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.14);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    min-height: 21px;
    padding: 2px 6px;
    border-radius: 50px;
    background: #3b82f6;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid rgba(147, 197, 253, 0.45);
    border-radius: 7px;
    color: #bfdbfe !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-link:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #60a5fa;
}

.menu-toggle {
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 43px;
    height: 43px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.13);
}

.menu-toggle:focus-visible,
.main-nav a:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 3px;
}

/* Mobile Header */

@media (max-width: 768px) {
    .header-inner {
        min-height: 66px;
        gap: 12px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        padding: 15px 20px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: #0f172a;
        box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav .nav-link,
    .main-nav .cart-link,
    .main-nav .admin-link {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        min-height: 44px;
        padding: 10px 13px;
    }

    .main-nav .cart-link {
        justify-content: flex-start;
    }

    .main-nav .admin-link {
        margin-top: 3px;
    }
}

@media (max-width: 360px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .logo {
        font-size: 1.3rem;
    }
}

/* ==========================================
   SKZ STORE - PRODUCT DETAIL PAGE
========================================== */

.product-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 0 20px;
    color: var(--text, #334155);
}

/* Breadcrumb */

.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--muted, #64748b);
    font-size: 13px;
    line-height: 1.7;
}

.product-breadcrumb a {
    color: var(--primary, #2563eb);
    font-weight: 600;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #94a3b8;
}

.product-breadcrumb [aria-current="page"] {
    overflow-wrap: anywhere;
}

/* Main Product Card */

.product-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 5vw, 64px);
    padding: clamp(22px, 4vw, 42px);
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 18px;
    box-shadow: 0 8px 35px rgba(15, 23, 42, 0.06);
}

/* Product Image */

.product-detail-img {
    min-width: 0;
}

.product-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 14px;
}

.product-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-image-frame:hover img {
    transform: scale(1.035);
}

.product-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    min-height: 220px;
    color: var(--muted, #64748b);
    font-size: 14px;
    text-align: center;
}

.placeholder-icon {
    color: #94a3b8;
    font-size: 55px;
    line-height: 1;
}

.image-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
    padding: 12px;
    color: var(--muted, #64748b);
    font-size: 12px;
    text-align: center;
}

.image-caption-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
}

/* Product Information */

.product-detail-info {
    min-width: 0;
}

.product-store-label {
    margin: 0 0 14px;
    color: var(--primary, #2563eb);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.product-status-row {
    margin-bottom: 14px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.stock-badge.in-stock {
    background: #dcfce7;
    color: #166534;
}

.stock-badge.out-stock {
    background: #fee2e2;
    color: #991b1b;
}

.product-detail-title {
    margin: 0 0 22px;
    color: var(--dark, #0f172a);
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.7px;
    overflow-wrap: anywhere;
}

/* Price Panel */

.product-price-panel {
    margin-bottom: 26px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
}

.product-price-label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted, #64748b);
    font-size: 12px;
    font-weight: 600;
}

.product-detail-price {
    margin: 0;
    color: var(--primary, #2563eb);
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.price-note {
    display: block;
    margin-top: 5px;
    color: var(--muted, #64748b);
    font-size: 12px;
}

/* Description */

.product-description {
    margin-bottom: 25px;
}

.product-description h2 {
    margin: 0 0 12px;
    color: var(--dark, #0f172a);
    font-size: 18px;
    font-weight: 750;
}

.product-description-text,
.product-description > p {
    color: var(--text, #334155);
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.product-description-text p:last-child {
    margin-bottom: 0;
}

/* Quantity and Add to Cart */

.product-purchase-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin: 25px 0;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.quantity-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 115px;
}

.quantity-field label {
    color: var(--dark, #0f172a);
    font-size: 13px;
    font-weight: 700;
}

.quantity-input-wrap {
    width: 115px;
}

.qty-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    background: #ffffff;
    color: var(--dark, #0f172a);
    font-size: 15px;
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.quantity-field small {
    color: var(--muted, #64748b);
    font-size: 11px;
    line-height: 1.5;
}

.product-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 190px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid var(--primary, #2563eb);
    border-radius: 8px;
    background: var(--primary, #2563eb);
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease,
                box-shadow 0.2s ease;
}

.product-add-button:hover {
    background: var(--primary-hover, #1d4ed8);
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.product-add-button:focus-visible,
.product-back-button:focus-visible,
.continue-shopping-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

/* Shopping Benefits */

.product-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-top: 22px;
}

.product-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 14px 12px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: #ffffff;
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
}

.product-benefit strong {
    display: block;
    margin: 2px 0 5px;
    color: var(--dark, #0f172a);
    font-size: 12px;
    line-height: 1.5;
}

.product-benefit p {
    margin: 0;
    color: var(--muted, #64748b);
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.continue-shopping-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 23px;
    color: var(--primary, #2563eb);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.continue-shopping-link:hover {
    text-decoration: underline;
}

.product-stock-alert {
    margin: 22px 0;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.7;
}

/* Product Not Found */

.product-not-found {
    max-width: 620px;
    margin: 35px auto 20px;
    padding: clamp(28px, 5vw, 55px);
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
    text-align: center;
}

.not-found-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 30px;
    font-weight: 800;
}

.product-not-found h1 {
    margin: 0 0 12px;
    color: var(--dark, #0f172a);
    font-size: clamp(23px, 4vw, 30px);
}

.product-not-found > p:not(.product-store-label) {
    margin: 0 0 24px;
    color: var(--muted, #64748b);
    font-size: 14px;
    line-height: 1.8;
}

.product-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--primary, #2563eb);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.product-back-button:hover {
    background: var(--primary-hover, #1d4ed8);
}

/* Screen-reader-only text */

.product-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tablet */

@media (max-width: 900px) {
    .product-detail-card {
        gap: 28px;
        padding: 24px;
    }

    .product-benefits {
        grid-template-columns: 1fr;
    }

    .product-purchase-form {
        align-items: stretch;
    }

    .product-add-button {
        align-self: flex-end;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .product-page {
        padding-top: 18px;
    }

    .product-breadcrumb {
        gap: 7px;
        margin-bottom: 17px;
        font-size: 12px;
    }

    .product-detail-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
        padding: 16px;
        border-radius: 13px;
    }

    .product-image-frame {
        padding: 12px;
        border-radius: 10px;
    }

    .image-caption {
        margin-top: 8px;
        padding: 8px 5px;
        font-size: 11px;
    }

    .product-detail-title {
        margin-bottom: 17px;
        font-size: 27px;
    }

    .product-price-panel {
        margin-bottom: 22px;
        padding: 15px;
    }

    .product-detail-price {
        font-size: 27px;
    }

    .product-description h2 {
        font-size: 17px;
    }

    .product-purchase-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .quantity-field,
    .quantity-input-wrap {
        width: 100%;
    }

    .qty-input {
        min-height: 48px;
    }

    .product-add-button {
        width: 100%;
        min-height: 49px;
        flex: auto;
    }

    .product-benefits {
        grid-template-columns: 1fr;
    }

    .product-benefit {
        padding: 13px;
    }

    .product-not-found {
        margin-top: 20px;
        padding: 28px 18px;
    }
}

/* Small Mobile */

@media (max-width: 360px) {
    .product-detail-card {
        padding: 12px;
        gap: 20px;
    }

    .product-detail-title {
        font-size: 23px;
    }

    .product-detail-price {
        font-size: 24px;
    }

    .product-price-panel {
        padding: 13px;
    }

    .product-store-label {
        font-size: 11px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .product-image-frame img,
    .product-add-button {
        transition: none;
    }
}

/* ==========================================
   SKZ STORE - SHOPPING CART PAGE
========================================== */

.cart-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 0 20px;
    color: var(--text, #334155);
}

/* Page Header */

.cart-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 30px;
}

.cart-heading-content {
    min-width: 0;
}

.cart-eyebrow {
    margin: 0 0 9px;
    color: var(--primary, #2563eb);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.cart-page-header h1 {
    margin: 0 0 10px;
    color: var(--dark, #0f172a);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.cart-subtitle {
    margin: 0;
    color: var(--muted, #64748b);
    font-size: 14px;
    line-height: 1.8;
}

.cart-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* Flash Messages */

.cart-message {
    margin-bottom: 22px;
    padding: 14px 17px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Empty Cart */

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 45px 22px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.cart-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    margin-bottom: 25px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary, #2563eb);
}

.cart-empty-icon svg {
    max-width: 48px;
    max-height: 48px;
}

.cart-empty-state .cart-eyebrow {
    margin-bottom: 10px;
}

.cart-empty-state h2 {
    margin: 0 0 12px;
    color: var(--dark, #0f172a);
    font-size: 25px;
    font-weight: 800;
}

.cart-empty-state > p:not(.cart-eyebrow) {
    max-width: 440px;
    margin: 0 0 25px;
    color: var(--muted, #64748b);
    font-size: 14px;
    line-height: 1.9;
}

.cart-browse-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--primary, #2563eb);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cart-browse-button:hover {
    background: var(--primary-hover, #1d4ed8);
    transform: translateY(-1px);
}

/* Items Heading */

.cart-items-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 17px;
}

.cart-items-heading h2 {
    margin: 0 0 6px;
    color: var(--dark, #0f172a);
    font-size: 22px;
    font-weight: 800;
}

.cart-items-heading p {
    margin: 0;
    color: var(--muted, #64748b);
    font-size: 13px;
    line-height: 1.7;
}

.cart-items-count {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 30px;
    background: #ffffff;
    color: var(--dark, #0f172a);
    font-size: 12px;
    font-weight: 700;
}

/* Cart Table Card */

.cart-content-card {
    min-width: 0;
    overflow: hidden;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 7px 28px rgba(15, 23, 42, 0.045);
}

.cart-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    text-align: left;
}

.cart-table thead {
    background: #f8fafc;
}

.cart-table th {
    padding: 17px 15px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    color: var(--muted, #64748b);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.cart-table td {
    padding: 19px 15px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    color: var(--text, #334155);
    font-size: 13px;
    vertical-align: middle;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

.cart-table tbody tr {
    transition: background 0.2s ease;
}

.cart-table tbody tr:hover {
    background: #fafcff;
}

.cart-mobile-label {
    display: none;
}

/* Product in Cart */

.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 210px;
}

.cart-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    overflow: hidden;
    padding: 5px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 9px;
    background: #f8fafc;
    text-decoration: none;
}

.cart-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.cart-product-image:hover img {
    transform: scale(1.05);
}

.cart-product-image .no-image {
    color: var(--muted, #64748b);
    font-size: 10px;
    text-align: center;
}

.cart-product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.cart-product-name {
    color: var(--dark, #0f172a);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.cart-product-name:hover {
    color: var(--primary, #2563eb);
}

.cart-stock-info {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 20px;
    background: #dcfce7;
    color: #166534;
    font-size: 10px;
    font-weight: 700;
}

/* Prices and Quantity */

.cart-price {
    color: var(--text, #334155);
    font-weight: 600;
    white-space: nowrap;
}

.cart-quantity-input {
    width: 78px;
    min-height: 42px;
    padding: 8px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 7px;
    background: #ffffff;
    color: var(--dark, #0f172a);
    font-size: 14px;
}

.cart-quantity-input:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cart-line-total {
    color: var(--dark, #0f172a);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

/* Action Buttons */

.cart-remove-button {
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.cart-remove-button:hover {
    filter: brightness(0.94);
}

.cart-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
    align-items: start;
    gap: 30px;
    padding: 25px;
    border-top: 1px solid var(--border, #e2e8f0);
    background: #fcfdff;
}

.cart-management-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-update-button,
.cart-clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 11px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.cart-update-button {
    border: 1px solid var(--primary, #2563eb);
    background: var(--primary, #2563eb);
    color: #ffffff;
    transition: background 0.2s ease;
}

.cart-update-button:hover {
    background: var(--primary-hover, #1d4ed8);
}

.cart-clear-button {
    border: 1px solid var(--border, #e2e8f0);
    background: #ffffff;
    color: var(--text, #334155);
}

.cart-clear-button:hover {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #b91c1c;
}

/* Order Summary */

.cart-summary {
    min-width: 0;
    padding: 23px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    background: #ffffff;
}

.cart-summary-eyebrow {
    margin: 0 0 7px;
    color: var(--primary, #2563eb);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cart-summary h2 {
    margin: 0 0 20px;
    color: var(--dark, #0f172a);
    font-size: 20px;
    font-weight: 800;
}

.cart-summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border, #e2e8f0);
    color: var(--muted, #64748b);
    font-size: 13px;
    line-height: 1.6;
}

.cart-summary-row > span:last-child {
    color: var(--dark, #0f172a);
    font-weight: 700;
}

.cart-total-row {
    align-items: center;
    padding-top: 19px;
    padding-bottom: 18px;
    border-bottom: none;
    color: var(--dark, #0f172a);
    font-size: 14px;
    font-weight: 750;
}

.cart-total-row strong {
    color: var(--primary, #2563eb);
    font-size: 20px;
    font-weight: 800;
    text-align: right;
    overflow-wrap: anywhere;
}

.cart-cod-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 11px;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
    font-size: 11px;
    line-height: 1.6;
}

.cart-cod-note span {
    font-weight: 800;
}

.cart-checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;
    border-radius: 8px;
    background: var(--primary, #2563eb);
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cart-checkout-button:hover {
    background: var(--primary-hover, #1d4ed8);
    transform: translateY(-1px);
}

.cart-back-shopping {
    display: block;
    margin-top: 15px;
    color: var(--primary, #2563eb);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.cart-back-shopping:hover {
    text-decoration: underline;
}

/* Keyboard Focus */

.cart-page a:focus-visible,
.cart-page button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

/* Tablet */

@media (max-width: 900px) {
    .cart-page {
        padding-top: 23px;
    }

    .cart-bottom {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
        gap: 18px;
        padding: 18px;
    }

    .cart-summary {
        padding: 18px;
    }

    .cart-management-actions {
        align-items: stretch;
    }

    .cart-update-button,
    .cart-clear-button {
        width: 100%;
    }
}

/* Mobile */

@media (max-width: 650px) {
    .cart-page {
        padding-top: 18px;
    }

    .cart-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 23px;
    }

    .cart-page-header h1 {
        font-size: 29px;
    }

    .cart-continue {
        width: 100%;
    }

    .cart-items-heading {
        align-items: flex-start;
    }

    .cart-items-heading h2 {
        font-size: 20px;
    }

    .cart-content-card {
        border-radius: 11px;
    }

    .cart-table-wrap {
        overflow: visible;
    }

    .cart-table {
        display: block;
        min-width: 0;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: block;
        width: 100%;
    }

    .cart-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0 16px;
        padding: 17px;
        border-bottom: 1px solid var(--border, #e2e8f0);
    }

    .cart-table tbody tr:last-child {
        border-bottom: none;
    }

    .cart-table td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 7px;
        min-width: 0;
        padding: 13px 0;
        border: none;
        font-size: 13px;
    }

    .cart-table td.cart-product-cell {
        grid-column: 1 / -1;
        padding-top: 0;
        padding-bottom: 14px;
        border-bottom: 1px dashed var(--border, #e2e8f0);
    }

    .cart-product {
        width: 100%;
        min-width: 0;
        gap: 13px;
    }

    .cart-product-image {
        width: 82px;
        height: 82px;
    }

    .cart-product-name {
        font-size: 14px;
    }

    .cart-mobile-label {
        display: block;
        color: var(--muted, #64748b);
        font-size: 11px;
        font-weight: 700;
    }

    .cart-quantity-input {
        width: 100%;
        max-width: 130px;
        min-height: 43px;
    }

    .cart-remove-button {
        min-height: 38px;
        padding: 9px 12px;
    }

    .cart-bottom {
        grid-template-columns: minmax(0, 1fr);
        gap: 23px;
        padding: 17px;
    }

    .cart-management-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cart-update-button,
    .cart-clear-button {
        min-width: 0;
        padding: 10px 8px;
        font-size: 11px;
    }

    .cart-summary {
        padding: 20px;
    }

    .cart-total-row strong {
        font-size: 18px;
    }

    .cart-empty-state {
        min-height: 320px;
        padding: 35px 18px;
    }

    .cart-empty-state h2 {
        font-size: 22px;
    }
}

/* Small Mobile */

@media (max-width: 360px) {
    .cart-page-header h1 {
        font-size: 25px;
    }

    .cart-table tbody tr {
        padding: 13px;
        gap: 0 10px;
    }

    .cart-product-image {
        width: 68px;
        height: 68px;
    }

    .cart-product-name {
        font-size: 12px;
    }

    .cart-bottom {
        padding: 12px;
    }

    .cart-management-actions {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        padding: 15px;
    }

    .cart-total-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .cart-total-row strong {
        text-align: left;
    }
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    .cart-page *,
    .cart-page *::before,
    .cart-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
