/* ============================================
   Product Category Page
   Wine product cards with oval design + expand
   ============================================ */

/* ── Page Wrapper ── */
.page-product-category {
    background-color: var(--color-black);
    min-height: 100vh;
    padding-top: 80px;
}

/* ── Category Header Bar ── */
.prodcat-header {
    max-width: 1308px;
    margin: 0 auto;
    border: 1px solid var(--color-white);
}
.prodcat-header__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 40px;
}
.prodcat-header__icon {
    flex-shrink: 0;
}
.prodcat-header__icon img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}
.prodcat-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ── Products Grid (4-col) ── */
.prodcat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1308px;
    margin: 0 auto;
}

/* ── Product Card ── */
.prodcat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 580px;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--color-white);
    transition: all 0.3s ease;
}
.prodcat-card--active {
    background-color: transparent;
}
.prodcat-card--active .prodcat-card__oval {
    border-color: var(--color-white);
    background-color: var(--color-white);
}
.prodcat-card--active .prodcat-card__name {
    color: var(--color-black);
}
.prodcat-card--active .prodcat-card__price {
    color: var(--color-black);
}
.prodcat-card--active .prodcat-card__btn {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* ── Discount Badge — yellow 12-point star with text centered ── */
.prodcat-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-black);
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    padding: 0;
    border: 0;
    z-index: 3;
    pointer-events: none;
}
.prodcat-card__badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../svg/badge-star.svg") center / contain no-repeat;
    z-index: -1;
}

/* ── Volume Badge — green pill marking non-0.75L variants ──
   Shown only for wines whose vinuri_volume ≠ 750 ml so it's clear from the
   start it's a different volume (deck: "Wine Volume Variants"). Top-right,
   mirrors the discount star on the top-left. */
.prodcat-card__volume-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 52px;
    height: 52px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #1f8a4c;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6);
    z-index: 3;
    pointer-events: none;
}
@media (max-width: 768px) {
    .prodcat-card__volume-badge {
        top: 10px;
        right: 10px;
        min-width: 44px;
        height: 44px;
        font-size: 13px;
    }
}

/* ── Sold-out treatment ──
   Greyscale + centered yellow stamp pill across the bottle so it's
   instantly readable from a distance without obscuring the product. */
.prodcat-card.is-sold-out {
    pointer-events: none;
}
.prodcat-card.is-sold-out .prodcat-card__image,
.prodcat-card.is-sold-out .prodcat-card__name,
.prodcat-card.is-sold-out .prodcat-card__prices,
.prodcat-card.is-sold-out .prodcat-card__btn {
    opacity: 0.5;
    filter: grayscale(0.7);
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.prodcat-card__sold-out {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-6deg);
    background: #FED059;
    color: var(--color-black);
    font-family: var(--font-display, 'Cormorant', serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 10px 28px;
    white-space: nowrap;
    z-index: 4;
    border: 2px solid var(--color-black);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* ── Oval Container (full card rounded-full) ── */
.prodcat-card__oval {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-white);
    border-radius: 9999px;
    padding: 20px;
    transition: all 0.3s ease;
}
.prodcat-card:hover .prodcat-card__oval {
    border-color: var(--color-white);
}

/* ── Product Image ── */
.prodcat-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 332px;
}
.prodcat-card__image img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.prodcat-card:hover .prodcat-card__image img {
    transform: scale(1.05);
}

/* ── Product Name ── */
.prodcat-card__name {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-white);
    text-align: center;
    margin-top: 40px;
    letter-spacing: 1px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* ── Prices ── */
.prodcat-card__prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 12px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.prodcat-card__price {
    color: var(--color-white);
    transition: color 0.3s ease;
}
.prodcat-card__price--old {
    color: #808080;
    text-decoration: line-through;
    font-size: 10px;
}

/* ── "Mai mult" Button ── */
.prodcat-card__btn {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 28px;
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    border-radius: 22px;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.prodcat-card:hover .prodcat-card__btn {
    border-color: var(--color-white);
}

/* ── Empty State ── */
.prodcat-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52vh;
    padding: 80px 20px;
}

