/* ===== ASOS Fashion Theme — Main CSS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #2d2d2d; background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea, .asos-attr-trigger, .asos-attr-modal-opt, .asos-attr-modal-close, .asos-attr-modal-update, .asos-qty-minus, .asos-qty-plus, .asos-cart-item-remove { user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -webkit-touch-callout: none; }
.asos-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.asos-topbar, div.asos-topbar { background: #fff !important; color: #2d2d2d; font-size: 12px; padding: 0; border-bottom: 1px solid #e5e5e5; }
.asos-topbar .asos-container { display: flex; justify-content: flex-end; align-items: stretch; min-height: 28px; }
.asos-topbar-right { display: flex; align-items: center; gap: 0; }
.asos-topbar-right a { color: #2d2d2d; padding: 4px 12px; display: flex; align-items: center; height: 100%; }
.asos-topbar-right a:hover { text-decoration: underline; }
.asos-topbar-app { background: #ccff00; font-weight: 600; }
.asos-topbar-divider { margin: 0; opacity: 0.3; display: flex; align-items: center; }
.asos-topbar-country { display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.asos-topbar-country img { border-radius: 2px; }

/* Header */
.asos-header { background: #2d2d2d; position: relative; z-index: 1000; }

/* Row 1 */
.asos-header-row1 { display: flex; align-items: center; height: 60px; gap: 16px; }
.asos-logo { display: flex; align-items: center; flex-shrink: 0; }
.asos-logo img { height: 32px; width: auto; }
.asos-logo-text { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }

/* Gender Tabs */
.asos-gender-tabs { display: flex; gap: 0; flex-shrink: 0; border-right: 1px solid rgba(255,255,255,0.3); padding-right: 16px; margin-right: 16px; }
.asos-gender-tab { display: flex; align-items: center; padding: 0 16px; height: 60px; font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.15s; }
.asos-gender-tab:hover { background: rgba(255,255,255,0.1); }
.asos-gender-tab.active { background: #bbb; color: #fff; }

/* Search Bar */
.asos-header-search { flex: 1; margin: 0 16px; }
.asos-header-search form { display: flex; background: #fff; border-radius: 30px; overflow: hidden; }
.asos-header-search input[type="search"] { flex: 1; padding: 12px 24px; border: none; font-size: 14px; font-family: inherit; outline: none; background: transparent; }
.asos-header-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.asos-header-search button { background: transparent; border: none; padding: 12px 20px; cursor: pointer; display: flex; align-items: center; color: #2d2d2d; }
.asos-header-search button:hover { opacity: 0.7; }

/* Header Icons */
.asos-header-actions { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.asos-header-icon { position: relative; display: flex; align-items: center; color: #fff; padding: 8px 6px; }
.asos-header-icon:hover { opacity: 0.8; }
.asos-icon-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.4); margin: 0 6px; }
.asos-cart-count { position: absolute; top: 2px; right: 0; background: #d01345; color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Row 2: Navigation — ASOS grey bar */
.asos-header-row2 { background: #8d8d8d; border-top: none; position: relative; z-index: 1001; }
.asos-header-row2 .asos-container { display: flex; align-items: center; }
.asos-nav { flex: 1; position: relative; }
.asos-nav-list { display: flex; gap: 0; align-items: center; }
.asos-nav-list > li { position: relative; }
.asos-nav-list > li > a { display: flex; align-items: center; padding: 12px 14px; font-size: 14px; font-weight: 500; color: #fff; transition: all 0.15s; height: 44px; white-space: nowrap; cursor: pointer; }
.asos-nav-list > li > a:hover { opacity: 0.8; }
.asos-nav-list > li.current-menu-item > a { color: #fff; }

/* Sale menu — skewed red */
.asos-nav-list > li.menu-sale > a { background: #d01345; color: #fff; font-weight: 600; padding: 12px 24px; transform: skewX(-6deg); }
.asos-nav-list > li.menu-sale > a > span { transform: skewX(6deg); display: inline-block; }
.asos-nav-list > li.menu-sale.is-active > a { background: #fff; color: #2d2d2d; transform: none; }
.asos-nav-list > li.menu-sale.is-active > a > span { transform: none; }

/* New In — transparent, no skew */
.asos-nav-list > li > a[data-mega="newin"] { background: transparent; }

/* Promo Banner */
.asos-promo-banner { background: #000; padding: 14px 0; }
.asos-promo-inner { display: flex; align-items: center; justify-content: center; gap: 30px; }
.asos-promo-text { color: #fff; font-size: 14px; font-weight: 600; text-align: center; letter-spacing: 0.3px; }
.asos-promo-btn { display: inline-block; padding: 12px 32px; border: 2px solid #fff; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; transition: all 0.2s; }
.asos-promo-btn:hover { background: #fff; color: #000; }

/* =========================================
   MEGA MENU — ASOS Flyout Style
   ========================================= */

/* Flyout wrapper — sits below row2, full-width */
.asos-mega-flyout-wrapper { position: relative; z-index: 999; }

/* Backdrop overlay */
.asos-mega-backdrop { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 998; }
.asos-mega-backdrop.is-open { display: block; }

/* Mega panel */
.asos-mega-panel { display: none; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.12); border-top: 1px solid #eee; padding: 30px 0 40px; position: relative; z-index: 1000; max-height: 70vh; overflow-y: auto; }
.asos-mega-panel.is-open { display: block; }

/* Panel inner grid */
.asos-mega-panel-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }

/* Column headings */
.asos-mega-col h4 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; color: #2d2d2d; border-bottom: none; padding-bottom: 0; }

/* Column: Text links */
.asos-mega-col-links { }

.asos-mega-highlight-list { margin-bottom: 12px; }
.asos-mega-highlight-list a { display: block; padding: 4px 0; font-size: 13px; color: #d01345; text-decoration: none; }
.asos-mega-highlight-list a span.asos-mega-tag { color: #d01345; }

.asos-mega-viewall { display: block; padding: 4px 0; font-size: 13px; color: #2d2d2d; text-decoration: none; margin-bottom: 12px; }
.asos-mega-viewall strong { font-weight: 700; }

.asos-mega-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.asos-mega-cat-grid ul { list-style: none; }
.asos-mega-cat-grid ul li a { display: block; padding: 3px 0; font-size: 13px; color: #555; }
.asos-mega-cat-grid ul li a:hover { color: #d01345; text-decoration: underline; }

.asos-mega-cat-single ul { list-style: none; }
.asos-mega-cat-single ul li a { display: block; padding: 3px 0; font-size: 13px; color: #555; }
.asos-mega-cat-single ul li a:hover { color: #d01345; text-decoration: underline; }

.asos-mega-az { display: block; padding: 12px 0 0; font-size: 13px; color: #2d2d2d; text-decoration: none; border-top: 1px solid #eee; margin-top: 12px; }
.asos-mega-az strong { font-weight: 700; }

/* Column: Circular images (Shop by Price) */
.asos-mega-col-images { }

.asos-mega-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.asos-mega-image-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.asos-mega-circle { width: 120px; height: 120px; border-radius: 50%; background-size: cover; background-position: center; margin-bottom: 10px; border: 1px solid #eee; background-color: #f5f5f5; }
.asos-mega-image-item span { font-size: 13px; color: #555; text-align: center; }
.asos-mega-image-item:hover span { color: #d01345; text-decoration: underline; }

/* Column: Rectangular images (Shop by Edit) */
.asos-mega-image-grid-rect { grid-template-columns: 1fr 1fr; }
.asos-mega-image-item-rect { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.asos-mega-rect { width: 100%; aspect-ratio: 870/1110; border-radius: 4px; background-size: cover; background-position: center; margin-bottom: 10px; border: 1px solid #eee; background-color: #f5f5f5; }
.asos-mega-image-item-rect span { font-size: 13px; color: #555; text-align: center; }
.asos-mega-image-item-rect:hover span { color: #d01345; text-decoration: underline; }

/* Column: Brand list (Shop by Brand) */
.asos-mega-col-brands { }

.asos-mega-brand-list { display: flex; flex-direction: column; gap: 0; }
.asos-mega-brand-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; border-bottom: 1px solid #eee; }
.asos-mega-brand-item:last-child { border-bottom: none; }
.asos-mega-circle-sm { width: 70px; height: 70px; border-radius: 50%; flex-shrink: 0; background-size: cover; background-position: center; border: 1px solid #eee; }
.asos-mega-brand-item span { font-size: 13px; color: #555; }
.asos-mega-brand-item:hover span { color: #d01345; text-decoration: underline; }

/* Full width column */
.asos-mega-col-full { grid-column: 1 / -1; }

/* Burger */
.asos-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.asos-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }

/* Mobile Nav */
.asos-mobile-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9998; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.asos-mobile-overlay.is-open { opacity: 1; visibility: visible; }
.asos-mobile-nav { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; background: #fff; z-index: 9999; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; }
.asos-mobile-nav.is-open { transform: translateX(0); }
.asos-mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #2d2d2d; color: #fff; font-size: 16px; font-weight: 700; }
.asos-mobile-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.asos-mobile-nav-list li { border-bottom: 1px solid #eee; }
.asos-mobile-nav-list li a { display: block; padding: 14px 20px; font-size: 14px; font-weight: 500; }
.asos-mobile-nav-list li a:hover { background: #f5f5f5; }

/* Hero */
.asos-hero { background-size: cover; background-position: center; height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.asos-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.15); }
.asos-hero-content { position: relative; z-index: 1; color: #fff; }
.asos-hero-slug { display: block; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.asos-hero-title { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; }

/* SALE UP TO 70% OFF Banner — ASOS style */
.asos-sale-banner { background: #fff; padding: 24px 0; border-bottom: 1px solid #eee; }
.asos-sale-banner-inner { display: flex; align-items: center; justify-content: space-between; }
.asos-sale-banner-title { font-size: 40px; font-weight: 900; color: #2d2d2d; letter-spacing: -1px; line-height: 1; }
.asos-sale-red { color: #d01345; }
.asos-sale-banner-btn { display: inline-block; background: #d01345; color: #fff; font-size: 14px; font-weight: 700; padding: 14px 40px; letter-spacing: 1px; text-transform: uppercase; transition: background 0.2s; }
.asos-sale-banner-btn:hover { background: #b00f3a; }

/* Showcase Section — reusable for Trending / New in / any category grid */
.asos-showcase-section { padding: 40px 0; }
.asos-showcase-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.asos-showcase-title { font-size: 24px; font-weight: 700; color: #2d2d2d; }
.asos-showcase-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.asos-showcase-card { position: relative; display: block; overflow: hidden; aspect-ratio: 3/4; }
.asos-showcase-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.asos-showcase-card:hover img { transform: scale(1.05); }
.asos-showcase-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 50px 16px 20px; background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%); }
.asos-showcase-label { color: #fff; font-size: 15px; font-weight: 700; text-transform: capitalize; }

/* Buttons */
.asos-btn { display: inline-block; padding: 12px 32px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: 2px solid #2d2d2d; background: #2d2d2d; color: #fff; cursor: pointer; transition: all 0.2s; }
.asos-btn:hover { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.asos-btn-white { background: #fff; color: #2d2d2d; border-color: #fff; }
.asos-btn-white:hover { background: #2d2d2d; color: #fff; border-color: #2d2d2d; }

/* Sales Banner */
.asos-sales-banner { padding: 16px 0; border-bottom: 1px solid #eee; }
.asos-sales-slug { font-size: 13px; color: #767676; text-align: center; margin-bottom: 12px; }
.asos-category-carousel { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.asos-category-carousel::-webkit-scrollbar { display: none; }
.asos-category-track { display: flex; gap: 12px; justify-content: center; }
.asos-category-item { flex: 0 0 160px; height: 80px; border-radius: 8px; overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; position: relative; }
.asos-category-item::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.35); transition: background 0.2s; }
.asos-category-item:hover::before { background: rgba(0,0,0,0.5); }
.asos-category-label { position: relative; z-index: 1; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; }

/* Sections */
.asos-section { padding: 40px 0; }
.asos-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.asos-section-header h2 { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.asos-cta { font-size: 13px; font-weight: 700; color: #2d2d2d; text-decoration: underline; text-transform: uppercase; letter-spacing: 0.5px; }
.asos-cta:hover { color: #d01345; }

/* Product Carousel */
.asos-product-carousel { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.asos-product-carousel::-webkit-scrollbar { display: none; }
.asos-product-track { display: flex; gap: 16px; }
.asos-product-card { flex: 0 0 220px; }
.asos-product-link { display: block; }
.asos-product-image { position: relative; border-radius: 8px; overflow: hidden; background: #f5f5f5; margin-bottom: 10px; }
.asos-product-image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.3s; }
.asos-product-link:hover .asos-product-image img { transform: scale(1.05); }
.asos-sale-badge { position: absolute; top: 8px; left: 8px; background: #d01345; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; }
.asos-product-brand { display: block; font-size: 11px; font-weight: 600; color: #767676; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.asos-product-name { display: block; font-size: 13px; color: #2d2d2d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.asos-product-price { font-size: 14px; font-weight: 700; }
.asos-price-sale { color: #d01345; }
.asos-no-products { text-align: center; color: #999; padding: 40px; }

/* Feature Grid */
.asos-feature-grid { display: grid; gap: 12px; }
.asos-feature-grid-6 { grid-template-columns: repeat(6, 1fr); }
.asos-feature-card { display: block; border-radius: 8px; overflow: hidden; position: relative; }
.asos-feature-card img { width: 100%; aspect-ratio: 870/1110; object-fit: cover; transition: transform 0.3s; }
.asos-feature-card:hover img { transform: scale(1.03); }
.asos-feature-title { display: block; padding: 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; background: #fff; }
.asos-brand-card img { aspect-ratio: 870/500; }

/* SEO Links */
.asos-seo-links { padding: 40px 0; border-top: 1px solid #eee; }
.asos-seo-links h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.asos-seo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.asos-seo-col h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.asos-seo-col a { display: block; font-size: 13px; color: #666; padding: 4px 0; }
.asos-seo-col a:hover { color: #d01345; text-decoration: underline; }

/* Footer */
.asos-footer { background: #2d2d2d; color: #fff; }
.asos-footer-top { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.asos-footer-top .asos-container { display: flex; justify-content: space-between; align-items: center; }
.asos-footer-social { display: flex; gap: 16px; }
.asos-footer-social a { color: #fff; opacity: 0.8; transition: opacity 0.2s; }
.asos-footer-social a:hover { opacity: 1; }
.asos-footer-payments { display: flex; gap: 8px; align-items: center; }
.asos-footer-payments img { opacity: 0.7; height: 25px; width: auto; }
.asos-footer-main { padding: 40px 0; }
.asos-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.asos-footer-col h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; letter-spacing: 0.5px; }
.asos-footer-links li { margin-bottom: 8px; }
.asos-footer-links li a { font-size: 13px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.asos-footer-links li a:hover { color: #fff; }
.asos-footer-newsletter p { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.asos-newsletter-form { display: flex; gap: 8px; }
.asos-newsletter-form input[type="email"] { flex: 1; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #fff; font-size: 13px; font-family: inherit; border-radius: 4px; outline: none; }
.asos-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.asos-newsletter-form input[type="email"]:focus { border-color: #fff; }
.asos-newsletter-form .asos-btn { padding: 10px 20px; font-size: 12px; background: #fff; color: #2d2d2d; border: none; }
.asos-newsletter-form .asos-btn:hover { background: #d01345; color: #fff; }
.asos-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; text-align: center; }
.asos-footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.5); }

/* WooCommerce */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; }
.woocommerce ul.products li.product a img { border-radius: 8px; }
.woocommerce .price { font-weight: 700; }
.woocommerce .price ins { color: #d01345; text-decoration: none; }

/* Pagination */
.asos-pagination { text-align: center; padding: 40px 0; }

/* Blog */
.asos-blog-card { margin-bottom: 30px; }
.asos-blog-info h2 a:hover { color: #d01345; }
.asos-blog-meta { font-size: 12px; color: #999; margin-bottom: 8px; }
.asos-page-title { font-size: 28px; font-weight: 700; margin-bottom: 24px; }

/* Responsive */
@media (max-width: 1024px) {
    .asos-nav { display: none; }
    .asos-header-search { display: none; }
    .asos-burger { display: block; }
    .asos-mega-flyout-wrapper { display: none; }
    .asos-feature-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .asos-trending-grid { grid-template-columns: repeat(3, 1fr); }
    .asos-showcase-grid { grid-template-columns: repeat(3, 1fr); }
    .asos-seo-grid { grid-template-columns: repeat(2, 1fr); }
    .asos-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
    .asos-sale-banner-title { font-size: 28px; }
}
@media (max-width: 640px) {
    .asos-topbar-left { display: none; }
    .asos-hero { height: 240px; }
    .asos-hero-title { font-size: 32px; }
    .asos-category-item { flex: 0 0 140px; height: 60px; }
    .asos-feature-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .asos-trending-grid { grid-template-columns: repeat(2, 1fr); }
    .asos-showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .asos-seo-grid { grid-template-columns: 1fr; }
    .asos-footer-grid { grid-template-columns: 1fr; }
    .asos-footer-top .asos-container { flex-direction: column; gap: 12px; }
    .asos-promo-inner { flex-direction: column; gap: 8px; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
    .asos-sale-banner-inner { flex-direction: column; gap: 16px; text-align: center; }
    .asos-sale-banner-title { font-size: 24px; }
}
