.wn-product-card,
.wn-product-card * {
    box-sizing: border-box;
}

.wn-product-card {
    height: 100%;
    background: var(--wn-product-card-bg, #fff);
    border: 1px solid var(--wn-product-card-border, #e5e7eb);
    border-radius: var(--wn-product-card-radius, 16px);
    overflow: hidden;
    transition: .22s ease;
    position: relative;
}

.wn-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
    border-color: rgba(252, 137, 52, .35);
}

.wn-product-card__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wn-product-card__media {
    position: relative;
    aspect-ratio: var(--wn-card-ratio, 1/1);
    background: #f8fafc;
    overflow: hidden;
}

.wn-product-card__media a {
    width: 100%;
    height: 100%;
    display: block;
}

.wn-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .28s ease;
}

.wn-product-card:hover .wn-product-card__media img {
    transform: scale(1.045);
}

.wn-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.wn-product-card__badge--discount {
    background: #ef4444;
}

.wn-product-card__badge--combo {
    background: #10b981;
}

.wn-product-card__badge--variant {
    background: #3b82f6;
}

.wn-product-card__stock {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, .88);
    color: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.wn-product-card__quick {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: var(--wn-product-primary, #FC8934);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
    opacity: 0;
    transform: translateY(-6px);
    transition: .2s ease;
}

.wn-product-card:hover .wn-product-card__quick {
    opacity: 1;
    transform: translateY(0);
}

.wn-product-card__body {
    padding: 12px 12px 8px;
    flex: 1 1 auto;
}

.wn-product-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.wn-product-card__meta span {
    color: var(--wn-product-muted, #64748b);
    font-size: 11px;
    font-weight: 700;
}

.wn-product-card__title {
    margin: 0 0 8px;
    min-height: 38px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

.wn-product-card__title a {
    color: var(--wn-product-text, #111827);
    text-decoration: none;
}

.wn-product-card__title a:hover {
    color: var(--wn-product-primary, #FC8934);
}

.wn-product-card__summary {
    margin: 0 0 8px;
    color: var(--wn-product-muted, #64748b);
    font-size: 12px;
    line-height: 1.45;
}

.wn-product-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 7px;
}

.wn-product-card__rating small {
    color: var(--wn-product-muted, #64748b);
    font-weight: 600;
}

.wn-product-card__price {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.wn-product-card__price del {
    color: #94a3b8;
    font-size: 12px;
}

.wn-product-card__price strong {
    color: var(--wn-product-primary, #FC8934);
    font-size: 15px;
    font-weight: 500;
}

.wn-product-card__combo-info {
    margin-top: 7px;
    color: var(--wn-product-muted, #64748b);
    font-size: 12px;
    font-weight: 700;
}

.wn-product-card__variant {
    width: 100%;
    height: 36px;
    margin-top: 10px;
    border: 1px solid var(--wn-product-card-border, #e5e7eb);
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    padding: 0 9px;
    outline: 0;
}

.wn-product-card__footer {
    padding: 0 12px 12px;
}

.wn-product-card__form {
    margin: 0;
}

.wn-product-card__btn {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: var(--wn-product-button-radius, 999px);
    background: var(--wn-product-primary, #FC8934);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 13px;
    transition: .2s ease;
}

.wn-product-card__btn:hover {
    background: var(--wn-product-primary-dark, #E67620);
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(252, 137, 52, .22);
}

.wn-product-card__btn.is-disabled {
    background: #e5e7eb;
    color: #64748b !important;
    cursor: not-allowed;
    box-shadow: none;
}

.wn-product-card--clean {
    box-shadow: none;
}

.wn-product-card--clean .wn-product-card__media {
    margin: 10px 10px 0;
    border-radius: 14px;
}

.wn-product-card--compact .wn-product-card__body {
    padding: 9px 10px 6px;
}

.wn-product-card--compact .wn-product-card__title {
    font-size: 13px;
    min-height: 34px;
}

.wn-product-card--compact .wn-product-card__btn {
    min-height: 36px;
    font-size: 12px;
}

.wn-quick-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(15, 23, 42, .68);
    backdrop-filter: blur(6px);
}

.wn-quick-overlay.is-open {
    display: block !important;
}

.wn-quick-modal-root {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 22px;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.wn-quick-modal-root.is-open {
    display: flex !important;
}

body.wn-quick-open {
    overflow: hidden;
}

.wn-quick-modal {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 34px 100px rgba(15, 23, 42, .34);
    animation: wnQuickIn .22s ease;
}

@keyframes wnQuickIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wn-quick-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(254, 226, 226, .95);
    color: #ef4444;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}

.wn-quick-modal__grid {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 430px;
}

.wn-quick-modal__image {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(252, 137, 52, .12), transparent 36%),
        #f8fafc;
    overflow: hidden;
}

.wn-quick-modal__image img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    display: block;
}

.wn-quick-modal__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 10px 22px rgba(239, 68, 68, .25);
}

.wn-quick-modal__content {
    padding: 34px 30px 28px;
}

.wn-quick-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.wn-quick-modal__meta span {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--wn-product-primary, #FC8934);
    border: 1px solid rgba(252, 137, 52, .18);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
}

.wn-quick-modal__title {
    color: var(--wn-product-text, #111827);
    font-size: 25px;
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 12px;
}

.wn-quick-modal__price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.wn-quick-modal__price strong {
    color: var(--wn-product-primary, #FC8934);
    font-size: 24px;
    font-weight: 600;
}

.wn-quick-modal__price del {
    color: #94a3b8;
    font-size: 16px;
    font-weight: 700;
}

.wn-quick-modal__text {
    color: var(--wn-product-muted, #64748b);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.wn-quick-modal__label {
    display: block;
    color: var(--wn-product-text, #111827);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 7px;
}

.wn-quick-modal__variant {
    width: 100%;
    height: 44px;
    border: 1px solid var(--wn-product-card-border, #e5e7eb);
    border-radius: 14px;
    padding: 0 12px;
    outline: 0;
    margin-bottom: 14px;
    font-weight: 700;
    color: #111827;
    background: #fff;
}

.wn-quick-modal__qty {
    display: grid;
    grid-template-columns: 44px 80px 44px;
    gap: 8px;
    margin-bottom: 14px;
}

.wn-quick-modal__qty button,
.wn-quick-modal__qty input {
    height: 44px;
    border-radius: 14px;
}

.wn-quick-modal__qty button {
    border: 0;
    background: #f1f5f9;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.wn-quick-modal__qty input {
    border: 1px solid var(--wn-product-card-border, #e5e7eb);
    text-align: center;
    font-weight: 500;
}

.wn-quick-modal__submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: var(--wn-product-button-radius, 999px);
    background: linear-gradient(135deg, var(--wn-product-primary, #FC8934), var(--wn-product-primary-dark, #E67620));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(252, 137, 52, .24);
    transition: .2s ease;
}

.wn-quick-modal__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(252, 137, 52, .30);
}

.wn-quick-modal__disabled {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: var(--wn-product-button-radius, 999px);
    background: #fee2e2;
    color: #dc2626;
    font-weight: 600;
}

.wn-quick-modal__details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--wn-product-primary, #FC8934);
    font-weight: 500;
    text-decoration: none;
}

.wn-quick-modal__details:hover {
    color: var(--wn-product-primary-dark, #E67620);
}

@media (max-width: 767px) {
    .wn-product-card__quick {
        opacity: 1;
        transform: none;
    }

    .wn-quick-modal-root {
        padding: 10px;
        align-items: flex-start;
    }

    .wn-quick-modal {
        border-radius: 18px;
        max-height: calc(100vh - 20px);
    }

    .wn-quick-modal__grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .wn-quick-modal__image img {
        min-height: 250px;
        max-height: 300px;
    }

    .wn-quick-modal__content {
        padding: 24px 18px 20px;
    }

    .wn-quick-modal__title {
        font-size: 21px;
    }

    .wn-quick-modal__price strong {
        font-size: 21px;
    }
}