* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #FFFFFF; color: #161513; font-family: 'Jost', sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.font-heading { font-family: 'Cormorant Garamond', serif; }

/* ============ CONTAINER / SHARED PRIMITIVES (also used by the
   shared shop/checkout/account pages in resources/views/storefront-fallback) ============ */
.container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* ============ MAIN HEADER (centered wordmark, 3-column layout) ============ */
.avenue-header { position: sticky; top: 0; z-index: 500; background: #FFFFFF; border-bottom: 1px solid rgba(22,21,19,0.09); }
.avenue-header-inner { max-width: 1320px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }

.avenue-header-left { display: flex; align-items: center; gap: 8px; }

.logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-name { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; font-style: italic; letter-spacing: 0.01em; color: #161513; }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.nav-links a { color: rgba(22,21,19,0.75); transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }

.avenue-icon-btn { position: relative; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: #161513; padding: 0; }
.avenue-icon-btn:hover { color: var(--accent); }

.avenue-badge { position: absolute; top: -8px; right: -11px; background: var(--accent-dark); color: #FFFFFF; font-size: 10px; font-weight: 700; border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; font-family: 'Jost', sans-serif; }

.avenue-search-wrap { position: relative; }
.avenue-search-panel { position: absolute; top: calc(100% + 16px); right: -10px; width: 280px; background: #FFFFFF; border: 1px solid rgba(22,21,19,0.1); border-radius: 2px; box-shadow: 0 12px 30px rgba(22,21,19,0.12); padding: 10px; z-index: 600; }
.avenue-search-panel form { display: flex; gap: 8px; }
.avenue-search-input { flex: 1; border: 1px solid rgba(22,21,19,0.15); border-radius: 2px; padding: 9px 14px; font-size: 13px; font-family: inherit; outline: none; background: #F7F3EC; transition: border-color 0.15s; }
.avenue-search-input:focus { border-color: var(--accent); }
.avenue-search-panel button[type="submit"] { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 2px; border: none; background: var(--accent-dark); color: #FFFFFF; cursor: pointer; }

.avenue-hamburger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 28px; height: 28px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.avenue-hamburger span { display: block; width: 100%; height: 1.5px; background: #161513; }

/* ============ OFF-CANVAS MOBILE MENU ============ */
.avenue-offcanvas-backdrop { position: fixed; inset: 0; background: rgba(22,21,19,0.5); opacity: 0; visibility: hidden; transition: opacity 0.2s ease; z-index: 9998; }
.avenue-offcanvas-backdrop.is-open { opacity: 1; visibility: visible; }

.avenue-offcanvas { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw; background: #FFFFFF; z-index: 9999; transform: translateX(-100%); transition: transform 0.25s ease; display: flex; flex-direction: column; box-shadow: 2px 0 24px rgba(22,21,19,0.18); }
.avenue-offcanvas.is-open { transform: translateX(0); }

.avenue-offcanvas-search { padding: 18px 16px 12px; border-bottom: 1px solid rgba(22,21,19,0.08); }
.avenue-offcanvas-search form { display: flex; align-items: center; border: 1px solid rgba(22,21,19,0.15); border-radius: 2px; padding: 8px 14px; gap: 8px; }
.avenue-offcanvas-search input { border: none; outline: none; flex: 1; font-size: 13px; font-family: inherit; background: transparent; }
.avenue-offcanvas-search button { border: none; background: none; cursor: pointer; display: flex; }

.avenue-offcanvas-tabs { display: flex; border-bottom: 1px solid rgba(22,21,19,0.08); }
.avenue-tab { flex: 1; padding: 14px 8px; background: none; border: none; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: rgba(22,21,19,0.4); cursor: pointer; border-bottom: 2px solid transparent; font-family: 'Jost', sans-serif; }
.avenue-tab.active { color: #161513; border-bottom-color: var(--accent); }

/* [hidden] and .avenue-offcanvas-panel tie on specificity (0,0,1,0 each);
   since this stylesheet loads after the browser's UA stylesheet, source
   order alone would let display:flex here silently beat [hidden]'s
   display:none, showing both the MENU and CATEGORIES panels at once
   regardless of AvenueMenu.showTab()'s hidden-attribute toggling — same
   fix as the Aurora/Nova themes this was adapted from. */
.avenue-offcanvas-panel { display: none; flex-direction: column; overflow-y: auto; }
.avenue-offcanvas-panel:not([hidden]) { display: flex; }
.avenue-offcanvas-panel a { padding: 15px 20px; font-size: 13px; font-weight: 500; color: #161513; border-bottom: 1px solid rgba(22,21,19,0.06); }
.avenue-offcanvas-panel a.active { color: var(--accent); font-weight: 700; }

.avenue-offcanvas-close { position: absolute; top: 10px; right: -42px; width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; border: none; font-size: 16px; cursor: pointer; box-shadow: 0 2px 8px rgba(22,21,19,0.25); display: none; }

/* ============ HERO SLIDER (full-bleed lookbook banner) ============ */
.avenue-hero-section { width: 100%; }
.avenue-hero-box { position: relative; width: 100%; aspect-ratio: 2.35 / 1; overflow: hidden; background: #F7F3EC; cursor: grab; touch-action: pan-y; }
.avenue-hero-box:active { cursor: grabbing; }
.avenue-hero-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease; }
.avenue-hero-slide { flex: 0 0 100%; height: 100%; display: block; -webkit-user-drag: none; }
.avenue-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }

.avenue-hero-arrow { display: flex; align-items: center; justify-content: center; position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7); background: rgba(22,21,19,0.15); font-size: 22px; font-weight: 400; color: #FFFFFF; cursor: pointer; z-index: 6; transition: background 0.15s ease, border-color 0.15s ease; backdrop-filter: blur(2px); }
.avenue-hero-arrow:hover { background: rgba(22,21,19,0.55); border-color: #FFFFFF; }
.avenue-hero-arrow-prev { left: 20px; }
.avenue-hero-arrow-next { right: 20px; }

.avenue-hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 5; }
.avenue-hero-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.8); background: transparent; cursor: pointer; padding: 0; }
.avenue-hero-dot.active { background: #FFFFFF; }

/* ============ SHOP BY CATEGORY (large editorial tiles) ============ */
.avenue-cat-section { padding-top: 44px; }
.avenue-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px; }
.avenue-cat-tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #F7F3EC; }
.avenue-cat-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.avenue-cat-tile:hover img { transform: scale(1.04); }
.avenue-cat-tile-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,21,19,0.55) 0%, rgba(22,21,19,0) 45%); }
.avenue-cat-tile-label { position: absolute; left: 20px; bottom: 18px; color: #FFFFFF; font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

/* ============ SECTION HEADINGS ============ */
.avenue-section { padding: 44px 0 8px; }
.avenue-section-heading { text-align: center; margin-bottom: 26px; }
.avenue-section-heading-left { text-align: left; margin-bottom: 18px; }
.avenue-section-heading .eyebrow { display: block; font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.avenue-section-heading h2 { font-family: 'Jost', sans-serif; font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #161513; margin-bottom: 6px; }
.avenue-section-heading p { font-size: 13px; color: rgba(22,21,19,0.5); }

/* ============ PRODUCT RAIL (horizontal scroll, "New Arrival"-style) ============ */
.avenue-rail-wrap { position: relative; }
.avenue-rail { display: flex; gap: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x proximity; padding: 2px 2px 12px; }
.avenue-rail::-webkit-scrollbar { display: none; }
.avenue-rail > .avenue-card { flex: 0 0 auto; width: 240px; scroll-snap-align: start; }

.avenue-rail-arrow { display: flex; align-items: center; justify-content: center; position: absolute; top: 42%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(22,21,19,0.12); background: #FFFFFF; box-shadow: 0 4px 14px rgba(22,21,19,0.1); font-size: 20px; color: #161513; cursor: pointer; z-index: 5; }
.avenue-rail-arrow:hover { background: var(--accent-dark); color: #FFFFFF; border-color: var(--accent-dark); }
.avenue-rail-arrow-prev { left: -18px; }
.avenue-rail-arrow-next { right: -18px; }

/* ============ PRODUCT GRID (used for "All Our Products" + the shared
   wishlist page's standalone #wishlist-grid) ============ */
.avenue-grid, .product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ============ PRODUCT CARD (portrait lookbook image, flat/borderless) ============ */
.avenue-card { position: relative; background: #FFFFFF; display: flex; flex-direction: column; }

.avenue-card-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #F7F3EC; }
.avenue-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.avenue-card:hover .avenue-card-img img { transform: scale(1.045); }

.avenue-badge { position: absolute; top: 10px; left: 10px; z-index: 5; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; padding: 5px 10px; color: #FFFFFF; text-transform: uppercase; }
.avenue-badge-new { background: #161513; }
.avenue-badge-discount { background: var(--accent); }
.avenue-badge-soldout { background: rgba(22,21,19,0.55); }

/* Shared class with the wishlist page (see wishlist.blade.php + the
   storefront-fallback shop partial) — positioned to sit over whichever
   image wrapper is `position: relative` in the markup that uses it. */
.wishlist-heart { position: absolute; top: 10px; right: 10px; z-index: 6; width: 28px; height: 28px; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; color: rgba(22,21,19,0.55); cursor: pointer; }
.wishlist-heart.active, .wishlist-heart:hover { color: var(--accent); }

.quick-buy-btn { position: absolute; right: 10px; bottom: 10px; z-index: 6; margin: 0; }
.quick-buy-btn button { width: 32px; height: 32px; border: none; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 8px rgba(22,21,19,0.25); display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; color: #161513; }
.quick-buy-btn button:hover { background: var(--accent-dark); color: #FFFFFF; }

.avenue-card-body { padding: 14px 2px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.avenue-card-cat { font-size: 10px; color: rgba(22,21,19,0.45); text-transform: uppercase; letter-spacing: 0.06em; }
.avenue-card-name { font-size: 13px; font-weight: 500; color: #161513; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.avenue-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.avenue-card-price .price-now { font-size: 14px; font-weight: 600; color: #161513; }
.avenue-card-price .price-old { font-size: 12px; color: rgba(22,21,19,0.4); text-decoration: line-through; }
.avenue-card-meta { font-size: 11px; color: rgba(22,21,19,0.5); margin-bottom: 4px; }

.avenue-card-form { margin: 0; margin-top: auto; }
.avenue-btn { display: block; width: 100%; text-align: center; padding: 10px 8px; border-radius: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; font-family: 'Jost', sans-serif; margin-top: auto; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.avenue-btn-solid { background: #161513; color: #FFFFFF; border: 1px solid #161513; }
.avenue-btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.avenue-btn-outline { background: transparent; color: #161513; border: 1px solid rgba(22,21,19,0.3); }
.avenue-btn-outline:hover { border-color: #161513; }

.avenue-view-all-wrap { text-align: center; margin-top: 28px; }
.avenue-view-all-btn { display: inline-block; padding: 13px 40px; border: 1px solid #161513; color: #161513; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.avenue-view-all-btn:hover { background: #161513; color: #FFFFFF; }

/* ============ PROMO BANNER ============ */
/* `.container` sets `margin: 0 auto` and side padding; the shorthands here
   would clobber both, leaving the banner uncentered and narrower than every
   other section. Keep `auto` so it centres, and match the 0 side padding
   that `.avenue-section` uses, so the banner spans the same column. */
.avenue-promo-section { margin: 30px auto; padding: 0; }
.avenue-promo-box { width: 100%; overflow: hidden; background: #F7F3EC; }
.avenue-promo-box img { width: 100%; display: block; }

/* ============ FLOATING WHATSAPP ============ */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: #25D366; color: #FFFFFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; box-shadow: 0 4px 14px rgba(37,211,102,0.4); z-index: 9990; cursor: pointer; }

/* ============ FOOTER ============ */
.avenue-footer { background: #161513; color: rgba(255,255,255,0.75); margin-top: 56px; }
.avenue-footer-inner { max-width: 1320px; margin: 0 auto; padding: 44px clamp(16px, 4vw, 48px) 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.avenue-footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-style: italic; font-weight: 600; color: #FFFFFF; }
.avenue-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.avenue-footer-links a:hover { color: var(--accent); }
.avenue-footer-bottom { width: 100%; font-size: 11px; color: rgba(255,255,255,0.45); border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; }

/* ============ SHARED PAGES: shop / product / checkout / account / auth
   (resources/views/storefront-fallback/*.blade.php) — these reuse the
   same class names across every theme; most colour comes for free from
   the --accent/--accent-dark vars already used inline in those files. ============ */
.shop-layout { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.shop-filters { width: 100%; max-width: 220px; flex-shrink: 0; font-size: 13px; background: #FFFFFF; border: 1px solid rgba(22,21,19,0.1); padding: 18px; }
.shop-filter-label { font-weight: 700; margin-bottom: 10px; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }
.shop-filter-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; color: rgba(22,21,19,0.7); }
.shop-filter-group:last-child { margin-bottom: 0; }
.shop-filter-group a.active { color: var(--accent); font-weight: 700; }
.shop-product-grid { flex: 1; min-width: 260px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.account-layout { display: flex; min-height: 80vh; }
.account-sidebar { width: 260px; flex-shrink: 0; background: #FFFFFF; border-right: 1px solid rgba(22,21,19,0.08); padding: 32px 0; display: flex; flex-direction: column; gap: 10px; }
.account-nav-link { padding: 11px 24px; font-size: 13px; font-weight: 500; color: rgba(22,21,19,0.6); }
.account-nav-link.active { background: #F7F3EC; border-left: 2px solid var(--accent); color: #161513; font-weight: 700; }

.bottom-nav { display: none; }

/* ============ TABLET (grid columns step down before mobile) ============ */
@media (max-width: 1100px) {
    .avenue-grid, .product-grid, .shop-product-grid { grid-template-columns: repeat(3, 1fr); }
    .avenue-rail > .avenue-card { width: 210px; }
}

@media (max-width: 900px) {
    .avenue-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { gap: 16px; font-size: 11px; }
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {
    .avenue-header-inner { padding: 12px 16px; gap: 8px; }
    .nav-links { display: none; }
    .avenue-hamburger { display: flex; }
    .logo-name { font-size: 22px; }
    .header-actions { gap: 10px; }
    .avenue-search-panel { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }

    /* Scoped to .is-open, not just the breakpoint: the drawer's own
       translateX(-100%) only clears ITS width (300px) when closed, but
       this button pokes out 42px beyond that (right:-42px, see above),
       so it lands back on-screen at x≈42px instead of off-screen —
       staying visible over the header even while "closed". */
    .avenue-offcanvas.is-open .avenue-offcanvas-close { display: flex; align-items: center; justify-content: center; }

    .avenue-hero-box { aspect-ratio: 4 / 3; }
    .avenue-hero-arrow { width: 34px; height: 34px; font-size: 18px; }
    .avenue-hero-arrow-prev { left: 10px; }
    .avenue-hero-arrow-next { right: 10px; }

    .avenue-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
    .avenue-cat-tile-label { font-size: 19px; left: 14px; bottom: 12px; }

    .avenue-section { padding: 30px 0 4px; }
    .avenue-section-heading h2 { font-size: 19px; }

    .avenue-rail { gap: 12px; }
    .avenue-rail > .avenue-card { width: 158px; }
    .avenue-rail-arrow { display: none; }

    .avenue-grid, .product-grid, .shop-product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

    .avenue-card-name { font-size: 12px; }
    .avenue-btn { font-size: 10px; padding: 9px 6px; }

    .wa-float { bottom: 20px; right: 16px; width: 42px; height: 42px; font-size: 12px; }

    .shop-layout { flex-direction: column; }
    .shop-filters { max-width: none; padding: 14px; }
    .shop-filter-group { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 8px; margin-bottom: 16px; padding-bottom: 2px; }
    .shop-filter-group::-webkit-scrollbar { display: none; }
    .shop-filter-group a { flex-shrink: 0; white-space: nowrap; padding: 7px 14px; border: 1px solid rgba(22,21,19,0.15); font-size: 12px; }
    .shop-filter-group a.active { border-color: var(--accent); }

    .account-layout { flex-direction: column; min-height: 0; }
    .account-sidebar { width: 100%; flex-direction: row; border-right: none; border-bottom: 1px solid rgba(22,21,19,0.08); padding: 12px; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .account-sidebar::-webkit-scrollbar { display: none; }
    .account-sidebar-title { display: none; }
    .account-nav-link { flex-shrink: 0; white-space: nowrap; padding: 8px 16px; background: #F7F3EC; }
    .account-nav-link.active { border-left: none; border: 1px solid var(--accent); background: #FFFFFF; }

    .avenue-footer-inner { padding: 32px 16px 20px; }
}
