/*
Theme Name: GoBetta
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: A modern, Full Site Editing (FSE) block theme for ornamental fish stores.
Requires at least: 6.2
Requires PHP: 7.4
Version: 1.0.0
Text Domain: gobetta
*/

/* Custom Utilities beyond theme.json */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
html, body {
    overflow-x: clip;
}
*, *::before, *::after {
    box-sizing: border-box;
}

/* Utility Bar */
.util-bar {
    background: var(--wp--preset--color--navy-2);
    color: #cfe3e8;
    font-size: 0.8rem;
    padding: 7px 0;
}
.util-bar a { opacity: 0.85; text-decoration: none; }
.util-bar a:hover { opacity: 1; text-decoration: underline; }

/* Brand Pill */
.brand-pill {
    display: inline-flex;
    align-items: center;
}

/* Nav Actions */
.icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #f1f7f7;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    color: var(--wp--preset--color--navy);
    border: none; cursor: pointer;
    text-decoration: none;
}
.icon-btn .badge {
    position: absolute; top: -3px; right: -3px;
    background: var(--wp--preset--color--coral);
    color: #fff; font-size: 0.62rem; font-weight: 800;
    min-width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.btn-shop {
    background: var(--wp--preset--color--yellow);
    color: var(--wp--preset--color--ink-2);
    font-weight: 800; font-size: 0.88rem;
    padding: 11px 20px; border-radius: 100px;
    box-shadow: 0 6px 16px rgba(247,201,72,0.5);
    text-decoration: none;
}

/* Category Pills */
.cat-pill {
    background: #fff; border: 1px solid var(--wp--preset--color--line);
    border-radius: 18px; padding: 20px 10px; text-align: center;
    box-shadow: 0 4px 14px rgba(28,51,80,0.05);
    transition: transform .2s ease; cursor: pointer;
    text-decoration: none;
    display: block;
}
.cat-pill:hover { transform: translateY(-4px); }
.cat-pill .ic {
    width: 52px; height: 52px; border-radius: 50%;
    margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
}
.cat-pill span { font-size: 0.76rem; font-weight: 800; color: var(--wp--preset--color--navy); }

/* Buttons */
.btn-primary { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink-2); font-weight: 800; padding: 13px 28px; border-radius: 100px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); border: none; cursor: pointer; font-size: 0.96rem; text-decoration: none; display: inline-block; }
.btn-outline { background: rgba(255,255,255,0.55); border: 2px solid var(--wp--preset--color--ink-2); color: var(--wp--preset--color--ink-2); font-weight: 800; padding: 11px 24px; border-radius: 100px; font-size: 0.96rem; text-decoration: none; display: inline-block; }

