/* =====================================================================
   ZynShop - Premium E-Commerce Stylesheet
   ===================================================================== */

/* ─── Google Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ────────────────────────────────────────────────── */
:root {
    --brand-primary: #0F172A;
    --brand-secondary: #D4AF37;
    --brand-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    --brand-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #C5A028 50%, #B8960F 100%);
    --brand-accent: #84A98C;
    --brand-success: #84A98C;
    --brand-warning: #D4AF37;
    --brand-danger: #ef4444;

    --bg-body: #FAF9F6;
    --bg-card: #ffffff;
    --bg-surface: #F5F4F1;
    --bg-dark: #0F172A;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-white: #ffffff;

    --border-color: #E2E8F0;
    --border-light: #F1F0ED;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
    --border-radius-pill: 9999px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.18);
    --shadow-card: 0 2px 12px rgba(15, 23, 42, 0.05);

    --navbar-height: 64px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base Reset ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── Navbar ────────────────────────────────────────────────────────── */
.zs-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
}

.zs-navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--brand-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.zs-navbar-brand .brand-logo {
    font-size: 1.6rem;
}

.zs-navbar-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.zs-navbar-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.zs-navbar-search input:focus {
    border-color: var(--brand-secondary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.zs-navbar-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.zs-navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.zs-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-gold-gradient);
    color: var(--text-white);
    border: none;
    padding: 10px 18px;
    border-radius: var(--border-radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.zs-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.zs-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--brand-danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
}

/* ─── Hero Banner ──────────────────────────────────────────────────── */
.zs-hero {
    background: var(--brand-gradient);
    padding: 48px 24px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.zs-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    animation: heroShimmer 6s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
    0% {
        transform: translate(-10%, -10%);
    }

    100% {
        transform: translate(10%, 10%);
    }
}

.zs-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
}

.zs-hero p {
    font-size: 1rem;
    opacity: 0.85;
    position: relative;
}

/* ─── Category Pills ────────────────────────────────────────────────── */
.zs-categories-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    position: sticky;
    top: var(--navbar-height);
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.zs-categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 0;
    align-items: center;
}

.zs-categories-scroll::-webkit-scrollbar {
    display: none;
}

.zs-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-secondary);
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}

.zs-cat-pill:hover {
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
    background: rgba(212, 175, 55, 0.06);
}

