/* ═══════════════════════════════════════════════════
   CLIVE STORE — SHOP STYLES
═══════════════════════════════════════════════════ */

/* ── Product Cards ──────────────────────────────────── */
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(75, 31, 111, 0.12);
    border-color: transparent;
}

.product-card-img {
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    aspect-ratio: 1 / 1;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: 2px;
    z-index: 2;
}

.badge-sale     { background: #D4A437; color: #fff; }
.badge-new      { background: #4B1F6F; color: #fff; }
.badge-featured { background: #1A1A1A; color: #fff; }
.badge-out      { background: #6B6B6B; color: #fff; }

.product-card-quick {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(75, 31, 111, 0.92);
    backdrop-filter: blur(4px);
    padding: 0.75rem;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    display: flex;
    gap: 0.5rem;
}

.product-card:hover .product-card-quick {
    transform: translateY(0);
}

.product-card-body {
    padding: 1.25rem;
}

.product-category {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.4;
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}

.product-card:hover .product-name { color: var(--primary); }

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-current {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.price-old {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: var(--mid-text);
    text-decoration: line-through;
}

.price-discount {
    font-size: 0.7rem;
    font-weight: 700;
    color: #D4A437;
    background: rgba(212,164,55,0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
}

/* ── Filter Bar ──────────────────────────────────────── */
.filter-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: 2px;
    border: 1.5px solid var(--border);
    color: var(--mid-text);
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── Cart Sidebar ────────────────────────────────────── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(3px);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: #fff;
    z-index: 1101;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-alt);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-alt);
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg-alt);
    color: var(--dark-text);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover { background: var(--primary); color: #fff; }

.qty-value {
    width: 36px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    outline: none;
    background: #fff;
}

/* ── Cart Icon Badge ─────────────────────────────────── */
.cart-icon-wrap {
    position: relative;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    transition: transform 0.2s ease;
}

/* ── Product Detail Page ─────────────────────────────── */
.product-thumb {
    width: 70px;
    height: 70px;
    border-radius: 3px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.product-thumb.active,
.product-thumb:hover {
    border-color: var(--gold);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 3px;
    transition: opacity 0.3s;
}

/* ── Admin Table ─────────────────────────────────────── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
}

.admin-table th {
    background: var(--bg-alt);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--mid-text);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--dark-text);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-alt); }

/* ── Status Badges ───────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
}

.status-pending    { background: rgba(212,164,55,0.12); color: #B8932E; }
.status-confirmed  { background: rgba(75,31,111,0.1);   color: var(--primary); }
.status-processing { background: rgba(59,130,246,0.1);  color: #2563EB; }
.status-shipped    { background: rgba(16,185,129,0.1);  color: #059669; }
.status-delivered  { background: rgba(5,150,105,0.15);  color: #047857; }
.status-cancelled  { background: rgba(239,68,68,0.1);   color: #DC2626; }

/* ── Admin Sidebar ───────────────────────────────────── */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--primary);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.25s;
    border-left: 3px solid transparent;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--gold);
}

.admin-nav-link svg { fill: currentColor; flex-shrink: 0; }

/* ── Form Inputs (Admin) ─────────────────────────────── */
.admin-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 3px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    color: var(--dark-text);
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}

.admin-input:focus { border-color: var(--primary); }

.admin-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--dark-text);
    margin-bottom: 0.4rem;
}

/* ── Stat Cards (Admin) ──────────────────────────────── */
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold);
}

/* ── Toast Notifications ─────────────────────────────── */
.toast {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    z-index: 9999;
    background: var(--primary);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 3px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    max-width: 320px;
    border-left: 3px solid var(--gold);
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ── Checkout Steps ──────────────────────────────────── */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid var(--border);
    color: var(--mid-text);
    transition: all 0.3s;
}

.step.active .step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.step.done .step-num {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 2rem;
    transition: background 0.3s;
}

.step-line.done { background: var(--gold); }

@media (max-width: 768px) {
    .cart-drawer { max-width: 100%; }
    .admin-sidebar { width: 100%; min-height: auto; position: relative; }
}