/* =========================================================
   PREMIUM PRODUCT CARD
   ========================================================= */

.sz-product-card {
    position: relative;

    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--sz-border);
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 7px 24px rgba(18, 24, 40, 0.055);

    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.sz-product-card:hover {
    border-color: rgba(var(--sz-primary-rgb), 0.24);

    transform: translateY(-5px);

    box-shadow:
        0 18px 42px rgba(18, 24, 40, 0.11);
}

/* Product image area */

.sz-product-media {
    position: relative;

    min-height: 250px;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            #ffffff 0%,
            #f6f7f9 100%
        );
}

.sz-product-image-link {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.sz-product-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    transform: scale(0.82);

    transition:
        transform 300ms ease;
}

.sz-product-card:hover .sz-product-image {
    transform: scale(0.88);
}

/* Product badges */

.sz-product-badges {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 2;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 6px;
}

.sz-product-badge {
    min-height: 24px;

    display: inline-flex;
    align-items: center;

    padding: 0 9px;

    border-radius: 999px;

    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.025em;
}

.sz-product-badge-new {
    background: #17191d;
    color: #ffffff;
}

.sz-product-badge-featured {
    background: var(--sz-primary-light);
    color: var(--sz-primary);
}

.sz-product-badge-discount {
    background: #eaf8ef;
    color: #188447;
}

/* Quick actions */

.sz-product-quick-actions {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 3;

    display: flex;
    flex-direction: column;

    gap: 7px;

    opacity: 0;
    transform: translateX(8px);

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.sz-product-card:hover .sz-product-quick-actions,
.sz-product-card:focus-within .sz-product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.sz-product-icon-button {
    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--sz-border);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.95);
    color: var(--sz-heading);

    box-shadow:
        0 5px 14px rgba(18, 24, 40, 0.08);

    cursor: pointer;

    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.sz-product-icon-button:hover,
.sz-product-icon-button:focus-visible,
.sz-product-icon-button.is-active {
    border-color: var(--sz-primary);
    background: var(--sz-primary);
    color: #ffffff;

    transform: translateY(-1px);
}

/* Card content */

.sz-product-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 18px;
}

.sz-product-meta {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 8px;

    color: var(--sz-muted);

    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.sz-product-title {
    min-height: 44px;

    margin: 0 0 10px;

    font-size: 0.93rem;
    font-weight: 800;
    line-height: 1.42;
}

.sz-product-title a {
    display: -webkit-box;

    overflow: hidden;

    color: var(--sz-heading);
    text-decoration: none;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;

    transition:
        color 180ms ease;
}

.sz-product-title a:hover,
.sz-product-title a:focus-visible {
    color: var(--sz-primary);
}

/* Rating */

.sz-product-rating {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 14px;
}

.sz-product-stars {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    color: #f6a700;

    font-size: 0.68rem;
    font-weight: 800;
}

.sz-product-review-count {
    color: var(--sz-muted);

    font-size: 0.64rem;
    font-weight: 600;
}

/* Pricing */

.sz-product-pricing {
    margin-top: auto;
    margin-bottom: 13px;
}

.sz-product-price-row {
    display: flex;
    align-items: baseline;

    gap: 8px;
}

.sz-product-price {
    color: var(--sz-heading);

    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.035em;
}

.sz-product-original-price {
    color: #9ba1aa;

    font-size: 0.72rem;
    font-weight: 600;
}

.sz-product-price-label {
    display: block;

    margin-top: 6px;

    color: var(--sz-muted);

    font-size: 0.6rem;
    font-weight: 600;
}

/* Stock and MOQ */

.sz-product-purchase-info {
    min-height: 31px;

    display: flex;
    align-items: center;

    margin-bottom: 14px;
}

.sz-product-stock,
.sz-product-moq {
    min-height: 29px;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 0 10px;

    border-radius: 8px;

    font-size: 0.64rem;
    font-weight: 700;
}

.sz-product-stock.is-in-stock {
    background: #edf9f1;
    color: #197843;
}

.sz-product-stock.is-out-of-stock {
    background: #fff0f1;
    color: #c63c49;
}

.sz-product-moq {
    background: var(--sz-primary-light);
    color: var(--sz-primary);
}

.sz-product-moq strong {
    font-weight: 900;
}

/* Bottom action buttons */

.sz-product-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);

    gap: 9px;
}

.sz-product-details-button,
.sz-product-primary-button {
    min-height: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 12px;

    border-radius: 10px;

    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.sz-product-details-button {
    border: 1px solid var(--sz-border);

    background: #ffffff;
    color: var(--sz-heading);
}

.sz-product-details-button:hover,
.sz-product-details-button:focus-visible {
    border-color: var(--sz-primary);

    background: var(--sz-primary-light);
    color: var(--sz-primary);
}

.sz-product-primary-button {
    border: 1px solid var(--sz-primary);

    background: var(--sz-primary);
    color: #ffffff;

    box-shadow:
        0 7px 16px rgba(var(--sz-primary-rgb), 0.18);
}

.sz-product-primary-button:hover,
.sz-product-primary-button:focus-visible {
    border-color: var(--sz-primary-dark);

    background: var(--sz-primary-dark);
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(var(--sz-primary-rgb), 0.26);
}

.sz-product-primary-button:disabled {
    border-color: #d8dce2;

    background: #d8dce2;
    color: #828892;

    box-shadow: none;

    cursor: not-allowed;
    transform: none;
}

/* Responsive product card */

@media (max-width: 1199.98px) {
    .sz-product-content {
        padding: 16px;
    }

    .sz-product-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .sz-product-media {
        min-height: 210px;
    }

    .sz-product-quick-actions {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .sz-product-content {
        padding: 14px;
    }

    .sz-product-title {
        font-size: 0.84rem;
    }

    .sz-product-price {
        font-size: 1.08rem;
    }

    .sz-product-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sz-product-card,
    .sz-product-image,
    .sz-product-quick-actions,
    .sz-product-icon-button,
    .sz-product-details-button,
    .sz-product-primary-button {
        transition: none !important;
    }
}
/* =========================================================
   SCREWZONE_EDGE_TO_EDGE_PRODUCT_IMAGES_V4
   Product artwork fills the image frame with no CSS gap.
   ========================================================= */
.sz-product-image-link {
    padding: 0 !important;
}

.sz-product-image {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(1) !important;
}

.sz-product-card:hover .sz-product-image {
    transform: scale(1.02) !important;
}
