/* ============================================
   ROOY STORE — URBAN STREETWEAR
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,900;1,700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ========== RESET & ROOT ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black:       #0a0a0a;
    --white:       #f5f0e8;
    --yellow:      #FFE600;
    --red:         #FF2D2D;
    --gray-dark:   #141414;
    --gray-mid:    #1e1e1e;
    --gray-border: #2a2a2a;
    --font-display: 'Bebas Neue', sans-serif;
    --font-ui:      'Barlow Condensed', sans-serif;
    --font-body:    'Space Grotesk', sans-serif;
    --header-h:     90px;
    --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CRITICAL MOBILE RESET - Must be at top */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}
body {
    overflow-x: hidden;
    min-width: 0;
}



html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    cursor: default;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--yellow); }

/* ========== GRAIN OVERLAY ========== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.03em; }

a { color: inherit; text-decoration: none; }

/* ========== CONTAINER ========== */
.container { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
    background: var(--yellow);
    color: var(--black);
    box-shadow: 5px 5px 0 var(--black);
}
.btn-primary:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--black); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 4px 4px 0 var(--gray-border);
}
.btn-outline:hover { background: var(--white); color: var(--black); transform: translate(-2px,-2px); }

.btn-red {
    background: var(--red);
    color: var(--white);
    box-shadow: 5px 5px 0 #8b0000;
}
.btn-red:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 #8b0000; }

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(10,10,10,0.96);
    border-bottom: 2px solid var(--yellow);
    z-index: 1000;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

/* Logo */
.logo {
    font-family: var(--font-display);
    font-size: 38px;
    color: var(--yellow);
    letter-spacing: 0.06em;
    line-height: 1;
    flex-shrink: 0;
}
.logo span { color: var(--white); }
.logo sup {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--red);
    vertical-align: super;
    margin-left: 2px;
}

/* Nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { list-style: none; display: flex; gap: 4px; }
.nav-menu a {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%; right: 50%;
    height: 2px;
    background: var(--yellow);
    transition: var(--transition);
}
.nav-menu a:hover { color: var(--yellow); }
.nav-menu a:hover::after { left: 14px; right: 14px; }
.nav-menu a.active { color: var(--yellow); }

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-icon {
    position: relative;
    font-size: 20px;
    color: var(--white);
    transition: var(--transition);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--gray-border);
}
.header-icon:hover { color: var(--yellow); border-color: var(--yellow); }

.cart-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 11px;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.menu-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ========== ANNOUNCEMENT BAR ========== */
.announce-bar {
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    padding: 8px;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 999;
}

/* Page offset */
.page-content { padding-top: calc(var(--header-h) + 36px); }

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    background: #0a0a0a;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, rgba(255,230,0,0.08) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: min(900px, calc(100vw - 32px));
    width: 100%;
    overflow: hidden;
    padding: 0 24px;
}

.hero-eyebrow {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-eyebrow::before {
    content: '';
    width: 40px; height: 2px;
    background: var(--yellow);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(52px, 12vw, 160px);
    line-height: 0.9;
    color: var(--white);
    margin-bottom: 8px;
}

.hero-title .accent { color: var(--yellow); }
.hero-title .stroke {
    -webkit-text-stroke: 2px var(--white);
    color: transparent;
}

.hero-subtitle {
    font-family: var(--font-ui);
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.7);
    margin-bottom: 40px;
    margin-top: 16px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.5);
    animation: bounceScroll 2s infinite;
}
.hero-scroll i { font-size: 16px; }

@keyframes bounceScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ========== TICKER ========== */
.ticker {
    background: var(--yellow);
    color: var(--black);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-inner {
    display: inline-flex;
    gap: 0;
    animation: ticker 25s linear infinite;
}
.ticker-item {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.05em;
    padding: 0 40px;
    display: inline-flex;
    align-items: center;
    gap: 40px;
}
.ticker-item::after {
    content: '★';
    color: var(--black);
    opacity: 0.4;
}
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ========== SECTION ========== */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.95;
    color: var(--white);
}

.section-title .line2 {
    -webkit-text-stroke: 1px var(--yellow);
    color: transparent;
}

.section-link {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--yellow);
    transition: var(--transition);
}
.section-link:hover { gap: 14px; }