.zs-cat-pill.active {
    background: var(--brand-primary);
    border-color: transparent;
    color: var(--brand-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ─── Main Container ────────────────────────────────────────────────── */
.zs-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Products Section ──────────────────────────────────────────────── */
.zs-products-section {
    padding: 32px 0 64px;
}

.zs-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.zs-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.zs-product-count {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ─── Product Grid ──────────────────────────────────────────────────── */
.zs-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* ─── Product Card ──────────────────────────────────────────────────── */
.zs-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    cursor: pointer;
    border: 1.5px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.zs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.zs-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zs-card-img img:not(.zs-img-bg) {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 0;
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.zs-img-bg {
    position: absolute;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    padding: 0 !important;
    filter: blur(20px) brightness(0.9);
    transform: scale(1.1);
    z-index: 1;
    opacity: 0.5;
    transition: transform 0.4s ease;
}

.zs-card:hover .zs-img-bg {
    transform: scale(1.3);
}

.zs-card:hover .zs-card-img img {
    transform: scale(1.04);
}

.zs-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.zs-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--border-radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.zs-badge-cat {
    background: rgba(15, 23, 42, 0.88);
    color: #D4AF37;
    backdrop-filter: blur(4px);
}

.zs-badge-new {
    background: var(--brand-accent);
    color: white;
}

.zs-badge-low {
    background: var(--brand-warning);
    color: white;
}

.zs-card-quick-add {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--brand-gold-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8) translateY(4px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.zs-card:hover .zs-card-quick-add {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.zs-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zs-card-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brand-secondary);
}

.zs-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zs-card-price {
    font-size: 1.05rem;
    font-weight: 800;
    background: var(--brand-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zs-card-stock {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

.zs-card-stock.low {
    color: var(--brand-warning);
    font-weight: 600;
}

.zs-card-actions {
    padding: 0 16px 16px;
}

.zs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}

.zs-btn-primary {
    background: var(--brand-primary);
    color: var(--brand-secondary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.zs-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.35);
    transform: translateY(-1px);
    color: var(--brand-secondary);
}

.zs-btn-outline {
    background: transparent;
    color: var(--brand-primary);
    border: 1.5px solid var(--brand-primary);
}

.zs-btn-outline:hover {
    background: var(--brand-primary);
    color: var(--brand-secondary);
    border-color: transparent;
}

.zs-btn-success {
    background: var(--brand-success);
    color: white;
}

.zs-btn-danger {
    background: var(--brand-danger);
    color: white;
}

.zs-btn-secondary {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
}

.zs-btn-full {
    width: 100%;
}

.zs-btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.zs-btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.zs-btn-icon {
    padding: 10px;
    border-radius: 50%;
}

.zs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ─── Empty State ───────────────────────────────────────────────────── */
.zs-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.zs-empty i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.zs-empty h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.zs-empty p {
    font-size: 0.875rem;
}

/* ─── Skeleton Loading ──────────────────────────────────────────────── */
.zs-skeleton {
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.zs-skeleton-box {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ─── Modal ────────────────────────────────────────────────────────── */
.zs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 26, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.zs-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.zs-modal {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    padding: 24px;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow-y: auto;
    scrollbar-width: thin;
}

.zs-modal-overlay.active .zs-modal {
    transform: translateY(0) scale(1);
}

.zs-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-surface);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    z-index: 20;
}

.zs-modal-close:hover {
    background: var(--brand-danger);
    color: white;
}

/* Product Detail Modal */
.zs-product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.zs-product-modal-gallery {
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zs-product-modal-gallery img:not(.zs-img-bg) {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 0;
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius);
}

.zs-product-modal-gallery .zs-img-bg {
    position: absolute;
    z-index: 1;
    padding: 0 !important;
    object-fit: cover !important;
}

.zs-modal-gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zs-modal-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.zs-modal-thumbs img {
    width: 64px;
    height: 64px;
    min-width: 64px;
    object-fit: contain;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.zs-modal-thumbs img:hover {
    border-color: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.zs-product-modal-info {
    padding: 10px 10px 10px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 40px);
}

.zs-product-modal-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brand-primary);
}

.zs-product-modal-name {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.zs-product-modal-price {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--brand-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zs-product-modal-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Variation Selector */
.zs-variation-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zs-variation-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.zs-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zs-var-option {
    padding: 7px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-body);
    color: var(--text-secondary);
    user-select: none;
}

.zs-var-option:hover {
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
}

.zs-var-option.selected {
    background: var(--brand-primary);
    border-color: transparent;
    color: var(--brand-secondary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.zs-var-option.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.zs-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    overflow: hidden;
    width: fit-content;
}

.zs-qty-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zs-qty-btn:hover {
    background: var(--bg-surface);
    color: var(--brand-primary);
}

.zs-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    background: transparent;
    outline: none;
    color: var(--text-primary);
}

/* ─── Cart Drawer ───────────────────────────────────────────────────── */
.zs-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 26, 0.5);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.zs-cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.zs-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 420px;
    max-width: 100vw;
    background: var(--bg-card);
    z-index: 1501;
    box-shadow: var(--shadow-xl);
    display: block;
    overflow-y: auto;
    scrollbar-width: thin;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.zs-cart-drawer.active {
    transform: translateX(0);
}

.zs-cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg-card);
}

.zs-cart-drawer-head h2 {
    font-size: 1.1rem;
    font-weight: 800;
}

.zs-cart-drawer-body {
    padding: 16px 24px;
}

.zs-cart-drawer-foot {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: var(--bg-card);
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
}

.zs-cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.zs-cart-item:last-child {
    border-bottom: none;
}

.zs-cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-surface);
}

.zs-cart-item-name {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.zs-cart-item-var {
    font-size: 0.75rem;
    color: var(--brand-primary);
    font-weight: 600;
}

.zs-cart-item-price {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.zs-cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.zs-cart-item-subtotal {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--brand-secondary);
}

.zs-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 4px;
}

.zs-cart-item-qty button {
    background: var(--bg-surface);
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.zs-cart-item-qty button:hover {
    background: var(--brand-primary);
    color: var(--brand-secondary);
}

.zs-cart-item-qty span {
    width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.zs-cart-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    transition: var(--transition);
}

.zs-cart-remove:hover {
    color: var(--brand-danger);
}

.zs-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 800;
}

.zs-cart-total-amount {
    background: var(--brand-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

/* ─── Checkout ──────────────────────────────────────────────────────── */
.zs-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    padding: 40px 0;
    align-items: start;
}

.zs-checkout-summary-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--navbar-height) + 20px);
    z-index: 10;
}

