/* ============================================================
   SleepShop Store v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=Inter:wght@300;400;500&display=swap');

/* ── Section ──────────────────────────────────────────────── */
.sss-section {
    background: #0e0d0b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    position: relative;

    /* Break out of any Elementor / theme container */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.sss-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
}

/* ── Info panel ───────────────────────────────────────────── */
.sss-info {
    padding: 88px 72px 88px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ── Eyebrow ──────────────────────────────────────────────── */
.sss-eyebrow {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #b08968;
    font-weight: 500;
    margin: 0 0 20px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Title ────────────────────────────────────────────────── */
.sss-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 52px;
    font-weight: 300;
    color: #fff;
    margin: 0 0 18px;
    letter-spacing: 0.01em;
    line-height: 1.05;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.75s ease 0.1s, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

/* ── Gold divider ─────────────────────────────────────────── */
.sss-divider {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #b08968 0%, transparent 100%);
    margin: 0 0 48px;
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

/* ── Reveal on scroll ─────────────────────────────────────── */
.sss-section.sss-visible .sss-eyebrow {
    opacity: 1;
    transform: translateY(0);
}

.sss-section.sss-visible .sss-title {
    opacity: 1;
    transform: translateY(0);
}

.sss-section.sss-visible .sss-divider {
    width: 48px;
}

/* ── Contact rows ─────────────────────────────────────────── */
.sss-rows {
    margin-bottom: 44px;
}

.sss-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 15px 12px;
    border-radius: 10px;
    margin: 0 -12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    cursor: default;

    opacity: 0;
    transform: translateX(-24px);
    transition:
        opacity  0.65s ease,
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease;
}

.sss-row:last-child {
    border-bottom: none;
}

.sss-row.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.sss-row:hover {
    background: rgba(176, 137, 104, 0.07);
}

/* ── Row icon ─────────────────────────────────────────────── */
.sss-row__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.38);
    transition:
        background 0.4s ease,
        border-color 0.4s ease,
        color 0.4s ease,
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sss-row:hover .sss-row__icon {
    background: rgba(176, 137, 104, 0.18);
    border-color: rgba(176, 137, 104, 0.4);
    color: #b08968;
    transform: scale(1.12) rotate(-4deg);
}

/* ── Row text ─────────────────────────────────────────────── */
.sss-row__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 4px;
}

.sss-row__label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    font-weight: 500;
}

.sss-row__value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 300;
    letter-spacing: 0.025em;
    line-height: 1.7;
}

.sss-row__link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.25s ease;
}

.sss-row__link:hover {
    color: #b08968;
}

/* ── Button ───────────────────────────────────────────────── */
.sss-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(176, 137, 104, 0.55);
    color: #b08968;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    align-self: flex-start;

    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity  0.7s ease 0.55s,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s,
        color 0.4s ease,
        border-color 0.4s ease,
        gap 0.4s ease;
}

.sss-section.sss-visible .sss-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Fill sweep on hover */
.sss-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #b08968;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.sss-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.sss-btn:hover {
    color: #fff;
    border-color: #b08968;
    gap: 16px;
}

.sss-btn > * {
    position: relative;
    z-index: 1;
}

