/**
 * Hygo Homepage — front-end styles (v2.7.13)
 *
 * All class names are prefixed .hygo-hp-* to guarantee zero conflict with
 * GeneratePress, WooCommerce, or any other plugin's classes. Per-block
 * dynamic values (colours, padding, columns) are emitted inline by the
 * renderers in inc/homepage-blocks.php with per-instance uid selectors; this
 * file provides the structural layout and defaults only.
 *
 * Order below matches the block registry order in homepage-blocks.php:
 * shared → hero (text/image/carousel) → product cards + shelf + pagination →
 * category grid → trust row → cta banner → custom html → spacer.
 */

/* ==================================================================
 * SHARED LAYOUT
 * ================================================================== */

.hygo-hp {
    /* No wrapping padding — blocks decide their own bleed. GeneratePress's
       parent layout wraps this in .site-main; we sit inside that. */
}

.hygo-hp-block {
    display: block;
}

.hygo-hp-empty {
    padding: 60px 20px;
    text-align: center;
    color: #555;
    background: #f7f7f7;
    border: 1px dashed #ccc;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 720px;
}

.hygo-hp-empty-shelf,
.hygo-hp-empty-feed {
    padding: 20px;
    background: #fff3cd;
    border: 1px dashed #ffc107;
    color: #664d03;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
}

/* Full-width layouts break out of the theme container to reach the viewport
   edges. We do this with negative margins on the primary content wrapper.
   This works reliably with GeneratePress's default 1200px container. */
.hygo-hp-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
}

.hygo-hp-contained {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.hygo-hp-align-left   { text-align: left; }
.hygo-hp-align-center { text-align: center; }
.hygo-hp-align-right  { text-align: right; }

.hygo-hp-align-left   .hygo-hp-hero-inner { margin-left: 0; margin-right: auto; }
.hygo-hp-align-center .hygo-hp-hero-inner { margin-left: auto; margin-right: auto; }
.hygo-hp-align-right  .hygo-hp-hero-inner { margin-left: auto; margin-right: 0; }

.hygo-hp-valign-top    { align-items: flex-start; }
.hygo-hp-valign-center { align-items: center; }
.hygo-hp-valign-bottom { align-items: flex-end; }

/* ==================================================================
 * HERO — shared visual language for text / image / carousel
 * ================================================================== */

.hygo-hp-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hygo-hp-hero-inner {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.hygo-hp-hero-title {
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.hygo-hp-hero-subtitle {
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 24px;
    opacity: 0.92;
}

.hygo-hp-hero-cta {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    letter-spacing: 0.02em;
    line-height: 1;
    border: 0;
    cursor: pointer;
}

.hygo-hp-hero-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

/* ==================================================================
 * CAROUSEL — extends hero
 * ================================================================== */

.hygo-hp-carousel {
    position: relative;
    overflow: hidden;
}

.hygo-hp-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    box-sizing: border-box;
}

.hygo-hp-car-prev,
.hygo-hp-car-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 0;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .18s ease;
}
.hygo-hp-car-prev { left: 16px; }
.hygo-hp-car-next { right: 16px; }
.hygo-hp-car-prev:hover,
.hygo-hp-car-next:hover { background: rgba(0,0,0,0.75); }

.hygo-hp-car-dots {
    position: absolute;
    bottom: 20px;
    left: 0; right: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
    z-index: 3;
}
.hygo-hp-car-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.hygo-hp-car-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

/* ==================================================================
 * PRODUCT CARDS + SHELF + PAGINATION
 * ================================================================== */

.hygo-hp-shelf {
    padding-top: 40px;
    padding-bottom: 40px;
}

.hygo-hp-shelf-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.hygo-hp-shelf-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.hygo-hp-shelf-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hygo-hp-pcard {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease;
}
.hygo-hp-pcard:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}
.hygo-hp-pcard:hover .hygo-hp-pcard-imgwrap {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.hygo-hp-pcard-imgwrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: box-shadow .2s ease;
}

.hygo-hp-pcard-imgwrap img,
.hygo-hp-pcard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hygo-hp-pcard-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    line-height: 1;
}