/* ========== PRODUCT GRID ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
}

.product-card {
    background: var(--gray-dark);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--gray-border);
}
.product-card:hover { border-color: var(--yellow); z-index: 2; transform: scale(1.01); }

.product-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-ui);
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    z-index: 3;
    text-transform: uppercase;
}
.product-badge.new    { background: var(--yellow); color: var(--black); }
.product-badge.sale   { background: var(--red);    color: var(--white); }
.product-badge.hot    { background: var(--white);  color: var(--black); }

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--gray-mid);
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-image img { transform: scale(1.06); }

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}
.product-card:hover .product-overlay { opacity: 1; }

.btn-add-cart {
    background: var(--yellow);
    color: var(--black);
    border: none;
    font-family: var(--font-ui);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.12em;
    padding: 12px 28px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
    width: 80%;
}
.btn-add-cart:hover { background: var(--white); }

.btn-view {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    padding: 8px 20px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
    width: 80%;
    text-align: center;
    display: block;
}
.btn-view:hover { border-color: var(--white); }

.product-info {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--gray-border);
}

.product-info h3 {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    font-size: 12px;
    color: rgba(245,240,232,0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: var(--font-ui);
}

.product-price {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--yellow);
    letter-spacing: 0.02em;
}

.old-price {
    font-family: var(--font-ui);
    font-size: 14px;
    color: rgba(245,240,232,0.35);
    text-decoration: line-through;
    margin-right: 8px;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: var(--gray-dark);
    border-bottom: 2px solid var(--gray-border);
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: attr(data-title);
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 200px;
    color: rgba(255,230,0,0.04);
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(60px, 10vw, 120px);
    line-height: 0.9;
    color: var(--white);
    margin-bottom: 16px;
}

.breadcrumb {
    font-family: var(--font-ui);
    font-size: 13px;
    letter-spacing: 0.1em;
    color: rgba(245,240,232,0.45);
    text-transform: uppercase;
}
.breadcrumb a { color: var(--yellow); }
.breadcrumb a:hover { text-decoration: underline; }

/* ========== SHOP LAYOUT ========== */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 50px);
    background: var(--gray-dark);
    border: 1px solid var(--gray-border);
    padding: 24px;
}

.filter-section { margin-bottom: 28px; }
.filter-section:last-child { margin-bottom: 0; }

.filter-section h3,
.filter-section h4 {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-border);
}

.filter-list { list-style: none; }
.filter-list li { margin-bottom: 4px; }
.filter-list a {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 10px;
    display: block;
    transition: var(--transition);
    border-left: 2px solid transparent;
}
.filter-list a:hover,
.filter-list a.active {
    color: var(--yellow);
    border-left-color: var(--yellow);
    padding-left: 16px;
}

.price-range { display: flex; flex-direction: column; gap: 12px; }

.price-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    background: var(--gray-border);
    outline: none;
}
.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px;
    background: var(--yellow);
    cursor: pointer;
    border: none;
}

.price-inputs { display: flex; gap: 8px; }
.price-inputs input {
    flex: 1;
    background: var(--gray-mid);
    border: 1px solid var(--gray-border);
    color: var(--white);
    padding: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    width: 100%;
}

.btn-filter {
    width: 100%;
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 10px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}
.btn-filter:hover { background: var(--white); }

.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-options label {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--gray-border);
    transition: var(--transition);
}
.size-options label:hover { border-color: var(--yellow); color: var(--yellow); }
.size-options input { accent-color: var(--yellow); }

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-border);
    font-family: var(--font-ui);
    font-size: 14px;
    letter-spacing: 0.05em;
}

.sort-select {
    background: var(--gray-mid);
    border: 1px solid var(--gray-border);
    color: var(--white);
    padding: 8px 14px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.view-options { display: flex; gap: 6px; }
.view-btn {
    background: transparent;
    border: 1px solid var(--gray-border);
    color: var(--white);
    width: 34px; height: 34px;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.view-btn.active,
.view-btn:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    gap: 6px;
    margin-top: 48px;
    justify-content: center;
}
.pagination a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--gray-border);
    transition: var(--transition);
}
.pagination a:hover,
.pagination a.active { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

/* ========== QUICK FILTERS ========== */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.filter-chip {
    background: transparent;
    border: 2px solid var(--gray-border);
    color: var(--white);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 8px 20px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}
.filter-chip:hover,
.filter-chip.active { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

/* ========== CART ========== */
.cart-section { padding: 48px 0 80px; }

.page-title-sm {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    color: var(--white);
    margin-bottom: 40px;
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}
.cart-table th {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.45);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-border);
}
.cart-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--gray-border);
    vertical-align: middle;
}
.cart-product {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cart-product img {
    width: 80px; height: 100px;
    object-fit: cover;
    border: 1px solid var(--gray-border);
}
.cart-product h3 {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.cart-product p {
    font-size: 13px;
    color: rgba(245,240,232,0.5);
}
.cart-price, .cart-subtotal {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--yellow);
}
.quantity-input {
    background: var(--gray-mid);
    border: 1px solid var(--gray-border);
    color: var(--white);
    width: 60px;
    padding: 8px;
    font-family: var(--font-body);
    text-align: center;
}
.btn-remove {
    background: none;
    border: 1px solid var(--gray-border);
    color: rgba(245,240,232,0.4);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.btn-remove:hover { background: var(--red); color: var(--white); border-color: var(--red); }

.cart-bottom {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.cart-actions-left { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }

.cart-totals {
    background: var(--gray-dark);
    border: 1px solid var(--gray-border);
    padding: 28px;
}
.cart-totals h3 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-border);
}
.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--gray-border);
}
.totals-row.total {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--yellow);
    border-bottom: none;
    margin-top: 8px;
    padding-top: 16px;
}
.btn-block { width: 100%; justify-content: center; margin-top: 20px; }

