/*
Theme Name: Shopnex
Theme URI: https://spiraclethemes.com/shopnex-wordpress-theme
Author: Spiracle Themes
Author URI: https://spiraclethemes.com/
Description: A modern WooCommerce theme for fashion stores, clothing brands, and lifestyle boutiques. Features responsive design, customizer options, blog support, custom widgets, and performance optimized for fast loading.
Version: 1.7
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Tags: e-commerce, blog, custom-colors, sticky-post, one-column, custom-logo, custom-menu, entertainment, featured-images, full-width-template, left-sidebar, right-sidebar, theme-options, threaded-comments, translation-ready, two-columns, footer-widgets
License: GNU General Public License v3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: shopnex
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* ── CSS Variables ── */
:root {
    --brand-sky: #0072FF;
    --brand-secondary: #FF3D81;
    --brand-highlight: #FFB800;
    --brand-accent: #00A86B;
    --brand-dark: #1C1C1C;
    --brand-panel: #F8F9FA;
    --brand-card: #FFFFFF;
    --brand-text: #1C1C1C;
    --brand-muted: #6B6560;
    --brand-border: #E8E4DF;
    --brand-bg: #FBF9F6;
    --brand-bg-secondary: #F3EFEA;
    --brand-text-muted: #9C9792;
    --brand-accent-warm: #B8977E;
    --brand-accent-warm-hover: #A0785E;
    --brand-border-light: #F0EDE9;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-hand: 'Caveat', cursive;
    --font-dm: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
    
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 72px;
    --max-width: 1440px;
    
    /* ── Design System ── */
    --bg-primary: #FBF9F6;
    --bg-secondary: #F3EFEA;
    --bg-white: #FFFFFF;
    --text-primary: #1C1C1C;
    --text-secondary: #6B6560;
    --text-muted: #9C9792;
    --accent: #B8977E;
    --accent-hover: #A0785E;
    --border: #E8E4DF;
    --border-light: #F0EDE9;
    --error: #C44D4D;
    --success: #5A8A6A;
    --shadow-sm: 0 1px 3px rgba(28, 28, 28, 0.04);
    --shadow-md: 0 4px 20px rgba(28, 28, 28, 0.06);
    --shadow-lg: 0 12px 40px rgba(28, 28, 28, 0.08);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Global Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--brand-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--brand-bg);
    width: 100%;
    font-size: 15px;
    letter-spacing: -0.01em;
}

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

a {
    color: inherit;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Scrollbar ── */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-border) transparent;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-border);
    border-radius: 20px;
}

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

/* ── Selection ── */
::selection {
    background: rgba(184, 151, 126, 0.25);
    color: var(--brand-text);
}

/* ── Focus Styles ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 114, 255, 0.25);
}

/* Global visible keyboard focus indicator */
a:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--brand-dark);
    outline-offset: 3px;
    border-radius: 2px;
}

.site-header,
.header-inner,
.site-branding,
.nav-actions,
.main-navigation {
    overflow: visible;
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 16px;
    color: #fff;
}

/* ── Typography ── */
.font-display {
    font-family: var(--font-display);
}

.font-sans {
    font-family: var(--font-sans);
}

.font-hand {
    font-family: var(--font-hand);
}

.font-dm {
    font-family: var(--font-dm);
}

