/* ═══════════════════════════════════════════════════════════
   Advanced Product Showcase — 7098aae5
   Namespaced CSS for conflict-free styling
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
.aps-7098aae5-wrapper {
    position: relative;
    width: 100%;
}

.aps-7098aae5-wrapper *,
.aps-7098aae5-wrapper *::before,
.aps-7098aae5-wrapper *::after {
    box-sizing: border-box;
}

/* ── Grid Layout ── */
.aps-7098aae5-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Masonry Layout ── */
.aps-7098aae5-layout--masonry .aps-7098aae5-grid {
    display: columns;
    column-count: 4;
    column-gap: 24px;
}

.aps-7098aae5-layout--masonry .aps-7098aae5-card {
    break-inside: avoid;
    margin-bottom: 24px;
}

/* ── Equal Height ── */
.aps-7098aae5-equal-height .aps-7098aae5-card {
    display: flex;
    flex-direction: column;
}

.aps-7098aae5-equal-height .aps-7098aae5-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aps-7098aae5-equal-height .aps-7098aae5-actions {
    margin-top: auto;
}

/* ── Product Card ── */
.aps-7098aae5-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.35s ease;
    will-change: transform;
}

/* Card Lift */
.aps-7098aae5-lift .aps-7098aae5-card:hover {
    transform: translateY(-8px);
}

/* Glassmorphism */
.aps-7098aae5-glassmorphism .aps-7098aae5-card:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── Image Wrapper ── */
.aps-7098aae5-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f5f5f7;
}

.aps-7098aae5-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.aps-7098aae5-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.aps-7098aae5-img--primary {
    position: relative;
    z-index: 1;
}

.aps-7098aae5-img--hover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
}

.aps-7098aae5-card:hover .aps-7098aae5-img--hover {
    opacity: 1;
}

.aps-7098aae5-card:hover .aps-7098aae5-img--primary {
    opacity: 0;
}

/* Image Zoom */
.aps-7098aae5-zoom .aps-7098aae5-card:hover .aps-7098aae5-img {
    transform: scale(1.08);
}

/* Placeholder for editor preview */
.aps-7098aae5-img--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f5 0%, #e8e8f0 50%, #f0f0f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Image Overlay ── */
.aps-7098aae5-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.aps-7098aae5-card:hover .aps-7098aae5-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

/* ── Shine Effect ── */
.aps-7098aae5-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.aps-7098aae5-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0.4;
    transform: skewX(20deg);
    transition: none;
}

.aps-7098aae5-card:hover .aps-7098aae5-shine::before {
    animation: aps7098aae5ShineLTR 0.6s ease-in-out forwards;
}

.aps-7098aae5-card:hover .aps-7098aae5-shine--rtl::before {
    animation: aps7098aae5ShineRTL 0.6s ease-in-out forwards;
}

.aps-7098aae5-card:hover .aps-7098aae5-shine--pause:hover::before {
    animation-play-state: paused;
}

@keyframes aps7098aae5ShineLTR {
    0%   { left: -100%; }
    100% { left: 200%; }
}

@keyframes aps7098aae5ShineRTL {
    0%   { left: 200%; }
    100% { left: -100%; }
}

/* ── Badges ── */
.aps-7098aae5-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aps-7098aae5-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.4;
}