.sss-btn__arrow {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sss-btn:hover .sss-btn__arrow {
    transform: translateX(5px);
}

/* ── Map panel ────────────────────────────────────────────── */
.sss-map {
    position: relative;
    overflow: hidden;
    min-height: 500px;

    opacity: 0;
    transform: scale(0.97) translateX(20px);
    transition: opacity 0.95s ease 0.2s, transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.sss-section.sss-visible .sss-map {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.sss-map__iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: saturate(0.85) contrast(1.05);
    transition: filter 0.4s ease;
}

.sss-map__iframe:hover {
    filter: none;
}

/* Left edge gradient — blends map into dark background */
.sss-map__gradient {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 72px;
    background: linear-gradient(90deg, #0e0d0b 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Placeholder when no map URL */
.sss-map__empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    text-align: center;
    padding: 24px;
}

.sss-map__empty a {
    color: #b08968;
    text-decoration: underline;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 960px) {
    .sss-layout {
        grid-template-columns: 1fr;
    }

    .sss-info {
        padding: 56px 32px 52px;
    }

    .sss-title {
        font-size: 40px;
    }

    .sss-map {
        min-height: 380px;
        transform: translateY(20px) scale(0.98);
    }

    .sss-section.sss-visible .sss-map {
        transform: none;
    }

    .sss-map__gradient {
        width: 0;
        display: none;
    }
}

@media (max-width: 520px) {
    .sss-info   { padding: 44px 20px 40px; }
    .sss-title  { font-size: 34px; }
    .sss-map    { min-height: 300px; }
}

/* ── Elementor parent strip (modern browsers) ─────────────── */
.elementor-section:has(.sss-section),
.e-container:has(.sss-section) {
    padding-top:    0 !important;
    padding-bottom: 0 !important;
}

.elementor-column:has(.sss-section),
.elementor-column:has(.sss-section) > .elementor-column-wrap,
.elementor-column:has(.sss-section) > .elementor-column-wrap > .elementor-widget-wrap,
.elementor-widget-shortcode:has(.sss-section) .elementor-widget-container {
    padding: 0 !important;
    margin:  0 !important;
}

/* ── Reduce motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .sss-eyebrow, .sss-title, .sss-divider, .sss-row, .sss-btn, .sss-map {
        transition: opacity 0.3s ease !important;
        transform: none !important;
        animation: none !important;
    }
    .sss-section.sss-visible .sss-eyebrow,
    .sss-section.sss-visible .sss-title,
    .sss-section.sss-visible .sss-btn,
    .sss-section.sss-visible .sss-map { opacity: 1; }
    .sss-section.sss-visible .sss-divider { width: 48px; }
    .sss-row.is-visible { opacity: 1; }
}


/* ── WooCommerce Product Loop (Related / Upsells / Archive) ── */

.related.products > h2,
.upsells.products > h2 {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .14em !important;
    color: #b08968 !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

.related.products ul.products,
.upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.related.products li.product,
.upsells.products li.product {
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 18px rgba(0,0,0,.05) !important;
    transition: transform .32s cubic-bezier(.25,.46,.45,.94), box-shadow .32s !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    clear: none !important;
}

.related.products li.product:hover,
.upsells.products li.product:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.11), 0 2px 8px rgba(0,0,0,.05) !important;
}

/* Image link wrapper */
.related.products li.product .woocommerce-loop-product__link,
.upsells.products li.product .woocommerce-loop-product__link {
    display: block;
    background: #f8f5f0;
    overflow: hidden;
    text-decoration: none;
}

/* Product image */
.related.products li.product .woocommerce-loop-product__link img,
.upsells.products li.product .woocommerce-loop-product__link img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    object-fit: contain !important;
    padding: 16px !important;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94) !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.related.products li.product:hover .woocommerce-loop-product__link img,
.upsells.products li.product:hover .woocommerce-loop-product__link img {
    transform: scale(1.06) !important;
}

/* Title */
.related.products li.product .woocommerce-loop-product__title,
.upsells.products li.product .woocommerce-loop-product__title {
    padding: 16px 18px 4px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    line-height: 1.35 !important;
    background: #fff !important;
    transition: color .2s !important;
}

.related.products li.product .woocommerce-loop-product__link:hover .woocommerce-loop-product__title,
.upsells.products li.product .woocommerce-loop-product__link:hover .woocommerce-loop-product__title {
    color: #b08968 !important;
}

/* Price */
.related.products li.product .price,
.upsells.products li.product .price {
    display: block !important;
    padding: 6px 18px 0 !important;
    background: #fff !important;
    color: #1a1a2e !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.related.products li.product .price ins,
.upsells.products li.product .price ins {
    text-decoration: none !important;
    color: #b08968 !important;
}

.related.products li.product .price del,
.upsells.products li.product .price del {
    color: #bbb !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

.related.products li.product .price .woocommerce-Price-amount,
.upsells.products li.product .price .woocommerce-Price-amount {
    color: inherit !important;
}

/* Add to cart / Select options button */
.related.products li.product .button,
.upsells.products li.product .button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 12px 18px 18px !important;
    padding: 11px 18px !important;
    background: #1a1a2e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background .25s !important;
    width: calc(100% - 36px) !important;
    box-sizing: border-box !important;
    letter-spacing: .01em !important;
}

.related.products li.product .button:hover,
.upsells.products li.product .button:hover {
    background: #b08968 !important;
    color: #fff !important;
}

/* Sale badge */
.related.products li.product .onsale,
.upsells.products li.product .onsale {
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    background: #b08968 !important;
    border-radius: 20px !important;
    padding: 4px 11px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.5 !important;
}

/* Related products section wrapper */
.related.products,
.upsells.products {
    margin-top: 48px !important;
}

@media (max-width: 600px) {
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}
