/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
Description: GeneratePress Child Theme for Galosom.
Author: Galosom
*/

:root {
    --galosom-black: #111111;
    --galosom-charcoal: #25211d;
    --galosom-gold: #b8934b;
    --galosom-cream: #f8f5ef;
    --galosom-light: #ffffff;
    --galosom-gray: #666666;
    --galosom-border: #e8e1d4;
}

body {
    color: var(--galosom-black);
    background: var(--galosom-light);
}

.galosom-container {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
}

.galosom-section {
    padding: 80px 0;
}

.galosom-eyebrow {
    color: var(--galosom-gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.galosom-hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #ffffff 0%, #f8f5ef 100%);
}

.galosom-hero.has-hero-image {
    background-image: var(--galosom-hero-desktop-image);
    background-position: center;
    background-size: cover;
}

.galosom-hero .galosom-eyebrow {
    color: #d85f14;
}

.galosom-hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1.05;
    margin-bottom: 24px;
}

.galosom-hero-text {
    max-width: 620px;
    color: #d85f14;
    font-size: 18px;
    line-height: 1.8;
}

.galosom-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.galosom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.galosom-btn-primary {
    background: var(--galosom-black);
    color: #ffffff;
}

.galosom-btn-secondary {
    border: 1px solid var(--galosom-black);
    color: var(--galosom-black);
}

.galosom-video-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #ffffff;
    color: var(--galosom-black);
    padding: 0;
}

.galosom-video-banner-media {
    position: relative;
    width: 100vw;
    aspect-ratio: 16 / 5;
    margin: 0;
    overflow: hidden;
    background: #111111;
}

.galosom-product-video,
.galosom-product-video-embed,
.galosom-product-video-youtube,
.galosom-product-video-poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111111;
    border: 0;
}

.galosom-product-video-youtube {
    background-image: var(--galosom-video-desktop-poster);
    background-position: center;
    background-size: cover;
    text-decoration: none;
}

.galosom-video-banner-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.galosom-video-banner-media > iframe.galosom-product-video-embed,
.galosom-product-video-embed iframe {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 56.25vw;
    min-height: 100%;
    border: 0;
    transform: translate(-50%, -50%);
}

.galosom-grid {
    display: grid;
    gap: 24px;
}

.galosom-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.galosom-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.galosom-card,
.galosom-review-card,
.galosom-guarantee {
    background: #ffffff;
    border: 1px solid var(--galosom-border);
    border-radius: 20px;
    padding: 32px;
    min-height: 140px;
    text-decoration: none;
    color: var(--galosom-black);
    box-shadow: 0 18px 45px rgba(0,0,0,0.05);
}

.galosom-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}

.galosom-card.has-card-image {
    padding: 0;
}

.galosom-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--galosom-cream);
}

.galosom-card-image picture,
.galosom-card-image img,
.galosom-image-placeholder picture,
.galosom-image-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
}

.galosom-card-image img,
.galosom-image-placeholder img {
    object-fit: cover;
}

.galosom-card-title {
    display: block;
    font-weight: 700;
}

.galosom-card.has-card-image .galosom-card-title {
    padding: 0 24px 26px;
}

.galosom-card:hover {
    border-color: var(--galosom-gold);
}

.galosom-section-heading-row {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.galosom-section-heading-row h2 {
    margin: 0;
}

.galosom-collections {
    padding-bottom: 40px;
}

.galosom-shop-by-slots {
    padding-top: 40px;
}

.galosom-bestseller-shell {
    position: relative;
}

.galosom-bestseller-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(17, 17, 17, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.galosom-bestseller-nav.is-prev {
    left: -24px;
}

.galosom-bestseller-nav.is-next {
    right: -24px;
}

.galosom-bestseller-nav:hover,
.galosom-bestseller-nav:focus {
    background: rgba(17, 17, 17, 0.88);
    transform: translateY(-50%) scale(1.04);
}

.galosom-bestseller-nav:disabled {
    opacity: 1;
    background: rgba(17, 17, 17, 0.48);
    cursor: default;
    pointer-events: none;
}

.galosom-bestseller-carousel {
    display: grid;
    grid-auto-columns: calc((100% - 72px) / 4);
    grid-auto-flow: column;
    gap: 24px;
    overflow-x: auto;
    padding: 2px 2px 18px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.galosom-bestseller-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--galosom-border);
    border-radius: 16px;
    box-shadow: none;
    scroll-snap-align: start;
}

.galosom-bestseller-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ffffff;
    text-decoration: none;
}

