/* ============================================================
   GRETA WOO CUSTOMIZER — WIDGETS CSS
   Estilos para Header, Footer e Instagram Grid widget
   ============================================================ */

/* ===== HEADER ===== */
.gw-header {
  background: var(--gw-header-bg, #FFFFFF);
  color: var(--gw-header-text, #1A1A1A);
  border-bottom: 0.5px solid var(--gw-border);
  position: relative;
  z-index: 100;
}
.gw-header.gw-header-sticky {
  position: sticky;
  top: 0;
}
.gw-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
}
.gw-header-logo {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}
.gw-header-logo-text {
  font-family: var(--gw-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--gw-dark);
}
.gw-header-logo img {
  max-height: 40px;
  width: auto;
}

/* Nav desktop */
.gw-header-nav {
  display: flex;
  justify-content: center;
}
.gw-header-menu {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gw-header-menu li { margin: 0; }
.gw-header-menu a {
  font-family: var(--gw-sans);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gw-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
  padding: 4px 0;
  position: relative;
}
.gw-header-menu a:hover { color: var(--gw-primary); }
.gw-header-menu .current-menu-item > a,
.gw-header-menu .current-menu-ancestor > a {
  color: var(--gw-primary);
}
.gw-header-no-menu {
  font-size: 11px;
  color: #999;
  margin: 0;
}

/* Iconos derecha */
.gw-header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}
.gw-header-icon {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--gw-dark);
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.gw-header-icon:hover { color: var(--gw-primary); }
.gw-header-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--gw-primary);
  color: var(--gw-dark);
  font-size: 9px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--gw-sans);
}

/* Mobile toggle */
.gw-header-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.gw-header-mobile-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--gw-dark);
  transition: all .2s;
}

/* Search overlay */
.gw-header-search {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 0.5px solid var(--gw-border);
  padding: 18px 30px;
  z-index: 99;
}
.gw-header-search.is-open { display: block; }
.gw-header-search form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  position: relative;
}
.gw-header-search input[type="search"] {
  flex: 1;
  border: 0.5px solid var(--gw-cream-dark);
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--gw-sans);
  outline: none;
}
.gw-header-search button[type="submit"] {
  background: var(--gw-dark);
  color: var(--gw-primary);
  border: none;
  padding: 12px 24px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--gw-sans);
}
.gw-header-search-close {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gw-dark);
  cursor: pointer;
}

/* Header responsive */
@media (max-width: 900px) {
  .gw-header-inner {
    grid-template-columns: auto 1fr auto;
    padding: 14px 18px;
  }
  .gw-header-mobile-toggle { display: flex; }
  .gw-header-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 30px 30px;
    transition: left .25s ease;
    z-index: 200;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  }
  .gw-header-nav.is-open { left: 0; }
  .gw-header-menu {
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }
  .gw-header-menu a {
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 0.5px solid var(--gw-border);
    display: block;
  }
  .gw-header-logo-text { font-size: 18px; letter-spacing: 3px; }
  .gw-header-icons { gap: 10px; }
}


/* ===== FOOTER ===== */
.gw-footer {
  background: var(--gw-dark);
  color: #d4ccc0;
  font-family: var(--gw-sans);
  margin-top: 0;
}
.gw-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 30px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
}
.gw-footer-col {
  font-size: 13px;
  line-height: 1.7;
}
.gw-footer-col-title {
  font-family: var(--gw-sans);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gw-primary);
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 18px;
}
.gw-footer-brand-title {
  font-family: var(--gw-serif);
  font-size: 24px;
  color: var(--gw-primary);
  letter-spacing: 4px;
  margin: 0 0 14px;
  font-weight: 500;
}
.gw-footer-brand-desc {
  font-size: 12px;
  color: #a8a09a;
  margin: 0 0 18px;
  line-height: 1.7;
}
.gw-footer-social {
  display: flex;
  gap: 14px;
}
.gw-footer-social a {
  width: 32px;
  height: 32px;
  border: 0.5px solid var(--gw-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gw-primary);
  text-decoration: none;
  transition: all .2s;
}
.gw-footer-social a:hover {
  background: var(--gw-primary);
  color: var(--gw-dark);
}
.gw-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gw-footer-links li {
  margin-bottom: 10px;
}
.gw-footer-links a {
  color: #a8a09a;
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}
.gw-footer-links a:hover { color: var(--gw-primary); }

.gw-footer-news-text {
  font-size: 12px;
  color: #a8a09a;
  margin: 0 0 16px;
  line-height: 1.6;
}
.gw-footer-news-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gw-footer-news-form input[type="email"] {
  background: rgba(255,255,255,0.05);
  border: 0.5px solid #444;
  padding: 11px 14px;
  font-size: 12px;
  color: #fff;
  font-family: var(--gw-sans);
  outline: none;
}
.gw-footer-news-form input[type="email"]::placeholder { color: #777; }
.gw-footer-news-form button {
  background: var(--gw-primary);
  color: var(--gw-dark);
  border: none;
  padding: 11px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--gw-sans);
  transition: background .2s;
}
.gw-footer-news-form button:hover { background: var(--gw-primary-dark); color: #fff; }

/* Footer bottom */
.gw-footer-bottom {
  border-top: 0.5px solid #333;
  padding: 22px 30px;
}
.gw-footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.gw-footer-copyright {
  font-size: 11px;
  color: #888;
  letter-spacing: .5px;
}
.gw-footer-payment {
  font-size: 11px;
  color: #888;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .gw-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 24px 30px;
  }
}
@media (max-width: 600px) {
  .gw-footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .gw-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}