@media (max-width: 1024px) {
    .zs-checkout-summary-wrapper {
        position: static;
        top: auto;
    }
}

.zs-card-box {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1.5px solid var(--border-light);
}

.zs-card-box-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.zs-card-box-title i {
    color: var(--brand-primary);
}

.zs-form-group {
    margin-bottom: 18px;
}

.zs-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zs-input,
.zs-select,
.zs-textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-body);
    transition: var(--transition);
    outline: none;
}

.zs-input:focus,
.zs-select:focus,
.zs-textarea:focus {
    border-color: var(--brand-secondary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.zs-textarea {
    resize: vertical;
    min-height: 90px;
}

.zs-input-icon {
    position: relative;
}

.zs-input-icon .zs-input {
    padding-left: 40px;
}

.zs-input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.zs-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}

.zs-radio-card:hover {
    border-color: var(--brand-secondary);
    background: rgba(212, 175, 55, 0.04);
}

.zs-radio-card.selected {
    border-color: var(--brand-secondary);
    background: rgba(212, 175, 55, 0.06);
}

.zs-radio-card input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--brand-secondary);
}

.zs-radio-card-label {
    font-weight: 700;
    font-size: 0.9rem;
}

.zs-radio-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Order Summary */
.zs-order-summary-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.zs-order-summary-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.zs-order-summary-item-name {
    font-weight: 700;
    font-size: 0.875rem;
}

.zs-order-summary-item-var {
    font-size: 0.75rem;
    color: var(--brand-primary);
}

.zs-order-summary-item-price {
    margin-left: auto;
    font-weight: 800;
}

.zs-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
}

.zs-summary-row.total {
    font-size: 1.15rem;
    font-weight: 800;
    padding-top: 12px;
    border-top: 2px solid var(--border-color);
    margin-top: 4px;
}

.zs-summary-amount-total {
    background: var(--brand-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

/* ─── Shipping Services ─────────────────────────────────────────────── */
.zs-shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 8px;
}

.zs-shipping-option:hover {
    border-color: var(--brand-primary);
}

.zs-shipping-option.selected {
    border-color: var(--brand-secondary);
    background: rgba(212, 175, 55, 0.06);
}

.zs-shipping-option-name {
    font-weight: 700;
    font-size: 0.875rem;
    flex: 1;
}

.zs-shipping-option-cost {
    font-weight: 800;
    color: var(--brand-secondary);
}

.zs-shipping-option-eta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── Order Success ─────────────────────────────────────────────────── */
.zs-order-success {
    max-width: 680px;
    margin: 60px auto;
    text-align: center;
}

.zs-order-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #84A98C, #6B8F73);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(132, 169, 140, 0.35);
}

/* ─── Pagination ────────────────────────────────────────────────────── */
.zs-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.zs-page-btn {
    padding: 8px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: inherit;
}

.zs-page-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.zs-page-btn.active {
    background: var(--brand-primary);
    border-color: transparent;
    color: var(--brand-secondary);
}

