/* Variables & Foundation */
:root {
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-text-light: #555555;
    --color-border: #e5e5e5;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
    font-size: 14px; /* Minimalist smaller font base */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--color-text-light);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Base Utilities */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}
.container-fluid {
    width: 100%;
    padding: 0 40px;
}
main.site-main {
    padding: 0 40px;
}
@media (max-width: 768px) {
    .container, .container-fluid, main.site-main {
        padding: 0 20px;
    }
}
.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }

/* Buttons */
.btn-minimal {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}
.btn-minimal:hover {
    background: #fff;
    color: #000;
}
.btn-minimal.inverted {
    border-color: #000;
    color: #000;
}
.btn-minimal.inverted:hover {
    background: #000;
    color: #fff;
}

/* Grid System */
.grid {
    display: grid;
    gap: 20px;
}
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Header Header --- */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 0;
    z-index: 1000;
    pointer-events: none;
}
.site-header * { pointer-events: auto; color: #000; }

/* Hamburger (Fixed Top Left) */
.menu-toggle {
    position: fixed;
    top: 35px; left: 40px;
    background: none; border: none; cursor: pointer; padding: 10px 0;
}
.hamburger-box { width: 22px; height: 10px; display: inline-block; position: relative; }
.hamburger-inner, .hamburger-inner::before {
    width: 22px; height: 1px; background-color: #000; position: absolute; left: 0; transition: transform 0.15s ease;
}
.hamburger-inner { top: 0; }
.hamburger-inner::before { content: ""; top: 6px; }

/* Desktop Cerca (Fixed Top Right) */
.desktop-cerca {
    position: fixed;
    top: 40px; right: 40px;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    transition: all var(--transition-speed) ease;
}

/* Right Edge Vertical Navigation */
.header-right-vertical {
    position: fixed;
    top: 200px; right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    font-size: 10px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.header-right-vertical a { color: #000; }
.header-right-vertical a:hover { color: #888; }

/* --- Off-Canvas Nav --- */
.off-canvas-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    transition: left var(--transition-speed) ease;
}
.off-canvas-nav.is-active {
    left: 0;
}
.off-canvas-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}
.off-canvas-nav.is-active .off-canvas-overlay { opacity: 1; }
.off-canvas-inner {
    position: relative;
    top: 0; left: 0;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    z-index: 2;
    padding: 60px 40px;
    overflow-y: auto;
}
.off-canvas-close {
    position: absolute;
    top: 25px; right: 30px;
    background: none; border: none; font-size: 24px; cursor: pointer; color: #000;
}
.main-navigation ul { list-style: none; }
.main-navigation li { margin-bottom: 20px; }
.main-navigation a {
    font-size: 24px;
    font-weight: 300;
    text-transform: uppercase;
    color: #000;
}

/* --- Hero Slider --- */
.hero-slider-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-content {
    text-align: center;
    color: #fff;
}
.hero-title {
    font-size: clamp(30px, 6vw, 60px);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
}
.slider-control:hover { color: #fff; }
.slider-control.prev { left: 20px; }
.slider-control.next { right: 20px; }

/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: auto;
    background: #fff;
    z-index: 2500;
    padding: 60px 40px;
    transition: top 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.search-overlay.is-active { top: 0; }
.search-close {
    position: absolute;
    top: 20px; right: 30px;
    background: none; border: none; font-size: 24px; cursor: pointer; color: #000;
}
.search-field {
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    font-size: 24px;
    padding: 10px 0;
    outline: none;
    font-family: var(--font-body);
}

/* --- Footer --- */
.site-footer {
    padding: 60px 0 20px;
    border-top: 1px solid var(--color-border);
    margin-top: 80px;
}
.footer-title {
    font-size: 12px;
    margin-bottom: 20px;
    color: #000;
    font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .minimal-text {
    font-size: 11px;
    color: var(--color-text-light);
}
.footer-newsletter input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    padding: 10px 0;
    font-size: 11px;
    outline: none;
    margin-top: 10px;
}
.footer-newsletter button {
    background: none; border: none; cursor: pointer; font-size: 16px; position: absolute; right: 0;
}
.footer-newsletter { position: relative; }
.site-info {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    text-transform: uppercase;
}
.social-links a { margin-right: 15px; }

/* Page standard padding */
.standard-padding { padding-top: 120px; padding-bottom: 60px; }

/* Zara Single Product Typography & UI Overrides */
.zara-single-product .product_title {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #000;
}
.zara-single-product p.price {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    margin-bottom: 5px;
    color: #000;
}
.zara-single-product .price-suffix-zara {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    display: block;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    line-height: 1;
}
.zara-single-product .woocommerce-product-details__short-description {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    line-height: 1.8;
    margin-top: 40px;
    color: #333;
}
.zara-single-product form.cart {
    margin-top: 30px;
}
.zara-single-product form.cart .button {
    width: 100%;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 15px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    text-transform: uppercase;
    font-size: 11px;
    display: block;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}
.zara-single-product form.cart .button:hover { background: #f9f9f9; }
.zara-single-product .woocommerce-product-gallery { width: 100%; margin-bottom: 20px; }
.zara-single-product .woocommerce-product-gallery img { width: 100%; height: auto; background: #e6e9ee; display: block; }

/* Fake Apple Pay / Paypal buttons for visual comp */
.payment-mockup-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
.payment-mockup-btns div {
    border: 1px solid #000;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

/* Related Products (Ti Può Interessare) - Micro Grid */
.product-related-bottom section.related h2 {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: normal;
    margin-bottom: 60px;
    color: #000;
}
.product-related-bottom ul.products {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px 10px;
    padding: 0;
    list-style: none;
}
.product-related-bottom ul.products li.product { text-align: center; }
.product-related-bottom ul.products li.product img { width: 100%; height: auto; background: #f5f5f5; margin-bottom: 10px; }
.product-related-bottom ul.products li.product .woocommerce-loop-product__title { display: none; }
.product-related-bottom ul.products li.product .price {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 9px;
    color: #000;
    display: block;
    margin-bottom: 5px;
}
.product-related-bottom ul.products li.product .add_to_cart_button {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0; /* Hide default text */
    background: transparent;
    color: #000;
    padding: 0;
    border: none;
    display: inline-block;
}
.product-related-bottom ul.products li.product .add_to_cart_button::after {
    content: "+";
    font-size: 12px;
}

@media (max-width: 1024px) {
    .product-related-bottom ul.products { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .product-related-bottom ul.products { grid-template-columns: repeat(2, 1fr); }
    .zara-single-product .product-gallery-area, .zara-single-product .product-info-area {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
    }
}