.hygo-hp-pcard-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 6px;
    color: #111;
    /* Clamp to 2 lines to keep card heights aligned */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hygo-hp-pcard-rating {
    font-size: 12px;
    margin: 0 0 4px;
    color: #f59e0b;
}
.hygo-hp-pcard-rating .star-rating {
    font-size: 12px;
    margin: 0;
}

.hygo-hp-pcard-price {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin: 0;
}
.hygo-hp-pcard-price del {
    color: #999;
    font-weight: 400;
    margin-right: 6px;
    font-size: 13px;
}
.hygo-hp-pcard-price ins {
    text-decoration: none;
    color: #ef4444;
}

/* Pagination */
.hygo-hp-pagination {
    margin: 40px 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.hygo-hp-page-item {
    display: inline-block;
}
.hygo-hp-page-item a,
.hygo-hp-page-item span.current,
.hygo-hp-page-item span.dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #111;
    font-weight: 500;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}
.hygo-hp-page-item a:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
}
.hygo-hp-page-item span.current {
    background: #111;
    color: #fff;
}
.hygo-hp-page-item span.dots {
    background: transparent;
}

/* ==================================================================
 * CATEGORY GRID
 * ================================================================== */

.hygo-hp-cat {
    padding-top: 40px;
    padding-bottom: 40px;
}