.galosom-bestseller-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    color: #ffffff;
    background: #d85f14;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.14);
}

.galosom-bestseller-badge.is-capacity {
    background: var(--galosom-gold);
}

.galosom-bestseller-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform 0.25s ease;
}

.galosom-bestseller-card:hover .galosom-bestseller-image img {
    transform: scale(1.03);
}

.galosom-bestseller-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.galosom-bestseller-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--galosom-black);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.galosom-bestseller-title:hover,
.galosom-bestseller-title:focus {
    color: var(--galosom-gold);
}

.galosom-bestseller-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-height: 22px;
    color: var(--galosom-gray);
    font-size: 13px;
}

.galosom-bestseller-stars {
    position: relative;
    display: inline-block;
    width: 78px;
    color: #d8d1c6;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1;
}

.galosom-bestseller-stars::before {
    content: "★★★★★";
}

.galosom-bestseller-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    overflow: hidden;
    color: var(--galosom-gold);
    white-space: nowrap;
}

.galosom-bestseller-review-count {
    color: var(--galosom-gray);
}

.galosom-bestseller-price {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    color: var(--galosom-black);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.galosom-bestseller-price del {
    color: var(--galosom-gray);
    font-size: 14px;
    font-weight: 600;
    opacity: 0.78;
    order: 2;
}

.galosom-bestseller-price ins {
    color: var(--galosom-black);
    font-size: 18px;
    font-weight: 900;
    order: 1;
    text-decoration: none;
}

.galosom-bestseller-price > .amount,
.galosom-bestseller-price > bdi {
    font-size: 18px;
    font-weight: 900;
}

.galosom-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.galosom-image-placeholder {
    min-height: 360px;
    border-radius: 24px;
    background: var(--galosom-cream);
    border: 1px solid var(--galosom-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--galosom-gray);
    overflow: hidden;
}

.galosom-image-placeholder.has-image {
    padding: 0;
    background: #ffffff;
}

.galosom-new-product .galosom-image-placeholder {
    aspect-ratio: 14 / 7.5;
    min-height: 360px;
}

.galosom-new-product .galosom-image-placeholder.has-image {
    background: var(--galosom-cream);
}

.galosom-new-product .galosom-image-placeholder img {
    object-fit: cover;
    padding: 0;
}

.galosom-reviews {
    overflow: hidden;
    background: #ffffff;
}

.galosom-reviews-heading {
    margin-bottom: 38px;
    text-align: center;
}

.galosom-reviews-heading h2 {
    margin: 0;
}

.galosom-reviews-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--galosom-black);
    font-size: 14px;
    line-height: 1.2;
}

.galosom-reviews-summary > span:nth-of-type(3) {
    color: #ffc933;
}

.galosom-home-review-stars {
    position: relative;
    display: inline-block;
    width: 116px;
    color: #ffe3a1;
    font-size: 23px;
    letter-spacing: 1px;
    line-height: 1;
    white-space: nowrap;
}

.galosom-home-review-stars::before {
    content: "★★★★★";
}

.galosom-home-review-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    overflow: hidden;
    color: #ffc933;
    white-space: nowrap;
}

.galosom-home-review-stars.is-summary {
    width: 100px;
    font-size: 20px;
}

.galosom-home-review-shell {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 16px;
}