.empty-cart {
    text-align: center;
    padding: 80px 0;
}
.empty-cart i { font-size: 64px; color: var(--gray-border); margin-bottom: 24px; display: block; }
.empty-cart h2 { font-family: var(--font-display); font-size: 48px; margin-bottom: 12px; }
.empty-cart p { color: rgba(245,240,232,0.5); margin-bottom: 32px; }

/* ========== PRODUCT DETAIL ========== */
.product-detail-section { padding: 48px 0 80px; }
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.product-gallery { position: sticky; top: calc(var(--header-h) + 50px); }
.main-image { aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--gray-border); margin-bottom: 12px; }
.main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.main-image:hover img { transform: scale(1.04); }
.thumbnail-images { display: flex; gap: 8px; }
.thumbnail {
    width: 80px; height: 100px;
    object-fit: cover;
    border: 2px solid var(--gray-border);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.thumbnail:hover, .thumbnail.active { border-color: var(--yellow); }

.product-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    color: var(--white);
    margin-bottom: 12px;
}
.product-price-large {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--yellow);
    margin-bottom: 24px;
}

.product-description {
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
    padding: 20px 0;
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(245,240,232,0.7);
}
.product-description h3 {
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 10px;
    font-weight: 700;
}

.option-group { margin-bottom: 24px; }
.option-group > label {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.5);
    display: block;
    margin-bottom: 12px;
}
.size-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
    width: 48px; height: 48px;
    background: transparent;
    border: 2px solid var(--gray-border);
    color: var(--white);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}
.size-btn:hover,
.size-btn.selected { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

.color-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.color-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 3px solid var(--gray-border);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.color-btn:hover, .color-btn.selected { border-color: var(--yellow); transform: scale(1.15); }

.quantity-selector { display: flex; align-items: center; gap: 0; width: fit-content; }
.quantity-btn {
    width: 44px; height: 44px;
    background: var(--gray-mid);
    border: 1px solid var(--gray-border);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.quantity-btn:hover { background: var(--yellow); color: var(--black); }
.quantity-selector input {
    width: 64px; height: 44px;
    background: var(--gray-dark);
    border: 1px solid var(--gray-border);
    border-left: none; border-right: none;
    color: var(--white);
    text-align: center;
    font-family: var(--font-body);
    font-size: 16px;
}

.product-actions { display: flex; gap: 12px; margin-bottom: 28px; margin-top: 8px; }
.btn-large { padding: 18px 40px; font-size: 18px; flex: 1; justify-content: center; }
.btn-wishlist {
    width: 58px; height: 58px;
    background: transparent;
    border: 2px solid var(--gray-border);
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.btn-wishlist:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--gray-dark);
    border: 1px solid var(--gray-border);
}
.product-meta p {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-meta i { color: var(--yellow); width: 18px; text-align: center; }

.related-products { margin-top: 80px; padding-top: 60px; border-top: 1px solid var(--gray-border); }

/* ========== OFERTAS HERO ========== */
.offers-hero {
    background: var(--red);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.offers-hero::before {
    content: 'SALE';
    position: absolute;
    font-family: var(--font-display);
    font-size: 300px;
    color: rgba(0,0,0,0.08);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
}
.offers-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(60px, 10vw, 120px);
    color: var(--white);
    margin-bottom: 28px;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.timer-block {
    background: var(--black);
    color: var(--yellow);
    padding: 16px 20px;
    min-width: 90px;
    text-align: center;
}
.timer-block span:first-child {
    display: block;
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1;
}
.timer-block span:last-child {
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.6);
}
.offer-text {
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}

.category-offers-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 2px;
    margin: 40px 0;
}
.category-offer {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}
.category-offer img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-offer:hover img { transform: scale(1.06); }
.offer-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 28px;
    padding: 4px 14px;
    z-index: 2;
}
.offer-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 40px 16px 20px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.offer-info h3 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--white);
}
.btn-small {
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}
.btn-small:hover { background: var(--white); }

