/*
Theme Name: Giambar Home Store
Theme URI: https://web.giambar.com.pe
Author: OpenAI
Author URI: https://openai.com
Description: Theme personalizado para ecommerce de productos para el hogar con WooCommerce.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: giambar-theme
*/

:root {
    --ghs-bg: #f8f4ee;
    --ghs-surface: #fffdf9;
    --ghs-surface-2: #efe7dd;
    --ghs-primary: #bf6d4b;
    --ghs-primary-dark: #95543a;
    --ghs-sage: #7f9378;
    --ghs-ink: #2f2b28;
    --ghs-muted: #6e655e;
    --ghs-border: #ddd1c5;
    --ghs-white: #ffffff;
    --ghs-shadow: 0 18px 40px rgba(72, 51, 39, 0.12);
    --ghs-radius: 18px;
    --ghs-container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ghs-ink);
    background:
        radial-gradient(circle at top left, rgba(191, 109, 75, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(127, 147, 120, 0.1), transparent 20%),
        var(--ghs-bg);
    line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.ghs-container {
    width: min(calc(100% - 2rem), var(--ghs-container));
    margin: 0 auto;
}

.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;
}

.ghs-topbar {
    background: var(--ghs-sage);
    color: var(--ghs-white);
    font-size: 0.92rem;
}

.ghs-topbar__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    align-items: center;
}

.ghs-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 244, 238, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(221, 209, 197, 0.8);
}

.ghs-header-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
}

.ghs-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.ghs-brand__mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--ghs-primary), #d9a58e);
    display: grid;
    place-items: center;
    color: var(--ghs-white);
    font-weight: 800;
    box-shadow: var(--ghs-shadow);
}

.ghs-brand__text {
    display: flex;
    flex-direction: column;
}

.ghs-brand__name {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.1;
}

.ghs-brand__tagline {
    color: var(--ghs-muted);
    font-size: 0.88rem;
}

.ghs-nav-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ghs-menu,
.ghs-category-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ghs-menu a,
.ghs-category-menu a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ghs-menu a:hover,
.ghs-category-menu a:hover,
.current-menu-item > a,
.current-menu-ancestor > a {
    background: var(--ghs-surface-2);
    color: var(--ghs-primary-dark);
}

.ghs-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ghs-button,
button.button,
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.3rem;
    border: 0;
    border-radius: 999px;
    background: var(--ghs-primary);
    color: var(--ghs-white);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ghs-button:hover,
button.button:hover,
.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--ghs-primary-dark);
    transform: translateY(-1px);
}

.ghs-button--ghost {
    background: transparent;
    color: var(--ghs-ink);
    border: 1px solid var(--ghs-border);
}

.ghs-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.05rem;
    border-radius: 999px;
    background: var(--ghs-white);
    box-shadow: var(--ghs-shadow);
}

.ghs-cart-link__count {
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--ghs-primary);
    color: var(--ghs-white);
    font-size: 0.82rem;
    font-weight: 800;
}

.ghs-mini-cart-floating {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
}

.ghs-breadcrumbs {
    font-size: 0.95rem;
    color: var(--ghs-muted);
    padding: 1rem 0 0;
}

.ghs-breadcrumbs a {
    color: var(--ghs-primary-dark);
}

.ghs-page-header,
.ghs-section-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.ghs-page-title,
.ghs-section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.1;
}

.ghs-page-subtitle,
.ghs-section-heading p {
    margin: 0;
    color: var(--ghs-muted);
    max-width: 52ch;
}

.ghs-main-content {
    padding: 2rem 0 4rem;
}

.ghs-grid {
    display: grid;
    gap: 1.25rem;
}

.ghs-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ghs-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ghs-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ghs-hero {
    padding: 2rem 0 1rem;
}

.ghs-hero__inner {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1.2fr 0.8fr;
}

.ghs-hero__copy,
.ghs-promo-banner,
.ghs-benefit,
.ghs-category-card,
.ghs-post-card,
.ghs-content-card,
.ghs-not-found {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 231, 221, 0.95));
    border: 1px solid var(--ghs-border);
    border-radius: 26px;
    box-shadow: var(--ghs-shadow);
}

.ghs-hero__copy,
.ghs-content-card,
.ghs-post-card,
.ghs-not-found,
.ghs-benefit,
.ghs-category-card,
.ghs-promo-banner {
    padding: clamp(1.4rem, 3vw, 2rem);
}

.ghs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(127, 147, 120, 0.12);
    color: var(--ghs-sage);
    font-weight: 800;
    margin-bottom: 1rem;
}

.ghs-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.98;
    max-width: 12ch;
}

.ghs-hero p,
.ghs-section-heading p,
.ghs-page-subtitle,
.ghs-meta {
    color: var(--ghs-muted);
}

.ghs-hero__actions,
.ghs-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ghs-hero__stats,
.ghs-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.ghs-stat {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--ghs-border);
    border-radius: 16px;
    padding: 1rem;
}

.ghs-stat strong {
    display: block;
    font-size: 1.4rem;
}