.font-mono {
    font-family: var(--font-mono);
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── Utility Classes ── */
.text-brand-sky { color: var(--brand-sky); }
.text-brand-secondary { color: var(--brand-secondary); }
.text-brand-highlight { color: var(--brand-highlight); }
.text-brand-accent { color: var(--brand-accent); }
.text-brand-dark { color: var(--brand-dark); }
.text-brand-muted { color: var(--brand-muted); }
.text-white { color: #fff; }

.bg-brand-sky { background-color: var(--brand-sky); }
.bg-brand-secondary { background-color: var(--brand-secondary); }
.bg-brand-highlight { background-color: var(--brand-highlight); }
.bg-brand-accent { background-color: var(--brand-accent); }
.bg-brand-dark { background-color: var(--brand-dark); }
.bg-brand-bg { background-color: var(--brand-bg); }
.bg-brand-card { background-color: var(--brand-card); }
.bg-white { background-color: #fff; }

.border-brand-border { border-color: var(--brand-border); }

/* ── Card Hover Effect ── */
.card-hover {
    transition: all var(--transition-base);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* ── Image Zoom Effect ── */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform var(--transition-slow);
}

.img-zoom:hover img {
    transform: scale(1.06);
}

/**
====================================================================
  WordPress Core
====================================================================
*/

.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    text-align: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    text-align: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    white-space: nowrap;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}

.sticky {
    padding-bottom: 2px;
}

.entry-title .la-thumb-tack {
    padding-right: 5px;
}

.gallery-caption {
    font-size: 16px;
    font-weight: 700;
}

.bypostauthor {
    font-size: 14px;
    color: #555;
}

.center {
    text-align: center;
}

/* ── Header ── */

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-description {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    color: var(--brand-muted);
    letter-spacing: 0.02em;
    margin-top: 2px;
    line-height: 1.2;
}

/* Custom Logo Image */
.site-branding .custom-logo-link {
    display: block;
}

.site-branding .custom-logo {
    max-height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.site-branding .site-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
    min-width: 0;
}

.site-branding .site-logo-link:hover {
    opacity: 0.7;
}

.site-branding .site-logo-link .custom-logo-link {
    flex-shrink: 0;
}

.site-branding .site-title-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.site-branding .site-title-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.site-branding .site-title-text .site-description {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    color: var(--brand-muted);
    letter-spacing: 0.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

/* Navigation */
.main-navigation {
    display: none;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--brand-muted);
    transition: color var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--brand-dark);
}

/* Mega Menu */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 12px;
    z-index: 100;
}

.nav-menu li:hover .mega-menu {
    display: block;
}

.mega-menu-inner {
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 700px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.mega-menu-col h4 {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-sky);
    font-weight: 600;
    margin: 0 0 16px;
}

.mega-menu-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-col li {
    margin-bottom: 10px;
}

.mega-menu-col a {
    font-size: 14px;
    color: var(--brand-muted);
    transition: color var(--transition-fast);
}

.mega-menu-col a:hover {
    color: var(--brand-dark);
}

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

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--brand-muted);
    transition: all var(--transition-fast);
    position: relative;
    border-radius: 50%;
    background: transparent;
}

.header-action-btn:hover {
    color: var(--brand-dark);
    background: rgba(17, 24, 39, 0.05);
}

.header-action-btn:active {
    transform: scale(0.95);
}

.header-action-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.header-action-btn:hover svg {
    transform: scale(1.1);
}

.header-action-desktop {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    color: var(--brand-dark);
    padding: 8px;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* ── Drawer Styles ── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 130;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    height: 100%;
    background: var(--brand-card);
    z-index: 135;
    transition: transform var(--transition-base);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
}

.drawer.right {
    right: 0;
    width: 100%;
    max-width: 448px;
    transform: translateX(100%);
    border-left: 1px solid var(--brand-border);
}

.drawer.left {
    left: 0;
    width: 100%;
    max-width: 384px;
    transform: translateX(-100%);
    border-right: 1px solid var(--brand-border);
}

.drawer.open {
    transform: translateX(0);
}

.drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--brand-border);
}

.drawer-title {
    font-size: 18px;
    font-weight: 600;
}

.drawer-close {
    color: #9ca3af;
    transition: color var(--transition-fast);
}

.drawer-close:hover {
    color: var(--brand-dark);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--brand-border);
}

/* Cart Drawer Items */
.cart-drawer-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.cart-drawer-item:last-child {
    margin-bottom: 0;
}

.cart-item-image {
    width: 80px;
    height: 96px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.cart-item-meta {
    font-size: 12px;
    color: var(--brand-muted);
    margin-top: 4px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
}

.qty-btn {
    padding: 4px 8px;
    font-size: 12px;
    color: var(--brand-muted);
}

.qty-btn:hover {
    color: var(--brand-dark);
}

.qty-value {
    font-size: 12px;
    font-weight: 500;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
}

/* Cart Item Remove Button */
.cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--brand-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    transition: all var(--transition-fast);
    opacity: 0;
}

.cart-drawer-item:hover .cart-item-remove {
    opacity: 1;
}

.cart-item-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.cart-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.cart-empty-state p {
    color: var(--brand-muted);
    margin: 16px 0 24px;
}

.cart-shipping-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: rgba(0, 114, 255, 0.05);
    border: 1px solid rgba(0, 114, 255, 0.2);
    margin-bottom: 16px;
    color: var(--brand-sky);
    font-size: 12px;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 16px;
}

