/* ============================================
   GarageConnect Shop — Dark Theme Glass Morphism
   ============================================ */

:root {
    --gc-bg: #0a0a0f;
    --gc-surface: #141420;
    --gc-surface-light: #1e1e30;
    --gc-accent: #3b82f6;
    --gc-accent-hover: #2563eb;
    --gc-text: #f1f5f9;
    --gc-text-muted: #94a3b8;
    --gc-border: rgba(255, 255, 255, 0.06);
    --gc-glass-bg: rgba(255, 255, 255, 0.03);
    --gc-glass-hover: rgba(255, 255, 255, 0.05);
    --gc-glass-border: rgba(255, 255, 255, 0.08);
}

/* ---- Shop-specific glass cards ---- */
.shop-card {
    background: var(--gc-glass-bg);
    border: 1px solid var(--gc-glass-border);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}
.shop-card:hover {
    background: var(--gc-glass-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ---- Product grid ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

/* ---- Product image ---- */
.product-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 1;
    background: var(--gc-surface);
}
.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.shop-card:hover .product-image-wrap img {
    transform: scale(1.05);
}

/* ---- Featured badge ---- */
.badge-featured {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Price ---- */
.price-tag {
    color: #22d3ee;
    font-weight: 700;
    font-size: 1.125rem;
}
.price-tag-lg {
    font-size: 1.5rem;
}

/* ---- Category pills ---- */
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--gc-glass-bg);
    border: 1px solid var(--gc-glass-border);
    color: var(--gc-text-muted);
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.category-pill:hover,
.category-pill.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* ---- Variant selector ---- */
.variant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--gc-glass-bg);
    border: 1px solid var(--gc-glass-border);
    color: var(--gc-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.variant-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}
.variant-btn.selected {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #60a5fa;
}

/* ---- Color swatch ---- */
.color-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.color-swatch:hover,
.color-swatch.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* ---- Cart item row ---- */
.cart-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gc-border);
}
.cart-item-row:last-child {
    border-bottom: none;
}

/* ---- Quantity control ---- */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gc-glass-border);
    border-radius: 8px;
    overflow: hidden;
}
.qty-control button {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--gc-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.qty-control button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}
.qty-control span {
    width: 2.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    border-left: 1px solid var(--gc-border);
    border-right: 1px solid var(--gc-border);
    line-height: 2rem;
}

/* ---- Checkout form ---- */
.gc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--gc-text);
    font-size: 0.875rem;
    transition: all 0.2s;
}
.gc-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.gc-input::placeholder {
    color: #475569;
}
.gc-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gc-text-muted);
    margin-bottom: 0.375rem;
}

/* ---- Order summary sidebar ---- */
.order-summary {
    background: var(--gc-glass-bg);
    border: 1px solid var(--gc-glass-border);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 5rem;
}

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state svg {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: #334155;
}
.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gc-text-muted);
    margin-bottom: 0.5rem;
}

/* ---- Success checkmark animation ---- */
@keyframes checkPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
.success-check {
    animation: checkPop 0.5s ease-out forwards;
}

/* ---- Search bar ---- */
.shop-search {
    position: relative;
}
.shop-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--gc-text);
    font-size: 0.875rem;
}
.shop-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.shop-search .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    pointer-events: none;
}
