/* ===================================
   CrazyShop - RTL Hebrew Fashion Store
   Premium Shopify-like Design
   =================================== */

/* --- CSS Variables --- */
:root {
    --primary: #1a1a1a;
    --primary-light: #333333;
    --accent: #c8a96e;
    --accent-hover: #b8954e;
    --accent-light: #f5efe6;
    --white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #f5f5f5;
    --mid-gray: #e0e0e0;
    --text-gray: #888888;
    --text-dark: #222222;
    --text-medium: #555555;
    --danger: #e74c3c;
    --success: #27ae60;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Heebo', 'Assistant', sans-serif;
    --container-width: 1340px;
    --header-height: 118px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

/* --- Announcement Bar --- */
.announcement-bar {
    background: var(--primary);
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.announcement-text {
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.announcement-text i {
    color: var(--accent);
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 4px 0;
    line-height: 1;
    direction: ltr;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    direction: ltr;
}

.logo-crazy {
    color: var(--primary);
    font-weight: 900;
    font-size: 1.55rem;
    letter-spacing: 3px;
    font-style: italic;
    transition: var(--transition);
}

.logo-divider {
    display: inline-block;
    width: 2px;
    height: 18px;
    background: var(--accent);
    margin: 0 8px;
    transform: skewX(-12deg);
    border-radius: 2px;
    position: relative;
    top: 0;
    transition: var(--transition);
}

.logo-shop {
    color: var(--accent);
    font-weight: 900;
    font-size: 1.55rem;
    letter-spacing: 3px;
    font-style: italic;
    transition: var(--transition);
}

.logo-tagline {
    display: block;
    font-size: 0.52rem;
    letter-spacing: 5.5px;
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 3px;
    font-style: normal;
    text-indent: 5.5px;
}

.logo:hover .logo-crazy {
    color: var(--accent);
}

.logo:hover .logo-shop {
    color: var(--primary);
}

.logo:hover .logo-divider {
    background: var(--primary);
}

/* --- Image logo (graffiti badge) --- */
.logo-img {
    display: block;
    height: 108px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo:hover .logo-img {
    transform: scale(1.05) rotate(-1deg);
}
.footer-logo .logo-img {
    height: 104px;
    width: auto;
}
.auth-header .auth-logo-img {
    height: 90px;
    width: auto;
    display: block;
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.nav-link i {
    font-size: 0.6rem;
    transition: var(--transition);
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

.nav-sale {
    color: var(--danger) !important;
    font-weight: 700;
}

/* --- Nav Arrow --- */
.nav-arrow {
    font-size: 0.55rem !important;
    margin-right: 2px;
    transition: transform .25s ease;
}
.nav-item.has-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

/* --- Nav Dropdown --- */
.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    pointer-events: none;
    z-index: 1000;
    padding: 8px 0;
}
.nav-item.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.nav-dropdown-inner {
    display: flex;
    flex-direction: column;
}
.nav-dropdown-link {
    display: block;
    padding: 10px 24px;
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
    transition: all .15s ease;
    white-space: nowrap;
}
.nav-dropdown-link:hover {
    background: var(--accent-light);
    color: var(--accent);
    padding-right: 28px;
}
.nav-dropdown-all {
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 4px;
    padding-bottom: 12px;
}
.nav-dropdown-all:hover {
    color: var(--accent);
}

/* --- Mega Menu --- */
.mega-menu {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    min-width: 650px;
    background: var(--white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateX(50%) translateY(10px);
    transition: var(--transition);
    padding: 0;
    pointer-events: none;
    z-index: 100;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
    pointer-events: auto;
}

.mega-menu-inner {
    display: flex;
    gap: 0;
    padding: 30px;
}

.mega-col {
    flex: 1;
    padding: 0 15px;
    border-left: 1px solid var(--light-gray);
}

.mega-col:last-child {
    border-left: none;
}

.mega-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.mega-col ul li a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-medium);
    transition: var(--transition);
}

.mega-col ul li a:hover {
    color: var(--accent);
    padding-right: 8px;
}

.mega-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    min-width: 180px;
    padding: 0 !important;
    border: none !important;
}

.mega-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: var(--transition-slow);
}

.mega-image:hover img {
    transform: scale(1.05);
}

.mega-image span {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--white);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Header Icons --- */
.header-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.1rem;
    color: var(--text-dark);
}

.header-icon:hover {
    background: var(--light-gray);
    color: var(--accent);
}

.icon-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 1100;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px) translateX(5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

/* --- Search Overlay --- */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: none;
    animation: slideDown 0.3s ease;
}

.search-overlay.active {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--mid-gray);
    border-radius: var(--radius-full);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-gray);
}

.search-input:focus {
    border-color: var(--accent);
    background: var(--white);
}

.search-close {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-gray);
}

.search-suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.search-tag {
    padding: 6px 16px;
    background: var(--light-gray);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
}

.search-tag:hover {
    background: var(--accent);
    color: var(--white);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--white);
    transform: translateX(100%);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-gray);
    font-size: 1rem;
}

.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-nav-list {
    flex: 1;
    padding: 12px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.mobile-nav-link i {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* Mobile Sub-menu (categories) */
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.mobile-nav-toggle:hover {
    background: var(--accent-light);
    color: var(--accent);
}
.mobile-nav-toggle i {
    font-size: 0.7rem;
    color: var(--text-gray);
    transition: transform .25s ease;
}
.mobile-has-sub.open .mobile-nav-toggle i {
    transform: rotate(180deg);
}
.mobile-sub-list {
    display: none;
    background: var(--light-gray);
    padding: 4px 0;
}
.mobile-has-sub.open .mobile-sub-list {
    display: block;
}
.mobile-sub-list li a {
    display: block;
    padding: 12px 40px;
    font-size: 0.92rem;
    color: var(--text-medium);
    transition: var(--transition);
}
.mobile-sub-list li a:hover {
    color: var(--accent);
    background: rgba(200,169,110,.08);
}
.mobile-sub-list li:first-child a {
    font-weight: 700;
    color: var(--primary);
}

.sale-link {
    color: var(--danger) !important;
    font-weight: 700;
}

.mobile-menu-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-medium);
    transition: var(--transition);
}