.subtotal-label {
    color: var(--brand-muted);
}

.subtotal-value {
    font-weight: 600;
}

.btn-checkout {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-xl);
    background: var(--brand-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.btn-checkout:hover {
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
}

.cart-tax-note {
    text-align: center;
    font-size: 12px;
    color: var(--brand-muted);
    margin-top: 12px;
}

/* Mobile Navigation */
.mobile-nav {
    padding: 24px;
    flex: 1;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid transparent;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 300;
    color: var(--brand-dark);
    transition: color var(--transition-fast);
}

.mobile-nav-menu a:hover {
    color: var(--brand-sky);
}

.mobile-nav-footer {
    padding: 24px;
    border-top: 1px solid var(--brand-border);
    display: flex;
    gap: 24px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--brand-muted);
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--brand-dark);
}

/* ── Search Overlay ── */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
    pointer-events: none;
    visibility: hidden;
}

.search-overlay.active {
    pointer-events: auto;
    visibility: visible;
}

.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(251, 249, 246, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-overlay-backdrop {
    opacity: 1;
}

.search-overlay-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    padding: 0 24px;
    padding-top: 120px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.search-overlay.active .search-overlay-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Search Overlay Header */
.search-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.search-overlay-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-text-muted);
}

.search-close-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--brand-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}

.search-close-btn:hover {
    color: var(--brand-dark);
    border-color: var(--brand-dark);
    background: rgba(28, 28, 28, 0.03);
}

.search-close-btn svg {
    transition: transform var(--transition-fast);
}

.search-close-btn:hover svg {
    transform: rotate(90deg);
}

/* Search Input Wrapper */
.search-input-wrapper {
    margin-bottom: 40px;
}

.search-input-wrapper .search-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-field-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    transition: all var(--transition-fast);
    position: relative;
}

.search-field-wrapper:focus-within {
    border-color: var(--brand-accent-warm);
    box-shadow: 0 0 0 3px rgba(184, 151, 126, 0.12);
}

.search-field-icon {
    flex-shrink: 0;
    color: var(--brand-text-muted);
    transition: color var(--transition-fast);
}

.search-field-wrapper:focus-within .search-field-icon {
    color: var(--brand-accent-warm);
}

.search-input-wrapper .search-field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    font-weight: 400;
    color: var(--brand-dark);
    outline: none;
    padding: 0;
    font-family: var(--font-sans);
    line-height: 1.4;
    letter-spacing: -0.01em;
    box-shadow: none !important;
    min-width: 0;
}

.search-input-wrapper .search-field:focus {
    box-shadow: none !important;
}

.search-input-wrapper .search-field::placeholder {
    color: var(--brand-text-muted);
    font-weight: 300;
}

.search-input-wrapper .search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--brand-dark);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.search-input-wrapper .search-submit:hover {
    background: var(--brand-accent-warm);
    transform: scale(1.04);
}

.search-input-wrapper .search-submit:active {
    transform: scale(0.97);
}

.search-input-wrapper .search-submit svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

/* Screen Reader Text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Search Trending */
.search-trending {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.search-overlay.active .search-trending {
    opacity: 1;
    transform: translateY(0);
}

.search-trending-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 450;
    color: var(--brand-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.search-tag:hover {
    border-color: var(--brand-dark);
    color: var(--brand-dark);
    background: rgba(28, 28, 28, 0.03);
    transform: translateY(-1px);
}

.search-tag:active {
    transform: translateY(0);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    background: var(--brand-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--brand-border);
    transition: all var(--transition-base);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.btn-secondary:hover {
    background: #f9fafb;
}

/* ── Section Styles ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
}

.section-title-lg {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-sky);
    font-weight: 600;
    margin-bottom: 8px;
}

.section-label-secondary {
    color: var(--brand-secondary);
}

.section-label-highlight {
    color: var(--brand-highlight);
}

.section-label-accent {
    color: var(--brand-accent);
}

.section-link {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-sky);
    font-weight: 600;
}

.section-link:hover {
    text-decoration: underline;
}

/* ── Features Section ── */
.features-section {
    padding: 40px 0;
    background: var(--brand-bg);
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
}

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

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.feature-icon-sky {
    background: rgba(0, 114, 255, 0.1);
    color: var(--brand-sky);
}

.feature-icon-secondary {
    background: rgba(255, 61, 129, 0.1);
    color: var(--brand-secondary);
}

.feature-icon-highlight {
    background: rgba(255, 184, 0, 0.1);
    color: var(--brand-highlight);
}

.feature-icon-accent {
    background: rgba(0, 168, 107, 0.1);
    color: var(--brand-accent);
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}

.feature-desc {
    font-size: 12px;
    color: var(--brand-muted);
    margin: 0;
}

/* ── Newsletter Section ── */
.newsletter-section {
    padding: 64px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.newsletter-bg-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: rgba(0, 114, 255, 0.05);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.newsletter-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.newsletter-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-sky);
    font-weight: 600;
    margin-bottom: 16px;
}

.newsletter-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
    margin: 0 0 16px;
}

.newsletter-desc {
    font-size: 16px;
    color: var(--brand-muted);
    font-weight: 300;
    line-height: 1.7;
    margin: 0 0 32px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    background: var(--brand-bg);
    border: 1px solid var(--brand-border);
    font-size: 14px;
    color: var(--brand-dark);
    font-family: var(--font-sans);
}

.newsletter-input::placeholder {
    color: rgba(107, 114, 128, 0.5);
}

.newsletter-input:focus {
    border-color: rgba(0, 114, 255, 0.5);
}

.newsletter-btn {
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.15);
}

