/* Kuz Nury — catalog page, scoped layout repair */
body.woocommerce-shop {
    --catalog-bg: #F4F7FB;
    --catalog-card: #FFFFFF;
    --catalog-ink: #12213A;
    --catalog-muted: #61738B;
    --catalog-blue: #2563EB;
    --catalog-blue-dark: #1D4ED8;
    --catalog-border: #DCE6F2;
    font-family: 'Nunito Sans', 'Noto Sans', 'Segoe UI', Arial, sans-serif !important;
    background: var(--catalog-bg) !important;
    color: var(--catalog-ink) !important;
}

body.woocommerce-shop main#wp--skip-link--target {
    width: min(1280px, calc(100% - 48px)) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 42px 0 76px !important;
    background: transparent !important;
    color: var(--catalog-ink) !important;
    box-sizing: border-box !important;
}

body.woocommerce-shop main#wp--skip-link--target > * {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.woocommerce-shop .wc-block-breadcrumbs {
    margin: 0 0 16px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #6B7D95 !important;
}
body.woocommerce-shop .woocommerce-breadcrumb,
body.woocommerce-shop .woocommerce-breadcrumb a {
    color: #6B7D95 !important;
    text-decoration: none !important;
}
body.woocommerce-shop .woocommerce-breadcrumb a:hover { color: var(--catalog-blue) !important; }