.mobile-footer-link:hover {
    color: var(--accent);
}

.mobile-footer-link i {
    width: 20px;
    text-align: center;
}

/* =============================
   HERO SECTION
   ============================= */
.hero-section {
    position: relative;
    height: 86vh;
    min-height: 540px;
    max-height: 840px;
    overflow: hidden;
    background: #15171f;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease, visibility 1.1s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.58) 30%, rgba(0,0,0,0.28) 56%, rgba(0,0,0,0.06) 82%, transparent 100%),
        linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 48%);
}

/* Bare branding slide (image only, no text) - light & even so the artwork reads */
.hero-slide--bare .hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.08) 38%, rgba(0,0,0,0.16) 100%);
}

/* Showcase slide (centered content over a lifestyle image) - balanced even darkening */
.hero-slide--showcase .hero-overlay {
    background:
        linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.28) 42%, rgba(0,0,0,0.5) 100%),
        radial-gradient(ellipse 65% 75% at 50% 48%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 55%, transparent 80%);
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.hero-content {
    position: relative;
    max-width: 580px;
    color: var(--white);
    text-shadow: 0 2px 22px rgba(0,0,0,0.55);
}
/* Soft scrim directly behind the text for clean legibility on busy images */
.hero-content::before {
    content: "";
    position: absolute;
    inset: -36px -52px;
    z-index: -1;
    background: radial-gradient(ellipse at 70% 50%, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.18) 45%, transparent 72%);
    filter: blur(8px);
    pointer-events: none;
}
.hero-content--center::before {
    background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.16) 48%, transparent 74%);
}

.hero-content--center {
    margin-inline: auto;
    text-align: center;
}

/* Staggered entrance for the active slide's content (robust: visible by default) */
.hero-slide.active .hero-content > * {
    animation: heroReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-slide.active .hero-content > *:nth-child(1) { animation-delay: 0.12s; }
.hero-slide.active .hero-content > *:nth-child(2) { animation-delay: 0.24s; }
.hero-slide.active .hero-content > *:nth-child(3) { animation-delay: 0.36s; }
.hero-slide.active .hero-content > *:nth-child(4) { animation-delay: 0.48s; }

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1.02rem, 1.8vw, 1.28rem);
    opacity: 0.95;
    margin-bottom: 36px;
    line-height: 1.6;
    max-width: 32em;
}
.hero-content--center .hero-subtitle {
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-content--center .hero-buttons {
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid transparent;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 110, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 42px;
    font-size: 1.05rem;
}

/* Hero Nav */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 50%;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

.hero-prev {
    right: 30px;
}

.hero-next {
    left: 30px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.hero-dot:hover {
    background: rgba(255,255,255,0.7);
}

/* =============================
   TRUST BAR
   ============================= */
.trust-bar {
    background: var(--light-gray);
    padding: 20px 0;
    border-bottom: 1px solid var(--mid-gray);
}

.trust-items {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.trust-item span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* =============================
   SECTION HEADERS
   ============================= */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* =============================
   SHOP BY DEPARTMENT (gender)
   ============================= */
.gender-section {
    background: var(--off-white);
}
.gender-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gender-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    color: var(--white);
    isolation: isolate;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.gender-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
}
.gender-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.42) 38%, rgba(0,0,0,0.12) 64%, rgba(0,0,0,0.22) 100%);
}
.gender-card--women::before { background: linear-gradient(135deg, #2a2320 0%, #45372c 60%, #6b5238 100%); }
.gender-card--men::before   { background: linear-gradient(135deg, #1a1f25 0%, #232b33 60%, #36414c 100%); }
.gender-card--kids::before  { background: linear-gradient(135deg, #21201a 0%, #3a3526 55%, #5e5230 100%); }
.gender-card-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gender-card-inner { position: relative; }
.gender-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.gender-title {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 6px;
}
.gender-sub {
    font-size: 0.95rem;
    opacity: 0.88;
    margin-bottom: 18px;
}
.gender-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 3px;
    transition: var(--transition);
}
.gender-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.gender-card:hover .gender-card-img {
    transform: scale(1.07);
}
.gender-card:hover .gender-cta { gap: 14px; }

@media (max-width: 768px) {
    .gender-grid { grid-template-columns: 1fr; gap: 14px; }
    .gender-card { min-height: 300px; padding: 24px; }
    .gender-title { font-size: 1.85rem; }
}

/* =============================
   CATEGORIES
   ============================= */
.categories-section {
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 16px;
}

/* Tall cards span 2 rows on desktop */
.category-card--tall {
    grid-row: span 2;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: block;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.85);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.15) 45%,
        rgba(0, 0, 0, 0.02) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.category-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    width: fit-content;
}

.category-overlay h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.category-card:hover .category-overlay h3 {
    transform: translateY(-4px);
}

.category-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-cta i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-cta {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover .category-cta i {
    transform: translateX(-4px);
}

/* Tall card styling adjustments */
.category-card--tall .category-overlay {
    padding: 36px 28px;
}

.category-card--tall .category-overlay h3 {
    font-size: 1.65rem;
}

/* =============================
   PRODUCT TABS
   ============================= */
.product-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.product-tab {
    padding: 8px 24px;
    border: 2px solid var(--mid-gray);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
}

.product-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.product-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* =============================
   PRODUCTS GRID
   ============================= */
.products-section {
    background: var(--off-white);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .product-image-hover {
    opacity: 1;
}

.product-card:hover .product-image img:first-of-type {
    opacity: 0;
}

.product-card:hover .product-image-hover {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--primary);
    color: var(--white);
}

.badge-sale {
    background: var(--danger);
    color: var(--white);
}

.badge-hot {
    background: linear-gradient(135deg, #ff6b35, #f72585);
    color: var(--white);
}

.product-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.product-action-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.add-to-cart-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 2;
    cursor: pointer;
    border: none;
    width: 100%;
    font-family: var(--font-primary);
}

.product-card:hover .add-to-cart-btn {
    transform: translateY(0);
}

.add-to-cart-btn:hover {
    background: var(--accent);
}

.product-info {
    padding: 16px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.product-rating i {
    color: #f5a623;
    font-size: 0.75rem;
}

.product-rating span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.stars {
    display: flex;
    gap: 1px;
}

.stars i {
    color: #f5a623;
    font-size: 0.75rem;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.current-price.sale {
    color: var(--danger);
}

.original-price {
    font-size: 0.95rem;
    color: var(--text-gray);
    text-decoration: line-through;
}

/* Product Card - price class aliases (used by product-card.php) */
.price-current {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-original {
    font-size: 0.95rem;
    color: var(--text-gray);
    text-decoration: line-through;
}

.product-price .price-original ~ .price-current,
.product-price .price-current:first-child:not(:only-child) {
    color: var(--danger);
}

/* Product Badge variants (used by product-card.php) */
.product-badge.sale {
    background: var(--danger);
    color: var(--white);
}

.product-badge.new {
    background: var(--accent);
    color: var(--white);
}

/* Quick Add to Cart Button */
.btn-view-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    margin-top: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-view-product:hover {
    background: var(--accent);
    transform: translateY(-1px);
    color: var(--white);
}

.btn-view-product i {
    font-size: 0.85rem;
}

/* Wishlist button active state */
.wishlist-btn.active {
    color: var(--danger);
}

.wishlist-btn.active i {
    color: var(--danger);
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* =============================
   PROMO BANNER
   ============================= */
.promo-banner {
    padding: 0;
}

.promo-banner-inner {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.6) 100%);
}

.promo-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 60px 24px;
}

.promo-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(200, 169, 110, 0.2);
    border: 1px solid var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.promo-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 12px;
}

.promo-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 32px;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 36px;
    direction: ltr;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 4px;
}

.countdown-separator {
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.5;
}

/* =============================
   LOOKBOOK / INSTAGRAM GRID
   ============================= */
.lookbook-section {
    background: var(--white);
}

.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 250px 250px;
    gap: 12px;
}

.lookbook-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    display: block;
}

.lookbook-tall {
    grid-row: span 2;
}

.lookbook-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.lookbook-item:hover img {
    transform: scale(1.1);
}

.lookbook-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
}