.newsletter-privacy {
    font-size: 12px;
    color: rgba(107, 114, 128, 0.5);
    margin-top: 16px;
}

.newsletter-privacy a {
    text-decoration: underline;
}

.newsletter-privacy a:hover {
    color: var(--brand-muted);
}

/* ── Footer ── */

.footer-widget-col .section {
    margin-bottom: 0;
}

.footer-brand-col .section {
    margin-bottom: 0;
    padding: 0;
}

.footer-brand-col .widget {
    margin: 0;
    padding: 0;
}

.footer-brand-col .widget-title {
    display: none;
}

.footer-brand-col .footer-brand {
    grid-column: auto;
}

.footer-brand-col .footer-logo-wrap {
    margin-bottom: 0;
}

.footer-brand-col .footer-logo-wrap img {
    max-height: 40px;
    width: auto;
}

.footer-brand-col .footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-sale-link {
    color: var(--brand-secondary) !important;
    font-weight: 500;
}

.footer-sale-link:hover {
    color: rgba(255, 61, 129, 0.8) !important;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-copyright a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-credits {
    color: rgba(255, 255, 255, 0.2);
}

.footer-payments {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ── Product Card ── */
.product-card {
    background: var(--brand-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--brand-border);
    transition: all var(--transition-base);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: var(--brand-secondary);
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-badge.new {
    background: var(--brand-highlight);
    color: var(--brand-dark);
}

.product-badge.bestseller {
    background: var(--brand-sky);
}

.product-badge.eco {
    background: var(--brand-accent);
}

.product-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-muted);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-wishlist-btn:hover {
    color: var(--brand-secondary);
}

.product-wishlist-btn.active {
    color: var(--brand-secondary);
}

.product-image-wrapper {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f3f4f6;
}

.product-image-wrapper a {
    display: block;
    height: 100%;
}

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

.product-card:hover .product-image-wrapper img {
    transform: scale(1.06);
}

.product-info {
    padding: 12px;
}

.product-brand {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-muted);
    margin: 0;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-dark);
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title a {
    color: var(--brand-dark);
}

.product-title a:hover {
    color: var(--brand-sky);
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-secondary);
}

.product-price-original {
    font-size: 12px;
    color: var(--brand-muted);
    text-decoration: line-through;
}

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

.product-rating-count {
    font-size: 10px;
    color: var(--brand-muted);
    margin-left: 4px;
}