.discount-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 24px;
    padding: 4px 12px;
    z-index: 3;
}

.price-box { display: flex; align-items: baseline; gap: 10px; }
.offer-price { font-family: var(--font-display); font-size: 28px; color: var(--red); }
.saved-amount {
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--yellow);
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Flash sales */
.flash-sales { background: var(--gray-dark); padding: 60px 0; border-top: 2px solid var(--gray-border); }
.flash-header { text-align: center; margin-bottom: 40px; }
.flash-header h2 { font-family: var(--font-display); font-size: 60px; color: var(--red); margin-bottom: 4px; }
.flash-header p { font-family: var(--font-ui); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,240,232,0.5); }

.flash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.flash-item { background: var(--gray-mid); display: grid; grid-template-columns: 1fr 1fr; gap: 0; position: relative; overflow: hidden; }
.flash-item img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.flash-info { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.flash-info h3 { font-family: var(--font-display); font-size: 32px; color: var(--white); }
.flash-timer {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--red);
    position: absolute;
    top: 16px; left: 16px;
    background: var(--black);
    padding: 4px 12px;
    z-index: 2;
}
.flash-price { display: flex; align-items: baseline; gap: 12px; }
.flash-price .old { font-family: var(--font-ui); font-size: 16px; color: rgba(245,240,232,0.35); text-decoration: line-through; }
.flash-price .new { font-family: var(--font-display); font-size: 36px; color: var(--yellow); }
.progress-bar { background: var(--gray-border); height: 6px; position: relative; }
.progress { background: var(--red); height: 100%; }
.progress-bar > span { font-family: var(--font-ui); font-size: 12px; color: rgba(245,240,232,0.5); display: block; margin-top: 6px; }

/* Cupones */
.coupons-section { padding: 60px 0; }
.coupons-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.coupon-card {
    background: var(--gray-dark);
    border: 2px dashed var(--gray-border);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.coupon-card.featured { border-color: var(--yellow); background: rgba(255,230,0,0.05); }
.coupon-card:hover { border-color: var(--yellow); }
.coupon-value { font-family: var(--font-display); font-size: 64px; color: var(--yellow); line-height: 1; }
.coupon-card p { font-family: var(--font-ui); font-size: 14px; letter-spacing: 0.06em; color: rgba(245,240,232,0.6); margin: 12px 0; text-transform: uppercase; font-weight: 600; }
.coupon-code {
    background: var(--black);
    border: 1px solid var(--gray-border);
    padding: 10px 20px;
    font-family: var(--font-ui);
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.2em;
    color: var(--white);
    display: inline-block;
    margin-bottom: 16px;
}
.btn-copy {
    background: transparent;
    border: 2px solid var(--yellow);
    color: var(--yellow);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    padding: 10px 24px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}
.btn-copy:hover { background: var(--yellow); color: var(--black); }

/* ========== LOOKBOOK ========== */
.lookbook-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
    margin-bottom: 60px;
}
.lookbook-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.lookbook-item.large { grid-row: span 2; aspect-ratio: auto; }
.lookbook-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.lookbook-item:hover img { transform: scale(1.06); }
.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: 16px;
    opacity: 0;
    transition: var(--transition);
}
.lookbook-item:hover .lookbook-overlay { opacity: 1; }
.lookbook-overlay h3 { font-family: var(--font-display); font-size: 48px; color: var(--white); }
.btn-shop {
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    padding: 10px 28px;
    text-transform: uppercase;
    display: inline-block;
    transition: var(--transition);
}
.btn-shop:hover { background: var(--white); }

/* ========== COLECCION HERO ========== */
.coleccion-hero {
    background: var(--gray-dark);
    padding: 80px 0;
    border-bottom: 2px solid var(--gray-border);
    position: relative;
    overflow: hidden;
}
.coleccion-hero::after {
    content: '2025';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 280px;
    color: rgba(255,230,0,0.04);
    pointer-events: none;
    line-height: 1;
}
.hero-tag {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2em;
    padding: 6px 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.categoria-block { margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--gray-border); }
.categoria-block:last-child { border-bottom: none; margin-bottom: 0; }
.categoria-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 24px;
}
.categoria-info h2 { font-family: var(--font-display); font-size: 56px; color: var(--white); line-height: 1; }
.categoria-info p { font-family: var(--font-ui); font-size: 15px; letter-spacing: 0.05em; color: rgba(245,240,232,0.5); margin-top: 6px; text-transform: uppercase; }
.btn-ver-todo {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--yellow);
    white-space: nowrap;
    transition: var(--transition);
}
.btn-ver-todo:hover { gap: 14px; }