.hygo-hp-cat-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.hygo-hp-cat-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.hygo-hp-cat-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hygo-hp-cat-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform .2s ease;
}
.hygo-hp-cat-tile:hover {
    transform: translateY(-3px);
    text-decoration: none;
}
.hygo-hp-cat-tile:hover .hygo-hp-cat-tile-img {
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.hygo-hp-cat-tile-img {
    aspect-ratio: 1 / 1;
    background: #f0f0f0 center/cover no-repeat;
    margin-bottom: 12px;
    transition: box-shadow .2s ease;
}

.hygo-hp-cat-shape-square   .hygo-hp-cat-tile-img { border-radius: 0; }
.hygo-hp-cat-shape-rounded  .hygo-hp-cat-tile-img { border-radius: 12px; }
.hygo-hp-cat-shape-circle   .hygo-hp-cat-tile-img { border-radius: 50%; }

.hygo-hp-cat-label {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #111;
}
.hygo-hp-cat-count {
    color: #888;
    font-weight: 400;
    font-size: 13px;
}

/* ==================================================================
 * TRUST ROW
 * ================================================================== */

.hygo-hp-trust {
    box-sizing: border-box;
}

.hygo-hp-trust-heading {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.hygo-hp-trust-lead {
    font-size: 15px;
    margin: 0 0 20px;
    line-height: 1.5;
}

.hygo-hp-trust-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.hygo-hp-trust-item {
    display: flex;
    flex-direction: column;
    align-items: inherit;
    gap: 8px;
    padding: 12px 8px;
}
.hygo-hp-align-center .hygo-hp-trust-item { align-items: center; text-align: center; }
.hygo-hp-align-left   .hygo-hp-trust-item { align-items: flex-start; text-align: left; }

.hygo-hp-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
}
.hygo-hp-trust-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hygo-hp-trust-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.hygo-hp-trust-subtitle {
    font-size: 13px;
    line-height: 1.4;
}

/* ==================================================================
 * CTA BANNER
 * ================================================================== */

.hygo-hp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.hygo-hp-cta-horizontal { justify-content: space-between; text-align: left; }
.hygo-hp-cta-stacked    { flex-direction: column; justify-content: center; text-align: center; }

.hygo-hp-cta-text {
    flex: 1 1 auto;
    min-width: 240px;
}

.hygo-hp-cta-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hygo-hp-cta-sub {
    font-size: 15px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.hygo-hp-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    flex: 0 0 auto;
    line-height: 1;
    white-space: nowrap;
}
.hygo-hp-cta-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

/* ==================================================================
 * CUSTOM HTML
 * ================================================================== */

.hygo-hp-custom {
    box-sizing: border-box;
}
.hygo-hp-custom.hygo-hp-contained {
    padding-top: 0;
    padding-bottom: 0;
}

/* ==================================================================
 * SPACER
 * ================================================================== */

.hygo-hp-spacer {
    display: block;
    width: 100%;
}

/* ==================================================================
 * RESPONSIVE — global mobile tweaks
 * ================================================================== */

@media (max-width: 768px) {

    .hygo-hp-shelf,
    .hygo-hp-cat {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .hygo-hp-shelf-title,
    .hygo-hp-cat-title {
        font-size: 22px;
    }

    .hygo-hp-shelf-grid,
    .hygo-hp-cat-grid {
        gap: 14px;
    }

    .hygo-hp-pcard-title {
        font-size: 13px;
    }

    .hygo-hp-pcard-price {
        font-size: 14px;
    }

    .hygo-hp-cat-label {
        font-size: 13px;
    }

    .hygo-hp-cta {
        flex-direction: column;
        text-align: center;
    }

    .hygo-hp-cta-title {
        font-size: 20px;
    }

    .hygo-hp-hero-subtitle {
        font-size: 15px;
    }

    .hygo-hp-hero-cta,
    .hygo-hp-cta-btn {
        padding: 12px 22px;
        font-size: 14px;
    }

    .hygo-hp-car-prev,
    .hygo-hp-car-next {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    .hygo-hp-car-prev { left: 8px; }
    .hygo-hp-car-next { right: 8px; }

    .hygo-hp-pagination {
        margin-top: 24px;
    }
    .hygo-hp-page-item a,
    .hygo-hp-page-item span.current,
    .hygo-hp-page-item span.dots {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 14px;
    }

    .hygo-hp-trust-grid {
        gap: 14px;
    }
    .hygo-hp-trust-title { font-size: 13px; }
    .hygo-hp-trust-subtitle { font-size: 12px; }
}

/* ==================================================================
 * v2.7.15 — CARD ENHANCEMENTS (ribbon, discount %, AJAX add-to-cart)
 * ================================================================== */

/* Card wrapper switched from <a> to <div> in v2.7.15 to allow the
   add-to-cart button as a sibling (nested interactive elements are
   invalid HTML). Restore hover-lift on the wrapper. */
.hygo-hp-pcard {
    display: flex;
    flex-direction: column;
    transition: transform .2s ease;
}
.hygo-hp-pcard:hover {
    transform: translateY(-3px);
}
.hygo-hp-pcard:hover .hygo-hp-pcard-imgwrap {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.hygo-hp-pcard-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.hygo-hp-pcard-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Corner ribbon — diagonal banner top-left of image. Uses transform:
   rotate + translate to sit at 45° across the corner. Solid color
   emitted inline via the block renderer. */
.hygo-hp-pcard-ribbon {
    position: absolute;
    top: 12px;
    left: -32px;
    width: 130px;
    transform: rotate(-45deg);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 4px 0;
    z-index: 3;
    line-height: 1.3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* Discount % badge — top-right pill, complements the top-left ribbon.
   Shown when show_discount_pct=1 and product has regular > sale price. */
.hygo-hp-pcard-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    z-index: 2;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* When both ribbon AND PROMO badge are enabled, PROMO drops down a bit
   so it doesn't collide with the ribbon's diagonal footprint. */
.hygo-hp-pcard-ribbon ~ .hygo-hp-pcard-sale {
    top: 46px;
}

/* AJAX add-to-cart button — sibling of the link, full-width, below the
   price. Bg + color come inline from block config. */
.hygo-hp-pcard-atc {
    display: block;
    text-align: center;
    padding: 10px 14px;
    margin: 10px 0 0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease;
    line-height: 1;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}
.hygo-hp-pcard-atc:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    text-decoration: none;
}
.hygo-hp-pcard-atc.loading {
    opacity: 0.7;
    cursor: wait;
}
.hygo-hp-pcard-atc.added::after {
    content: ' ✓';
}

/* ==================================================================
 * FLASH SALE — countdown + product shelf
 * ================================================================== */

.hygo-hp-flash-sale {
    padding-top: 40px;
    padding-bottom: 40px;
}

.hygo-hp-fs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hygo-hp-fs-heading {
    flex: 0 1 auto;
    min-width: 0;
}

.hygo-hp-fs-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.hygo-hp-fs-subtitle {
    font-size: 15px;
    color: #666;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* Countdown row — flex of digit blocks + separators.
   Big dark boxes with light digits, small orange labels underneath. */
.hygo-hp-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.hygo-hp-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 48px;
}

.hygo-hp-cd-block {
    display: block;
    background: #000;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 8px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    min-width: 44px;
    text-align: center;
    box-sizing: border-box;
}

.hygo-hp-cd-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f97316;
    line-height: 1;
}

.hygo-hp-cd-sep {
    color: #999;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    margin-top: -12px;   /* vertically align with digits, not labels */
}

/* ==================================================================
 * LINK ROW (SEO strip)
 * ================================================================== */

.hygo-hp-linkrow {
    line-height: 1.8;
    box-sizing: border-box;
}

.hygo-hp-linkrow-item {
    display: inline;
    transition: color .15s ease;
}

.hygo-hp-linkrow-sep {
    display: inline;
    margin: 0 4px;
    user-select: none;
}

/* ==================================================================
 * BLOG POSTS
 * ================================================================== */

.hygo-hp-blog {
    padding-top: 40px;
    padding-bottom: 40px;
}

.hygo-hp-blog-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.hygo-hp-blog-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.hygo-hp-blog-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hygo-hp-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hygo-hp-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

.hygo-hp-blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
}
.hygo-hp-blog-card-link:hover { text-decoration: none; color: inherit; }

.hygo-hp-blog-card-img {
    aspect-ratio: 16 / 10;
    background: #f0f0f0 center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hygo-hp-blog-card-noimg {
    font-size: 40px;
    opacity: 0.3;
}

.hygo-hp-blog-card-body {
    padding: 16px;
}

.hygo-hp-blog-card-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hygo-hp-blog-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hygo-hp-blog-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hygo-hp-blog-cta {
    display: block;
    text-align: center;
    padding: 10px 16px;
    margin: 0 16px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease;
    line-height: 1;
    flex: 0 0 auto;
    letter-spacing: 0.02em;
}
.hygo-hp-blog-cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ==================================================================
 * CATEGORY GRID — carousel layout
 * ================================================================== */

.hygo-hp-cat-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hygo-hp-cat-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    flex: 1 1 auto;
    padding: 4px 2px 12px;   /* room for hover-lift shadow */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hygo-hp-cat-scroll::-webkit-scrollbar { display: none; }

.hygo-hp-cat-scroll > .hygo-hp-cat-tile {
    scroll-snap-align: start;
    min-width: 0;
}

.hygo-hp-cat-car-prev,
.hygo-hp-cat-car-next {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    border: 1px solid #e5e7eb;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background .15s ease, transform .15s ease;
    z-index: 2;
}
.hygo-hp-cat-car-prev:hover,
.hygo-hp-cat-car-next:hover {
    background: #111;
    color: #fff;
    transform: scale(1.05);
}

/* ==================================================================
 * MOBILE tweaks for the new blocks
 * ================================================================== */

@media (max-width: 768px) {
    .hygo-hp-fs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .hygo-hp-fs-title { font-size: 22px; }

    .hygo-hp-cd-block {
        font-size: 18px;
        padding: 8px 6px;
        min-width: 38px;
    }
    .hygo-hp-cd-unit { min-width: 42px; }
    .hygo-hp-cd-label { font-size: 9px; }

    .hygo-hp-blog { padding-top: 24px; padding-bottom: 24px; }
    .hygo-hp-blog-title { font-size: 22px; }
    .hygo-hp-blog-grid { gap: 16px; }
    .hygo-hp-blog-card-title { font-size: 15px; }

    .hygo-hp-pcard-ribbon {
        width: 110px;
        left: -30px;
        top: 10px;
        font-size: 9px;
    }
    .hygo-hp-pcard-discount {
        top: 8px;
        right: 8px;
        font-size: 11px;
        padding: 3px 7px;
    }
    .hygo-hp-pcard-atc {
        padding: 8px 12px;
        font-size: 12px;
    }

    .hygo-hp-cat-car-prev,
    .hygo-hp-cat-car-next {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}