/* Quick View Overlay */
.product-quick-view {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.product-card:hover .product-quick-view {
    opacity: 1;
    pointer-events: auto;
}

.btn-quick-view {
    padding: 10px 20px;
    background: var(--brand-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-quick-view:hover {
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
}

/* ── Filter Chips ── */
.filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--brand-border);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all var(--transition-fast);
    font-weight: 500;
    color: var(--brand-muted);
    cursor: pointer;
}

.filter-chip.active {
    background: var(--brand-sky);
    color: #fff;
    border-color: var(--brand-sky);
}

.filter-chip:hover:not(.active) {
    border-color: var(--brand-dark);
    color: var(--brand-dark);
}

/* ═══════════════════════════════════════════════════
   Header, Mobile Menu, Footer
   ═══════════════════════════════════════════════════ */

/* ── Announcement Bar ── */
.announcement-bar {
    background: var(--brand-dark);
    color: #FBF9F6;
    text-align: center;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.announcement-bar .shopnex-announcement-bar-widget {
    padding: 10px 20px;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.announcement-bar .shopnex-announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.announcement-bar .shopnex-announcement-item {
    opacity: 0.85;
}

.announcement-bar .shopnex-announcement-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--brand-accent-warm);
    border-radius: 50%;
    margin: 0 14px;
    vertical-align: middle;
    animation: shopnex-pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 249, 246, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
    min-height: var(--header-height);
}

.site-header.scrolled {
    border-bottom-color: var(--brand-border-light);
    box-shadow: 0 1px 3px rgba(28, 28, 28, 0.04);
}

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

.site-branding {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    overflow: visible;
}

.site-logo,
.site-logo-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
    text-decoration: none;
    transition: opacity var(--transition-fast);
    line-height: 1;
    min-width: 0;
}

.site-logo:hover,
.site-logo-text:hover {
    opacity: 0.7;
}

.site-logo .period,
.site-logo-text .period {
    color: var(--brand-accent-warm);
}

/* Text-only logo with description */
.site-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-decoration: none;
    min-width: 0;
}

.site-logo-text .site-title-name {
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

.site-logo-text .site-description {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    color: var(--brand-muted);
    letter-spacing: 0.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

/* Nav Links */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    font-size: 14px;
    font-weight: 450;
    color: var(--brand-muted);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--brand-dark);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--brand-dark);
}

/* Visible keyboard focus indicator */
.nav-links a:focus-visible,
.nav-links .sub-menu a:focus-visible {
    outline: 2px solid var(--brand-dark);
    outline-offset: 4px;
    border-radius: 2px;
    color: var(--brand-dark);
}

.nav-links a.active {
    color: var(--brand-dark);
}

.nav-links a.active::after {
    width: 100%;
}

/* ── Dropdown Submenus ── */
.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: -12px;
    min-width: 200px;
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    margin-top: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Keep nested submenu open on keyboard focus */
.nav-links .sub-menu li:hover > .sub-menu,
.nav-links .sub-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-links .sub-menu li {
    position: relative;
}

.nav-links .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 400;
    color: var(--brand-muted);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.nav-links .sub-menu a::after {
    display: none;
}

.nav-links .sub-menu a:hover {
    color: var(--brand-dark);
    background: var(--brand-bg);
}

.nav-links .menu-item-has-children > a .dropdown-arrow,
.nav-links .sub-menu .menu-item-has-children > a .dropdown-arrow {
    display: inline-flex;
    margin-left: 8px;
    transition: transform var(--transition-fast);
}

.nav-links li:hover > a .dropdown-arrow,
.nav-links li:focus-within > a .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-links .sub-menu .menu-item-has-children > a .dropdown-arrow {
    transform: rotate(-90deg);
}

.nav-links .sub-menu .menu-item-has-children:hover > a .dropdown-arrow {
    transform: rotate(-90deg);
}

.nav-links .sub-menu .sub-menu {
    top: -8px;
    left: 100%;
    margin-top: 0;
    margin-left: 0;
}

.nav-links .sub-menu .sub-menu::before {
    top: 0;
    left: -8px;
    width: 8px;
    height: 100%;
    right: auto;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-end;
}

.nav-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--brand-dark);
    transition: opacity var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-action-btn:hover {
    opacity: 0.6;
}

.nav-action-desktop {
    display: none;
}

/* Cart Count */
.cart-count,
.wishlist-count {
    position: absolute;
    top: 2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--brand-accent-warm);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
    z-index: 1;
    border: none;
    box-shadow: none;
}

.wishlist-count {
    background: var(--brand-secondary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    background: none;
    border: none;
}

.hamburger:focus,
.hamburger:focus-visible {
    outline: 2px solid var(--brand-dark);
    outline-offset: 3px;
    border-radius: 6px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--brand-dark);
    transition: all var(--transition-base);
    border-radius: 1px;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile Menu Fullscreen ── */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(251, 249, 246, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), visibility 0s linear var(--transition-base);
}

.mobile-menu-fullscreen.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity var(--transition-base), visibility 0s;
}

