/* ==========================================================================
   Ascension Sparkle - Components
   Hero, collections, promo, drawers, search modal, popups, compare
   ========================================================================== */

/* ---------- Hero Slideshow ---------- */
.sparkle-hero {
    position: relative;
    overflow: hidden;
}

.sparkle-hero-track {
    position: relative;
}

.sparkle-hero-slide {
    position: relative;
    display: none;
}

.sparkle-hero-slide.is-active {
    display: block;
    animation: sparkleFadeIn 0.9s ease both;
}

@keyframes sparkleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sparkle-hero-media {
    position: relative;
    aspect-ratio: 21 / 9;
    min-height: 420px;
}

.sparkle-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sparkle-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24, 20, 18, 0.35) 0%, rgba(24, 20, 18, 0.1) 60%, transparent 100%);
}

.sparkle-hero-content-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.sparkle-hero-content {
    max-width: 620px;
    color: #fff;
}

.sparkle-hero-title {
    color: #fff;
    font-size: 52px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sparkle-hero-subtitle {
    color: #fff;
    font-size: 17px;
    margin-bottom: 28px;
    max-width: 460px;
    opacity: 0.95;
}

.sparkle-hero-dots {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.sparkle-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.3s ease, transform 0.3s ease;
}

.sparkle-hero-dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* ---------- Collections Carousel ---------- */
.sparkle-collections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.sparkle-collection-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: var(--sparkle-radius);
    background: var(--sparkle-accent);
}

.sparkle-collection-media {
    position: absolute;
    inset: 0;
}

.sparkle-collection-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.3, 0, 0.2, 1);
}

.sparkle-collection-card:hover .sparkle-collection-media img {
    transform: scale(1.06);
}

.sparkle-collection-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 20, 18, 0) 35%, rgba(24, 20, 18, 0.55) 100%);
}

.sparkle-collection-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    color: #fff;
    z-index: 3;
}

.sparkle-collection-name {
    color: #fff;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.sparkle-collection-count {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
    margin-bottom: 14px;
}

.sparkle-collection-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: 2px solid #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s ease;
}

.sparkle-collection-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}

.sparkle-collection-card:hover .sparkle-collection-link {
    color: var(--sparkle-text);
}

.sparkle-collection-card:hover .sparkle-collection-link::before {
    transform: scaleX(1);
}

/* ---------- Promo Banner ---------- */
.sparkle-promo {
    background: var(--sparkle-accent);
    padding: 84px 0;
}

.sparkle-promo-inner {
    text-align: center;
}

.sparkle-promo-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--sparkle-text-light);
    margin-bottom: 14px;
}

.sparkle-promo-title {
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.sparkle-promo-subtitle {
    color: var(--sparkle-text-light);
    font-size: 16px;
    margin-bottom: 30px;
}

/* ---------- Trust Features ---------- */
.sparkle-features {
    border-top: 1px solid var(--sparkle-border);
    padding: 44px 0;
}

.sparkle-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sparkle-feature {
    text-align: center;
    padding: 8px 10px;
}

.sparkle-feature i {
    font-size: 24px;
    color: var(--sparkle-text);
    margin-bottom: 12px;
}

.sparkle-feature h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
}

.sparkle-feature p {
    font-size: 12px;
    color: var(--sparkle-text-light);
    margin: 0;
}

/* ---------- Instagram ---------- */
.sparkle-instagram {
    background: var(--sparkle-soft);
}

.sparkle-instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 0 24px;
}

.sparkle-instagram-item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
}

.sparkle-instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sparkle-instagram-item:hover img {
    transform: scale(1.08);
}

.sparkle-instagram-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(54, 54, 54, 0.5);
    color: #fff;
    font-size: 26px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sparkle-instagram-item:hover .sparkle-instagram-overlay {
    opacity: 1;
}

/* ---------- Search Modal ---------- */
.sparkle-search-modal {
    position: fixed;
    inset: 0;
    background: var(--sparkle-bg);
    z-index: 250;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 110px 30px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sparkle-search-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.sparkle-search-modal-inner {
    width: 100%;
    max-width: 700px;
}

.sparkle-search-close {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 22px;
    color: var(--sparkle-text);
    padding: 8px;
}

.sparkle-search-field {
    display: flex;
    border-bottom: 2px solid var(--sparkle-text);
    padding-bottom: 6px;
}

.sparkle-search-field input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--sparkle-text);
    background: transparent;
    padding: 10px 0;
}

.sparkle-search-field button {
    font-size: 20px;
    color: var(--sparkle-text);
    padding: 0 8px;
}

.sparkle-search-suggestions {
    margin-top: 18px;
}

.sparkle-search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-bottom: 1px solid var(--sparkle-border);
    transition: background 0.25s ease;
}

.sparkle-search-suggestion-item:hover {
    background: var(--sparkle-soft);
}

.sparkle-search-suggestion-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
}

.sparkle-search-suggestion-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sparkle-search-suggestion-name {
    font-size: 14px;
    font-weight: 600;
}

.sparkle-search-suggestion-price {
    font-size: 13px;
    color: var(--sparkle-text-light);
}

.sparkle-no-suggestions {
    padding: 20px 12px;
    color: var(--sparkle-text-light);
    font-size: 14px;
}

