﻿/* =========================================================
   GLOBAL
========================================================= */

body {
    background: #fafafa;
}

.active-link {
    font-weight: 600;
    border-bottom: 2px solid black;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: #6c757d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}


/* =========================================================
   ROOT PALETTE (Scandinavian Clean)
========================================================= */

:root {
    --sc-bg: #fafafa;
    --sc-surface: #ffffff;
    --sc-muted: #6b7280;
    --sc-accent: #1f2937;
    --sc-soft: #e6e9ec;
    --sc-success: #2f855a;
    --sc-warning: #d69e2e;
    --sc-danger: #e53e3e;
}


/* =========================================================
   PRODUCT CARD BASE FIX (Equal Height Layout)
========================================================= */

.modern-card,
.premium-card,
.minimal-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

    /* ensures inner content expands */
    .modern-card .card-body,
    .premium-card .card-body {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }


/* =========================================================
   MODERN CARD
========================================================= */

.modern-card {
    background: var(--sc-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sc-soft);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .modern-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

.modern-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.modern-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-soldout {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 8px;
    background: black;
    color: white;
    font-size: 0.75rem;
}

.modern-price {
    font-size: 1.2rem;
    font-weight: 700;
}

/* reserved height for variant area */
.variant-area {
    min-height: 80px;
}


/* color selector */
/*.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
}

    .color-dot.selected {
        box-shadow: 0 2px 6px rgba(31,41,55,0.12);
        transform: scale(1.05);
    }*/


/* =========================================================
   PREMIUM CARD
========================================================= */

.premium-card {
    background: var(--sc-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sc-soft);
    transition: transform .15s ease, box-shadow .15s ease;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

    .premium-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(31,41,55,0.06);
    }

.premium-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: linear-gradient(180deg, #f7f7f7, #ffffff);
}

.premium-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(31,41,55,0.08);
    color: var(--sc-accent);
    font-weight: 600;
    font-size: 0.85rem;
}

.premium-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sc-accent);
}


/* =========================================================
   MINIMAL CARD
========================================================= */

.minimal-card img {
    height: 150px;
    object-fit: cover;
}

.minimal-card .minimal-img {
    height: 140px;
    object-fit: cover;
}


/* =========================================================
   TABLE / PRICE SMALL ADJUSTMENTS
========================================================= */

.product-card .product-price {
    font-weight: 700;
    font-size: 1.05rem;
}


/* =========================================================
   CATEGORY HEADER (Scandinavian Clean)
========================================================= */

.sc-category-header {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sc-soft);
}

.sc-breadcrumb {
    font-size: 0.85rem;
    color: var(--sc-muted);
}

.sc-breadcrumb-link {
    cursor: pointer;
    color: #374151;
    transition: color 0.15s ease;
}

    .sc-breadcrumb-link:hover {
        color: #111827;
    }

.sc-breadcrumb-current {
    color: #9ca3af;
}

.sc-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sc-accent);
}

.sc-count {
    font-size: 0.85rem;
    color: var(--sc-muted);
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 10px;
}

.sc-description {
    margin-top: 6px;
    color: #4b5563;
    font-size: 0.95rem;
    max-width: 700px;
}


/* =========================================================
   IMAGE WRAPPER (Square / Flexible)
========================================================= */

.img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* =========================================================
   LOADING SKELETON
========================================================= */

.skeleton-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
}

.skeleton-card {
    background: linear-gradient(90deg, #f4f5f6 25%, #eceff1 37%, #f4f5f6 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s linear infinite;
    border-radius: 10px;
    min-height: 260px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


/* =========================================================
   UTILITIES
========================================================= */

.text-muted-small {
    color: var(--sc-muted);
    font-size: 0.85rem;
}
/* color selector */
.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    border: 1px solid #dcdcdc; /* visible even for white */
    transition: transform .12s ease;
}

    .color-dot:hover {
        transform: scale(1.15);
    }

    .color-dot.selected {
        outline: 2px solid #000; /* selection ring */
        outline-offset: 2px;
    }

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e00000;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
}

.old-price {
    text-decoration: line-through;
    color: #777;
    font-size: 0.9rem;
}
.header-banner {
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 8px;
}