.zs-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── Toast ─────────────────────────────────────────────────────────── */
.zs-toast-wrap {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.zs-toast {
    background: var(--text-primary);
    color: white;
    padding: 14px 28px;
    border-radius: var(--border-radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    justify-content: center;
    pointer-events: all;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zs-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.zs-toast.success {
    background: var(--brand-success);
}

.zs-toast.error {
    background: var(--brand-danger);
}

.zs-toast.warning {
    background: var(--brand-warning);
    color: var(--text-primary);
}

/* ─── Coupon ────────────────────────────────────────────────────────── */
.zs-coupon-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.zs-coupon-input {
    flex: 1;
}

/* ─── Upload Area ────────────────────────────────────────────────────── */
.zs-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.zs-upload-area:hover {
    border-color: var(--brand-secondary);
    background: rgba(212, 175, 55, 0.04);
    color: var(--brand-secondary);
}

.zs-upload-area i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.zs-upload-area p {
    font-size: 0.85rem;
}

/* ─── Loading Spinner ────────────────────────────────────────────────── */
.zs-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.zs-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.zs-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 24px;
    font-size: 0.8rem;
    margin-top: 40px;
}

.zs-footer strong {
    color: rgba(255, 255, 255, 0.9);
}

/* ─── Divider ────────────────────────────────────────────────────────── */
.zs-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 20px 0;
}

/* ─── Tag / Status ──────────────────────────────────────────────────── */
.zs-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--border-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
}

.zs-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.zs-status-paid {
    background: #dbeafe;
    color: #1e40af;
}

.zs-status-processing {
    background: #ede9fe;
    color: #5b21b6;
}

.zs-status-shipped {
    background: #cffafe;
    color: #0e7490;
}

.zs-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.zs-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* ─── Alert ────────────────────────────────────────────────────────── */
.zs-alert {
    padding: 14px 18px;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.zs-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.zs-alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.zs-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.zs-alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .zs-checkout-grid {
        grid-template-columns: 1fr;
    }

    .zs-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .zs-navbar {
        padding: 0 16px;
        gap: 10px;
    }

    .zs-hero {
        padding: 36px 16px 28px;
    }

    .zs-hero h1 {
        font-size: 1.5rem;
    }

    .zs-categories-bar {
        padding: 0 16px;
    }

    .zs-container {
        padding: 0 16px;
    }

    .zs-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .zs-product-modal-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .zs-product-modal-gallery {
        border-radius: var(--border-radius-lg);
        aspect-ratio: 1;
    }

    .zs-product-modal-info {
        padding: 0;
        max-height: none;
    }

    .zs-cart-drawer {
        max-width: 100vw;
        width: 100%;
    }

    .zs-navbar-search {
        display: none;
    }

    .zs-checkout-grid {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .zs-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .zs-card-body {
        padding: 12px;
        gap: 6px;
    }

    .zs-card-actions {
        padding: 0 12px 12px;
    }
}

/* ─── Tripay Channels ───────────────────────────────────────────────── */
.zs-tripay-channel {
    border: 1.5px solid var(--border-color);
    padding: 15px 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.zs-tripay-channel img {
    height: 24px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 6px;
    filter: grayscale(0.2);
    transition: var(--transition);
}

.zs-tripay-channel:hover {
    border-color: var(--brand-secondary);
    background: rgba(212, 175, 55, 0.04);
}

.zs-tripay-channel img {
    height: 28px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: var(--transition);
    filter: grayscale(0.2);
}

.zs-tripay-channel:hover img {
    filter: grayscale(0);
    transform: scale(1.1);
}

.zs-tripay-channel.active {
    border-color: var(--brand-secondary);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.zs-tripay-channel.active img {
    filter: grayscale(0);
}

.zs-tripay-channel.active::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -6px;
    right: -6px;
    background: white;
    color: var(--brand-secondary);
    font-size: 1rem;
    border-radius: 50%;
    line-height: 1;
}