/* Instagram */
.instagram-feed { padding: 60px 0; background: var(--gray-dark); border-top: 2px solid var(--gray-border); }
.instagram-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; margin-top: 40px; }
.insta-item { position: relative; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.insta-item:hover img { transform: scale(1.08); }
.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,230,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.insta-item:hover .insta-overlay { opacity: 1; }
.insta-overlay i { font-size: 36px; color: var(--black); }

/* Newsletter */
.newsletter-section { padding: 60px 0; }
.newsletter-content {
    background: var(--yellow);
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}
.newsletter-content h3 { font-family: var(--font-display); font-size: 48px; color: var(--black); margin-bottom: 8px; }
.newsletter-content p { font-family: var(--font-ui); font-size: 16px; letter-spacing: 0.04em; color: rgba(0,0,0,0.6); font-weight: 600; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input {
    background: var(--black);
    border: none;
    color: var(--white);
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 15px;
    width: 300px;
    outline: none;
}
.newsletter-form button {
    background: var(--black);
    color: var(--yellow);
    border: none;
    padding: 16px 28px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.newsletter-form button:hover { background: #1a1a1a; }

/* ========== FOOTER ========== */
.footer {
    background: var(--gray-dark);
    border-top: 2px solid var(--yellow);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .logo { font-size: 48px; display: block; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(245,240,232,0.5); max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
    width: 38px; height: 38px;
    border: 1px solid var(--gray-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}
.social-link:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.footer-col h4 {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-border);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    font-size: 14px;
    color: rgba(245,240,232,0.5);
    transition: var(--transition);
}
.footer-col ul a:hover { color: var(--yellow); padding-left: 6px; }
.footer-bottom {
    border-top: 1px solid var(--gray-border);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-ui);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: rgba(245,240,232,0.35);
}

/* ========== NOTIFICATION ========== */
.notification {
    position: fixed;
    bottom: 28px; right: 28px;
    background: var(--yellow);
    color: var(--black);
    padding: 16px 24px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
    animation: notifIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
    max-width: 360px;
}
.notification.out { animation: notifOut 0.25s ease forwards; }
@keyframes notifIn  { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes notifOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

/* ========== NO PRODUCTS ========== */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: rgba(245,240,232,0.4);
}
.no-products i { font-size: 56px; margin-bottom: 20px; display: block; }
.no-products h3 { font-family: var(--font-display); font-size: 40px; margin-bottom: 10px; color: var(--white); }
.no-products p { font-size: 14px; margin-bottom: 28px; }

/* ========== SEASON BANNER ========== */
.season-banner {
    background: var(--red);
    padding: 40px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.season-banner::before {
    content: 'FW25';
    position: absolute;
    font-family: var(--font-display);
    font-size: 200px;
    color: rgba(0,0,0,0.08);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
}
.season-banner h3 { font-family: var(--font-display); font-size: 56px; color: var(--white); margin-bottom: 8px; }
.season-banner p { font-family: var(--font-ui); font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 28px; font-weight: 600; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cart-bottom { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 40px; }
    .product-gallery { position: static; }
    .newsletter-content { grid-template-columns: 1fr; text-align: center; }
    .newsletter-form { justify-content: center; }
    .category-offers-grid { grid-template-columns: repeat(2,1fr); }
    .flash-grid { grid-template-columns: 1fr; }
    .coupons-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 70px; }
    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: rgba(10,10,10,0.98);
        border-bottom: 2px solid var(--yellow);
        padding: 20px 24px;
        z-index: 999;
    }
    .main-nav.open .nav-menu { flex-direction: column; width: 100%; gap: 4px; }
    .main-nav.open .nav-menu a { padding: 14px; border-bottom: 1px solid var(--gray-border); font-size: 18px; }
    .menu-toggle { display: flex; }
    .hero-content { text-align: center; }
    .hero-eyebrow { justify-content: center; }
    .hero-actions { justify-content: center; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .category-offers-grid { grid-template-columns: 1fr 1fr; }
    .instagram-grid { grid-template-columns: repeat(2,1fr); }
    .lookbook-grid { grid-template-columns: 1fr; }
    .lookbook-item.large { grid-row: auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-form input { width: 200px; }
    .flash-item { grid-template-columns: 1fr; }
    .flash-item img { min-height: 200px; }
    .timer-block { min-width: 70px; padding: 12px; }
    .timer-block span:first-child { font-size: 36px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
    .category-offers-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { width: 100%; }
    .coupons-grid { grid-template-columns: 1fr; }
    .announce-bar { font-size: 10px; letter-spacing: .04em; }
    .page-title-sm { font-size: 48px; }
    .section-title { font-size: clamp(40px, 10vw, 80px); }
    .hero-title { font-size: clamp(56px, 18vw, 140px); }
}

/* ── Móvil pequeño < 400px ─────────────────────────────── */
@media (max-width: 400px) {
    .product-grid { grid-template-columns: 1fr; }
    .container { padding: 0 14px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .timer-block { min-width: 55px; padding: 10px 8px; }
    .timer-block span:first-child { font-size: 28px; }
}

/* ── Sección logo animado en index ────────────────────── */
@media (max-width: 768px) {
    #logoWrap { width: 140px !important; height: 140px !important; }
    #logoWrap img { width: 140px !important; height: 140px !important; }
    /* Grid logo+texto → columna */
    section .container > div[style*="grid-template-columns:auto 1fr"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

/* ── Footer responsive ─────────────────────────────────── */
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr !important; gap: 32px; }
    .footer-logo-float { display: none; }
    .footer-brand .logo { font-size: 28px !important; }
    .footer-col h4 { font-size: 14px; }
}

/* ── Header/nav responsive ────────────────────────────── */
@media (max-width: 768px) {
    .header-inner { padding: 0 16px; height: 64px; }
    .logo { font-size: 24px; }
    .cart-icon-wrap { font-size: 20px; }
}

/* ── Contacto 2 col → 1 col en móvil ──────────────────── */
@media (max-width: 768px) {
    #contacto .container > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    #tienda .container > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Carrito responsive ────────────────────────────────── */
@media (max-width: 900px) {
    .cart-section .container > div[style*="grid-template-columns:1fr 400px"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Prevent horizontal scroll global ─────────────────── */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe { max-width: 100%; }


/* ── Hero fallback: oscuro puro cuando no hay video ─── */
.hero {
    background: #0a0a0a;
}

/* ── Vista lista en shop ──────────────────────────── */
#productosGrid.list-view .product-card {
    display: grid !important;
    grid-template-columns: 200px 1fr;
    gap: 0;
}
#productosGrid.list-view .product-image {
    aspect-ratio: 1;
}
#productosGrid.list-view .product-info {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#productosGrid.list-view .product-overlay {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
}
#productosGrid.list-view .btn-add-cart,
#productosGrid.list-view .btn-view {
    width: auto;
    padding: 8px 20px;
}

/* ── Filtros sidebar animación ────────────────────── */
.shop-sidebar .filter-section h3,
.shop-sidebar .filter-section h4 {
    cursor: default;
}
.talla-cb { cursor: pointer; accent-color: var(--yellow); }

/* ── Active nav link fondo sutil ──────────────────── */
.nav-menu a.active {
    background: rgba(255,230,0,0.08);
}

/* ── Responsive carrito + formulario envío ── */
@media(max-width:960px){
    .cart-section .container > div[style*="grid-template-columns:1fr 400px"] {
        grid-template-columns: 1fr !important;
    }
    .cart-section .container > div[style*="position:sticky"] {
        position: static !important;
    }
}

/* ── Mejora hover imágenes categorías ──── */
.cat-card:hover .cat-img { transform: scale(1.06); }
.cat-card { transition: opacity .2s; }
.cat-card:hover { opacity: .92; }

/* ── Logo animado grid responsive ──────────────────────── */
@media (max-width: 900px) {
    .logo-anim-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 24px !important;
    }
    .logo-anim-grid #logoWrap {
        margin: 0 auto;
    }
    .logo-anim-grid p[style*="max-width:500px"] {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    .logo-anim-grid .btn {
        display: inline-flex;
    }
    .logo-stats-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px !important;
    }
}

/* ── Contact grid responsive ──────────────────────────── */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .contact-grid > div {
        padding: 32px 20px !important;
    }
    /* Social links en contacto */
    .contact-grid a[style*="padding:12px 16px"] {
        padding: 10px 12px !important;
    }
}

/* ── Tienda section responsive ────────────────────────── */
@media (max-width: 768px) {
    /* Mapa + info grid → stack */
    #tienda .container > div[style*="grid-template-columns:1fr 1fr;gap:16px;margin-top:16px"] {
        grid-template-columns: 1fr !important;
    }
    /* Encabezado tienda */
    #tienda .container > div[style*="text-align:center"] h2 {
        font-size: clamp(44px, 12vw, 88px) !important;
    }
}

/* ── Carrusel miniaturas en móvil ─────────────────────── */
@media (max-width: 600px) {
    .carousel-thumbs { display: none; }
    .carousel-caption h3 { font-size: 18px; }
    .store-carousel { aspect-ratio: 1/1 !important; }
}

/* ── Videos + música en móvil ─────────────────────────── */
@media (max-width: 768px) {
    .store-vid-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .music-panel { display: none !important; }
}
@media (max-width: 500px) {
    .store-vid-grid {
        grid-template-columns: 1fr !important;
    }
    .vert-vid-wrap { max-height: 280px !important; }
}

/* ── Announce bar ─────────────────────────────────────── */
@media (max-width: 600px) {
    .announce-bar-text {
        font-size: 9px !important;
        letter-spacing: .04em !important;
    }
}

/* ── Categorías grid ──────────────────────────────────── */
@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ── Fix overflow en secciones inline ─────────────────── */
.section { overflow-x: hidden; }
.container { max-width: 100%; }

/* ── Checkout carrito responsive ──────────────────────── */
@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }
    .checkout-grid > div[style*="position:sticky"] {
        position: static !important;
    }
}
/* ── Paqueterías en móvil ─────────────────────────────── */
@media (max-width: 600px) {
    .paq-option { flex-wrap: wrap; gap: 8px !important; }
    .paq-option > div:last-child { width: 100%; text-align: left; }
}
/* ── Tabs de pago en móvil ────────────────────────────── */
@media (max-width: 480px) {
    #tabsPago button { font-size: 10px !important; padding: 10px 4px !important; }
    #cardPreview { padding: 16px !important; min-height: 130px !important; }
    #previewNumero { font-size: 14px !important; letter-spacing: .1em !important; }
}
/* ── Admin responsive (básico) ────────────────────────── */
@media (max-width: 768px) {
    .admin-fab { bottom: 16px !important; left: 16px !important;
                 width: 42px !important; height: 42px !important; font-size: 16px !important; }
}