.prodcat-empty__inner {
    max-width: 460px;
    text-align: center;
}

.prodcat-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    margin-bottom: 26px;
    border: 1px solid rgba(145, 114, 54, 0.45);
    border-radius: 50%;
    color: var(--color-gold-light);
}

.prodcat-empty__icon svg {
    width: 36px;
    height: 36px;
}

.prodcat-empty__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 12px;
    letter-spacing: 0.5px;
}

.prodcat-empty__text {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin: 0 0 32px;
}

.prodcat-empty__btn {
    display: inline-block;
    padding: 14px 38px;
    border: 1px solid var(--color-gold);
    border-radius: 4px;
    color: var(--color-gold-light);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.prodcat-empty__btn:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

@media (max-width: 480px) {
    .prodcat-empty {
        min-height: 44vh;
        padding: 56px 20px;
    }
    .prodcat-empty__title {
        font-size: 1.6rem;
    }
}

/* ============================================
   Expanded Product Detail Panel — Premium
   ============================================ */

.prodcat-detail {
    grid-column: 1 / -1;
    background-color: var(--color-white);
    color: var(--color-black);
    display: grid;
    grid-template-columns: 2fr 3fr;
    min-height: 680px;
    position: relative;
    padding: 60px 80px;
    animation: panel-reveal 0.5s ease both;
}

@keyframes panel-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .prodcat-detail,
    .prodcat-detail__big-image,
    .prodcat-detail__big-image img,
    .prodcat-detail__right-inner {
        animation: none !important;
    }
}

.prodcat-detail__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.3);
    font-size: 1.6rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 5;
    padding: 4px 8px;
    transition: color 0.2s ease;
}
.prodcat-detail__close:hover {
    color: var(--color-black);
}

/* ── Left Column: clean centered bottle ── */
.prodcat-detail__left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.prodcat-detail__big-image {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 280px;
    height: 100%;
    max-height: 560px;
    animation: bottle-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.prodcat-detail__big-image img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    animation: bottle-float 5s ease-in-out 0.8s infinite;
}

/* ── Bottle entrance: slide up + fade in ── */
@keyframes bottle-enter {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Idle float: gentle breathing ── */
@keyframes bottle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Right Column: all info ── */
.prodcat-detail__right {
    display: flex;
    align-items: center;
    padding-left: 60px;
}

.prodcat-detail__right-inner {
    width: 100%;
    max-width: 520px;
    animation: content-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* ── Right column: fade in + slight slide ── */
@keyframes content-enter {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prodcat-detail__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-black);
    margin-bottom: 6px;
    line-height: 1.2;
}

.prodcat-detail__variety {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 300;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.prodcat-detail__price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.prodcat-detail__price {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--color-black);
}
.prodcat-detail__price--old {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.35);
    text-decoration: line-through;
}

/* ── Sensory Meta — refined rows ── */
.prodcat-detail__meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.prodcat-detail__meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
    letter-spacing: 0.2px;
}
.prodcat-detail__meta-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.6;
}

/* ── Description ── */
.prodcat-detail__description {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 28px;
}
.prodcat-detail__description p {
    margin-bottom: 10px;
}

.prodcat-detail__section-label {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.35);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ── Gallery ── */
.prodcat-detail__gallery {
    display: flex;
    gap: 8px;
    margin: 20px 0 28px;
    flex-wrap: wrap;
}
.prodcat-detail__gallery-item {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
}
.prodcat-detail__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Cart Button — elegant pill ── */
.prodcat-detail__cart-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 44px;
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-black);
    border-radius: 40px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.prodcat-detail__cart-btn:hover {
    background-color: transparent;
    color: var(--color-black);
}
.prodcat-detail__cart-btn--disabled {
    background-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 0, 0, 0.15);
    cursor: not-allowed;
    pointer-events: none;
}
.prodcat-detail__cart-btn--in-cart {
    background-color: transparent;
    color: var(--color-black);
    border: 1px solid rgba(0, 0, 0, 0.25);
}
.prodcat-detail__cart-btn--in-cart:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* ============================================
   Responsive
   ============================================ */