/* ===== INSTAGRAM GRID WIDGET ===== */
.gw-instagram-grid-widget {
  font-family: var(--gw-sans);
}
.gw-instagram-grid-widget .gw-insta-handle-link {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-bottom: 16px;
}
.gw-instagram-grid-widget .gw-insta-handle {
  font-size: 14px;
  color: var(--gw-primary);
  letter-spacing: 2px;
  font-weight: 500;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.gw-instagram-grid-widget .gw-insta-handle-link:hover .gw-insta-handle {
  border-color: var(--gw-primary);
}
.gw-instagram-grid-widget .gw-insta-grid {
  display: grid;
  grid-template-columns: repeat(var(--gw-insta-cols, 6), 1fr);
  gap: var(--gw-insta-gap, 8px);
  max-width: 1200px;
  margin: 0 auto;
}
.gw-instagram-grid-widget .gw-insta-tile {
  aspect-ratio: var(--gw-insta-aspect, 1/1);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: block;
  text-decoration: none;
}
.gw-instagram-grid-widget .gw-insta-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gw-instagram-grid-widget .gw-insta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity .25s;
}
.gw-instagram-grid-widget .gw-insta-overlay span {
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
}
.gw-instagram-grid-widget .gw-insta-overlay-icon {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}

/* Hover effects */
.gw-insta-hover-zoom .gw-insta-tile:hover img { transform: scale(1.08); }
.gw-insta-hover-darken .gw-insta-tile:hover img { filter: brightness(0.7); }
.gw-insta-hover-icon .gw-insta-tile:hover .gw-insta-overlay-icon { opacity: 1; }
.gw-insta-tile:hover .gw-insta-overlay { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
  .gw-instagram-grid-widget .gw-insta-grid {
    grid-template-columns: repeat(var(--gw-insta-cols-mobile, 3), 1fr);
  }
}


/* ===== PRODUCT GRID WIDGET ===== */
.gw-products {
  display: grid;
  grid-template-columns: repeat(var(--gw-products-cols, 4), 1fr);
  gap: var(--gw-products-gap, 20px);
  font-family: var(--gw-sans);
}
.gw-product-card {
  text-align: center;
  transition: transform .25s ease;
}
.gw-product-card:hover { transform: translateY(-3px); }

.gw-product-img {
  display: block;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  background: var(--gw-cream-dark);
}
.gw-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gw-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gw-primary);
  color: var(--gw-dark);
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 5px 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.gw-product-info { padding: 0 4px; }
.gw-product-cat {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gw-primary);
  margin-bottom: 4px;
  font-weight: 500;
}
.gw-product-title {
  font-family: var(--gw-serif);
  font-size: 17px;
  margin: 0 0 4px;
  font-weight: 400;
  line-height: 1.2;
}
.gw-product-title a {
  color: var(--gw-dark);
  text-decoration: none;
}
.gw-product-title a:hover { color: var(--gw-primary); }
.gw-product-notes {
  font-size: 11px;
  color: var(--gw-text-muted);
  margin: 0 0 10px;
  line-height: 1.4;
  font-style: italic;
}
.gw-product-price {
  font-family: var(--gw-serif);
  font-size: 18px;
  color: var(--gw-dark);
  margin: 6px 0;
}
.gw-product-price del { color: var(--gw-text-light); font-size: 14px; margin-right: 6px; }
.gw-product-price ins { color: var(--gw-accent); text-decoration: none; font-weight: 500; }

.gw-product-btn { margin-top: 10px; }
.gw-product-btn .button,
.gw-product-btn .added_to_cart {
  display: inline-block;
  padding: 10px 18px;
  background: var(--gw-dark);
  color: var(--gw-primary);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 0;
  font-family: var(--gw-sans);
  transition: background .2s;
  cursor: pointer;
}
.gw-product-btn .button:hover { background: #000; color: #fff; }

/* Estilo OSCURO (para fondo negro en best sellers masculinos) */
.gw-products-dark .gw-product-cat { color: var(--gw-primary); }
.gw-products-dark .gw-product-title a { color: #fff; }
.gw-products-dark .gw-product-title a:hover { color: var(--gw-primary); }
.gw-products-dark .gw-product-price { color: #fff; }
.gw-products-dark .gw-product-notes { color: #aaa; }
.gw-products-dark .gw-product-btn .button {
  background: var(--gw-primary);
  color: var(--gw-dark);
}
.gw-products-dark .gw-product-btn .button:hover { background: #fff; color: var(--gw-dark); }

/* Empty state */
.gw-products-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gw-text-muted);
  font-family: var(--gw-sans);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
  .gw-products { grid-template-columns: repeat(var(--gw-products-cols-tablet, 3), 1fr); }
}
@media (max-width: 600px) {
  .gw-products { grid-template-columns: repeat(var(--gw-products-cols-mobile, 2), 1fr); gap: 14px; }
  .gw-product-title { font-size: 15px; }
  .gw-product-price { font-size: 16px; }
}