.galosom-home-review-carousel {
    display: grid;
    grid-auto-columns: clamp(190px, 16vw, 220px);
    grid-auto-flow: column;
    gap: 20px;
    justify-content: start;
    min-width: 0;
    overflow-x: auto;
    padding: 0 0 14px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.galosom-home-review-carousel::-webkit-scrollbar {
    display: none;
}

.galosom-home-review-card {
    display: grid;
    min-height: 390px;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    scroll-snap-align: center;
}

.galosom-home-review-image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--galosom-cream);
    text-decoration: none;
}

.galosom-home-review-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galosom-home-review-image video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: cover;
}

.galosom-home-review-image.is-video-placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(16, 16, 16, 0.28), rgba(16, 16, 16, 0.72)),
        radial-gradient(circle at 30% 22%, rgba(191, 148, 72, 0.52), transparent 34%),
        linear-gradient(135deg, #252525, #111111);
    border: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.galosom-home-review-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.galosom-home-review-play::before {
    content: "";
    display: block;
    margin-left: 4px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid var(--galosom-black);
}

.galosom-home-review-image.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--galosom-gray);
    font-size: 13px;
}

.galosom-home-review-body {
    display: grid;
    grid-template-rows: minmax(70px, auto) auto auto auto;
    justify-items: center;
    gap: 10px;
    padding: 16px 18px 18px;
    text-align: center;
}

