/*
Theme Name: Holiday Factory Premium
Author: Simon Miranda
Description: Custom theme for Holiday Factory Premium
Version: 1.0
*/

@font-face {
    font-family: 'Impact';
    src: url('./assets/fonts/impact.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'PT Sans', sans-serif;
    color: #333;
    font-size: 16px;
}
html { scroll-behavior:smooth; }
.no-scrollbar::-webkit-scrollbar{display:none}
.no-scrollbar{ -ms-overflow-style:none; scrollbar-width:none }
h1,
h2,
h3,
h4 {
    font-family: 'CoconRegular', sans-serif;
}

h5,
h6 {
    font-family: 'PT Sans', sans-serif;
}

/* ======= Theme tokens (tweak if needed) ======= */
:root {
    --hf-red: #E30613;
    /* brand red (progress + active + hover) */
    --hf-dark: #272727;
    /* icon color */
    --hf-track: #eaeaea;
    /* progress track */
    --hf-thumb-br: #ffffff;
    /* thumb bg */
    --hf-thumb-bd: #ffffff;
    /* thumb border default */
    --hf-thumb-bd-active: #E30613;
}

/* Gallery scaffold */
.hf-gallery {
    width: 100%;
}

/* Custom Gallery Styles */
.hf-custom-gallery {
    width: 100%;
}

.hf-main-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.hf-main-track {
    display: flex;
    transition: transform 0.35s ease;
}

.hf-main-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    flex-basis: 100%;
}

.hf-main-img {
    width: 100%;
    height: 26rem;
    /* h-96 */
    object-fit: cover;
    display: block;
}

.thumb-gallery-wrap {
    margin-top: 8px;
}

.hf-thumb-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hf-thumb-container::-webkit-scrollbar {
    display: none;
}

.hf-thumb-track {
    display: flex;
    gap: 8px;
    padding: 2px;
}

.hf-thumb-slide {
    flex-shrink: 0;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
    opacity: .85;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid transparent;
}

.hf-thumb-slide:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.hf-thumb-slide.active {
    opacity: 1;
}

.hf-thumb-img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 0;
    background: var(--hf-thumb-br);
}

@media (max-width: 768px) {
    .hf-thumb-img {
        height: 60px;
        width: 120px;
    }
    
    .hf-thumb-track {
        gap: 6px;
    }
}

/* Controls row */
.hf-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 4px;
}

.hf-nav-group {
    display: flex;
    align-items: center;
    gap:0;
}

.hf-nav {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    transition: all .2s ease;
}


.hf-progress {
    position: relative;
    flex: 1;
    height: 4px;
    background: var(--hf-track);
    border-radius: 999px;
    overflow: hidden;
}

.hf-progress::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--hf-progress, 0%);
    background: var(--hf-red);
    transition: width .35s ease;
    border-radius: inherit;
}

/* Responsive */
@media (max-width: 768px) {
    .hf-main-container {
        overflow: hidden;
        position: relative;
    }
    
    .hf-main-track {
        will-change: transform;
    }
    
    .hf-main-slide {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .hf-main-img {
        height: 16rem;
    }
    
    .hf-controls {
        gap: 12px;
        padding: 12px 0 4px;
    }
    
    .hf-nav {
        width: 36px;
        height: 36px;
    }
    
    .thumb-gallery-wrap {
        margin-top: 6px;
    }
}

/* Image Overlay Styles */
.hf-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hf-image-overlay {
    position: absolute;
    top: 55px;
    right: 20px;
    pointer-events: none;
}

.hf-overlay-text {
    background:#1A1A1A;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: inline-block;
    max-width: calc(100vw - 60px);
    word-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .hf-image-overlay {
        top: 12px;
        right: 12px;
        left: 12px;
    }
    
    .hf-overlay-text {
        font-size: 0.875rem;
        padding: 5px 10px;
        max-width: 100%;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
        border-radius: 12px;
    }
}

/* Sold-out states */
.deal-card {
    position: relative;
}

.deal-card__media {
    position: relative;
}

.deal-card__tag-stack {
    top: 0.5rem;
    right: 0.5rem;
    transition: filter 0.2s ease;
}

.deal-card--sold .deal-card__tag-stack {
    top: 4.5rem;
    filter: grayscale(1);
}

.deal-card--sold .deal-card__image {
    filter: grayscale(1);
    transform: scale(1.01);
}

.deal-card--sold .deal-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.2);
    z-index: 5;
    pointer-events: none;
}