.mobile-menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--brand-dark, #1a1a1a);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background var(--transition-base), color var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mobile-menu-close-btn:hover,
.mobile-menu-close-btn:focus-visible {
    background: rgba(0, 0, 0, 0.08);
    color: var(--brand-accent, #e74c3c);
}

.mobile-menu-close-btn:focus-visible {
    outline: 2px solid var(--brand-accent, #e74c3c);
    outline-offset: 2px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mobile-menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.mobile-menu-links li a {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: opacity var(--transition-fast);
}

.mobile-menu-links li a:hover {
    opacity: 0.5;
}

.mobile-menu-links a:focus-visible,
.mobile-menu-links .mobile-submenu-toggle:focus-visible {
    outline: 2px solid var(--brand-dark);
    outline-offset: 4px;
    border-radius: 2px;
}

.mobile-menu-footer {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.mobile-menu-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--brand-dark);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.mobile-menu-footer-link:hover {
    opacity: 0.5;
}

.mobile-menu-footer-link svg {
    flex-shrink: 0;
}

/* ── Mobile Submenu (Accordion) ── */
.mobile-menu-links .menu-item-has-children {
    position: relative;
}

.mobile-menu-links .menu-item-has-children > a {
    position: relative;
    padding-left: 44px;
    padding-right: 44px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.mobile-menu-links .menu-item-has-children > .mobile-submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brand-dark);
    padding: 0;
    z-index: 2;
}

.mobile-menu-links .menu-item-has-children > .mobile-submenu-toggle svg {
    transition: transform var(--transition-fast);
    width: 14px;
    height: 14px;
}

.mobile-menu-links .menu-item-has-children.submenu-open > .mobile-submenu-toggle svg {
    transform: rotate(180deg);
}

.mobile-menu-links .sub-menu {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 14px;
    border-left: 1px solid var(--brand-border-light);
    padding-left: 18px;
}

.mobile-menu-links .menu-item-has-children.submenu-open > .sub-menu,
.mobile-menu-links .menu-item-has-children > .sub-menu:focus-within {
    max-height: 600px;
    opacity: 1;
    padding-top: 12px;
    padding-bottom: 8px;
    margin-top: 10px;
    border-left-color: var(--brand-border);
}

.mobile-menu-links .sub-menu .menu-item-has-children.submenu-open > .sub-menu,
.mobile-menu-links .sub-menu .menu-item-has-children > .sub-menu:focus-within {
    max-height: 600px;
    opacity: 1;
    padding-top: 10px;
    padding-bottom: 4px;
    margin-top: 6px;
}

.mobile-menu-links .sub-menu li a {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 400;
    color: var(--brand-muted);
    padding: 9px 4px;
    letter-spacing: -0.01em;
    line-height: 1.3;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-links .sub-menu li a:hover,
.mobile-menu-links .sub-menu li a:focus-visible {
    opacity: 1;
    color: var(--brand-dark);
}

.mobile-menu-links .sub-menu .sub-menu {
    gap: 2px;
}

.mobile-menu-links .sub-menu .sub-menu li a {
    font-size: 15px;
    font-weight: 400;
    color: var(--brand-text-muted);
    padding: 7px 4px;
}

.mobile-menu-links .sub-menu .menu-item-has-children > a {
    padding-right: 44px;
    min-height: 36px;
}

.mobile-menu-links .sub-menu .menu-item-has-children > .mobile-submenu-toggle {
    right: -4px;
    top: 0;
    height: 36px;
    width: 36px;
    color: var(--brand-muted);
}

.mobile-menu-links .sub-menu .menu-item-has-children > .mobile-submenu-toggle svg {
    width: 12px;
    height: 12px;
}

/* ── Footer ── */
.site-footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--brand-border-light);
    margin-top: 30px;
    background: var(--brand-bg);
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.footer-brand-col {
    grid-column: 1 / -1;
}

.footer-col {
    color: var(--brand-text);
}

.footer-col a {
    text-decoration: none;
}

.footer-col .footer-logo {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--brand-text);
    display: inline-block;
    margin-bottom: 12px;
}

.footer-col .footer-logo .period {
    color: var(--brand-accent-warm);
}

.footer-col .footer-logo span {
    color: var(--brand-accent-warm);
}

.footer-brand-desc,
.footer-description {
    font-size: 13px;
    color: var(--brand-text-muted);
    line-height: 1.6;
    max-width: 250px;
    margin: 0;
    font-weight: 400;
}

.footer-col-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

/* Widget title in footer columns */
.footer-col .widget-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col .footer-widget-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--brand-text);
    margin-bottom: 16px;
    margin-top: 0;
}

