/* ═══════════════════════════════════════════════════════════════════════════
   Landing Page — Shein-Inspired Design
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero Carousel ────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-light);
}
.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 600ms ease;
}
.hero__slide--active {
    opacity: 1;
    z-index: 1;
}
.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__content {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    padding: 40px 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    width: 100%;
    color: var(--color-white);
}
.hero__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero__subtitle {
    font-size: 1.125rem;
    margin-bottom: 16px;
    opacity: 0.9;
}
.hero__cta {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}
.hero__cta:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero arrows */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.85);
    color: var(--color-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.hero__arrow:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
}
.hero__arrow--prev { inset-inline-start: 20px; }
.hero__arrow--next { inset-inline-end: 20px; }

/* Hero dots */
.hero__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.hero__dot--active {
    background: var(--color-white);
    width: 28px;
    border-radius: 5px;
}

/* ── Category Icons Grid ──────────────────────────────────────────────────── */
.categories-grid {
    padding: 32px 0;
    background: var(--color-white);
}
.categories-grid__inner {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.categories-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 90px;
    text-align: center;
    transition: transform var(--transition-base);
}
.categories-grid__item:hover {
    transform: translateY(-4px);
}
.categories-grid__icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--color-border-light);
    transition: border-color var(--transition-base);
    background: var(--color-bg-light);
}
.categories-grid__item:hover .categories-grid__icon-wrap {
    border-color: var(--color-accent);
}
.categories-grid__icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.categories-grid__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-muted);
}
.categories-grid__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.3;
}

/* ── Promo / Product Sections ─────────────────────────────────────────────── */
.promo-section {
    padding: 36px 0;
}
.promo-section--flash_sale {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE8E8 100%);
}

.product-section {
    padding: 36px 0;
}
.product-section--light {
    background: var(--color-bg-light);
}

/* ── Countdown Timer ──────────────────────────────────────────────────────── */
.countdown {
    display: flex;
    align-items: center;
    gap: 4px;
}
.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.countdown__num {
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    min-width: 40px;
    text-align: center;
}
.countdown__label {
    font-size: 0.625rem;
    color: var(--color-text-muted);
    margin-top: 2px;
    text-transform: uppercase;
}
.countdown__sep {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 14px;
}

/* ── Product Horizontal Scroller ──────────────────────────────────────────── */
.product-scroller {
    position: relative;
}
.product-scroller__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.product-scroller__track::-webkit-scrollbar { display: none; }
.product-scroller__track .product-card {
    min-width: 200px;
    max-width: 220px;
    flex-shrink: 0;
}
.product-scroller__arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0;
}
.product-scroller:hover .product-scroller__arrow { opacity: 1; }
.product-scroller__arrow:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
.product-scroller__arrow--prev { inset-inline-start: -8px; }
.product-scroller__arrow--next { inset-inline-end: -8px; }

/* ── Product Grid ─────────────────────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* ── Product Card ─────────────────────────────────────────────────────────── */
.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: transparent;
}
.product-card__link {
    display: block;
    color: inherit;
}
.product-card__image-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-bg-light);
}
.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}
.product-card:hover .product-card__image {
    transform: scale(1.05);
}
.product-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-border);
}

/* Badges */
.product-card__badges {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

/* Quick add overlay */
.product-card__quick-add {
    position: absolute;
    bottom: 8px;
    inset-inline-end: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition-base);
    z-index: 2;
}
.product-card:hover .product-card__quick-add {
    opacity: 1;
    transform: translateY(0);
}

/* Card info */
.product-card__info {
    padding: 10px 12px;
}
.product-card__name {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.product-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.product-card__price--current {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--color-accent);
}
.product-card__price--original {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

/* Color dots */
.product-card__colors {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}
.product-card__color-dot {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-border);
    flex-shrink: 0;
}
.product-card__color-more {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
}

/* Rating */
.product-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-card__reviews {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
}

/* Footer styles moved to css/footer.css (loaded site-wide via base.html). */


/* ── 3-Column Hero Layout ─────────────────────────────────────────────────── */
.hero-layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 20px;
    height: 320px;
}

.hero-layout__left, .hero-layout__right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 320px;
}

.hero-layout__center {
    height: 320px;
}

.hero-layout__center .hero {
    height: 100%;
    border-radius: var(--radius-sm);
}

.hero-side-card {
    position: relative;
    display: block;
    width: 100%;
    flex: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-light);
    transition: transform var(--transition-fast);
}

.hero-side-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hero-side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-side-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.hero-side-card__overlay--center {
    background: rgba(0,0,0,0.3);
    justify-content: center;
}

.hero-side-card__title {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.125rem;
    font-family: var(--font-heading);
}

/* ── Larger Categories Grid ───────────────────────────────────────────────── */
.categories-grid__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-grid__item {
    width: 110px; /* Bigger! */
    gap: 12px;
}

.categories-grid__icon-wrap {
    width: 100px; /* Bigger! */
    height: 100px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.categories-grid__label {
    font-size: 0.875rem; /* Bigger font */
}

/* ── Promotional Drawer ───────────────────────────────────────────────────── */
.promo-drawer-tab {
    position: fixed;
    right: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    background: #000;
    color: #fff;
    padding: 8px 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 1000;
    transition: right 0.3s ease;
}

.promo-drawer-tab:hover {
    right: -36px;
}

.promo-drawer {
    position: fixed;
    right: -350px;
    top: 0;
    bottom: 0;
    width: 320px;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.promo-drawer.open {
    right: 0;
}

.promo-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.promo-drawer__header h3 {
    margin: 0;
    font-family: var(--font-heading);
}

.promo-drawer__header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

.promo-drawer__content {
    padding: 20px;
}

/* ── Welcome Modal ────────────────────────────────────────────────────────── */
.welcome-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.welcome-modal {
    background: #fff;
    width: 90%;
    max-width: 800px;
    display: flex;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s;
}

.welcome-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.8);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-modal__image {
    width: 50%;
    display: none;
}

@media (min-width: 768px) {
    .welcome-modal__image {
        display: block;
    }
}

.welcome-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-modal__content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }
    .hero-layout__left, .hero-layout__right {
        display: none; /* Hide side cards on mobile for now */
    }
}
