:root {
    --csc-primary: #ffc740;
}

.csc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.elementor-widget-woocommerce-products .product,
.elementor-widget-wc-archive-products .product {
    position: relative;
}

.csc-actions--loop {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 8;
    display: block;
    margin: 0;
}

.csc-quick-view--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(12, 12, 12, .72);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
    opacity: .82;
    backdrop-filter: blur(10px);
    transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.csc-quick-view--icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.csc-quick-view--icon:hover,
.csc-quick-view--icon:focus-visible {
    opacity: 1;
    transform: translateY(-1px) scale(1.04);
    border-color: var(--csc-primary);
    background: rgba(22, 22, 22, .92);
    outline: none;
}

.csc-btn,
.csc-send-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.csc-btn:hover,
.csc-send-wishlist:hover {
    transform: translateY(-1px);
    border-color: var(--csc-primary);
}

.csc-btn--whatsapp {
    border-color: #21d366;
    background: #21d366;
    color: #fff;
}

.csc-wishlist-toggle.is-saved {
    color: var(--csc-primary);
    border-color: var(--csc-primary);
}

.csc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.csc-modal.is-open {
    display: block;
}

.csc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
}

.csc-modal__panel {
    position: relative;
    width: min(920px, calc(100vw - 28px));
    max-height: calc(100vh - 56px);
    margin: 28px auto;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: #171717;
    color: #eaf3ff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .48);
}

.csc-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.csc-modal__body {
    padding: 28px;
}

.csc-product {
    display: grid;
    grid-template-columns: minmax(240px, 42%) 1fr;
    gap: 26px;
}

.csc-product__image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    border-radius: 10px;
    background: #101010;
}

.csc-product__info h2 {
    margin: 0 40px 14px 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.15;
}

.csc-product__price {
    margin-bottom: 12px;
    color: var(--csc-primary);
    font-size: 20px;
    font-weight: 800;
}

.csc-product__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #b8c4d1;
    font-size: 13px;
}

.csc-product__meta span {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
}

.csc-product__desc {
    color: #d9e6f5;
}

.csc-product__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.csc-product__actions .csc-btn--whatsapp {
    min-width: 176px;
}

.csc-skeleton {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 24px;
}

.csc-skeleton div {
    min-height: 20px;
    border-radius: 8px;
    background: linear-gradient(90deg, #202020, #303030, #202020);
    background-size: 220% 100%;
    animation: csc-shimmer 1.1s linear infinite;
}

.csc-skeleton div:first-child {
    min-height: 330px;
}

.csc-wishlist-dock {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99990;
}

.csc-send-wishlist {
    border-color: var(--csc-primary);
    background: var(--csc-primary);
    color: #111;
}

@keyframes csc-shimmer {
    to {
        background-position: -220% 0;
    }
}

@media (max-width: 720px) {
    .csc-product,
    .csc-skeleton {
        grid-template-columns: 1fr;
    }

    .csc-modal__panel {
        width: calc(100vw - 16px);
        margin: 8px auto;
        max-height: calc(100vh - 16px);
    }

    .csc-modal__body {
        padding: 18px;
    }

    .csc-product__info h2 {
        font-size: 21px;
    }

    .csc-actions--loop {
        top: 10px;
        right: 10px;
    }

    .csc-quick-view--icon {
        width: 36px;
        height: 36px;
    }
}