.lookbook-item:hover .lookbook-overlay {
    opacity: 1;
}

.lookbook-overlay i {
    font-size: 1.8rem;
}

.lookbook-overlay span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* =============================
   TESTIMONIALS
   ============================= */
.testimonials-section {
    background: var(--off-white);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-stars i {
    color: #f5a623;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* =============================
   BRANDS MARQUEE
   ============================= */
.brands-section {
    padding: 40px 0;
    background: var(--light-gray);
    overflow: hidden;
}

.brands-marquee {
    overflow: hidden;
    position: relative;
}

.brands-marquee::before,
.brands-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.brands-marquee::before {
    right: 0;
    background: linear-gradient(to left, var(--light-gray), transparent);
}

.brands-marquee::after {
    left: 0;
    background: linear-gradient(to right, var(--light-gray), transparent);
}

.brands-track {
    display: flex;
    gap: 60px;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.brand-item {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mid-gray);
    letter-spacing: 3px;
    white-space: nowrap;
    transition: var(--transition);
}

.brand-item:hover {
    color: var(--text-gray);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================
   NEWSLETTER
   ============================= */
.newsletter-section {
    background: var(--white);
}

.newsletter-inner {
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a2a 100%);
    border-radius: var(--radius-lg);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    gap: 60px;
    color: var(--white);
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.newsletter-content p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.newsletter-form {
    flex: 1;
}

.newsletter-input-wrap {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-full);
    overflow: hidden;
    padding: 5px;
}

.newsletter-input-wrap input {
    flex: 1;
    padding: 14px 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: transparent;
    min-width: 0;
}

.newsletter-input-wrap input::placeholder {
    color: var(--text-gray);
}

.newsletter-input-wrap .btn {
    flex-shrink: 0;
    border-radius: var(--radius-full);
}

.newsletter-disclaimer {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 10px;
    text-align: center;
}

/* =============================
   FOOTER
   ============================= */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    padding: 4px 0;
    direction: ltr;
}

.footer-logo .logo-text {
    display: flex;
    align-items: center;
    direction: ltr;
}

.footer-logo .logo-crazy {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 3px;
    font-style: italic;
}

.footer-logo .logo-divider {
    display: inline-block;
    width: 2px;
    height: 17px;
    background: var(--accent);
    margin: 0 7px;
    transform: skewX(-12deg);
    border-radius: 2px;
}

.footer-logo .logo-shop {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 3px;
    font-style: italic;
}

.footer-logo .logo-tagline {
    display: block;
    font-size: 0.5rem;
    letter-spacing: 5px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 3px;
    font-style: normal;
    text-indent: 5px;
}

.footer-logo:hover .logo-crazy {
    color: var(--accent);
}

.footer-logo:hover .logo-shop {
    color: var(--white);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-right: 6px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px !important;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 4px;
    width: 16px;
    flex-shrink: 0;
}

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
}

.payment-methods {
    display: flex;
    gap: 16px;
}

.payment-methods i {
    font-size: 1.8rem;
    opacity: 0.5;
    transition: var(--transition);
}

.payment-methods i:hover {
    opacity: 1;
    color: var(--accent);
}