.aps-7098aae5-badge--sale { background-color: #e94560; }
.aps-7098aae5-badge--featured { background-color: #6c5ce7; }
.aps-7098aae5-badge--new { background-color: #00b894; }
.aps-7098aae5-badge--custom { background-color: #fdcb6e; color: #2d3436; }

/* ── Quick View Button ── */
.aps-7098aae5-quick-view {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.aps-7098aae5-card:hover .aps-7098aae5-quick-view {
    opacity: 1;
    transform: translateY(0);
}

.aps-7098aae5-quick-view:hover {
    background: #1a1a2e;
    color: #ffffff;
}

.aps-7098aae5-quick-view:hover svg {
    stroke: #ffffff;
}

/* ── Content Area ── */
.aps-7098aae5-content {
    padding: 16px;
}

.aps-7098aae5-category {
    font-size: 12px;
    color: #888899;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.aps-7098aae5-category a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.aps-7098aae5-category a:hover {
    color: #e94560;
}

.aps-7098aae5-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.4;
}

.aps-7098aae5-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.aps-7098aae5-title a:hover {
    color: #e94560;
}

.aps-7098aae5-rating {
    margin-bottom: 8px;
    color: #f39c12;
    font-size: 14px;
}

.aps-7098aae5-rating .star-rating {
    font-size: 14px;
}

.aps-7098aae5-price {
    font-size: 18px;
    font-weight: 700;
    color: #e94560;
    margin-bottom: 8px;
}

.aps-7098aae5-price del {
    color: #aaaaaa;
    font-weight: 400;
    font-size: 14px;
    margin-right: 6px;
}

.aps-7098aae5-price ins {
    text-decoration: none;
}

.aps-7098aae5-description {
    font-size: 13px;
    color: #666677;
    line-height: 1.6;
    margin-bottom: 12px;
}

.aps-7098aae5-stock {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.aps-7098aae5-stock--in-stock {
    color: #00b894;
}

.aps-7098aae5-stock--out-of-stock {
    color: #e94560;
}

/* ── Actions ── */
.aps-7098aae5-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

/* ── Quantity Selector ── */
.aps-7098aae5-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e8;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.aps-7098aae5-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f7;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.aps-7098aae5-qty-btn:hover {
    background: #e0e0e8;
}

.aps-7098aae5-qty-input {
    width: 100%;
    flex: 1;
    text-align: center;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    background: transparent;
    -moz-appearance: textfield;
}

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

/* ── Add to Cart Button ── */
.aps-7098aae5-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #1a1a2e;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
}

.aps-7098aae5-add-to-cart:hover {
    background-color: #e94560;
    transform: translateY(-1px);
}

.aps-7098aae5-add-to-cart.aps-7098aae5-added {
    background-color: #00b894;
}

/* ── Wishlist Button ── */
.aps-7098aae5-wishlist {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e8;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.aps-7098aae5-wishlist:hover,
.aps-7098aae5-wishlist.aps-7098aae5-wishlisted {
    background: #e94560;
    border-color: #e94560;
}

.aps-7098aae5-wishlist:hover svg,
.aps-7098aae5-wishlist.aps-7098aae5-wishlisted svg {
    stroke: #ffffff;
    fill: #ffffff;
}

/* ── Carousel ── */
.aps-7098aae5-swiper {
    position: relative;
    overflow: hidden;
    padding-bottom: 48px;
}

.aps-7098aae5-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 24px));
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e0e0e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.aps-7098aae5-arrow:hover {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #ffffff;
}

.aps-7098aae5-arrow:hover svg {
    stroke: #ffffff;
}

.aps-7098aae5-arrow--prev {
    left: -22px;
}

.aps-7098aae5-arrow--next {
    right: -22px;
}

.aps-7098aae5-pagination {
    text-align: center;
    margin-top: 16px;
}

.aps-7098aae5-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cccccc;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.aps-7098aae5-pagination .swiper-pagination-bullet-active {
    background: #1a1a2e;
    transform: scale(1.2);
}

/* ── Quick View Modal ── */
.aps-7098aae5-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.aps-7098aae5-modal.aps-7098aae5-modal--active {
    display: flex;
}

.aps-7098aae5-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.aps-7098aae5-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    animation: aps7098aae5ModalIn 0.3s ease;
}

@keyframes aps7098aae5ModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.aps-7098aae5-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f7;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.aps-7098aae5-modal-close:hover {
    background: #e0e0e8;
}

.aps-7098aae5-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aps-7098aae5-qv-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 300px;
}

.aps-7098aae5-qv-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.aps-7098aae5-qv-price {
    font-size: 20px;
    font-weight: 700;
    color: #e94560;
}

.aps-7098aae5-qv-desc {
    font-size: 14px;
    color: #666677;
    line-height: 1.6;
}

.aps-7098aae5-qv-rating {
    color: #f39c12;
}

.aps-7098aae5-qv-stock {
    font-size: 13px;
    font-weight: 600;
}

.aps-7098aae5-qv-link {
    display: inline-block;
    padding: 12px 24px;
    background: #1a1a2e;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}

.aps-7098aae5-qv-link:hover {
    background: #e94560;
    color: #ffffff;
}

/* ── No Products ── */
.aps-7098aae5-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888899;
    font-size: 16px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .aps-7098aae5-arrow--prev { left: 4px; }
    .aps-7098aae5-arrow--next { right: 4px; }

    .aps-7098aae5-layout--masonry .aps-7098aae5-grid {
        column-count: 2;
    }
}

@media (max-width: 767px) {
    .aps-7098aae5-layout--masonry .aps-7098aae5-grid {
        column-count: 1;
    }

    .aps-7098aae5-modal-content {
        padding: 20px;
        width: 95%;
    }

    .aps-7098aae5-arrow {
        width: 36px;
        height: 36px;
    }
}

/* ── Focus Styles for Accessibility ── */
.aps-7098aae5-add-to-cart:focus-visible,
.aps-7098aae5-quick-view:focus-visible,
.aps-7098aae5-wishlist:focus-visible,
.aps-7098aae5-arrow:focus-visible,
.aps-7098aae5-modal-close:focus-visible,
.aps-7098aae5-qty-btn:focus-visible {
    outline: 2px solid #1a1a2e;
    outline-offset: 2px;
}

.aps-7098aae5-title a:focus-visible {
    outline: 2px solid #1a1a2e;
    outline-offset: 2px;
    border-radius: 2px;
}
