/* ═══════════════════════════════════════════════
   category.css — Kateqoriya səhifələri
   (naturaltech, alchemic, curly-hair, colored-hair,
    damaged-hair, fine-thin-hair, essential-haircare,
    heart-of-glass, liquid-spell, more-inside, oi,
    pasta-love, su, authentic, circle-chronicles, ...)
═══════════════════════════════════════════════ */

/* ─── PAGE HERO (full-bleed) ─────────────────────────────────── */
.page-hero {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
}
.page-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 10, 0.72) 0%,
        rgba(10, 10, 10, 0.28) 55%,
        rgba(10, 10, 10, 0.05) 100%
    );
}
.page-hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.page-hero-title {
    font-family: var(--serif);
    font-size: clamp(48px, 5.5vw, 80px);
    font-weight: 300;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 20px;
}
.page-hero-title em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}
.page-hero-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    line-height: 1.85;
    font-weight: 300;
}

/* ─── COLLECTION TITLE ────────────────────────────────────────── */
.collection-title {
    font-family: var(--serif);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--espresso);
    margin-bottom: 48px;
}
.collection-title em {
    font-style: italic;
}

/* ─── PRODUCTS GRID ───────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    position: relative;
    cursor: pointer;
}
.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Invisible full-cover link over the image (keeps wishlist btn outside anchor) */
.product-img-link {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--warm);
    aspect-ratio: 3/4;
    border-radius: 3px;
    margin-bottom: 20px;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--espresso);
    color: var(--cream);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 1px;
    z-index: 2;
}
.product-badge.sale {
    background: #b04040;
}

.product-category {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 6px;
}
.product-name {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--espresso);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-desc {
    font-size: 12px;
    color: var(--stone);
    margin-bottom: 16px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(12px * 1.55 * 2);
}

/* ─── WISHLIST BUTTON ─────────────────────────────────────────── */
.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.product-card:hover .product-wishlist {
    opacity: 1;
}
.product-wishlist svg {
    width: 14px;
    height: 14px;
}
.product-wishlist.active svg {
    fill: #b04040;
    stroke: #b04040;
}

/* ─── OOS BADGE ───────────────────────────────────────────────── */
.product-oos-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(100, 100, 100, 0.85);
    color: #fff;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 2px;
    z-index: 2;
}
.product-card--oos .product-img-wrap img {
    opacity: 0.7;
}
.btn-add-cart--oos {
    background: #aaa !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

/* ─── ML / SIZE BUTTONS ───────────────────────────────────────── */
.product-ml {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    min-height: 28px;
}
.ml-btn {
    font-size: 11px;
    font-family: var(--sans);
    letter-spacing: 0.08em;
    border: 1px solid var(--sand);
    background: transparent;
    color: var(--stone);
    padding: 4px 10px;
    border-radius: 2px;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
}
.ml-btn.active {
    background: #fff;
    color: #000;
    border-color: #000;
}
.ml-btn:hover {
    border-color: #000;
}

/* ─── FOOTER & PRICE ──────────────────────────────────────────── */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}
.product-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--bark);
    letter-spacing: 0.04em;
}
.product-price s {
    color: var(--sand);
    font-weight: 300;
    margin-right: 6px;
}

.btn-add-cart {
    background: var(--espresso);
    color: var(--cream);
    border: none;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 9px 14px;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.btn-add-cart:hover {
    opacity: 0.75;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1024px) {
    .page-hero-content {
        padding: 0 40px;
    }
}
@media (max-width: 768px) {
    .page-hero { height: 340px; }
    .page-hero-content { padding: 0 24px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .collection-title { margin-top: 0; margin-bottom: 24px; }
}
@media (max-width: 480px) {
    .page-hero { height: 260px; }
    .page-hero-content { padding: 0 16px; }
    .products-grid { grid-template-columns: 1fr !important; gap: 10px; }
    .collection-title { margin-top: 0; margin-bottom: 20px; }
}