/* ---------- Cart Drawer Body ---------- */
.sparkle-cart-shipping-note {
    padding: 14px 22px;
    background: var(--sparkle-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.sparkle-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px;
}

.sparkle-drawer-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--sparkle-border);
}

/* Wishlist drawer */
.sparkle-wishlist-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px;
}

.sparkle-wishlist-list {
    list-style: none;
    margin: 0;
}

.sparkle-wishlist-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--sparkle-border);
}

.sparkle-wishlist-thumb img {
    width: 62px;
    height: 62px;
    object-fit: cover;
}

.sparkle-wishlist-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 26px;
}

.sparkle-wishlist-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.sparkle-wishlist-price {
    font-size: 13px;
    color: var(--sparkle-text-light);
}

.sparkle-wishlist-info .sparkle-btn {
    margin-top: 6px;
    align-self: flex-start;
}

.sparkle-wishlist-remove {
    position: absolute;
    top: 14px;
    right: 0;
    color: var(--sparkle-text-light);
    font-size: 14px;
}

/* ---------- Compare Bar ---------- */
.sparkle-compare-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--sparkle-border);
    box-shadow: 0 -10px 30px rgba(54, 54, 54, 0.1);
    z-index: 120;
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
    padding: 10px 0;
}

.sparkle-compare-bar.is-visible {
    transform: translateY(0);
}

.sparkle-compare-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
}

.sparkle-compare-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.sparkle-compare-list {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}

.sparkle-compare-list::-webkit-scrollbar {
    display: none;
}

.sparkle-compare-thumb {
    position: relative;
    flex: 0 0 auto;
}

.sparkle-compare-thumb img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border: 1px solid var(--sparkle-border);
}

.sparkle-compare-thumb-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sparkle-primary);
    color: #fff;
    font-size: 9px;
    line-height: 18px;
    text-align: center;
}

.sparkle-compare-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.sparkle-compare-clear {
    color: var(--sparkle-text-light);
    font-size: 15px;
}

/* ---------- Compare Modal ---------- */
.sparkle-compare-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 260;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sparkle-compare-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.sparkle-compare-modal-inner {
    background: #fff;
    max-width: 900px;
    width: 100%;
    max-height: 82vh;
    overflow: auto;
    padding: 34px;
    position: relative;
}

.sparkle-compare-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 16px;
    color: var(--sparkle-text);
}

.sparkle-compare-title {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 22px;
}

.sparkle-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sparkle-compare-table th,
.sparkle-compare-table td {
    border: 1px solid var(--sparkle-border);
    padding: 14px;
    text-align: center;
    vertical-align: middle;
}

.sparkle-compare-table th {
    background: var(--sparkle-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sparkle-text-light);
    font-weight: 600;
}

.sparkle-compare-table img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    margin: 0 auto;
}

.sparkle-compare-table a {
    font-weight: 600;
}

/* ---------- Newsletter Popup ---------- */
.sparkle-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sparkle-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.sparkle-popup {
    position: relative;
    background: #fff;
    max-width: 480px;
    width: 100%;
    padding: 48px 40px 40px;
    text-align: center;
}

.sparkle-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 16px;
    color: var(--sparkle-text-light);
}

.sparkle-popup-badge {
    display: inline-block;
    background: var(--sparkle-accent);
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.sparkle-popup-content h3 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.sparkle-popup-content p {
    color: var(--sparkle-text-light);
    font-size: 14px;
    margin-bottom: 22px;
}

.sparkle-popup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sparkle-popup-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--sparkle-border);
    background: #fff;
    color: var(--sparkle-text);
    text-align: center;
}

.sparkle-popup-disclaimer {
    font-size: 11px;
    margin-top: 14px;
    margin-bottom: 0;
}

/* ---------- Quick View Modal ---------- */
.sparkle-quickview-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 270;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sparkle-quickview-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.sparkle-quickview-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    overflow: auto;
    padding: 34px;
}

.sparkle-quickview-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    font-size: 16px;
    color: var(--sparkle-text);
    background: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sparkle-quickview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.sparkle-quickview-gallery img {
    width: 100%;
}

.sparkle-quick-view-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.sparkle-quick-view-thumbs img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--sparkle-border);
}

.sparkle-quick-view-thumbs img.is-active {
    border-color: var(--sparkle-text);
}

.sparkle-quickview-title {
    font-size: 22px;
    margin: 8px 0;
}

.sparkle-quickview-price {
    font-size: 20px;
    margin-bottom: 14px;
}

.sparkle-quickview-desc {
    color: var(--sparkle-text-light);
    font-size: 14px;
    margin-bottom: 14px;
}

.sparkle-quickview-stock {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.sparkle-quickview-stock.in-stock {
    color: #2c7a3f;
}

.sparkle-quickview-stock.out-of-stock {
    color: #b0392e;
}

.sparkle-quickview-add {
    margin-bottom: 12px;
}

.sparkle-quickview-add .button {
    width: 100%;
    text-align: center;
}

/* ---------- Toast ---------- */
.sparkle-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--sparkle-primary);
    color: #fff;
    padding: 13px 24px;
    font-size: 13px;
    z-index: 999;
    opacity: 0;
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--sparkle-radius);
}

.sparkle-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sparkle-toast.error {
    background: #b0392e;
}

.sparkle-toast-action {
    color: #e8c96a;
    font-weight: 700;
    text-decoration: underline;
    pointer-events: auto;
    white-space: nowrap;
}