/* Product Cards */
.wc-block-grid__product {
    background: #fff;
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.wc-block-grid__product:hover {
    box-shadow: 0 10px 24px rgba(28,51,80,0.14);
    transform: translateY(-3px);
}
.wc-block-grid__product-image { background: linear-gradient(160deg,#f4f7f7,#e2eaea); }

/* Vouchers */
.voucher-card {
    background: #fff; border-radius: 12px; display: flex; align-items: center;
    box-shadow: 0 4px 14px rgba(28,51,80,0.08); overflow: hidden;
}
.voucher-left {
    background: var(--wp--preset--color--shopee); color: #fff; padding: 16px 14px; text-align: center;
    font-family: 'Baloo 2', sans-serif;
}
.voucher-right { padding: 12px 16px; flex: 1; }

/* Mobile Menu Fixes */
@media (max-width: 640px) {
    .btn-shop { display: none; }
}

/* Search Bar (Custom HTML block) */
.search-bar-wrap {
    flex: 1; max-width: 480px; display: flex; align-items: center;
    background: #fff; border: 1.5px solid var(--wp--preset--color--line);
    border-radius: 100px; padding: 5px 6px 5px 24px;
    margin: 0; box-shadow: 0 4px 12px rgba(28,51,80,0.03);
}
.search-bar-wrap input {
    flex: 1; border: none; outline: none; font-family: 'Nunito', sans-serif; font-size: 0.88rem; background: transparent;
    padding: 0;
}
.search-bar-wrap button {
    background: var(--wp--preset--color--coral); color: #fff; border: none; border-radius: 100px; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto;
    transition: background 0.2s ease;
}
.search-bar-wrap button:hover { background: #d93d1d; }
.search-bar-wrap button svg { width: 18px; height: 18px; }

/* Nav Pill (Custom styling for core/navigation & classic menus) */
ul.gobetta-classic-menu { list-style: none; padding: 0; margin: 0; line-height: 2.2; font-size: 0.85rem; }
ul.gobetta-classic-menu a { color: inherit; text-decoration: none; }

.nav-pill-wrap ul.wp-block-navigation__container,
.nav-pill-wrap ul.gobetta-classic-menu {
    display: flex; align-items: center; background: #fff; border: 1.5px solid var(--wp--preset--color--line);
    border-radius: 100px; padding: 6px; gap: 4px;
    box-shadow: 0 4px 12px rgba(28,51,80,0.03); margin: 0; list-style: none;
}
.nav-pill-wrap li.wp-block-navigation-item a,
.nav-pill-wrap ul.gobetta-classic-menu li a {
    font-weight: 700; font-size: 0.85rem; padding: 9px 18px; border-radius: 100px;
    color: var(--wp--preset--color--navy); transition: background .2s ease; text-decoration: none; display: block;
}
.nav-pill-wrap li.wp-block-navigation-item a:hover,
.nav-pill-wrap ul.gobetta-classic-menu li a:hover { background: #f1f7f7; }
.nav-pill-wrap li.wp-block-navigation-item.current-menu-item a,
.nav-pill-wrap ul.gobetta-classic-menu li.current-menu-item a { background: var(--wp--preset--color--lime); color: #fff; }

/* Custom Mini Cart & Action Icons */
.custom-mini-cart .wc-block-mini-cart__button {
    width: 44px; height: 44px; border-radius: 50%; background: #f4f8fa;
    display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; padding: 0;
    color: var(--wp--preset--color--navy); position: relative; transition: background 0.2s ease;
}
.custom-mini-cart .wc-block-mini-cart__button:hover, .icon-btn:hover { background: #e2eef2; }
.custom-mini-cart .wc-block-mini-cart__button svg { width: 20px; height: 20px; }
.custom-mini-cart .wc-block-mini-cart__badge {
    position: absolute; top: -2px; right: -2px; background: var(--wp--preset--color--coral); color: #fff;
    font-size: 0.62rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1;
    border: 2px solid #fff;
}

.icon-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #f4f8fa;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    color: var(--wp--preset--color--navy);
    border: none; cursor: pointer;
    text-decoration: none; transition: background 0.2s ease;
}
.icon-btn svg { width: 20px; height: 20px; }

/* Responsive Header Utilities */
@media (max-width: 1080px) {
    .search-bar-wrap { display: none !important; }
    .nav-pill-wrap { display: none !important; }
    .hamburger { display: flex !important; }
}

.hamburger {
    display: none; width: 40px; height: 40px; border-radius: 50%;
    background: #f1f7f7; border: none; align-items: center; justify-content: center;
    cursor: pointer; flex: 0 0 auto; color: var(--wp--preset--color--navy);
}
.hamburger svg { width: 20px; height: 20px; }

/* Mobile Menu */
.mobile-menu {
    display: none; flex-direction: column; gap: 4px; background: #fff;
    border-top: 1px solid var(--wp--preset--color--line);
    padding: 14px 18px 18px;
    width: 100%; position: absolute; left: 0; top: 100%; z-index: 50;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    box-sizing: border-box;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul.wp-block-navigation__container,
.mobile-menu ul.gobetta-classic-menu {
    list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;
}
.mobile-menu li.wp-block-navigation-item a,
.mobile-menu ul.gobetta-classic-menu li a {
    display: block; padding: 12px 20px; font-weight: 700; color: var(--wp--preset--color--navy);
    background: #f4f8fa; border-radius: 12px; text-decoration: none;
}
.mobile-menu li.wp-block-navigation-item.current-menu-item a,
.mobile-menu ul.gobetta-classic-menu li.current-menu-item a { background: var(--wp--preset--color--lime); color: #fff; }
.mobile-menu .search-bar-wrap {
    display: flex !important; max-width: none; margin-bottom: 12px;
}

/* Footer Styles */
.site-footer {
    width: 100%;
}
.site-footer a {
    color: #9db2c2;
    text-decoration: none;
    transition: color .2s ease;
}
.site-footer a:hover {
    color: #ffffff;
}
.site-footer .wp-block-separator {
    border-color: rgba(255, 255, 255, 0.08);
}
.site-footer .footer-nav ul {
    list-style: none; padding: 0; margin: 0;
}
.site-footer .footer-nav li {
    margin-bottom: 12px;
}

/* HOMEPAGE SPECIFIC STYLES */

/* Promo Cards */
.home-promo-cards .wp-block-column.promo-card { 
    background: #fff; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.06); 
    transition: transform 0.2s ease; 
    border: none;
    display: flex;
    padding: 0;
    overflow: hidden;
    height: 75px;
}
.home-promo-cards .wp-block-column.promo-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.promo-card-left {
    background: #e84c3d;
    color: #fff;
    width: 32%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.promo-card-left .promo-val { font-size: 1.05rem; line-height: 1.1; }
.promo-card-left .promo-off { font-size: 0.55rem; letter-spacing: 0.05em; }
.promo-card-right {
    width: 68%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 12px;
    position: relative;
}
.promo-card-right .promo-title { font-size: 0.7rem; font-weight: 700; color: #1c3350; line-height: 1.2; margin-bottom: 2px; }
.promo-card-right .promo-desc { font-size: 0.55rem; color: #999; margin-bottom: 4px; }
.promo-claim {
    align-self: flex-end;
    border: 1px solid #e84c3d;
    color: #e84c3d;
    background: transparent;
    border-radius: 100px;
    padding: 3px 12px;
    font-size: 0.55rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
    margin-bottom: 12px;
}

/* Category Grid */
.category-grid .wp-block-column.cat-card { 
    background: #fff; border-radius: 20px; padding: 30px 10px; 
    box-shadow: 0 8px 24px rgba(28,51,80,0.04); border: 2px solid transparent; 
    cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center;
}
.category-grid .wp-block-column.cat-card:hover { transform: translateY(-5px); border-color: rgba(28,51,80,0.05); box-shadow: 0 15px 30px rgba(28,51,80,0.08); }
.category-grid .cat-card p { margin: 0; font-weight: 800; font-size: 0.95rem; color: var(--wp--preset--color--navy); line-height: 1.6; }

.cat-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.cat-card-icon-wrap {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-card-icon-wrap svg {
    width: 32px;
    height: 32px;
}

/* Category Colors */
.cat-icon-red { background-color: #feeceb; color: #ee4d2d; }
.cat-icon-teal { background-color: #e5f6f6; color: #009688; }
.cat-icon-purple { background-color: #f2ebfc; color: #8e44ad; }
.cat-icon-yellow { background-color: #fdf5e6; color: #f39c12; }

/* Product Filters */
.product-filters span { margin-right: 25px; cursor: pointer; font-weight: 700; opacity: 0.6; transition: opacity 0.2s; color: var(--wp--preset--color--navy); font-size: 1rem; }
.product-filters span:hover { opacity: 1; }
.product-filters span.active-filter { opacity: 1; background: var(--wp--preset--color--navy); color: #fff; padding: 8px 20px; border-radius: 100px; }

/* Trust Grid */
.trust-grid .wp-block-column.trust-card { 
    background: #fff; border-radius: 20px; padding: 35px 25px; 
    box-shadow: 0 8px 24px rgba(28,51,80,0.06); border: 1px solid var(--wp--preset--color--line);
}
.trust-grid .trust-card p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--wp--preset--color--navy); opacity: 0.8; }
.trust-grid .trust-card strong { display: block; font-size: 1.1rem; color: var(--wp--preset--color--navy); margin: 15px 0 8px; opacity: 1; font-weight: 800; }

/* Rating Summary Box */
.rating-summary-box {
    display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 80px;
    margin: 0 auto 60px auto; max-width: 800px; padding: 0 20px;
}
.rating-left { text-align: center; }
.rating-score { font-size: 6rem; font-weight: 800; color: var(--wp--preset--color--navy); line-height: 1; }
.rating-stars { margin: 5px 0 10px; display: flex; justify-content: center; gap: 6px; color: #5f738c; }
.rating-stars svg { width: 32px; height: 32px; }
.rating-count { font-size: 1.1rem; color: #5f738c; font-weight: 600; opacity: 0.9; }

.rating-right { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.rating-bar-row { display: flex; align-items: center; gap: 15px; font-weight: 600; font-size: 1.1rem; color: #5f738c; }
.rating-label { width: 25px; text-align: right; }
.rating-bar-track { flex: 1; height: 12px; background: #e2ebf0; border-radius: 6px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #f7c948; border-radius: 6px; }
.rating-pct { width: 40px; text-align: left; }

@media (max-width: 768px) {
    .rating-summary-box { flex-direction: column; gap: 40px; }
    .rating-right { width: 100%; }
}

/* Review Grid */
.review-grid .wp-block-column.review-card { 
    background: #fff; border-radius: 20px; padding: 35px 30px; 
    box-shadow: 0 8px 24px rgba(28,51,80,0.06); border: 1px solid var(--wp--preset--color--line);
}
.review-grid .review-card p { margin-top: 0; margin-bottom: 15px; line-height: 1.6; color: var(--wp--preset--color--navy); }
.review-grid .review-card p:last-child { margin-bottom: 0; opacity: 0.8; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.faq-item { background: #fff; border: 1.5px solid var(--wp--preset--color--line); border-radius: 16px; margin-bottom: 0; overflow: hidden; box-shadow: 0 4px 14px rgba(28,51,80,0.02); transition: all 0.3s ease; }
.faq-q { width: 100%; text-align: left; font-weight: 800; color: var(--wp--preset--color--navy); padding: 25px 30px; cursor: pointer; font-size: 1.15rem; background: none; border: none; display: flex; justify-content: space-between; align-items: center; outline: none; }
.faq-q svg { width: 24px; height: 24px; transition: transform 0.3s ease; flex-shrink: 0; margin-left: 15px; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 0; }
.faq-item.open .faq-a { max-height: 500px; opacity: 1; }
.faq-item p { padding: 0 30px 25px; margin: 0; color: var(--wp--preset--color--navy); opacity: 0.8; line-height: 1.6; font-size: 1.05rem; }

/* Newsletter */
.home-newsletter input::placeholder { color: rgba(11,27,54,0.5); font-weight: 600; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-header-sticky {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .home-promo-cards .wp-block-columns { flex-wrap: wrap; }
    .home-promo-cards .wp-block-column { flex-basis: 48% !important; margin-bottom: 15px; }
    .category-grid.wp-block-columns { flex-wrap: wrap !important; gap: 10px !important; }
    .category-grid .wp-block-column { flex: 0 0 calc(33.333% - 7px) !important; flex-basis: calc(33.333% - 7px) !important; max-width: calc(33.333% - 7px) !important; margin-bottom: 10px; }
    
    /* Trust Grid 2x2 layout on mobile */
    .trust-grid .wp-block-columns { flex-wrap: wrap !important; display: flex !important; gap: 15px !important; }
    .trust-grid .wp-block-column { flex-basis: calc(50% - 8px) !important; margin-bottom: 0px !important; }
    
    .review-grid .wp-block-column { flex-basis: 100% !important; margin-bottom: 20px; }
    .home-features-bar .wp-block-columns { flex-wrap: wrap; }
    .home-features-bar .wp-block-column { flex-basis: 50% !important; margin-bottom: 10px; }
    .home-newsletter input { width: 100% !important; margin-bottom: 10px; }
    .home-newsletter div { flex-direction: column; padding: 0 20px; }
}

@media (max-width: 576px) {
    .home-promo-cards .wp-block-column { flex-basis: 100% !important; margin-bottom: 12px; }
}

@media (max-width: 480px) {

    .category-grid .wp-block-column.cat-card { padding: 10px 2px !important; }
    .category-grid .cat-card p { font-size: 0.75rem !important; }
    .cat-card-icon-wrap { width: 45px !important; height: 45px !important; }
    .cat-card-icon-wrap svg { width: 22px !important; height: 22px !important; }
}

/* Sticky Header */
.wp-block-template-part {
    display: contents; /* Allows children to stick to the viewport instead of the template part wrapper */
}
.site-header-sticky {
    position: sticky !important;
    top: 0;
    z-index: 100 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
}
.admin-bar .site-header-sticky {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .site-header-sticky {
        top: 46px;
    }
}

/* ==========================================================================
   SINGLE PRODUCT PAGE STYLES
   ========================================================================== */
.single-product-main {
    position: relative;
}

/* Product Card Wrapper */
.product-card-wrapper {
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(11, 27, 54, 0.2);
    overflow: hidden;
}

/* Product Image column */
.product-image-col {
    padding: 20px;
    background: #f9fbfd;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Title */
.product-main-title h1 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: var(--wp--preset--color--navy) !important;
    margin-bottom: 15px !important;
}

/* Product Price */
.product-main-price {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--wp--preset--color--coral) !important;
    margin-bottom: 20px !important;
}
.product-main-price del {
    color: #99aabf;
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 10px;
}
.product-main-price ins {
    text-decoration: none;
}

/* Short Description */
.product-short-desc {
    font-size: 1.1rem;
    color: #4a5a6a;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Add to Cart Form / Button */
.wc-block-components-product-button .wc-block-components-product-button__button,
.woocommerce div.product form.cart .button {
    background-color: var(--wp--preset--color--coral) !important;
    color: #fff !important;
    border-radius: 100px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 15px 40px !important;
    border: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(238, 77, 45, 0.4);
}
.wc-block-components-product-button .wc-block-components-product-button__button:hover,
.woocommerce div.product form.cart .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(238, 77, 45, 0.5);
    background-color: #d13d20 !important;
}

/* Quantity Input */
.woocommerce div.product form.cart div.quantity {
    margin-right: 20px;
}
.woocommerce div.product form.cart div.quantity input.qty {
    border-radius: 100px;
    border: 2px solid #e1e8f0;
    height: 54px;
    width: 80px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wp--preset--color--navy);
    background: #f9fbfd;
}
.woocommerce div.product form.cart div.quantity input.qty:focus {
    border-color: var(--wp--preset--color--navy);
    outline: none;
}

/* Product Meta */
.product-meta-data {
    margin-top: 30px;
    font-size: 0.95rem;
    color: #6a7a8a;
}
.product-meta-data a {
    color: var(--wp--preset--color--navy);
    font-weight: 600;
    text-decoration: none;
}
.product-meta-data a:hover {
    color: var(--wp--preset--color--coral);
}

/* Mobile Responsiveness for Single Product */
@media (max-width: 768px) {
    .product-card-wrapper {
        padding: 20px !important;
    }
    .product-columns {
        flex-direction: column !important;
    }
    .product-image-col {
        margin-bottom: 30px;
    }
    .product-details-col {
        padding-left: 0 !important;
    }
    .product-main-title h1 {
        font-size: 2rem !important;
    }
    .woocommerce div.product form.cart {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .woocommerce div.product form.cart div.quantity {
        margin-right: 0;
        width: 100%;
    }
    .woocommerce div.product form.cart div.quantity input.qty {
        width: 100%;
    }
    .woocommerce div.product form.cart .button {
        width: 100%;
    }
    
    /* Horizontal scrolling for product filters on mobile */
    .product-filters {
        overflow-x: auto !important;
        white-space: nowrap !important;
        display: block !important;
        padding-bottom: 8px !important;
        margin-bottom: 20px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .product-filters::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .product-filters p {
        display: inline-flex !important;
        margin: 0 !important;
        gap: 8px;
    }
    .product-filters span {
        display: inline-block !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
        font-size: 0.8rem !important;
        padding: 6px 14px !important;
    }
}

/* Product Filter Bar */
.product-filters span {
    border: 1px solid #ddd;
    border-radius: 100px;
    padding: 8px 18px;
    margin-right: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1c3350;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    display: inline-block;
    margin-bottom: 10px;
}
.product-filters span:hover {
    border-color: #1c3350;
}
.product-filters span.active-filter {
    background: #1c3350;
    color: #fff;
    border-color: #1c3350;
}

/* 5 Column Grid */
.gobetta-premium-grid ul.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
}

/* Card Styling */
.wc-block-grid__product {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.wc-block-grid__product:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.06);
}

/* Card Content */
.gobetta-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gobetta-store-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.wc-block-grid__product .wc-block-components-product-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #1c3350 !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.gobetta-shipping-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wc-block-grid__product .wc-block-components-product-price {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #e74c3c;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wc-block-grid__product .wc-block-components-product-price del {
    color: #999;
    font-size: 0.75rem;
    font-weight: 500;
}

.gobetta-rating-wrap {
    margin-bottom: 15px;
    margin-top: auto;
}
.gobetta-rating-wrap .wc-block-components-product-rating {
    margin: 0;
}
.gobetta-rating-wrap .star-rating {
    font-size: 0.75rem;
    color: #f1c40f;
}
.gobetta-sold-count {
    font-size: 0.7rem;
    color: #999;
    font-weight: 500;
    margin: 0;
}

/* Button */
.wc-block-grid__product .wc-block-components-product-button {
    margin-top: 0;
}
.wc-block-grid__product .wp-block-button__link.add_to_cart_button {
    width: 100%;
    background: #1c3350;
    color: #fff;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.wc-block-grid__product .wp-block-button__link.add_to_cart_button:hover {
    background: #0b1b36;
}
.wc-block-grid__product .wp-block-button__link.add_to_cart_button::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Image */
.wc-block-grid__product .wc-block-components-product-image {
    margin: 0;
    padding: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
}
.wc-block-grid__product .wc-block-components-product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Sale Badge */
.wc-block-grid__product .wc-block-components-product-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    margin: 0;
    left: auto;
}

/* Mobile Responsiveness for Grid */
@media (max-width: 1200px) {
    .gobetta-premium-grid ul.wc-block-grid__products { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 992px) {
    .gobetta-premium-grid ul.wc-block-grid__products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    .gobetta-premium-grid ul.wc-block-grid__products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}
@media (max-width: 480px) {
    /* Optimize product cards for tiny screens */
    .wc-block-grid__product .wc-block-components-product-image img {
        height: 140px !important;
    }
    .wc-block-grid__product .wc-block-components-product-title {
        font-size: 0.75rem !important;
        height: 2.6em !important;
        margin-bottom: 4px !important;
    }
    .gobetta-shipping-tag {
        font-size: 0.62rem !important;
        margin-bottom: 8px !important;
    }
    .wc-block-grid__product .wc-block-components-product-price {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
    }
    .gobetta-card-content {
        padding: 10px !important;
    }
    .wc-block-grid__product .wp-block-button__link.add_to_cart_button {
        font-size: 0.75rem !important;
        padding: 8px 0 !important;
    }
}

 
 
 
 

/* ==========================================================================
   HERO SLIDER - MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 900px) {
    .hero-slider-wrap { height: auto !important; min-height: 420px; }
    .slide { padding: 0 5% !important; }
    .slide-content h1 { font-size: 2.5rem !important; }
}
@media (max-width: 768px) {
    .hero-slider-wrap { height: auto !important; min-height: unset; border-radius: 0 !important; }
    .slide { flex-direction: column !important; justify-content: center !important; align-items: center !important; padding: 40px 24px !important; text-align: center; gap: 30px; }
    .slide-content { max-width: 100% !important; flex: unset !important; display: flex; flex-direction: column; align-items: center; }
    .slide-content h1 { font-size: 2rem !important; margin-bottom: 14px !important; }
    .slide-content p { font-size: 0.95rem !important; margin-bottom: 20px !important; }
    .slide-content > div { justify-content: center; }
    .slide-image { flex: unset !important; width: 100%; justify-content: center !important; }
    .slide-image svg { max-width: 200px !important; }
    .slide-image > div { width: 160px !important; height: 160px !important; font-size: 1.1rem !important; }
    #sliderPrev, #sliderNext { display: none !important; }
}
@media (max-width: 480px) {
    .slide { padding: 30px 16px !important; gap: 20px; }
    .slide-content h1 { font-size: 1.6rem !important; }
}

/* ==========================================================================
   ABOUT SECTION - MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .wp-block-group > .wp-block-columns.alignwide { flex-direction: column !important; gap: 30px !important; }
    .wp-block-group > .wp-block-columns.alignwide .wp-block-column { flex-basis: 100% !important; min-width: 0 !important; }
    .wp-block-group > .wp-block-columns.alignwide .wp-block-columns .wp-block-column h3 { font-size: 1.6rem !important; }
}

/* ==========================================================================
   FAQ SECTION - MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .faq-q { font-size: 1rem !important; padding: 18px 20px !important; }
    .faq-q svg { width: 20px; height: 20px; margin-left: 10px; }
    .faq-item p { padding: 0 20px 20px !important; font-size: 0.95rem !important; }
    .wp-block-column:empty { display: none !important; }
}

/* ==========================================================================
   NEWSLETTER - MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .home-newsletter { margin: 0 15px 40px 15px !important; border-radius: 16px !important; }
    .home-newsletter h2 { font-size: 1.5rem !important; padding: 0 16px; }
    div[style*="display:flex"][style*="justify-content:center"][style*="gap:10px"] { flex-direction: column !important; align-items: stretch !important; padding: 0 20px; gap: 12px !important; }
    div[style*="display:flex"][style*="justify-content:center"][style*="gap:10px"] input { width: 100% !important; border-radius: 100px !important; }
    div[style*="display:flex"][style*="justify-content:center"][style*="gap:10px"] button { width: 100% !important; border-radius: 100px !important; }
}

/* ==========================================================================
   FOOTER - MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .site-footer .wp-block-columns { flex-direction: column !important; gap: 30px !important; }
    .site-footer .wp-block-column { flex-basis: 100% !important; min-width: 0 !important; }
    .site-footer { padding-left: 20px !important; padding-right: 20px !important; }
    .site-footer > div > .wp-block-group > .wp-block-group { flex-wrap: wrap !important; gap: 8px !important; }
}

/* ==========================================================================
   SECTION HEADINGS & GLOBAL PADDING - MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    h2.wp-block-heading { margin-bottom: 24px !important; }
    p.has-text-align-center[style*="3rem"] { font-size: 2rem !important; }
}
@media (max-width: 480px) {
    h2.wp-block-heading { font-size: clamp(1.4rem, 5vw, 1.8rem) !important; }
}

/* ==========================================================================
   PROMO CARDS - HORIZONTAL SCROLL STRIP (1 ROW)
   Desktop: 5 visible | Tablet: 3 | Mobile: 1 (+ peek)
   ========================================================================== */

/* Container: horizontal scroll strip */
.home-promo-cards .wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 14px !important;
    padding-bottom: 10px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;         /* Firefox */
    -ms-overflow-style: none;      /* IE */
}
.home-promo-cards .wp-block-columns::-webkit-scrollbar {
    display: none;                 /* Chrome / Safari */
}

/* Each card: fixed width so N cards show at once */
.home-promo-cards .wp-block-column.promo-card {
    flex: 0 0 calc(25% - 10.5px) !important;   /* Desktop: 4 visible */
    min-width: calc(25% - 10.5px) !important;
    scroll-snap-align: start;
    height: 90px !important;
}

/* Tablet: 3 visible */
@media (max-width: 1024px) {
    .home-promo-cards .wp-block-column.promo-card {
        flex: 0 0 calc(33.333% - 10px) !important;
        min-width: calc(33.333% - 10px) !important;
    }
}

/* Mobile: 1 visible + peek at next */
@media (max-width: 640px) {
    .home-promo-cards .wp-block-column.promo-card {
        flex: 0 0 calc(85% - 10px) !important;
        min-width: calc(85% - 10px) !important;
    }
    /* Remove stacking overrides from earlier media queries */
    .home-promo-cards .wp-block-column {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .home-promo-cards .wp-block-column.promo-card {
        flex: 0 0 80% !important;
        min-width: 80% !important;
        height: 80px !important;
    }
}

/* ==========================================================================
   FEATURES BAR - MOBILE 2x2 GRID
   ========================================================================== */

/* Desktop: tetap 1 baris (4 kolom) */
.home-features-bar .wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
}

/* Tablet (≤900px): 2x2 grid */
@media (max-width: 900px) {
    .home-features-bar .wp-block-columns {
        flex-wrap: wrap !important;
        row-gap: 4px !important;
    }
    .home-features-bar .wp-block-column {
        flex: 0 0 50% !important;
        flex-basis: 50% !important;
        max-width: 50% !important;
        min-width: 50% !important;
        width: 50% !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Mobile (≤640px): tetap 2x2 */
@media (max-width: 640px) {
    .home-features-bar {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    .home-features-bar .wp-block-columns {
        flex-wrap: wrap !important;
        row-gap: 8px !important;
    }
    .home-features-bar .wp-block-column {
        flex: 0 0 50% !important;
        flex-basis: 50% !important;
        max-width: 50% !important;
        min-width: 50% !important;
        width: 50% !important;
        margin-bottom: 0 !important;
        padding: 4px 0 !important;
        box-sizing: border-box !important;
    }
    .home-features-bar .wp-block-column p {
        font-size: 0.8rem !important;
        text-align: center !important;
        padding: 0 6px;
    }
}

/* ==========================================================================
   FEATURES BAR - FEAT-ITEM (ICON + TEXT, RATA KIRI)
   ========================================================================== */
.feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    white-space: nowrap;
}
.feat-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wp--preset--color--yellow, #F7C948);
}
.feat-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--wp--preset--color--yellow, #F7C948);
}
.feat-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    white-space: normal;
}

/* Desktop: semua rata kiri sejajar */
.home-features-bar .wp-block-column {
    display: flex;
    align-items: center;
}

/* Tablet & Mobile 2x2: tiap cell rata kiri */
@media (max-width: 900px) {
    .home-features-bar .wp-block-column {
        padding: 6px 12px !important;
        justify-content: flex-start;
    }
    .feat-item {
        white-space: normal;
    }
    .feat-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .home-features-bar {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
    .feat-icon svg {
        width: 20px;
        height: 20px;
    }
    .feat-item span {
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   FEATURES BAR - OVERRIDE: MOBILE 3x2 (3 kolom x 2 baris)
   ========================================================================== */

/* Reset: desktop 6 kolom 1 baris */
.home-features-bar .wp-block-columns {
    flex-wrap: nowrap !important;
    gap: 0 !important;
}
.home-features-bar .wp-block-column {
    flex: 1 1 0 !important;
    flex-basis: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    box-sizing: border-box !important;
}

/* Tablet (≤900px): 3x2 */
@media (max-width: 900px) {
    .home-features-bar .wp-block-columns {
        flex-wrap: wrap !important;
        row-gap: 0 !important;
    }
    .home-features-bar .wp-block-column {
        flex: 0 0 33.333% !important;
        flex-basis: 33.333% !important;
        max-width: 33.333% !important;
        min-width: 33.333% !important;
        width: 33.333% !important;
        margin-bottom: 0 !important;
        padding: 10px 14px !important;
    }
    .feat-item span { font-size: 0.78rem !important; }
}

/* Mobile (≤640px): tetap 3x2 */
@media (max-width: 640px) {
    .home-features-bar .wp-block-column {
        flex: 0 0 33.333% !important;
        flex-basis: 33.333% !important;
        max-width: 33.333% !important;
        min-width: 33.333% !important;
        width: 33.333% !important;
        padding: 10px 10px !important;
    }
    .feat-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    .feat-item span { font-size: 0.72rem !important; line-height: 1.3; }
    .feat-icon svg { width: 20px !important; height: 20px !important; }
}

@media (max-width: 400px) {
    .home-features-bar .wp-block-column {
        padding: 8px 8px !important;
    }
    .feat-item span { font-size: 0.67rem !important; }
}

/* ==========================================================================
   FEATURES BAR - REVERT KE 2x2 (4 item, 2 kolom di mobile/tablet)
   ========================================================================== */

/* Desktop: 4 kolom 1 baris */
.home-features-bar .wp-block-columns {
    flex-wrap: nowrap !important;
}
.home-features-bar .wp-block-column {
    flex: 1 1 25% !important;
    flex-basis: 25% !important;
    max-width: none !important;
    min-width: 0 !important;
    width: auto !important;
}

/* Tablet & Mobile: 2x2 */
@media (max-width: 900px) {
    .home-features-bar .wp-block-columns {
        flex-wrap: wrap !important;
    }
    .home-features-bar .wp-block-column {
        flex: 0 0 50% !important;
        flex-basis: 50% !important;
        max-width: 50% !important;
        min-width: 50% !important;
        width: 50% !important;
        padding: 10px 14px !important;
        margin-bottom: 0 !important;
    }
    .feat-item {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .feat-item span { font-size: 0.8rem !important; }
}


/* ==========================================================================
   HEADER & UTILITY BAR - 90% WIDTH (5% MARGIN)
   ========================================================================== */
.site-header-sticky,
header.site-header-sticky,
.wp-block-group.has-navy-2-background-color {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    box-sizing: border-box !important;
}

@media (max-width: 480px) {
    .home-features-bar .wp-block-column {
        padding: 10px 12px !important;
    }
    .feat-item span { font-size: 0.75rem !important; }
}

@media (max-width: 768px) {
    .about-stats.wp-block-columns { flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 10px; }
    .about-stats .wp-block-column { flex: 1; text-align: center; }
    .about-stats h3 { font-size: 1.5rem !important; }
    .about-stats p { font-size: 0.75rem !important; }
}