/* ── HERO responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .hero { min-height: 100svh; }
    .hero-title {
        font-size: clamp(52px, 16vw, 120px) !important;
        line-height: .88 !important;
    }
    .hero-subtitle { font-size: 13px; }
    .hero-eyebrow  { font-size: 10px; letter-spacing: .15em; }
    .hero-content  { padding: 0 8px; }
    .hero-actions  {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-scroll { display: none; }
}

/* ── Canvas hero full cover ──────────────────────────────── */
#heroCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}




/* ════════════════════════════════════════════════════════════════
   RESPONSIVE DEFINITIVO — rooystore.com.mx
   Escrito para LiteSpeed + PHP 8.1
   Fecha: 2026-04-10
════════════════════════════════════════════════════════════════ */

/* Base: no overflow horizontal en ningún elemento */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
.container { max-width: 100%; }
img, video, canvas, iframe, svg { max-width: 100%; height: auto; }

/* ─── HERO ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 18px !important;
        overflow: hidden;
    }
    .hero-eyebrow {
        font-size: 9px !important;
        letter-spacing: .06em !important;
    }
    .hero-title {
        font-size: clamp(44px, 13.5vw, 90px) !important;
        line-height: .9 !important;
    }
    .hero-subtitle { font-size: 11px !important; }
    .hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .hero-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .hero-scroll { display: none !important; }
}

/* ─── LOGO ANIMADO ──────────────────────────────────────────── */
@media (max-width: 860px) {
    .logo-anim-grid {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        text-align: center !important;
        gap: 20px !important;
    }
    #logoWrap {
        width: 140px !important;
        height: 140px !important;
    }
    #logoImg, #logoWrap img {
        width: 140px !important;
        height: 140px !important;
    }
    .logo-anim-grid > div:last-child {
        width: 100%;
        text-align: center;
    }
    .logo-anim-grid .btn { display: inline-flex !important; }
    .logo-stats-row {
        justify-content: center !important;
        gap: 20px !important;
    }
}