/* Live deal indicator animation */
@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes ping-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.deal-live-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.deal-live-indicator__dot {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dc2626;
    animation: pulse-red 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.deal-live-indicator__ping {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dc2626;
    animation: ping-red 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.sold-out-ribbon img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.18));
}

.sold-out-lock {
    position: relative;
}

.sold-out-lock .sold-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: grayscale(0.25) blur(0.20px);
    border-radius: inherit;
    z-index: 30;
    pointer-events: auto;
    cursor: default;
    transition: background 0.3s ease;
}

.sold-out-lock .sold-out-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(var(--sold-tip-x, 0), var(--sold-tip-y, 0), 0) scale(0.96);
    background: #c1266a;
    color: #fff;
    font-family: 'PT Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 0em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.sold-out-lock:hover .sold-out-overlay,
.sold-out-lock:focus-within .sold-out-overlay,
.sold-out-lock.sold-out-tracking .sold-out-overlay {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: grayscale(0.15) blur(0.05px);
}

.sold-out-lock.sold-out-tracking .sold-out-tooltip {
    opacity: 1;
    transform: translate3d(var(--sold-tip-x, 0), var(--sold-tip-y, 0), 0) scale(1);
}

/* Deal schedule banner */
.deal-schedule-banner {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 220px;
}

.deal-schedule-banner--countdown {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.92));
}

.deal-schedule-banner--live,
.deal-schedule-banner--ended {
    padding-top: clamp(2rem, 3vw, 3.5rem);
    padding-bottom: clamp(2rem, 3vw, 3.5rem);
    background-color: #c1266a;
}

.deal-schedule-banner--live .deal-schedule-banner__overlay,
.deal-schedule-banner--ended .deal-schedule-banner__overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: calc(50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(270deg, #c1266a 53.12%, rgba(193, 38, 106, 0) 97.62%);
    padding: clamp(2rem, 4vw, 4rem);
    gap: 0.75rem;
}

.deal-schedule-banner__overlay-icon {
    width: 56px;
    height: 56px;
}

.deal-schedule-banner__live-label {
    font-family: 'Brandon Grotesque','PT Sans',sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.deal-schedule-banner__art {
    position: absolute;
    opacity: 0.35;
    max-width: 220px;
    width: 25vw;
    height: auto;
}

.deal-schedule-banner__art--left {
    left: 2%;
    bottom: 6%;
}

.deal-schedule-banner__art--right {
    right: 2%;
    top: 6%;
}

.deal-schedule-banner__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.schedule-countdown__segment {
    min-width: 80px;
    text-align: center;
}

.schedule-countdown__value {
    font-family: 'Impact', sans-serif;
}

.schedule-countdown__label {
    letter-spacing: 2px;
    text-transform: uppercase;
}

.schedule-countdown__separator {
    margin-bottom: 0.5rem;
}

.schedule-countdown--live {
    flex-direction: row;
    gap: 1.5rem;
}

.schedule-countdown--live .schedule-countdown__segment {
    min-width: 90px;
}

@media (max-width: 768px) {
    .deal-schedule-banner--live .deal-schedule-banner__overlay {
        left: 0;
        right: 0;
        background: rgba(193, 38, 106, 0.9);
    }

    .deal-schedule-banner__art {
        display: none;
    }
}

/* Reminder modal */
body.schedule-modal-open {
    overflow: hidden;
}

/* Tabs horizontal scroll on mobile */
@media (max-width: 768px) {
    [role="tablist"] {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    [role="tablist"]::-webkit-scrollbar {
        display: none;
    }
}