/* Footer Credit */
.footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
    padding: 22px 0 10px;
    margin-top: 8px;
    position: relative;
    direction: rtl;
}
.footer-credit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(260px, 60%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,169,110,.45), transparent);
}
.footer-credit-text {
    font-size: 0.72rem;
    color: rgba(255,255,255,.38);
    letter-spacing: 3px;
    font-weight: 300;
}
.footer-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    background: linear-gradient(135deg, rgba(200,169,110,.16), rgba(200,169,110,.05));
    border: 1px solid rgba(200,169,110,.32);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.footer-credit-icon {
    font-size: 0.74rem;
    color: var(--accent);
    opacity: .85;
}
.footer-credit-brand {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    background: linear-gradient(100deg, #c8a96e 0%, #f3e2bd 45%, #c8a96e 70%, #f3e2bd 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #c8a96e;
    animation: creditShimmer 4.5s linear infinite;
}
.footer-credit-dot {
    -webkit-text-fill-color: #f3e2bd;
    color: #f3e2bd;
}
.footer-credit-ext {
    font-size: 0.62rem;
    color: var(--accent);
    opacity: 0;
    max-width: 0;
    transform: translateX(4px);
    transition: opacity .3s ease, max-width .3s ease, transform .3s ease;
}
.footer-credit-link:hover {
    transform: translateY(-2px);
    border-color: rgba(200,169,110,.6);
    box-shadow: 0 8px 22px rgba(200,169,110,.22), inset 0 1px 0 rgba(255,255,255,.1);
}
.footer-credit-link:hover .footer-credit-ext {
    opacity: .9;
    max-width: 16px;
    transform: translateX(0);
}
@keyframes creditShimmer {
    to { background-position: -220% center; }
}
/* =============================
   BACK TO TOP
   ============================= */
.back-to-top {
    position: fixed;
    bottom: 100px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 900;
    font-size: 1rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* =============================
   WHATSAPP FLOAT
   ============================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* =============================
   ANIMATIONS
   ============================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================
   RESPONSIVE - TABLET
   ============================= */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-section {
        height: 70vh;
        min-height: 450px;
    }

    .hero-container {
        padding: 0 28px;
    }

    .hero-content {
        max-width: 500px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
        gap: 12px;
    }

    .category-card--tall {
        grid-row: span 2;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .lookbook-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 220px 220px;
    }

    .lookbook-item:nth-child(5),
    .lookbook-item:nth-child(6) {
        display: none;
    }

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

    .testimonial-card:nth-child(3) {
        display: none;
    }

    .newsletter-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 50px 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* =============================
   RESPONSIVE - MOBILE
   ============================= */
@media (max-width: 768px) {
    :root {
        --header-height: 84px;
    }

    .logo-img {
        height: 76px;
    }

    .footer-logo .logo-img {
        height: 88px;
    }

    .auth-header .auth-logo-img {
        height: 76px;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 50px 0;
    }

    .announcement-bar {
        font-size: 0.78rem;
        padding: 8px 12px;
    }

    .announcement-text {
        font-size: 0.78rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-crazy,
    .logo-shop {
        font-size: 1.25rem !important;
        letter-spacing: 2px !important;
    }

    .logo-divider {
        height: 14px !important;
        margin: 0 6px !important;
    }

    .logo-tagline {
        font-size: 0.45rem !important;
        letter-spacing: 4px !important;
        text-indent: 4px !important;
    }

    .header-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    /* Hero Mobile */
    .hero-section {
        height: 65vh;
        min-height: 400px;
        max-height: 600px;
    }

    .hero-container {
        padding: 0 22px;
    }

    .hero-content {
        max-width: none;
        text-align: center;
    }
    .hero-content .hero-subtitle {
        margin-inline: auto;
    }

    .hero-tag {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .hero-prev {
        right: 12px;
    }

    .hero-next {
        left: 12px;
    }

    /* Trust Bar Mobile */
    .trust-items {
        gap: 16px;
    }

    .trust-item {
        min-width: calc(50% - 8px);
        flex: unset;
        gap: 10px;
        justify-content: flex-start;
        padding: 8px 0;
    }

    .trust-item i {
        font-size: 1.2rem;
    }

    .trust-item strong {
        font-size: 0.82rem;
    }

    .trust-item span {
        font-size: 0.75rem;
    }

    /* Section Headers Mobile */
    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Categories Mobile */
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        gap: 10px;
    }

    .category-card,
    .category-card--tall {
        grid-row: span 1;
        aspect-ratio: 4/5;
        border-radius: var(--radius-sm);
    }

    .category-overlay {
        padding: 14px 12px;
    }

    .category-tag {
        font-size: 0.65rem;
        padding: 3px 10px;
        margin-bottom: 6px;
    }

    .category-overlay h3 {
        font-size: 1.05rem;
        font-weight: 800;
    }

    .category-cta {
        display: none;
    }

    .category-card--tall .category-overlay {
        padding: 14px 12px;
    }

    .category-card--tall .category-overlay h3 {
        font-size: 1.05rem;
    }

    /* Products Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-tabs {
        gap: 6px;
    }

    .product-tab {
        padding: 6px 16px;
        font-size: 0.82rem;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-category {
        font-size: 0.7rem;
    }

    .current-price,
    .price-current {
        font-size: 1rem;
    }

    .original-price,
    .price-original {
        font-size: 0.85rem;
    }

    .product-rating {
        margin-bottom: 6px;
    }

    .stars i {
        font-size: 0.65rem;
    }

    .rating-count {
        font-size: 0.7rem;
    }

    .product-badge {
        top: 8px;
        right: 8px;
        padding: 3px 10px;
        font-size: 0.7rem;
    }

    .product-actions {
        opacity: 1;
        transform: translateX(0);
    }

    .product-action-btn {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .add-to-cart-btn {
        transform: translateY(0);
        padding: 12px;
        font-size: 0.82rem;
    }

    /* Promo Banner Mobile */
    .promo-banner-inner {
        min-height: 380px;
        background-attachment: scroll;
    }

    .promo-content {
        padding: 40px 20px;
    }

    .promo-title {
        font-size: 2.2rem;
    }

    .countdown-item {
        padding: 12px 14px;
        min-width: 60px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .countdown-separator {
        font-size: 1.2rem;
    }

    /* Lookbook Mobile */
    .lookbook-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px 200px;
        gap: 8px;
    }

    .lookbook-tall {
        grid-row: span 1;
    }

    .lookbook-item:nth-child(5),
    .lookbook-item:nth-child(6) {
        display: block;
    }

    /* Testimonials Mobile */
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-card:nth-child(3) {
        display: block;
    }

    .testimonial-text {
        font-size: 0.92rem;
    }

    /* Brands Mobile */
    .brands-section {
        padding: 24px 0;
    }

    .brand-item {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .brands-track {
        gap: 40px;
    }

    /* Newsletter Mobile */
    .newsletter-inner {
        padding: 40px 20px;
        border-radius: var(--radius-md);
    }

    .newsletter-content h2 {
        font-size: 1.4rem;
    }

    .newsletter-content p {
        font-size: 0.9rem;
    }

    .newsletter-input-wrap {
        flex-direction: column;
        border-radius: var(--radius-md);
        gap: 0;
    }

    .newsletter-input-wrap input {
        padding: 14px 16px;
        text-align: center;
    }

    .newsletter-input-wrap .btn {
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        justify-content: center;
        width: 100%;
    }

    /* Footer Mobile */
    .footer {
        padding-top: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-about {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-col h4 {
        font-size: 0.95rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .payment-methods {
        justify-content: center;
    }

    .payment-methods i {
        font-size: 1.5rem;
    }

    /* Floating buttons mobile */
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 85px;
        left: 16px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 16px;
        font-size: 1.4rem;
    }

    .section-footer {
        margin-top: 32px;
    }

    .section-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =============================
   RESPONSIVE - SMALL MOBILE
   ============================= */
@media (max-width: 480px) {
    .hero-section {
        height: 60vh;
        min-height: 360px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        gap: 8px;
    }

    .category-card,
    .category-card--tall {
        aspect-ratio: 3/4;
    }

    .category-overlay h3 {
        font-size: 0.92rem;
    }

    .category-tag {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .current-price {
        font-size: 0.95rem;
    }

    .promo-title {
        font-size: 1.8rem;
    }

    .countdown-item {
        padding: 10px 10px;
        min-width: 52px;
    }

    .countdown-number {
        font-size: 1.3rem;
    }

    .lookbook-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 160px 160px;
    }

    .lookbook-item:nth-child(5),
    .lookbook-item:nth-child(6) {
        display: none;
    }
}

/* =============================
   ACCESSIBILITY & UTILS
   ============================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-slide {
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--mid-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

/* Image placeholder shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img[loading="lazy"] {
    background: linear-gradient(90deg, var(--light-gray) 25%, #eaeaea 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ==========================================
   COUPON BANNER
   ========================================== */
.coupon-banner {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    padding: 0.8rem 0;
    position: relative;
    z-index: 10;
}
.coupon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #fff;
    flex-wrap: wrap;
}
.coupon-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.coupon-text {
    text-align: center;
}
.coupon-text strong {
    display: block;
    font-size: 1rem;
}
.coupon-text span {
    font-size: 0.9rem;
    opacity: 0.95;
}
.coupon-code {
    background: rgba(255,255,255,0.25);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s;
}
.coupon-code:hover {
    background: rgba(255,255,255,0.4);
}
.coupon-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
}
.coupon-close:hover {
    color: #fff;
}

/* ==========================================
   WISHLIST BUTTON ACTIVE STATE
   ========================================== */
.product-action-btn.wishlist-btn.active,
.product-action-btn.wishlist-btn.active:hover {
    background: #e91e63;
    color: #fff;
}
.product-action-btn.wishlist-btn.active i {
    color: #fff;
}
.btn-wishlist.active {
    background: #fce4ec;
    color: #e91e63;
    border-color: #e91e63;
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}
.empty-state h2 {
    margin: 0.5rem 0;
    color: #333;
}
.empty-state p {
    color: #777;
    margin-bottom: 1rem;
}

/* Shoe category — show full shoe with white padding */
.product-card[data-category-slug="shoes"] .product-image {
    aspect-ratio: 1 / 1;
    background: #ffffff;
    padding: 14% 10%;
    box-sizing: border-box;
}
.product-card[data-category-slug="shoes"] .product-image img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}
.product-card[data-category-slug="shoes"]:hover .product-image img {
    transform: scale(1.04);
}


/* CS_UX_UPGRADE_V2 */

/* ================================================================
   CrazyShop — UX Upgrade Pack
   ================================================================ */

/* 1. Product card image zoom on hover (all categories) */
.product-image img {
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}
.product-card:hover .product-image img:first-of-type {
    transform: scale(1.07);
}
/* Shoes category keeps its own specific zoom (more specific rule wins) */

/* 2. Category card image zoom on hover */
.category-card img {
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover img {
    transform: scale(1.07);
}

/* 3. Gender dept cards image zoom */
.gender-card-img {
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.gender-card:hover .gender-card-img {
    transform: scale(1.06);
}

/* 4. Gallery main image — subtle hover zoom + click cursor */
.gallery-main {
    cursor: zoom-in;
}
.gallery-main img {
    transition: transform 0.4s ease;
}
.gallery-main:hover img {
    transform: scale(1.04);
}

/* 5. Lightbox overlay */
.cs-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.cs-lightbox.open {
    opacity: 1;
    visibility: visible;
}
.cs-lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.88);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}
.cs-lightbox.open .cs-lightbox__img {
    transform: scale(1);
}
.cs-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.cs-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 6. Mobile sticky Add-to-Cart bar (product page) */
.mobile-cart-bar {
    display: none;
}
@media (max-width: 900px) {
    .mobile-cart-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 16px max(12px, env(safe-area-inset-bottom));
        box-shadow: 0 -3px 24px rgba(0, 0, 0, 0.14);
        z-index: 990;
        gap: 10px;
        align-items: center;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        border-top: 1px solid #f0f0f0;
    }
    .mobile-cart-bar.visible {
        transform: translateY(0);
    }
    .mobile-cart-bar__btn {
        flex: 1;
        padding: 15px 20px;
        font-size: 0.98rem;
        font-weight: 700;
        border-radius: 12px;
        background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
        color: #fff;
        border: none;
        cursor: pointer;
        font-family: inherit;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.25s ease;
    }
    .mobile-cart-bar__btn:hover,
    .mobile-cart-bar__btn:active {
        background: linear-gradient(135deg, #c8a96e 0%, #b8954e 100%);
        transform: scale(0.98);
    }
    .mobile-cart-bar__btn.in-cart {
        background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    }
    .mobile-cart-bar__wl {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--light-gray);
        border-radius: 12px;
        font-size: 1.2rem;
        color: var(--text-dark);
        border: 1.5px solid var(--mid-gray);
        cursor: pointer;
        transition: var(--transition);
    }
    .mobile-cart-bar__wl.active {
        background: #fce4ec;
        color: #e91e63;
        border-color: #e91e63;
    }
    /* Add padding so page content isn't hidden behind bar */
    .product-page {
        padding-bottom: 90px !important;
    }
}

/* 7. Improved product card shadow on hover */
.product-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
    transform: translateY(-6px);
}

/* 8. Badge pulse on new items */
.badge-new {
    animation: badgePulse 2.5s ease infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 169, 110, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(200, 169, 110, 0); }
}

/* 9. Promo banner: make parallax visible on mobile (no attachment:fixed) */
@media (max-width: 768px) {
    .promo-banner-inner {
        background-attachment: scroll;
    }
}

/* 10. Gallery thumb hover scale */
.gallery-thumb {
    transition: var(--transition);
    cursor: pointer;
}
.gallery-thumb:hover {
    transform: scale(1.04);
    opacity: 0.85;
}

/* 11. Product detail action row improvements */
.product-actions-row {
    gap: 12px;
}


/* ============ Featured Carousel ============ */
.featured-carousel-wrap { position: relative; }
.featured-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 6px 2px 14px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.featured-carousel-item {
    flex: 0 0 240px;
    max-width: 240px;
    scroll-snap-align: start;
}
.featured-carousel-item .product-card { height: 100%; }
.carousel-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    cursor: pointer;
    font-size: 0.95rem;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.carousel-arrow:hover { transform: translateY(-50%) scale(1.08); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.carousel-arrow--prev { right: -8px; }
.carousel-arrow--next { left: -8px; }
@media (max-width: 768px) {
    .featured-carousel-item { flex: 0 0 190px; max-width: 190px; }
    .carousel-arrow { display: none; }
}

/* ============ Card CTA row (quick add to cart) ============ */
.card-cta-row { display: flex; gap: 8px; }
.card-cta-row .btn-card-add {
    flex: 1;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.card-cta-row .btn-card-view {
    flex: 0 0 auto;
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============ WhatsApp Group ============ */
.whatsapp-group-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .28);
    transition: transform .25s ease, box-shadow .25s ease;
    max-width: 320px;
}
.whatsapp-group-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, .4); }
.whatsapp-group-btn > .fab { font-size: 1.7rem; }
.wa-group-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.wa-group-text strong { font-size: .95rem; }
.wa-group-text small { font-size: .78rem; opacity: .9; }
.wa-group-arrow { font-size: .8rem; opacity: .85; }

