/*
 Theme Name: Gallonegro Theme
 Theme URI: https://gallonegroclothing.pe
 Description: Tema premium para Gallonegro Clothing - Disciplina. Identidad. Propósito.
 Author: Gallonegro Clothing
 Author URI: https://gallonegroclothing.pe
 Template: astra
 Version: 1.0.0
 Text Domain: gallonegro-theme
*/

/* ===== BASE & ASTRA OVERRIDES ===== */
html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

body {
    background-color: #000;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

::selection { background: #C8A96E; color: #000; }

h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

/* Hide Astra defaults */
#masthead, .site-footer, .ast-above-header, .ast-below-header,
.main-header-bar-wrap, .hfe-header, .ast-mobile-header-wrap { display: none !important; }
.ast-container { max-width: 100% !important; padding: 0 !important; }
.site-content > .ast-container { max-width: 100% !important; }
#page { overflow-x: hidden; }
.entry-content > * { max-width: 100%; }
.ast-separate-container .ast-article-single { padding: 0; }
.ast-separate-container .entry-content { margin: 0; }
.ast-no-sidebar .entry-content .alignfull { margin-left: 0; margin-right: 0; }

/* ===== UTILITIES ===== */
.gn-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ===== 1. PROMO BAR ===== */
.gn-promo-bar {
    height: 40px;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gn-promo-bar p {
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #C8A96E;
    font-weight: 500;
}

/* ===== 2. HEADER ===== */
.gn-header {
    background: #000;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1A1A1A;
}
.gn-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1400px;
    margin: 0 auto;
}
.gn-logo a { display: flex; align-items: center; }
.gn-logo img { max-height: 45px; width: auto; filter: brightness(1.1); }
.gn-site-title { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.2em; color: #fff; }

.gn-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.gn-nav li { margin: 0; }
.gn-nav a {
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}
.gn-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C8A96E;
    transition: width 0.3s ease;
}
.gn-nav a:hover { color: #C8A96E; }
.gn-nav a:hover::after { width: 100%; }

.gn-header-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}
.gn-icon {
    color: #fff;
    transition: color 0.3s;
    position: relative;
}
.gn-icon:hover { color: #C8A96E; }
.gn-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #C8A96E;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gn-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.gn-mobile-toggle span {
    width: 22px;
    height: 1.5px;
    background: #fff;
    transition: all 0.3s;
}

/* ===== 3. HERO ===== */
.gn-hero {
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.gn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}
.gn-hero-content { position: relative; z-index: 2; padding: 20px; }
.gn-hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1;
    margin-bottom: 20px;
}
.gn-hero .subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-weight: 300;
}
.gn-btn {
    display: inline-block;
    padding: 16px 48px;
    background: #fff;
    color: #000;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}
.gn-btn:hover { background: transparent; color: #fff; }

/* ===== 4. FEATURED PRODUCTS ===== */
.gn-featured { background: #000; padding: 100px 40px; }
.gn-section-title {
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    color: #fff;
    margin-bottom: 60px;
    position: relative;
}
.gn-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #C8A96E;
    margin: 20px auto 0;
}
.gn-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== 5. PRODUCT CARD ===== */
.gn-product-card {
    background: #111;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gn-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(200,169,110,0.08);
}
.gn-product-card-link { display: block; color: inherit; text-decoration: none; }
.gn-product-card-img {
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #0a0a0a;
}
.gn-product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gn-product-card:hover .gn-product-card-img img { transform: scale(1.08); }
.gn-product-card-info { padding: 24px; }
.gn-product-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 600;
}
.gn-product-prices { display: flex; gap: 12px; align-items: center; }
.price-regular { text-decoration: line-through; color: #555; font-size: 0.9rem; }
.price-sale { color: #C8A96E; font-weight: 700; font-size: 1.1rem; }
.gn-product-card-actions { padding: 0 24px 24px; }
.gn-add-to-cart {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #fff;
    border: 1px solid #333;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
}
.gn-add-to-cart:hover { border-color: #C8A96E; color: #C8A96E; }

/* ===== 6. STORY SECTION ===== */
.gn-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    background: #000;
}
.gn-story-image { background-size: cover; background-position: center; min-height: 500px; }
.gn-story-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px;
}
.gn-story-eyebrow {
    font-size: 0.7rem;
    color: #C8A96E;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
    font-weight: 600;
}
.gn-story-title { font-size: 2.2rem; color: #fff; margin-bottom: 24px; line-height: 1.2; }
.gn-story-description {
    color: #888;
    line-height: 1.9;
    font-size: 0.9rem;
    margin-bottom: 30px;
}
.gn-btn-sm {
    display: inline-block;
    padding: 12px 32px;
    background: #fff;
    color: #000;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    align-self: flex-start;
}
.gn-btn-sm:hover { background: transparent; color: #fff; }

/* ===== 7. MENTALIDAD BANNER ===== */
.gn-mentalidad {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
}
.gn-mentalidad::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}
.gn-mentalidad-content { position: relative; z-index: 2; }
.gn-mentalidad-title { font-size: 3.5rem; color: #C8A96E; margin-bottom: 24px; }
.gn-mentalidad-text {
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===== 8. FEATURES BAR ===== */
.gn-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #1A1A1A;
    padding: 60px 40px;
    gap: 40px;
    max-width: 100%;
}
.gn-feature { text-align: center; }
.gn-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #C8A96E;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 20px;
}
.gn-feature-icon svg { width: 22px; height: 22px; }
.gn-feature-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}
.gn-feature-text { color: #666; font-size: 0.82rem; line-height: 1.6; }

/* ===== 9. FOOTER ===== */
.gn-footer { background: #0a0a0a; padding: 60px 40px 30px; color: #999; }
.gn-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}
.gn-footer-col h4 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    margin-bottom: 20px;
    font-weight: 700;
}
.gn-footer-col a {
    color: #555;
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}
.gn-footer-col a:hover { color: #C8A96E; }
.gn-footer-bottom {
    border-top: 1px solid #1A1A1A;
    padding-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #444;
}
.gn-footer-bottom p { margin: 0; }

/* ===== 10. PRODUCTOS PAGE ===== */
.gn-productos-hero {
    height: 40vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gn-productos-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}
.gn-productos-hero .gn-hero-content { position: relative; z-index: 2; }
.gn-productos-hero h1 {
    font-size: 3rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.15em;
    position: relative;
    z-index: 2;
}

/* ===== 11. WOOCOMMERCE OVERRIDES ===== */
.woocommerce .products, .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}
.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; }
.woocommerce .price { font-family: inherit; }

/* ===== 12. RESPONSIVE ===== */
@media (max-width: 768px) {
    .gn-header-inner { padding: 0 20px; }
    .gn-nav { display: none; }
    .gn-mobile-toggle { display: flex; }
    .gn-product-grid { grid-template-columns: 1fr; }
    .gn-story { grid-template-columns: 1fr; }
    .gn-story-text { padding: 40px 24px; }
    .gn-features { grid-template-columns: 1fr; }
    .gn-footer-grid { grid-template-columns: 1fr; }
    .gn-hero h1 { font-size: clamp(2rem, 10vw, 3.5rem); }
    .gn-mentalidad-title { font-size: 2rem; }
    .gn-featured { padding: 60px 20px; }
    .woocommerce .products, .woocommerce ul.products { grid-template-columns: 1fr !important; }
    .gn-container { padding: 0 20px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gn-product-grid { grid-template-columns: repeat(2, 1fr); }
    .woocommerce .products, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