/* ─── TIENDA / CARRUSEL ─────────────────────────────────────── */
@media (max-width: 768px) {
    .store-carousel {
        max-width: 100% !important;
        aspect-ratio: 4/3 !important;
    }
    .carousel-thumbs { display: none !important; }
    .store-vid-grid {
        grid-template-columns: 1fr !important;
    }
    .vert-vid-wrap {
        aspect-ratio: 16/9 !important;
        max-height: 220px !important;
        width: 100% !important;
    }
    .music-panel { display: none !important; }
    /* Mapa + info */
    #tienda .container > div[style*="grid-template-columns:1fr 1fr;gap:16px;margin-top:16px"] {
        grid-template-columns: 1fr !important;
    }
}

/* ─── CONTACTO ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    #contacto .container > div[style*="grid-template-columns:1fr 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    #contacto > .container > div > div[style*="padding:48px"] {
        padding: 24px 16px !important;
    }
}

/* ─── TÍTULOS DE SECCIÓN ────────────────────────────────────── */
@media (max-width: 600px) {
    .section-title {
        font-size: clamp(38px, 10.5vw, 64px) !important;
        line-height: .88 !important;
    }
    .page-title-sm {
        font-size: clamp(34px, 9.5vw, 56px) !important;
    }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .footer-logo-float { display: none !important; }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        text-align: center !important;
    }
    .footer-brand .logo { font-size: 26px !important; }
}