.wa-strip { padding-top: 0; }
.wa-strip-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    border-radius: 18px;
    text-decoration: none;
    background: linear-gradient(135deg, #075e54, #128c7e 55%, #25d366);
    color: #fff;
    box-shadow: 0 14px 34px rgba(18, 140, 126, .3);
    transition: transform .25s ease, box-shadow .25s ease;
}
.wa-strip-inner:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(18, 140, 126, .42); }
.wa-strip-icon {
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem; flex-shrink: 0;
}
.wa-strip-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.wa-strip-text strong { font-size: 1.15rem; }
.wa-strip-text span { font-size: .9rem; opacity: .92; }
.wa-strip-cta {
    background: #fff; color: #128c7e; font-weight: 800;
    padding: 10px 20px; border-radius: 99px; font-size: .95rem;
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
}
@media (max-width: 640px) {
    .wa-strip-inner { flex-direction: column; text-align: center; gap: 12px; }
}

/* ============ Epic Hero v2 (slide 1 - the face of the site) ============ */
.hero-slide--epic {
    animation: heroKenburns 24s ease-in-out infinite alternate;
}
@keyframes heroKenburns {
    0%   { background-size: 106%; }
    100% { background-size: 120%; }
}
/* cinematic video layer (desktop) */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    z-index: 0;
}
@media (max-width: 900px) {
    .hero-video { display: none; }
}
/* readable cinematic overlay: strong on the left text zone, clear over the family */
.hero-slide--epic .hero-overlay {
    background:
        linear-gradient(to top, rgba(8,6,3,.55) 0%, transparent 34%),
        linear-gradient(100deg, rgba(8,6,3,.68) 0%, rgba(8,6,3,.42) 34%, transparent 62%);
    z-index: 1;
}
.hero-slide--epic .hero-container { position: relative; z-index: 3; justify-content: flex-end; display: flex; }
/* glass panel over the empty sunset side (left) */
.hero-slide--epic .hero-content {
    max-width: 560px;
    padding: 2.4rem 2.6rem;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(12,9,5,.52), rgba(12,9,5,.28));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(240,194,123,.22);
    box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
    animation: epicPanel 1.1s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes epicPanel {
    from { opacity: 0; transform: translateX(-46px); }
    to   { opacity: 1; transform: translateX(0); }
}
.hero-slide--epic .hero-tag {
    animation: epicRise .9s cubic-bezier(.2,.9,.3,1) both .25s;
    letter-spacing: 3px;
    font-size: .78rem;
    background: rgba(240,194,123,.12);
    border: 1px solid rgba(240,194,123,.45);
    color: #f5dcb0;
}
.hero-slide--epic .hero-title {
    font-size: clamp(2.6rem, 4.6vw, 4.6rem);
    line-height: 1.08;
    background: linear-gradient(100deg, #ffffff 0%, #ffe9c4 30%, #f0c27b 50%, #ffffff 72%);
    background-size: 240% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: epicRise 1s cubic-bezier(.2,.9,.3,1) both .4s, epicShimmer 7s linear 1.6s infinite;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,.5));
    position: relative;
}
@keyframes epicShimmer { to { background-position: -240% center; } }
/* gold divider line that draws itself */
.hero-slide--epic .hero-subtitle {
    animation: epicRise 1s cubic-bezier(.2,.9,.3,1) both .6s;
    position: relative;
    padding-top: 1.1rem;
    margin-top: .4rem;
}
.hero-slide--epic .hero-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 3px;
    width: 92px;
    border-radius: 3px;
    background: linear-gradient(90deg, #f0c27b, rgba(240,194,123,.1));
    transform-origin: right center;
    animation: epicLine 1s cubic-bezier(.2,.9,.3,1) both 1s;
}
@keyframes epicLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-slide--epic .hero-buttons { animation: epicRise 1s cubic-bezier(.2,.9,.3,1) both .8s; }
.hero-slide--epic .hero-buttons .btn-primary {
    background: linear-gradient(135deg, #f0c27b, #d9a04f);
    color: #1c130a;
    font-weight: 800;
    box-shadow: 0 12px 34px rgba(240,194,123,.4);
    animation: epicRise 1s cubic-bezier(.2,.9,.3,1) both .8s, epicPulse 2.8s ease-in-out 2.2s infinite;
}
@keyframes epicPulse {
    0%, 100% { box-shadow: 0 12px 34px rgba(240,194,123,.4); }
    50%      { box-shadow: 0 12px 50px rgba(240,194,123,.75); }
}
@keyframes epicRise {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* twinkling golden sparkles rising */
.hero-sparkles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-sparkles span {
    position: absolute;
    bottom: -12px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffe9c4 0%, rgba(240,194,123,.8) 55%, transparent 75%);
    box-shadow: 0 0 10px 2px rgba(240,194,123,.55);
    opacity: 0;
    animation: sparkleRise linear infinite;
}
.hero-sparkles span:nth-child(1) { left: 8%;  animation-duration: 9s;  animation-delay: 0s;   transform: scale(.7); }
.hero-sparkles span:nth-child(2) { left: 18%; animation-duration: 12s; animation-delay: 2.2s; transform: scale(1.1); }
.hero-sparkles span:nth-child(3) { left: 30%; animation-duration: 10s; animation-delay: 4.5s; transform: scale(.6); }
.hero-sparkles span:nth-child(4) { left: 43%; animation-duration: 13s; animation-delay: 1.4s; transform: scale(.9); }
.hero-sparkles span:nth-child(5) { left: 58%; animation-duration: 11s; animation-delay: 3.6s; transform: scale(.7); }
.hero-sparkles span:nth-child(6) { left: 72%; animation-duration: 14s; animation-delay: .8s;  transform: scale(1); }
.hero-sparkles span:nth-child(7) { left: 84%; animation-duration: 10s; animation-delay: 5.2s; transform: scale(.8); }
.hero-sparkles span:nth-child(8) { left: 93%; animation-duration: 12s; animation-delay: 2.8s; transform: scale(.6); }
@keyframes sparkleRise {
    0%   { transform: translateY(0); opacity: 0; }
    8%   { opacity: .9; }
    60%  { opacity: .6; }
    100% { transform: translateY(-88vh); opacity: 0; }
}
/* scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(6px);
    text-decoration: none;
    animation: scrollBounce 2.2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}
@media (max-width: 768px) {
    .hero-slide--epic { animation: none; background-size: cover; }
    .hero-slide--epic .hero-content { max-width: 92%; padding: 1.6rem 1.4rem; margin: 0 auto; }
    .hero-slide--epic .hero-container { justify-content: center; }
    .hero-scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide--epic, .hero-video, .hero-sparkles span, .hero-scroll-hint,
    .hero-slide--epic .hero-content, .hero-slide--epic .hero-tag, .hero-slide--epic .hero-title,
    .hero-slide--epic .hero-subtitle, .hero-slide--epic .hero-subtitle::before,
    .hero-slide--epic .hero-buttons, .hero-slide--epic .hero-buttons .btn-primary { animation: none !important; }
    .hero-video { display: none; }
}

/* ============================================================
   MOBILE POLISH v1 - site-wide mobile UX fixes (appended last)
   ============================================================ */
@media (max-width: 768px) {

    /* --- announcement bar: one-line auto-scrolling ticker --- */
    .announcement-bar { padding: 8px 0; overflow: hidden; }
    .announcement-content { justify-content: flex-start; overflow: hidden; }
    .announcement-text {
        display: inline-block;
        white-space: nowrap;
        font-size: 0.78rem;
        will-change: transform;
        animation: annTicker 26s linear infinite;
    }
    @keyframes annTicker {
        0%   { transform: translateX(-100%); }
        100% { transform: translateX(100vw); }
    }

    /* --- hero: compact, nothing overflows, nothing overlaps --- */
    .hero-section { height: 72vh; min-height: 460px; }
    .hero-container { padding: 0 14px; }
    .hero-content {
        max-width: 100%;
        box-sizing: border-box;
        padding: 1.1rem 1.15rem 1.3rem;
        margin-bottom: 44px; /* clear the dots */
    }
    .hero-content .hero-subtitle,
    .hero-content--center .hero-subtitle {
        max-width: 100%;
        overflow-wrap: break-word;
        font-size: 0.86rem;
        line-height: 1.5;
    }
    .hero-title { font-size: 1.9rem; line-height: 1.15; }
    .hero-tag { font-size: 0.6rem; letter-spacing: 1.6px; padding: 6px 12px; }
    .hero-buttons {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .hero-buttons .btn {
        width: auto !important;
        flex: 1 1 auto;
        max-width: 48%;
        padding: 11px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .hero-nav-btn { width: 34px; height: 34px; font-size: .8rem; opacity: .75; }
    .hero-dots { bottom: 12px; z-index: 6; }

    /* epic slide on mobile */
    .hero-slide--epic .hero-content {
        max-width: 100%;
        padding: 1.15rem 1.2rem 1.35rem;
        border-radius: 18px;
        margin: 0 auto 44px;
    }
    .hero-slide--epic .hero-title { font-size: clamp(1.7rem, 7.5vw, 2.3rem); }
    .hero-slide--epic .hero-subtitle { padding-top: .85rem; margin-top: .3rem; }
    .hero-slide--epic .hero-subtitle::before { width: 64px; }
    .hero-sparkles span { display: none; }
    .hero-sparkles span:nth-child(-n+4) { display: block; }

    /* --- trust bar: tight 2x2 --- */
    .trust-bar { padding: 14px 0; }
    .trust-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
    .trust-item { gap: 8px; }
    .trust-item i { font-size: 1.15rem; }
    .trust-item strong { font-size: 0.8rem; }
    .trust-item span { font-size: 0.7rem; }

    /* --- product cards: compact CTAs --- */
    .card-cta-row { gap: 6px; }
    .card-cta-row .btn-card-add { font-size: 0.76rem; padding: 9px 6px; }
    .card-cta-row .btn-card-view { width: 38px; }
    .product-actions .product-action-btn { width: 32px; height: 32px; font-size: .8rem; }

    /* --- featured carousel --- */
    .featured-carousel { gap: 12px; }
    .featured-carousel-item { flex: 0 0 172px; max-width: 172px; }

    /* --- whatsapp strip + footer --- */
    .wa-strip-inner { padding: 18px 16px; border-radius: 16px; }
    .wa-strip-text strong { font-size: 1rem; }
    .wa-strip-text span { font-size: 0.82rem; }
    .wa-strip-cta { padding: 9px 18px; font-size: 0.88rem; }
    .whatsapp-group-btn { max-width: 100%; }

    /* --- general rhythm --- */
    .section { padding: 34px 0; }
    .section-title { font-size: 1.35rem; }
    .section-subtitle { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .hero-section { height: 76vh; min-height: 480px; }
    .hero-buttons .btn { max-width: 100%; flex: 1 1 44%; }
    .coupon-banner .coupon-text { font-size: .8rem; }
}

/* ============================================================
   MOBILE POLISH v2 - account pages + global guards
   ============================================================ */
@media (max-width: 768px) {

    /* account area (loads styles.css only) */
    .account-hero { padding: 22px 14px; }
    .account-welcome h1, .account-hero h1 { font-size: 1.3rem; }
    .account-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .account-stat-card { padding: 14px 10px; }
    .account-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        scrollbar-width: none;
    }
    .account-tabs::-webkit-scrollbar { display: none; }
    .account-tab { flex: 0 0 auto; padding: 10px 14px; font-size: .88rem; }
    .account-panel { padding: 16px 12px; border-radius: 14px; }
    .account-form .form-group input, .account-form .form-group select { font-size: 16px; min-height: 46px; }
    .account-content table, .account-panel table, .orders-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .account-btn { min-height: 44px; }
}

/* ============ Global horizontal-overflow guard (all viewports) ============ */
html, body {
    overflow-x: clip;
}
@supports not (overflow-x: clip) {
    html, body { overflow-x: hidden; }
}

/* ============================================================
   MOBILE POLISH v3 - visual QA fixes (ticker, hero, trust bar)
   ============================================================ */
@media (max-width: 768px) {

    /* seamless ticker: JS duplicates the text 3x; loop 1/3 = no gaps */
    .announcement-text {
        width: max-content;
        animation: annTickerLoop 22s linear infinite;
    }
    @keyframes annTickerLoop {
        from { transform: translateX(0); }
        to   { transform: translateX(33.333%); }
    }

    /* hero content: never wider than screen, buttons never cut */
    .hero-container { width: 100%; box-sizing: border-box; }
    .hero-content, .hero-content--center {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .hero-buttons { width: 100%; }
    .hero-buttons .btn {
        max-width: none !important;
        flex: 1 1 40% !important;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* stronger scrim so text reads over busy photos */
    .hero-slide:not(.hero-slide--epic) .hero-overlay {
        background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.30) 55%, rgba(0,0,0,.18) 100%);
    }
    .hero-title { text-shadow: 0 3px 16px rgba(0,0,0,.6); }
    .hero-subtitle { text-shadow: 0 2px 10px rgba(0,0,0,.6); }

    /* trust bar: columns can shrink, text wraps, nothing clips */
    .trust-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-item { min-width: 0; align-items: flex-start; }
    .trust-item div { min-width: 0; }
    .trust-item strong, .trust-item span {
        display: block;
        overflow-wrap: break-word;
        white-space: normal;
    }

    /* featured carousel: start aligned, card peek intentional on the far side only */
    .featured-carousel { direction: rtl; scroll-padding-inline-start: 4px; }
}