.galosom-home-review-text {
    display: -webkit-box;
    min-height: 70px;
    margin: 0;
    overflow: hidden;
    color: var(--galosom-black);
    font-size: 16px;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.galosom-home-review-author {
    color: var(--galosom-black);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.galosom-home-review-product {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--galosom-gray);
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.galosom-home-review-product:hover,
.galosom-home-review-product:focus {
    color: var(--galosom-gold);
}

.galosom-home-review-nav {
    position: static;
    width: 40px;
    height: 56px;
    padding: 0;
    color: var(--galosom-black);
    background: transparent;
    border: 0;
    font-size: 52px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.galosom-home-review-nav.is-prev {
    grid-column: 1;
}

.galosom-home-review-nav.is-next {
    grid-column: 3;
}

.galosom-home-review-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.galosom-review-card {
    border-radius: 24px;
    font-size: 17px;
    line-height: 1.7;
}

.galosom-review-card p {
    margin: 0;
}

.galosom-review-card strong {
    display: block;
    margin-top: 18px;
    color: var(--galosom-gold);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.galosom-guarantees {
    background: var(--galosom-black);
    color: #ffffff;
}

.galosom-guarantee {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #ffffff;
    text-align: center;
    font-weight: 700;
}

.galosom-guarantees h2 {
    margin: 0 0 28px;
    color: #ffffff;
}

.galosom-guarantee strong,
.galosom-guarantee span {
    display: block;
}

.galosom-guarantee span {
    margin-top: 8px;
    color: rgba(255,255,255,0.74);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .galosom-section {
        padding: 56px 0;
    }

    .galosom-collections {
        padding-bottom: 28px;
    }

    .galosom-shop-by-slots {
        padding-top: 28px;
    }

    .galosom-collections .galosom-section-heading-row,
    .galosom-shop-by-slots .galosom-section-heading-row {
        margin-bottom: 18px;
    }

    .galosom-collections h2,
    .galosom-shop-by-slots h2 {
        max-width: 280px;
        font-size: 28px;
        line-height: 1.12;
    }

    .galosom-shop-by-slots h2 {
        margin: 0 0 18px;
    }

    .galosom-hero {
        min-height: 560px;
        align-items: flex-start;
        box-sizing: border-box;
        position: relative;
    }

    .galosom-hero .galosom-container {
        display: flex;
        flex-direction: column;
    }

    .galosom-hero .galosom-eyebrow {
        margin-bottom: 12px;
    }

    .galosom-hero h1 {
        width: min(100%, 330px);
        max-width: 100%;
        font-size: clamp(32px, 9vw, 40px);
        margin-bottom: 0;
        overflow-wrap: anywhere;
    }

    .galosom-hero-text {
        width: min(100%, 330px);
        max-width: 100%;
        font-size: 16px;
        line-height: 1.7;
        overflow-wrap: anywhere;
        display: none;
    }

    .galosom-hero.has-hero-image {
        background-image: var(--galosom-hero-mobile-image, var(--galosom-hero-desktop-image));
        background-position: center;
    }

    .galosom-hero .galosom-buttons {
        position: absolute;
        right: 20px;
        bottom: 10px;
        left: 20px;
        z-index: 2;
        gap: 10px;
        margin-top: 0;
        padding-bottom: 0;
    }

    .galosom-hero .galosom-btn {
        min-height: 40px;
        padding: 0 18px;
        font-size: 11px;
    }

    .galosom-video-banner {
        padding: 0;
    }

    .galosom-product-video,
    .galosom-product-video-embed,
    .galosom-product-video-youtube,
    .galosom-product-video-poster {
        min-height: 220px;
    }

    .galosom-video-banner-media {
        aspect-ratio: 16 / 9;
        min-height: 220px;
    }

    .galosom-product-video-youtube {
        background-image: var(--galosom-video-mobile-poster, var(--galosom-video-desktop-poster));
    }

    .galosom-grid-4,
    .galosom-grid-3,
    .galosom-two-column {
        grid-template-columns: 1fr;
    }

    .galosom-bestseller-carousel {
        grid-auto-columns: 100%;
        gap: 0;
        overflow-x: hidden;
        padding: 0;
        scrollbar-width: none;
    }

    .galosom-bestseller-carousel::-webkit-scrollbar {
        display: none;
    }

    .galosom-bestseller-card {
        width: 100%;
        max-width: 100%;
    }

    .galosom-bestseller-nav {
        top: 36%;
        width: 38px;
        height: 38px;
        background: rgba(17, 17, 17, 0.76);
        font-size: 24px;
    }

    .galosom-bestseller-nav.is-prev {
        left: 10px;
    }

    .galosom-bestseller-nav.is-next {
        right: 10px;
    }

    .galosom-new-product .galosom-image-placeholder {
        aspect-ratio: 1 / 1;
        min-height: 0;
    }

    .galosom-new-product .galosom-image-placeholder img {
        object-fit: contain;
    }

    .galosom-reviews-heading {
        margin-bottom: 28px;
    }

    .galosom-home-review-shell {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 8px;
    }

    .galosom-home-review-carousel {
        grid-auto-columns: min(64vw, 220px);
        justify-content: start;
        margin-right: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .galosom-home-review-card {
        min-height: 380px;
    }

    .galosom-home-review-nav {
        width: 34px;
        height: 48px;
        font-size: 42px;
    }

    .galosom-home-review-nav.is-prev {
        grid-column: 1;
    }

    .galosom-home-review-nav.is-next {
        grid-column: 3;
    }
}

/* WooCommerce product-card fallback: keeps related products readable. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
body ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link,
body ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    color: inherit !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
body ul.products li.product .woocommerce-loop-product__title {
    order: 2 !important;
    display: -webkit-box !important;
    min-height: calc(1.58em * 3) !important;
    max-height: calc(1.58em * 3) !important;
    margin: 22px 0 18px !important;
    overflow: hidden !important;
    line-height: 1.58 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
}

.woocommerce ul.products li.product .star-rating,
.woocommerce-page ul.products li.product .star-rating,
body ul.products li.product .star-rating {
    order: 3 !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    min-height: 18px !important;
    margin: 4px 0 12px !important;
    color: #b8934b !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.woocommerce ul.products li.product .star-rating::before,
.woocommerce ul.products li.product .star-rating span,
.woocommerce ul.products li.product .star-rating span::before,
.woocommerce-page ul.products li.product .star-rating::before,
.woocommerce-page ul.products li.product .star-rating span,
.woocommerce-page ul.products li.product .star-rating span::before,
body ul.products li.product .star-rating::before,
body ul.products li.product .star-rating span,
body ul.products li.product .star-rating span::before {
    color: #b8934b !important;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
body ul.products li.product .price {
    order: 4 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin: 8px 0 0 !important;
    border-bottom: 0 !important;
}
