/* --- Professional Product Card Styling (Fixed & Compact & Large Inputs) --- */

/* 0. Wrapper Context */
.product-card-image-wrap {
    position: relative;
    overflow: hidden;
}

/* 1. Description Overlay - Premium Glass Style */
.product-card-annotation.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(101%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #333;
    padding: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 5;
    box-sizing: border-box;
}

.product-card-image-wrap:hover .product-card-annotation.overlay {
    transform: translateY(0);
}

/* 2. Compact Footer Layout */
.product-card-footer.compact-footer {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    /* Horizontal */
    align-items: center;
    /* Vertical Center */
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
}

/* 3. Prices */
.price-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.price-vat {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    white-space: nowrap;
}

.price-vat small {
    font-size: 0.7em;
    font-weight: 400;
    color: #888;
}

.price-novat-compact {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

/* 4. Actions Row - Compact */
.actions-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.add-to-cart-form.compact-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Compact Input (Larger) */
.qty-in.pcf-qty-input {
    width: 65px !important;
    height: 44px;
    /* Taller */
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0 0 0 5px;
    color: #333;
    background: #fff;
}

.qty-input-compact:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Ensure spinners are visible and usable */
.qty-input-compact::-webkit-inner-spin-button,
.qty-input-compact::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
    cursor: pointer;
}


/* Light Icon Button - Respect Editor Colors (Larger) */
.btn-cart-icon {
    width: 48px;
    height: 44px;
    border-radius: 6px;
    background: #fff;
    border: 2px solid var(--color-btn);
    /* Thicker border */
    color: var(--color-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cart-icon:hover {
    background: var(--color-btn);
    color: #fff;
    border-color: var(--color-btn);
    transform: scale(1.05);
}

.btn-cart-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke-width: 2.5;
}

/* Detail Button (Matched Height) */
.btn-detail {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    height: 44px;
    /* Match height */
    white-space: nowrap;
}

.btn-detail:hover {
    background: #e2e6ea;
    border-color: #cbd3da;
    color: #111;
}


/* Labels */
.product-labels {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
}

.product-label {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: labelPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.8) translateX(-10px);
}

@keyframes labelPop {
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

.product-label:nth-child(1) {
    animation-delay: 0.1s;
}

.product-label:nth-child(2) {
    animation-delay: 0.2s;
}

.product-label:nth-child(3) {
    animation-delay: 0.3s;
}

/* Hover Gallery Dots */
.card-gallery-dots {
    bottom: 15px;
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-card-image-wrap:hover .card-gallery-dots {
    opacity: 1;
}

.card-gallery-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-gallery-dots span.active {
    background: var(--color-primary);
    transform: scale(1.3);
    border-color: transparent;
}

/* --- PCF Stepper styles --- */
.qty-control {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 44px;
    width: fit-content;
}

.qty-btn {
    width: 36px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: #444;
}

.qty-btn:hover {
    background: #e9ecef;
}

.pcf-qty-input {
    width: 65px !important;
    height: 100%;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    background: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    -moz-appearance: textfield;
}

.pcf-qty-input::-webkit-outer-spin-button,
.pcf-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pcf-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}