/**
 * Revice Elementor Widgets - Frontend Styles
 * Version: 1.0.0
 *
 * Prefixed with .rew- to avoid conflicts.
 * Uses BEM naming: block__element--modifier.
 */

/* ==========================================================================
   RESET — Scoped to plugin widgets
   ========================================================================== */
.rew-hero,
.rew-arrivals,
.rew-catcard,
.rew-ugc {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.rew-hero *,
.rew-arrivals *,
.rew-catcard *,
.rew-ugc * {
    box-sizing: border-box;
}

/* ==========================================================================
   1. HERO BANNER
   ========================================================================== */
.rew-hero {
    position: relative;
    display: flex;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background-color: #111;
}

/* --- Background layer --------------------------------------------------- */
.rew-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.rew-hero__bg-img,
.rew-hero__bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rew-hero__bg-iframe-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.rew-hero__bg-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

/* Overlay */
.rew-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

/* --- Content ------------------------------------------------------------ */
.rew-hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 60px;
    text-align: center;
}

.rew-hero__heading {
    margin: 0 0 8px;
    color: #fff;
    font-family: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
    font-size: clamp(42px, 8vw, 100px);
    font-weight: 900;
    font-style: italic;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.rew-hero__subtitle {
    margin: 0 0 24px;
    color: #fff;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: clamp(12px, 2vw, 18px);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* CTA */
.rew-hero__cta {
    display: inline-block;
    color: #fff;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.rew-hero__cta:hover {
    opacity: 0.75;
}

.rew-hero__cta--button {
    padding: 12px 36px;
    background-color: #fff;
    color: #000;
    border-radius: 0;
}

.rew-hero__cta--button:hover {
    opacity: 1;
    background-color: #e0e0e0;
}

.rew-hero__cta--outline {
    padding: 12px 36px;
    border: 2px solid #fff;
    color: #fff;
}

.rew-hero__cta--outline:hover {
    background-color: #fff;
    color: #000;
    opacity: 1;
}

/* Fallback image — visible only on mobile */
.rew-hero__bg-fallback {
    display: none;
}

/* ==========================================================================
   2. NEW ARRIVALS BANNER
   ========================================================================== */
.rew-arrivals {
    --rew-arrivals-h-align: flex-start;
    --rew-arrivals-text-align: left;

    position: relative;
    display: flex;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background-color: #ddd;
}

.rew-arrivals__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.rew-arrivals__bg-img,
.rew-arrivals__bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rew-arrivals__bg-iframe-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.rew-arrivals__bg-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.rew-arrivals__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.rew-arrivals__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: var(--rew-arrivals-h-align);
    width: 100%;
    padding: 40px 60px;
    text-align: var(--rew-arrivals-text-align);
}

.rew-arrivals__heading {
    margin: 0 0 8px;
    color: #fff;
    font-family: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
    font-size: clamp(42px, 8vw, 100px);
    font-weight: 900;
    font-style: italic;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.rew-arrivals__subtitle {
    margin: 0 0 24px;
    color: #fff;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: clamp(12px, 2vw, 18px);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.rew-arrivals__cta {
    display: inline-block;
    color: #fff;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.rew-arrivals__cta:hover {
    opacity: 0.75;
}

.rew-arrivals__cta--button {
    padding: 12px 36px;
    background-color: #fff;
    color: #000;
}

.rew-arrivals__cta--button:hover {
    opacity: 1;
    background-color: #e0e0e0;
}

.rew-arrivals__cta--outline {
    padding: 12px 36px;
    border: 2px solid #fff;
    color: #fff;
}

.rew-arrivals__cta--outline:hover {
    background-color: #fff;
    color: #000;
    opacity: 1;
}

.rew-arrivals__bg-fallback {
    display: none;
}

/* ==========================================================================
   3. PRODUCT CATEGORY CARD
   ========================================================================== */
.rew-catcard {
    --rew-catcard-justify: flex-end;
    --rew-catcard-align: center;

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: var(--rew-catcard-justify);
    align-items: var(--rew-catcard-align);
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #222;
    text-decoration: none;
    cursor: pointer;
}

a.rew-catcard {
    color: inherit;
}

.rew-catcard__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.rew-catcard__media-img,
.rew-catcard__media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rew-catcard__iframe-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.rew-catcard__iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.rew-catcard__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 50%);
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.rew-catcard:hover .rew-catcard__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.rew-catcard__content {
    position: relative;
    z-index: 3;
    padding: 30px;
}

.rew-catcard__btn {
    display: inline-block;
    padding: 10px 28px;
    background-color: #fff;
    color: #000;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #fff;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.rew-catcard:hover .rew-catcard__btn {
    background-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.rew-catcard__media-fallback {
    display: none;
}

/* ==========================================================================
   4. UGC GALLERY (#REVICE ON YOU)
   ========================================================================== */
.rew-ugc {
    width: 100%;
    padding: 0;
}

.rew-ugc__heading {
    margin: 0 0 24px;
    color: #000;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
}

/* --- Carousel layout ---------------------------------------------------- */
.rew-ugc__carousel-wrap {
    position: relative;
    width: 100%;
}

.rew-ugc__carousel {
    overflow: hidden;
    width: 100%;
}

.rew-ugc__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.rew-ugc__track .rew-ugc__item {
    flex: 0 0 auto;
    /* Width set by JS based on data-visible */
}

/* --- Grid layout -------------------------------------------------------- */
.rew-ugc__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* --- Items -------------------------------------------------------------- */
.rew-ugc__item {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.rew-ugc__item-media {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #f0f0f0;
}

.rew-ugc__item-img,
.rew-ugc__item-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.rew-ugc__item-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.rew-ugc__item:hover .rew-ugc__item-img,
.rew-ugc__item:hover .rew-ugc__item-video {
    transform: scale(1.05);
}

/* Overlay */
.rew-ugc__item-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.rew-ugc__item:hover .rew-ugc__item-overlay {
    background-color: rgba(0, 0, 0, 0.35);
}

.rew-ugc__item-text {
    color: #fff;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.rew-ugc__item:hover .rew-ugc__item-text {
    opacity: 1;
    transform: translateY(0);
}

/* --- Arrows ------------------------------------------------------------- */
.rew-ugc__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    line-height: 1;
}

.rew-ugc__arrow:hover {
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.rew-ugc__arrow--prev {
    left: 12px;
}

.rew-ugc__arrow--next {
    right: 12px;
}

.rew-ugc__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .rew-hero__content,
    .rew-arrivals__content {
        padding: 30px 40px;
    }

    .rew-ugc__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .rew-hero {
        height: 60vh;
    }

    .rew-hero__content,
    .rew-arrivals__content {
        padding: 24px 20px;
    }

    .rew-arrivals {
        height: 60vh;
    }

    .rew-catcard {
        aspect-ratio: 1 / 1;
    }

    .rew-ugc__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rew-ugc__arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .rew-ugc__arrow--prev {
        left: 6px;
    }

    .rew-ugc__arrow--next {
        right: 6px;
    }

    /* Show fallback images, hide videos/iframes on mobile */
    .rew-hero__bg-fallback,
    .rew-arrivals__bg-fallback,
    .rew-catcard__media-fallback {
        display: block;
    }

    .rew-hero__bg-video,
    .rew-hero__bg-iframe-wrap,
    .rew-arrivals__bg-video,
    .rew-arrivals__bg-iframe-wrap,
    .rew-catcard__media-video,
    .rew-catcard__iframe-wrap {
        display: none;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .rew-hero {
        height: 50vh;
    }

    .rew-arrivals {
        height: 50vh;
    }

    .rew-ugc__item-media {
        aspect-ratio: 1 / 1;
    }
}