.ghs-hero__visual {
    min-height: 420px;
    padding: 1.25rem;
    display: grid;
    gap: 1rem;
    border: 1px solid var(--ghs-border);
    border-radius: 26px;
    box-shadow: var(--ghs-shadow);
    background:
        linear-gradient(180deg, rgba(127, 147, 120, 0.2), rgba(191, 109, 75, 0.15)),
        var(--ghs-surface);
}

.ghs-hero__visual-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.ghs-hero__tile {
    border-radius: 24px;
    min-height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.ghs-hero__tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(47, 43, 40, 0.35));
}

.ghs-hero__tile span {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 1;
    color: var(--ghs-white);
    font-weight: 700;
}

.ghs-section {
    padding: 1.25rem 0;
}

.ghs-category-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ghs-category-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ghs-product-grid,
.products {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.ghs-product-card,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.ghs-widget,
.ghs-filter-card,
.woocommerce-cart-form,
.checkout.woocommerce-checkout,
.woocommerce .cart_totals,
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count,
.woocommerce-tabs,
.woocommerce div.product .summary,
.woocommerce div.product .woocommerce-product-gallery {
    background: var(--ghs-surface);
    border: 1px solid var(--ghs-border);
    border-radius: var(--ghs-radius);
    box-shadow: var(--ghs-shadow);
}

.ghs-product-card,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.ghs-widget,
.ghs-filter-card,
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count,
.woocommerce-tabs,
.woocommerce div.product .summary,
.woocommerce .cart_totals,
.checkout.woocommerce-checkout {
    padding: 1rem 1.2rem;
}

.ghs-product-card__thumb,
.woocommerce ul.products li.product a img {
    border-radius: 16px;
    margin: 0 0 1rem;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--ghs-surface-2);
}

.ghs-product-card__category {
    display: inline-flex;
    margin-bottom: 0.5rem;
    color: var(--ghs-sage);
    font-weight: 700;
    font-size: 0.85rem;
}

.ghs-product-card h3,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    padding: 0;
}

.ghs-price,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--ghs-primary-dark);
    font-weight: 800;
    font-size: 1.05rem;
}

.ghs-benefit__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(191, 109, 75, 0.15);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.ghs-promo-banner {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.ghs-meta {
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
}

.entry-content > * + *,
.ghs-content-card > * + * {
    margin-top: 1rem;
}

.ghs-sidebar {
    display: grid;
    gap: 1rem;
}

.ghs-footer {
    margin-top: 3rem;
    padding: 3rem 0 1rem;
    background: #f1e7dc;
    border-top: 1px solid var(--ghs-border);
}

.ghs-footer__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
}

.ghs-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.ghs-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--ghs-white);
    border: 1px solid var(--ghs-border);
}

.ghs-footer__bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ghs-border);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--ghs-muted);
}

.ghs-shop-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 300px minmax(0, 1fr);
}

.ghs-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ghs-category-pills a {
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    background: var(--ghs-surface-2);
}

.woocommerce .quantity .qty,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.search-field {
    width: 100%;
    border: 1px solid var(--ghs-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: var(--ghs-white);
}

.woocommerce table.shop_table {
    border: 0;
    border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border-color: var(--ghs-border);
    padding: 1rem 0.75rem;
}

.woocommerce span.onsale {
    background: var(--ghs-sage);
}

.woocommerce div.product {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.woocommerce-product-gallery__wrapper img {
    border-radius: 20px;
}

.ghs-empty-state {
    padding: 2rem;
    border-radius: var(--ghs-radius);
    background: var(--ghs-surface);
    border: 1px solid var(--ghs-border);
    text-align: center;
}

.ghs-scroll-top {
    position: fixed;
    right: 1rem;
    bottom: 5.25rem;
    z-index: 35;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 0;
    background: var(--ghs-ink);
    color: var(--ghs-white);
    display: inline-grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(8px);
}

.ghs-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .ghs-header-main,
    .ghs-hero__inner,
    .ghs-shop-layout,
    .ghs-footer__grid,
    .ghs-grid--4,
    .ghs-grid--3,
    .ghs-product-grid,
    .products,
    .ghs-benefits,
    .ghs-promo-banner {
        grid-template-columns: 1fr 1fr;
    }

    .ghs-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .ghs-header-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ghs-topbar__inner,
    .ghs-page-header,
    .ghs-section-heading,
    .ghs-footer__bottom,
    .ghs-promo-banner,
    .ghs-hero__actions,
    .ghs-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .ghs-grid--2,
    .ghs-grid--3,
    .ghs-grid--4,
    .ghs-hero__inner,
    .ghs-product-grid,
    .products,
    .ghs-benefits,
    .ghs-shop-layout,
    .ghs-footer__grid,
    .ghs-hero__visual-grid,
    .ghs-promo-banner,
    .ghs-hero__stats {
        grid-template-columns: 1fr;
    }

    .ghs-menu,
    .ghs-category-menu {
        gap: 0.4rem;
    }

    .ghs-menu a,
    .ghs-category-menu a {
        width: 100%;
        justify-content: center;
    }

    .ghs-mini-cart-floating {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .ghs-scroll-top {
        right: 0.75rem;
        bottom: 5rem;
    }
}