.footer-col .footer-links li,
.footer-col .section ul > li {
    margin-bottom: 8px;
}

.footer-col .footer-links a,
.footer-col .section ul > li > a {
    font-size: 13px;
    color: var(--brand-muted);
    transition: color var(--transition-fast);
    letter-spacing: 0.01em;
    text-decoration: none;
}

.footer-col .footer-links a:hover,
.footer-col .section ul > li > a:hover {
    color: var(--brand-text);
}

/* Footer Widget Columns */
.footer-widget-col {
    color: var(--brand-text);
}

.footer-widget-col .widget-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-text-muted);
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-widget-col .footer-links li {
    margin-bottom: 8px;
}

.footer-widget-col .footer-links a {
    font-size: 13px;
    color: var(--brand-muted);
}

.footer-widget-col .footer-links a:hover {
    color: var(--brand-text);
}

/* Footer Brand Column */
.footer-brand-col .footer-description {
    color: var(--brand-text-muted);
}

.footer-brand-col .social-icon {
    border-color: var(--brand-border);
    color: var(--brand-muted);
}

.footer-brand-col .social-icon:hover {
    color: var(--brand-text);
    border-color: var(--brand-text);
    background: rgba(28, 28, 28, 0.05);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--brand-border-light);
    font-size: 12px;
    color: var(--brand-text-muted);
    letter-spacing: 0.02em;
    flex-direction: row;
}

.footer-copyright {
    font-size: 12px;
    color: var(--brand-text-muted);
    margin: 0;
}

.footer-credit {
    font-size: 12px;
    color: var(--brand-text-muted);
}

.footer-copyright .footer-credit a {
    color: var(--brand-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-copyright .footer-credit a:hover {
    color: var(--brand-text);
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    gap: 18px;
}

.footer-bottom-links a {
    color: var(--brand-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 13px;
}

.footer-bottom-links a:hover {
    color: var(--brand-text);
}

/* Footer link and social styles */
.footer-logo {
    color: var(--brand-text);
}

.footer-logo span {
    color: var(--brand-accent-warm);
}

.footer-links a {
    color: var(--brand-muted);
}

.footer-links a:hover {
    color: var(--brand-text);
}

.social-link {
    border-color: var(--brand-border);
    color: var(--brand-muted);
}

.social-link:hover {
    color: var(--brand-text);
    border-color: var(--brand-text);
    background: rgba(28, 28, 28, 0.05);
}

/* ═══════════════════════════════════════════════════
   Responsive Styles
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .search-overlay-inner {
        padding: 0 16px;
        padding-top: 80px;
    }
    
    .search-overlay-header {
        margin-bottom: 24px;
    }
    
    .search-field-wrapper {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .search-input-wrapper .search-field {
        font-size: 15px;
    }
    
    .search-input-wrapper .search-submit {
        width: 48px;
        height: 48px;
    }
    
    .search-input-wrapper {
        margin-bottom: 32px;
    }
    
    .search-trending {
        margin-top: 0;
    }
    
    .search-tags {
        gap: 6px;
    }
    
    .search-tag {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .nav-actions .search-btn,
    .nav-actions .nav-action-desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (min-width: 1024px) {
    .header-main {
        height: 72px;
    }
}

@media (min-width: 1024px) {
    .site-branding .custom-logo {
        max-height: 44px;
        max-width: 200px;
    }
}

@media (min-width: 1024px) {
    .site-branding .site-title-name {
        font-size: 20px;
    }
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .header-actions {
        gap: 12px;
    }
}

@media (min-width: 1024px) {
    .header-action-desktop {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    .section-title-lg {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .features-section {
        padding: 56px 0;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .newsletter-section {
        padding: 96px 0;
    }
}

@media (min-width: 1024px) {
    .newsletter-title {
        font-size: 48px;
    }
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .product-info {
        padding: 16px;
    }
}

@media (min-width: 1024px) {
    .header-inner {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .nav-action-desktop {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .footer-inner {
        padding: 0 32px;
    }
}

@media (min-width: 768px) {
    .footer-grid {
        gap: 30px;
    }

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

    .footer-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        gap: 40px;
    }

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

    .footer-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-brand-col {
        grid-column: auto;
    }
}