/* ── Tablet landscape (≤1024px): 2-col grid ── */
@media (max-width: 1024px) {
    .prodcat-header__inner {
        padding: 16px 30px;
        gap: 24px;
    }
    .prodcat-header__icon img {
        width: 100px;
        height: 100px;
    }
    .prodcat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prodcat-card {
        height: auto;
        padding: 30px 15px;
    }
    .prodcat-card__oval {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 2;
    }
    .prodcat-card__image {
        width: 155px;
        height: 310px;
    }
    .prodcat-detail {
        padding: 40px 40px;
        min-height: 550px;
    }
    .prodcat-detail__right {
        padding-left: 40px;
    }
    .prodcat-detail__big-image {
        max-width: 220px;
        max-height: 450px;
    }
}

/* ── Tablet portrait (≤768px) ── */
@media (max-width: 768px) {
    .page-product-category {
        padding-top: 70px;
    }
    .prodcat-header__inner {
        padding: 14px 20px;
        gap: 20px;
    }
    .prodcat-header__icon img {
        width: 80px;
        height: 80px;
    }
    .prodcat-header__title {
        font-size: 1.6rem;
    }
    .prodcat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prodcat-card {
        height: auto;
        padding: 24px 10px;
    }
    .prodcat-card__oval {
        aspect-ratio: 1 / 2;
    }
    .prodcat-card__image {
        width: 140px;
        height: 280px;
    }
    .prodcat-card__name {
        font-size: 1rem;
        margin-top: 24px;
    }
    .prodcat-card__btn {
        padding: 7px 22px;
        font-size: 0.7rem;
    }

    /* Detail: stack vertically */
    .prodcat-detail {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        min-height: auto;
    }
    .prodcat-detail__left {
        padding: 20px;
        justify-content: center;
    }
    .prodcat-detail__big-image {
        max-height: 380px;
        max-width: 200px;
    }
    .prodcat-detail__right {
        padding-left: 0;
    }
    .prodcat-detail__right-inner {
        max-width: none;
    }
    .prodcat-detail__cart-btn {
        align-self: center;
        display: block;
        text-align: center;
    }
}

/* ── Mobile (≤480px): 2-col compact ── */
@media (max-width: 480px) {
    .page-product-category {
        padding-top: 60px;
    }
    .prodcat-header__inner {
        padding: 10px 16px;
        gap: 10px;
    }
    .prodcat-header__icon {
        display: none;
    }
    .prodcat-header__title {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
    .prodcat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prodcat-card {
        padding: 20px 8px;
    }
    .prodcat-card__image {
        width: 110px;
        height: 230px;
    }
    .prodcat-card__name {
        font-size: 0.85rem;
        margin-top: 16px;
    }
    .prodcat-card__prices {
        font-size: 11px;
    }
    .prodcat-card__btn {
        padding: 6px 18px;
        font-size: 0.65rem;
    }

    /* Detail */
    .prodcat-detail {
        padding: 30px 16px;
    }
    .prodcat-detail__left {
        padding: 10px;
    }
    .prodcat-detail__big-image {
        max-height: 300px;
        max-width: 160px;
    }
    .prodcat-detail__title {
        font-size: 1.4rem;
    }
    .prodcat-detail__variety {
        font-size: 0.85rem;
    }
    .prodcat-detail__price {
        font-size: 1.15rem;
    }
    .prodcat-detail__meta-row {
        font-size: 0.75rem;
    }
    .prodcat-detail__meta-icon {
        width: 22px;
        height: 22px;
    }
    .prodcat-detail__description {
        font-size: 0.88rem;
    }
    .prodcat-detail__cart-btn {
        font-size: 0.8rem;
        padding: 12px 32px;
    }
}

/* ── Small mobile (≤360px) ── */
@media (max-width: 360px) {
    .prodcat-card__image {
        width: 95px;
        height: 200px;
    }
    .prodcat-card__name {
        font-size: 0.75rem;
    }
    .prodcat-card__btn {
        padding: 5px 14px;
        font-size: 0.6rem;
    }
}

/* Promoții page header — uses the production star GIF (already animated). */