/* ─── NAVBAR / HEADER ───────────────────────────────────────── */
@media (max-width: 768px) {
    .logo { font-size: 20px !important; }
    .announce-bar {
        font-size: 9px !important;
        letter-spacing: .02em !important;
        padding: 7px 10px !important;
    }
    .header-inner { padding: 0 12px !important; }
}

/* ─── PRODUCTOS GRID ────────────────────────────────────────── */
@media (max-width: 500px) {
    .product-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .product-info  { padding: 8px !important; }
    .product-name  { font-size: 12px !important; }
    .product-price { font-size: 15px !important; }
}
@media (max-width: 340px) {
    .product-grid { grid-template-columns: 1fr !important; }
}

/* ─── CHECKOUT / CARRITO ────────────────────────────────────── */
@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── ANNOUNCE BAR ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .announce-bar span { display: none; }
    .announce-bar::after {
        content: '🔥 ROOY STORE — Coacalco · ROOY10 = 10% OFF 🔥';
        font-size: 9px;
    }
}


/* ═══════════════════════════════════════════════════
   MOBILE FIXES — DEFINITIVOS v3
   Solo afectan pantallas < 700px
═══════════════════════════════════════════════════ */

@media screen and (max-width: 700px) {

    /* Prevenir overflow en todo */
    html, body { overflow-x: hidden !important; }
    .section    { overflow: hidden !important; padding: 48px 0 !important; }
    .container  { padding: 0 16px !important; }

    /* ── Sección logo animado ──────────────────── */
    .logo-anim-grid,
    div[style*="flex-wrap:wrap"][style*="align-items:center"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
    }

    /* Logo tamaño en móvil */
    #logoWrap {
        width: clamp(120px, 45vw, 180px) !important;
        height: clamp(120px, 45vw, 180px) !important;
    }

    /* Texto del logo section - centrar */
    #logoWrap ~ div,
    div[style*="flex:1"][style*="min-width"] {
        text-align: center !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Título ROOY STORE en logo section */
    div[style*="flex:1"] h2 {
        font-size: clamp(42px, 11vw, 70px) !important;
    }

    /* Párrafo de descripción */
    div[style*="flex:1"] p[style*="font-size:14px"] {
        font-size: 13px !important;
        max-width: 100% !important;
    }

    /* Botones en logo section */
    div[style*="flex:1"] > div[style*="display:flex"][style*="gap:10px"] {
        justify-content: center !important;
    }

    /* Stats row en logo section */
    div[style*="flex:1"] > div[style*="flex-wrap:wrap"] {
        justify-content: center !important;
        gap: 20px !important;
    }

    /* ── Sección Contacto ──────────────────────── */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    #contacto .container > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Padding de los paneles de contacto */
    #contacto div[style*="padding:clamp"],
    #contacto div[style*="padding:48px"] {
        padding: 24px 16px !important;
    }

    /* Título sección contacto */
    #contacto .section-title {
        font-size: clamp(40px, 10vw, 64px) !important;
    }

    /* ── Section headers ───────────────────────── */
    .section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 28px !important;
    }
    .section-title {
        font-size: clamp(38px, 10vw, 60px) !important;
        line-height: .88 !important;
    }

    /* ── Hero ──────────────────────────────────── */
    .hero-content { padding: 0 16px !important; }
    .hero-title   { font-size: clamp(50px, 13vw, 90px) !important; }
    .hero-eyebrow { font-size: 9px !important; letter-spacing: .06em !important; }
    .hero-subtitle { font-size: 11px !important; }
    .hero-actions  { flex-direction: column !important; }
    .hero-actions .btn { width: 100% !important; justify-content: center !important; }

    /* ── Footer ────────────────────────────────── */
    .footer-logo-float { display: none !important; }
    .footer-grid { grid-template-columns: 1fr !important; }
    .footer-bottom { flex-direction: column !important; text-align: center !important; gap: 6px !important; }

    /* ── Announce bar ──────────────────────────── */
    .announce-bar { font-size: 9px !important; white-space: normal !important; text-align: center !important; }

    /* ── Productos ──────────────────────────────── */
    .product-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }

    /* ── Carrusel tienda ────────────────────────── */
    .store-carousel { aspect-ratio: 4/3 !important; }
    .carousel-thumbs { display: none !important; }
    .store-vid-grid  { grid-template-columns: 1fr !important; }
    .music-panel     { display: none !important; }
}