body.woocommerce-shop h1.wp-block-query-title {
    margin: 0 0 28px !important;
    color: var(--catalog-ink) !important;
    font-family: 'Nunito Sans', 'Noto Sans', 'Segoe UI', Arial, sans-serif !important;
    font-size: clamp(36px, 5vw, 56px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.035em !important;
    font-weight: 760 !important;
}

body.woocommerce-shop main > .wp-block-group.alignwide {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
    margin: 0 0 24px !important;
    padding: 16px 18px !important;
    background: #FFFFFF !important;
    border: 1px solid var(--catalog-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 7px 22px rgba(37, 99, 235, .045) !important;
}
body.woocommerce-shop .woocommerce-result-count {
    margin: 0 !important;
    color: #40546D !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 650 !important;
}
body.woocommerce-shop .woocommerce-ordering { margin: 0 !important; }
body.woocommerce-shop .woocommerce-ordering select,
body.woocommerce-shop select.orderby {
    min-width: 230px !important;
    height: 44px !important;
    padding: 0 42px 0 14px !important;
    border: 1px solid #C8D7E9 !important;
    border-radius: 10px !important;
    background-color: #F8FAFD !important;
    color: #203550 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    outline: none !important;
}
body.woocommerce-shop .woocommerce-ordering select:focus {
    border-color: #8CB2F7 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10) !important;
}

body.woocommerce-shop .wp-block-woocommerce-product-collection {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
body.woocommerce-shop .wc-block-product-template,
body.woocommerce-shop .wp-block-woocommerce-product-template,
body.woocommerce-shop .wc-block-product-template__responsive.columns-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 26px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    list-style: none !important;
}

body.woocommerce-shop li.wc-block-product {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 14px 14px 16px !important;
    overflow: hidden !important;
    background: var(--catalog-card) !important;
    border: 1px solid var(--catalog-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(30, 64, 175, .055) !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}
body.woocommerce-shop li.wc-block-product:hover {
    transform: translateY(-3px) !important;
    border-color: #B7CEF0 !important;
    box-shadow: 0 17px 38px rgba(30, 64, 175, .095) !important;
}

body.woocommerce-shop .wc-block-components-product-image,
body.woocommerce-shop .wp-block-woocommerce-product-image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 0 18px !important;
    overflow: hidden !important;
    border-radius: 13px !important;
    background: #F1F5FA !important;
}
body.woocommerce-shop .wc-block-components-product-image > a,
body.woocommerce-shop .wp-block-woocommerce-product-image > a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
body.woocommerce-shop .wc-block-components-product-image img,
body.woocommerce-shop .wp-block-woocommerce-product-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    transition: transform .35s ease !important;
}
body.woocommerce-shop li.wc-block-product:hover .wc-block-components-product-image img {
    transform: scale(1.018) !important;
}

body.woocommerce-shop li.wc-block-product h2.wp-block-post-title {
    min-height: 58px !important;
    margin: 0 4px 8px !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.25 !important;
    font-family: inherit !important;
    font-size: 21px !important;
    font-weight: 760 !important;
    letter-spacing: -0.018em !important;
}
body.woocommerce-shop li.wc-block-product h2.wp-block-post-title a {
    color: var(--catalog-ink) !important;
    text-decoration: none !important;
}
body.woocommerce-shop li.wc-block-product h2.wp-block-post-title a:hover { color: var(--catalog-blue) !important; }

body.woocommerce-shop li.wc-block-product > p.has-text-align-center {
    min-height: 116px !important;
    margin: 0 4px 16px !important;
    color: var(--catalog-muted) !important;
    text-align: left !important;
    font-family: inherit !important;
    font-size: 14.5px !important;
    line-height: 1.58 !important;
    font-weight: 450 !important;
}

body.woocommerce-shop li.wc-block-product .wp-block-woocommerce-product-price {
    margin: auto 4px 14px !important;
    text-align: left !important;
}
body.woocommerce-shop li.wc-block-product .wc-block-components-product-price,
body.woocommerce-shop li.wc-block-product .woocommerce-Price-amount {
    color: #12213A !important;
    font-family: inherit !important;
    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

body.woocommerce-shop li.wc-block-product .wp-block-woocommerce-product-button,
body.woocommerce-shop li.wc-block-product .wc-block-components-product-button {
    width: 100% !important;
    margin: 0 !important;
    align-items: stretch !important;
}
body.woocommerce-shop li.wc-block-product .wc-block-components-product-button__button,
body.woocommerce-shop li.wc-block-product .add_to_cart_button {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 11px 16px !important;
    border: 1px solid var(--catalog-blue) !important;
    border-radius: 10px !important;
    background: var(--catalog-blue) !important;
    color: #FFFFFF !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
    box-shadow: none !important;
}
body.woocommerce-shop li.wc-block-product .wc-block-components-product-button__button:hover,
body.woocommerce-shop li.wc-block-product .add_to_cart_button:hover {
    background: var(--catalog-blue-dark) !important;
    border-color: var(--catalog-blue-dark) !important;
}
body.woocommerce-shop li.wc-block-product .added_to_cart {
    display: block !important;
    margin-top: 10px !important;
    text-align: center !important;
    color: var(--catalog-blue) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* All 14 products are already on this page. */
body.woocommerce-shop .wp-block-query-pagination { display: none !important; }

@media (max-width: 980px) {
    body.woocommerce-shop main#wp--skip-link--target {
        width: min(100% - 32px, 900px) !important;
        padding-top: 32px !important;
    }
    body.woocommerce-shop .wc-block-product-template,
    body.woocommerce-shop .wp-block-woocommerce-product-template,
    body.woocommerce-shop .wc-block-product-template__responsive.columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
    body.woocommerce-shop li.wc-block-product > p.has-text-align-center { min-height: 104px !important; }
}

@media (max-width: 640px) {
    body.woocommerce-shop main#wp--skip-link--target {
        width: calc(100% - 24px) !important;
        padding: 24px 0 54px !important;
    }
    body.woocommerce-shop h1.wp-block-query-title {
        margin-bottom: 20px !important;
        font-size: 36px !important;
    }
    body.woocommerce-shop main > .wp-block-group.alignwide {
        padding: 14px !important;
        margin-bottom: 18px !important;
    }
    body.woocommerce-shop .woocommerce-ordering,
    body.woocommerce-shop .woocommerce-ordering select,
    body.woocommerce-shop select.orderby { width: 100% !important; min-width: 0 !important; }
    body.woocommerce-shop .wc-block-product-template,
    body.woocommerce-shop .wp-block-woocommerce-product-template,
    body.woocommerce-shop .wc-block-product-template__responsive.columns-3 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    body.woocommerce-shop li.wc-block-product { border-radius: 15px !important; padding: 12px 12px 14px !important; }
    body.woocommerce-shop li.wc-block-product h2.wp-block-post-title { min-height: 0 !important; font-size: 20px !important; }
    body.woocommerce-shop li.wc-block-product > p.has-text-align-center { min-height: 0 !important; font-size: 14px !important; }
}

/* Keep the site chrome full width while the catalog itself stays contained. */
body.woocommerce-shop .wp-site-blocks {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.woocommerce-shop header.relative [class~="text-white"]:not([class~="bg-[#EA580C]"]) {
    color: #10213F !important;
}
body.woocommerce-shop header.relative [class~="border-[#1A1A1A]"] {
    border-color: #D9E5F4 !important;
}
body.woocommerce-shop header.relative [class~="text-[#EA580C]"] {
    color: #2563EB !important;
}
