/*
Theme Name: sfysupply Child
Theme URI: https://sfysupply.com/
Description: Custom child theme for sfysupply
Author: sfysupply
Template: kadence
Version: 1.0.0
*/

/* =========================================================
   SFY Supply - Product Page
   ========================================================= */

.sfy-product-page {
    width: 100%;
}

.sfy-product-hero {
    width: min(1140px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 50px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    column-gap: 52px;
    align-items: center;
}

.sfy-product-media {
    width: 100%;
    min-width: 0;
}

.sfy-product-main-image {
    width: 100%;
    max-width: 480px;
    margin: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.sfy-product-featured-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.sfy-product-summary {
    width: 100%;
    max-width: 460px;
}

.sfy-product-category {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #777;
}

.sfy-product-title {
    max-width: 460px;
    margin: 0 0 14px;
    font-size: clamp(34px, 3.6vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: #111;
}

.sfy-product-sku {
    margin: 0 0 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
}

.sfy-product-short-description {
    max-width: 440px;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.65;
    color: #444;
}

.sfy-product-short-description p {
    margin: 0;
}

.sfy-product-price-note {
    margin: 0 0 18px;
    padding: 13px 15px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    color: #222;
}

.sfy-product-quote-button,
.sfy-product-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 27px;
    text-decoration: none;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.sfy-product-quote-button {
    border: 1px solid #111;
    border-radius: 0;
    background: #111;
    color: #fff;
}

.sfy-product-quote-button:hover,
.sfy-product-quote-button:focus {
    border-color: #333;
    background: #333;
    color: #fff;
}

.sfy-product-secondary-button {
    border: 1px solid #111;
    color: #111;
    background: transparent;
}

.sfy-product-secondary-button:hover,
.sfy-product-secondary-button:focus {
    background: #111;
    color: #fff;
}

@media (max-width: 900px) {

    .sfy-product-hero {
        width: min(100% - 40px, 680px);
        padding: 45px 0 58px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .sfy-product-main-image {
        max-width: 560px;
    }

    .sfy-product-summary {
        max-width: 680px;
    }

}

@media (max-width: 600px) {

    .sfy-product-hero {
        width: calc(100% - 28px);
        padding: 28px 0 42px;
        gap: 26px;
    }

    .sfy-product-title {
        font-size: 34px;
    }

    .sfy-product-short-description {
        font-size: 15px;
    }

    .sfy-product-quote-button,
    .sfy-product-secondary-button {
        width: 100%;
    }

}

.sfy-product-section {
    width: 100%;
}

.sfy-product-section-inner {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0;
}

.sfy-product-section-heading {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 38px;
}

.sfy-product-section-heading span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #999;
}

.sfy-product-section-heading h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
}

.sfy-product-customization {
    background: #fff;
}

.sfy-customization-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.sfy-check {
    font-weight: 700;
    font-size: 17px;
}

.sfy-product-description {
    background: #f7f7f7;
}

.sfy-product-content,
.sfy-product-notes-content {
    max-width: 850px;
    font-size: 16px;
    line-height: 1.8;
}

.sfy-product-content > *:first-child,
.sfy-product-notes-content > *:first-child {
    margin-top: 0;
}

.sfy-product-content > *:last-child,
.sfy-product-notes-content > *:last-child {
    margin-bottom: 0;
}

.sfy-product-video-wrapper {
    max-width: 900px;
}

.sfy-product-video-wrapper iframe {
    width: 100%;
    min-height: 500px;
}

.sfy-product-sample {
    background: #fff;
}

.sfy-product-sample-content {
    max-width: 760px;
}

.sfy-product-sample-content p {
    margin-bottom: 25px;
    font-size: 17px;
    line-height: 1.75;
}

.sfy-product-notes {
    background: #f7f7f7;
}

.sfy-product-cta {
    background: #111;
    color: #fff;
}

.sfy-product-cta-inner {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 90px 0;
    text-align: center;
}

.sfy-product-cta-inner h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
}

.sfy-product-cta-inner p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ddd;
    line-height: 1.75;
}

.sfy-product-cta .sfy-product-quote-button {
    background: #fff;
    color: #111;
}

.sfy-product-cta .sfy-product-quote-button:hover {
    background: #eaeaea;
    color: #111;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .sfy-customization-grid {
        grid-template-columns: 1fr;
    }

    .sfy-product-section-inner {
        padding: 60px 0;
    }

    .sfy-product-video-wrapper iframe {
        min-height: 400px;
    }

}

@media (max-width: 600px) {

    .sfy-product-section-inner,
    .sfy-product-cta-inner {
        width: min(100% - 28px, 1200px);
    }

    .sfy-product-section-inner {
        padding: 50px 0;
    }

    .sfy-product-section-heading h2 {
        font-size: 27px;
    }

    .sfy-product-spec {
        flex-direction: column;
        gap: 6px;
    }

    .sfy-product-spec strong {
        text-align: left;
    }

    .sfy-product-video-wrapper iframe {
        min-height: 260px;
    }

    .sfy-product-cta-inner {
        padding: 65px 0;
    }

}

/* =========================================================
   SFY Supply - Product Details
   ========================================================= */

.sfy-product-details {
    background: #f7f7f7;
}

.sfy-product-details .sfy-product-section-inner {
    width: min(1040px, calc(100% - 48px));
    padding: 72px 0;
}

.sfy-product-section-heading {
    display: block;
    margin-bottom: 34px;
}

.sfy-product-section-heading span {
    display: none;
}

.sfy-product-section-heading h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Improve long values such as colors and sizes */

.sfy-product-spec:nth-child(4) strong,
.sfy-product-spec:nth-child(5) strong {
    line-height: 1.8;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .sfy-product-details .sfy-product-section-inner {
        width: min(100% - 40px, 700px);
        padding: 60px 0;
    }

    .sfy-product-specifications {
        grid-template-columns: 1fr;
    }

    .sfy-product-spec:nth-child(odd) {
        padding-right: 0;
        border-right: 0;
    }

    .sfy-product-spec:nth-child(even) {
        padding-left: 0;
    }

}

@media (max-width: 600px) {

    .sfy-product-details .sfy-product-section-inner {
        width: calc(100% - 28px);
        padding: 48px 0;
    }

    .sfy-product-section-heading {
        margin-bottom: 26px;
    }

    .sfy-product-section-heading h2 {
        font-size: 28px;
    }

    .sfy-product-spec {
        grid-template-columns: 1fr;
        gap: 5px;
        min-height: 0;
        padding: 17px 0;
    }

    .sfy-product-spec strong {
        font-size: 15px;
    }

}


/* =========================================================
   SFY Supply - Customization Options
   ========================================================= */

.sfy-product-customization {
    background: #fff;
}

.sfy-product-customization .sfy-product-section-inner {
    width: min(1040px, calc(100% - 48px));
    padding: 72px 0;
}

.sfy-product-customization .sfy-product-section-heading {
    margin-bottom: 34px;
}

.sfy-customization-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sfy-customization-item:hover {
    border-color: #bdbdbd;
    transform: translateY(-2px);
}

.sfy-check {
    display: inline-flex;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.sfy-customization-item > span:last-child {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .sfy-product-customization .sfy-product-section-inner {
        width: min(100% - 40px, 700px);
        padding: 60px 0;
    }

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

}

@media (max-width: 600px) {

    .sfy-product-customization .sfy-product-section-inner {
        width: calc(100% - 28px);
        padding: 48px 0;
    }

    .sfy-customization-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    }


/* =========================================================
   SFY Supply - Product Description
   ========================================================= */

.sfy-product-description {
    background: #f7f7f7;
}

.sfy-product-description .sfy-product-section-inner {
    width: min(1040px, calc(100% - 48px));
    padding: 72px 0;
}

.sfy-product-description .sfy-product-section-heading {
    margin-bottom: 34px;
}

.sfy-product-content {
    max-width: 820px;
    font-size: 16px;
    line-height: 1.85;
    color: #444;
}

.sfy-product-content p {
    margin-top: 0;
    margin-bottom: 22px;
}

.sfy-product-content p:last-child {
    margin-bottom: 0;
}

.sfy-product-content h2,
.sfy-product-content h3,
.sfy-product-content h4 {
    margin-top: 36px;
    margin-bottom: 16px;
}

.sfy-product-content h2 {
    font-size: 28px;
}

.sfy-product-content h3 {
    font-size: 23px;
}

.sfy-product-content h4 {
    font-size: 19px;
}

.sfy-product-content ul,
.sfy-product-content ol {
    margin-top: 0;
    margin-bottom: 24px;
    padding-left: 22px;
}

.sfy-product-content li {
    margin-bottom: 8px;
}

.sfy-product-content strong {
    color: #222;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .sfy-product-description .sfy-product-section-inner {
        width: min(100% - 40px, 700px);
        padding: 60px 0;
    }

    .sfy-product-content {
        max-width: none;
    }

}

@media (max-width: 600px) {

    .sfy-product-description .sfy-product-section-inner {
        width: calc(100% - 28px);
        padding: 48px 0;
    }

    .sfy-product-content {
        font-size: 15px;
        line-height: 1.8;
    }

}


/* =========================================================
   SFY Supply - Sample Available
   ========================================================= */

.sfy-product-sample {
    background: #fff;
}

.sfy-product-sample .sfy-product-section-inner {
    width: min(1040px, calc(100% - 48px));
    padding: 72px 0;
}

.sfy-product-sample .sfy-product-section-heading {
    margin-bottom: 28px;
}

.sfy-product-sample-content {
    max-width: 760px;
}

.sfy-product-sample-content p {
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.sfy-product-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border: 1px solid #111;
    border-radius: 0;
    background: #fff;
    color: #111;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.sfy-product-secondary-button:hover,
.sfy-product-secondary-button:focus {
    background: #111;
    color: #fff;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .sfy-product-sample .sfy-product-section-inner {
        width: min(100% - 40px, 700px);
        padding: 60px 0;
    }

}

@media (max-width: 600px) {

    .sfy-product-sample .sfy-product-section-inner {
        width: calc(100% - 28px);
        padding: 48px 0;
    }

    .sfy-product-sample-content p {
        font-size: 15px;
    }

    .sfy-product-secondary-button {
        width: 100%;
    }

}


/* =========================================================
   SFY Supply - Additional Information
   ========================================================= */

.sfy-product-notes {
    background: #f7f7f7;
}

.sfy-product-notes .sfy-product-section-inner {
    width: min(1040px, calc(100% - 48px));
    padding: 68px 0;
}

.sfy-product-notes .sfy-product-section-heading {
    margin-bottom: 28px;
}

.sfy-product-notes-content {
    max-width: 820px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.sfy-product-notes-content p {
    margin: 0 0 18px;
}

.sfy-product-notes-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SFY Supply - Final Product CTA
   ========================================================= */

.sfy-product-cta {
    background: #111;
    color: #fff;
}

.sfy-product-cta-inner {
    width: min(900px, calc(100% - 48px));
    margin: 0 auto;
    padding: 82px 0 88px;
    text-align: center;
}

.sfy-product-cta-inner h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #fff;
}

.sfy-product-cta-inner p {
    max-width: 680px;
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.75;
    color: #d8d8d8;
}

.sfy-product-cta .sfy-product-quote-button {
    min-height: 52px;
    padding: 0 30px;
    border-color: #fff;
    background: #fff;
    color: #111;
}

.sfy-product-cta .sfy-product-quote-button:hover,
.sfy-product-cta .sfy-product-quote-button:focus {
    border-color: #e6e6e6;
    background: #e6e6e6;
    color: #111;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .sfy-product-notes .sfy-product-section-inner {
        width: min(100% - 40px, 700px);
        padding: 60px 0;
    }

    .sfy-product-cta-inner {
        width: min(100% - 40px, 700px);
        padding: 70px 0 76px;
    }

}

@media (max-width: 600px) {

    .sfy-product-notes .sfy-product-section-inner {
        width: calc(100% - 28px);
        padding: 48px 0;
    }

    .sfy-product-notes-content {
        font-size: 14px;
    }

    .sfy-product-cta-inner {
        width: calc(100% - 28px);
        padding: 60px 0 66px;
    }

    .sfy-product-cta-inner h2 {
        font-size: 30px;
    }

    .sfy-product-cta-inner p {
        font-size: 15px;
    }

    .sfy-product-cta .sfy-product-quote-button {
        width: 100%;
    }

}


/* =========================================================
   SFY Supply - Product Gallery
   ========================================================= */

.sfy-product-gallery {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 650px;
}

.sfy-product-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sfy-product-thumb {
    display: block;
    width: 76px;
    height: 92px;
    padding: 0;
    border: 1px solid #e2e2e2;
    border-radius: 0;
    background: #f5f5f5;
    overflow: hidden;
    cursor: pointer;
    opacity: .72;
    transition: opacity .2s ease, border-color .2s ease;
}

.sfy-product-thumb:hover {
    opacity: 1;
}

.sfy-product-thumb.is-active {
    border-color: #111;
    opacity: 1;
}

.sfy-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfy-product-gallery .sfy-product-main-image {
    width: 100%;
    max-width: none;
}

.sfy-product-gallery .sfy-product-featured-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}


/* =========================================================
   Product Gallery Responsive
   ========================================================= */

@media (max-width: 900px) {

    .sfy-product-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 680px;
    }

    .sfy-product-gallery-thumbs {
        order: 2;
        flex-direction: row;
        gap: 9px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .sfy-product-thumb {
        flex: 0 0 72px;
        width: 72px;
        height: 88px;
    }

    .sfy-product-gallery .sfy-product-main-image {
        order: 1;
    }

}

@media (max-width: 600px) {

    .sfy-product-gallery {
        gap: 10px;
    }

    .sfy-product-thumb {
        flex-basis: 64px;
        width: 64px;
        height: 78px;
    }

}


/* =========================================================
   SFY Supply - Products Archive
   ========================================================= */

.sfy-products-page {
    width: 100%;
}

.sfy-products-header {
    background: #f7f7f7;
}

.sfy-products-header-inner {
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
    padding: 80px 0 70px;
    text-align: center;
}

.sfy-products-eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #777;
}

.sfy-products-header h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.sfy-products-header-inner > p {
    max-width: 650px;
    margin: 0 auto 18px;
    font-size: 17px;
    line-height: 1.75;
    color: #555;
}

.sfy-products-header-note {
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.sfy-products-category-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.75;
    color: #555;
}

.sfy-products-category-description p {
    margin: 0;
}


/* =========================================================
   Category Navigation
   ========================================================= */

.sfy-products-categories {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.sfy-products-categories-inner {
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sfy-products-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 17px;
    border: 1px solid transparent;
    color: #666;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .2s ease;
}

.sfy-products-category-link:hover {
    color: #111;
    border-color: #ddd;
}

.sfy-products-category-link.is-active {
    background: #111;
    color: #fff;
}

.sfy-products-category-link.is-active:hover {
    color: #fff;
    background: #333;
}


/* =========================================================
   Product Grid
   ========================================================= */

.sfy-products-grid-section {
    background: #fff;
}

.sfy-products-grid-inner {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 90px;
}

.sfy-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 38px 24px;
}


/* =========================================================
   Product Card
   ========================================================= */

.sfy-product-card {
    min-width: 0;
}

.sfy-product-card-image-link {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.sfy-product-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform .35s ease;
}

.sfy-product-card-image-link:hover .sfy-product-card-image {
    transform: scale(1.025);
}

.sfy-product-card-image-placeholder {
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
}

.sfy-product-card-content {
    padding: 20px 2px 0;
}

.sfy-product-card-category {
    margin-bottom: 8px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #888;
}

.sfy-product-card-title {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.sfy-product-card-title a {
    color: #111;
    text-decoration: none;
}

.sfy-product-card-title a:hover {
    color: #555;
}

.sfy-product-card-sku {
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .04em;
    color: #888;
}

.sfy-product-card-price {
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: #333;
}

.sfy-product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
}

.sfy-product-card-link span {
    transition: transform .2s ease;
}

.sfy-product-card-link:hover {
    color: #555;
}

.sfy-product-card-link:hover span {
    transform: translateX(3px);
}


/* =========================================================
   Empty State
   ========================================================= */

.sfy-products-empty {
    padding: 70px 20px;
    text-align: center;
}

.sfy-products-empty h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.sfy-products-empty p {
    margin: 0;
    color: #666;
}


/* =========================================================
   Pagination
   ========================================================= */

.sfy-products-grid-inner .navigation.pagination {
    margin-top: 55px;
    text-align: center;
}

.sfy-products-grid-inner .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sfy-products-grid-inner .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #e2e2e2;
    color: #333;
    font-size: 12px;
    text-decoration: none;
}

.sfy-products-grid-inner .page-numbers.current,
.sfy-products-grid-inner .page-numbers:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}


/* =========================================================
   Products CTA
   ========================================================= */

.sfy-products-cta {
    background: #111;
    color: #fff;
}

.sfy-products-cta-inner {
    width: min(900px, calc(100% - 48px));
    margin: 0 auto;
    padding: 80px 0 86px;
    text-align: center;
}

.sfy-products-cta-inner h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.sfy-products-cta-inner p {
    max-width: 680px;
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.75;
    color: #d8d8d8;
}

.sfy-products-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 30px;
    border: 1px solid #fff;
    background: #fff;
    color: #111;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s ease;
}

.sfy-products-cta-button:hover {
    background: #e6e6e6;
    color: #111;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .sfy-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
    }

    .sfy-products-header-inner {
        padding: 65px 0 55px;
    }

}

@media (max-width: 600px) {

    .sfy-products-header-inner,
    .sfy-products-categories-inner,
    .sfy-products-grid-inner,
    .sfy-products-cta-inner {
        width: calc(100% - 28px);
    }

    .sfy-products-header-inner {
        padding: 48px 0 42px;
    }

    .sfy-products-header h1 {
        font-size: 38px;
    }

    .sfy-products-header-inner > p {
        font-size: 15px;
    }

    .sfy-products-categories-inner {
        min-height: 0;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 13px 0;
    }

    .sfy-products-category-link {
        flex: 0 0 auto;
        padding: 0 14px;
    }

    .sfy-products-grid-inner {
        padding: 48px 0 60px;
    }

    .sfy-products-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .sfy-product-card-title {
        font-size: 20px;
    }

    .sfy-products-cta-inner {
        padding: 60px 0 66px;
    }

    .sfy-products-cta-button {
        width: 100%;
    }

}


/* =========================================================
   SFY Supply - Size Chart
   ========================================================= */

.sfy-product-size-chart {
    background: #fff;
}

.sfy-product-size-chart .sfy-product-section-inner {
    width: min(1040px, calc(100% - 48px));
    padding: 68px 0 72px;
}

.sfy-size-chart-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sfy-size-chart {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    border: 1px solid #dcdcdc;
    font-size: 13px;
}

.sfy-size-chart th,
.sfy-size-chart td {
    padding: 16px 18px;
    border-right: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
    text-align: center;
    white-space: nowrap;
}

 .sfy-size-chart th:first-child,
.sfy-size-chart td:first-child {
    text-align: center;
}

.sfy-size-chart th {
    background: #f5f5f5;
    color: #222;
    font-size: 12px;
    font-weight: 700;
}

.sfy-size-chart td {
    background: #fff;
    color: #444;
}

.sfy-size-chart tbody tr:hover td {
    background: #fafafa;
}

.sfy-size-chart-note {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.6;
    color: #777;
}

@media (max-width: 600px) {

    .sfy-product-size-chart .sfy-product-section-inner {
        width: calc(100% - 28px);
        padding: 48px 0;
    }

    .sfy-size-chart {
        min-width: 560px;
        font-size: 12px;
    }

    .sfy-size-chart th,
    .sfy-size-chart td {
        padding: 13px 14px;
    }

}

/* =====================================
   Customization Cards
===================================== */

.sfy-customization-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}


.sfy-customization-card {
    border:1px solid #e5e5e5;
    padding:28px 20px;
    text-align:center;
    background:#fff;
    transition:.3s ease;
}


.sfy-customization-card:hover {
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transform:translateY(-3px);
}


.sfy-customization-icon {
    width:42px;
    height:42px;
    line-height:42px;
    margin:0 auto 18px;
    border-radius:50%;
    background:#111;
    color:#fff;
    font-size:20px;
}


.sfy-customization-card h3 {
    font-size:18px;
    margin-bottom:12px;
}


.sfy-customization-card p {
    font-size:14px;
    color:#666;
    line-height:1.6;
}


@media(max-width:900px){

    .sfy-customization-grid{
        grid-template-columns:repeat(2,1fr);
    }

}


@media(max-width:600px){

    .sfy-customization-grid{
        grid-template-columns:1fr;
    }

}

/* =========================================================
   SFY Supply - Adaptive Customization Grid
   ========================================================= */

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

/*
 * Center the last row when it is not full.
 */

.sfy-customization-count-1,
.sfy-customization-count-2,
.sfy-customization-count-3 {
    justify-content: center;
}

.sfy-customization-count-1 .sfy-customization-card {
    grid-column: 2 / 4;
}

.sfy-customization-count-2 .sfy-customization-card:first-child {
    grid-column: 2;
}

.sfy-customization-count-2 .sfy-customization-card:nth-child(2) {
    grid-column: 3;
}

.sfy-customization-count-3 .sfy-customization-card:first-child {
    grid-column: 1;
}

.sfy-customization-count-3 .sfy-customization-card:nth-child(2) {
    grid-column: 2;
}

.sfy-customization-count-3 .sfy-customization-card:nth-child(3) {
    grid-column: 3;
}

/*
 * When there are more than 4 cards,
 * use normal 4-column flow.
 */

.sfy-customization-count-4,
.sfy-customization-count-5,
.sfy-customization-count-6,
.sfy-customization-count-7 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {

    .sfy-customization-grid,
    .sfy-customization-count-4,
    .sfy-customization-count-5,
    .sfy-customization-count-6,
    .sfy-customization-count-7 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfy-customization-count-1 .sfy-customization-card,
    .sfy-customization-count-2 .sfy-customization-card:first-child,
    .sfy-customization-count-2 .sfy-customization-card:nth-child(2),
    .sfy-customization-count-3 .sfy-customization-card:first-child,
    .sfy-customization-count-3 .sfy-customization-card:nth-child(2),
    .sfy-customization-count-3 .sfy-customization-card:nth-child(3) {
        grid-column: auto;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .sfy-customization-grid,
    .sfy-customization-count-4,
    .sfy-customization-count-5,
    .sfy-customization-count-6,
    .sfy-customization-count-7 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

}


/* =========================================================
   SFY Supply - Unified Customization Cards
   ========================================================= */

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

.sfy-customization-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 210px;
    padding: 28px 20px 24px;
    border: 1px solid #e2e2e2;
    background: #fff;
    text-align: center;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sfy-customization-card:hover {
    border-color: #bdbdbd;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
    transform: translateY(-2px);
}

.sfy-customization-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 17px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
    flex: 0 0 auto;
}

.sfy-customization-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
    color: #222;
}

.sfy-customization-card p {
    max-width: 220px;
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #666;
}

/* 5th, 6th, 7th ... cards naturally flow */
.sfy-customization-card {
    grid-column: auto;
}

/* Tablet */
@media (max-width: 900px) {

    .sfy-customization-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .sfy-customization-card {
        min-height: 190px;
        padding: 24px 18px;
    }

}

/* Mobile */
@media (max-width: 600px) {

    .sfy-customization-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sfy-customization-card {
        min-height: 0;
        padding: 22px 18px;
    }

}


/* =========================================================
   SFY Supply - Mobile Customization Cards Optimization
   ========================================================= */

@media (max-width: 600px) {

    .sfy-customization-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sfy-customization-card {
        min-height: 0;
        padding: 14px 16px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

    .sfy-customization-icon {
        width: 32px;
        height: 32px;
        margin: 0 12px 0 0;
        font-size: 13px;
        flex: 0 0 32px;
    }

    .sfy-customization-card h3 {
        margin: 0 0 3px;
        font-size: 15px;
        line-height: 1.3;
    }

    .sfy-customization-card p {
        max-width: none;
        margin: 0;
        font-size: 12px;
        line-height: 1.45;
    }

}



/* =========================================================
   SFY Supply - Mobile Gallery Fixed
   ========================================================= */

@media (max-width:600px){

    .sfy-product-gallery{
        display:flex;
        flex-direction:column;
        gap:12px;
    }


    /* 主图放第一 */
    .sfy-product-main-image{
        order:1;
        width:100%;
    }


    .sfy-product-featured-image{
        display:block;
        width:100%;
        height:auto;
        aspect-ratio:1/1;
        object-fit:cover;
    }


    /* 缩略图放下面 */
    .sfy-product-gallery-thumbs{
        order:2;

        display:flex;
        flex-direction:row;

        gap:8px;

        overflow-x:auto;
        overflow-y:hidden;

        width:100%;

        padding-bottom:5px;

        scrollbar-width:none;
    }


    .sfy-product-gallery-thumbs::-webkit-scrollbar{
        display:none;
    }


    .sfy-product-thumb{

        flex:0 0 64px;

        width:64px;
        height:64px;

        padding:0;

        border:1px solid #ddd;

        background:#fff;

    }


    .sfy-product-thumb.is-active{

        border:2px solid #111;

    }


    .sfy-product-thumb img{

        width:100%;
        height:100%;

        object-fit:cover;

    }

}


/* =========================================================
   SFY Supply - Product Gallery Final Fix
   ========================================================= */

.sfy-product-gallery {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 650px;
}

.sfy-product-main-image {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.sfy-product-gallery-thumbs {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 76px;
    min-width: 0;
}

.sfy-product-featured-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.sfy-product-thumb {
    display: block;
    width: 76px;
    height: 92px;
    flex: 0 0 92px;
    margin: 0;
    padding: 0;
    border: 1px solid #dedede;
    border-radius: 0;
    background: #f5f5f5;
    overflow: hidden;
    cursor: pointer;
    opacity: .7;
}

.sfy-product-thumb.is-active {
    border: 2px solid #111;
    opacity: 1;
}

.sfy-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 900px) {

    .sfy-product-gallery {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 680px;
        gap: 10px;
    }

    .sfy-product-main-image {
        width: 100%;
        order: 1;
    }

    .sfy-product-gallery-thumbs {
        width: 100%;
        order: 2;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 4px;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sfy-product-gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

    .sfy-product-thumb {
        width: 64px;
        height: 78px;
        flex: 0 0 64px;
    }

    .sfy-product-featured-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

}

@media (max-width: 600px) {

    .sfy-product-gallery {
        gap: 8px;
    }

    .sfy-product-thumb {
        width: 58px;
        height: 70px;
        flex-basis: 58px;
        flex-shrink: 0;
    }

}


/* =========================================================
   SFY Supply - Mobile Product Gallery Width Fix
   ========================================================= */

@media (max-width: 900px) {

    .sfy-product-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: min(100% - 40px, 680px);
    }

    .sfy-product-media {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        display: block !important;
    }

    .sfy-product-gallery {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .sfy-product-main-image {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .sfy-product-featured-image {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-width: 0 !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
    }

    .sfy-product-gallery-thumbs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .sfy-product-thumb {
        flex: 0 0 64px !important;
        width: 64px !important;
        height: 78px !important;
        min-width: 64px !important;
    }

}

@media (max-width: 600px) {

    .sfy-product-hero {
        width: calc(100% - 28px) !important;
    }

    .sfy-product-thumb {
        flex: 0 0 58px !important;
        width: 58px !important;
        height: 70px !important;
        min-width: 58px !important;
    }

}


/* =========================================================
   SFY Supply - Final Mobile Gallery Tuning
   ========================================================= */

@media (max-width: 600px) {

    .sfy-product-gallery {
        gap: 7px !important;
    }

    .sfy-product-gallery-thumbs {
        gap: 6px !important;
        padding-bottom: 2px !important;
    }

    .sfy-product-thumb {
        flex: 0 0 54px !important;
        width: 54px !important;
        height: 66px !important;
        min-width: 54px !important;
    }

}

/* =========================================================
   SFY Supply - Desktop Gallery
   Main Image + Thumbnails Below
   ========================================================= */

@media (min-width: 901px) {

    .sfy-product-gallery {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 650px !important;
        gap: 12px !important;
    }

    .sfy-product-main-image {
        order: 1 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .sfy-product-gallery-thumbs {
        order: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 0 3px !important;
        scrollbar-width: thin;
    }

    .sfy-product-thumb {
        flex: 0 0 72px !important;
        width: 72px !important;
        height: 88px !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
    }

    .sfy-product-thumb.is-active {
        border: 2px solid #111 !important;
        opacity: 1 !important;
    }

    .sfy-product-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}


/* =========================================================
   SFY Supply - Desktop Product Gallery Scale
   ========================================================= */

@media (min-width: 901px) {

    .sfy-product-hero {
        grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr) !important;
        column-gap: 60px !important;
        align-items: center !important;
    }

    .sfy-product-media {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .sfy-product-gallery {
        width: 100% !important;
        max-width: 500px !important;
    }

    .sfy-product-gallery .sfy-product-featured-image {
        width: 100% !important;
        aspect-ratio: 4 / 5 !important;
        object-fit: cover !important;
    }

    .sfy-product-gallery-thumbs {
        gap: 7px !important;
        justify-content: flex-start !important;
    }

    .sfy-product-thumb {
        flex: 0 0 60px !important;
        width: 60px !important;
        height: 74px !important;
    }

}



/* =========================================================
   SFY Product Details - Clean Final
   ========================================================= */


.sfy-product-specifications {

    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    border: 1px solid #dcdcdc;

}


.sfy-product-spec {

    display:flex;
    flex-direction:row;
    justify-content:space-between;
    align-items:flex-start;

    gap:20px;

    padding:18px 24px;

    border-bottom:1px solid #dcdcdc;

}


.sfy-product-spec:nth-child(odd){

    border-right:1px solid #dcdcdc;

}


.sfy-product-spec:last-child{

    border-bottom:0;

}


.sfy-product-spec span{

    color:#777;
    font-size:14px;

}


.sfy-product-spec strong{

    color:#222;
    font-size:14px;
    font-weight:600;
    text-align:right;

}


@media(max-width:900px){

    .sfy-product-specifications{

        grid-template-columns:1fr;

    }


    .sfy-product-spec{

        border-right:0;
        flex-direction:column;

    }


    .sfy-product-spec strong{

        text-align:left;

    }

}



/* =========================================================
   Product Details - Mobile Alignment
   ========================================================= */

@media (max-width: 900px) {

    .sfy-product-specifications {
        grid-template-columns: 1fr;
    }

    .sfy-product-spec {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        align-items: start;
        gap: 16px;
        flex-direction: initial;
        padding: 16px 20px;
        border-right: 0;
    }

    .sfy-product-spec span {
        font-size: 13px;
        line-height: 1.5;
        color: #777;
    }

    .sfy-product-spec strong {
        font-size: 14px;
        line-height: 1.6;
        text-align: left;
        color: #222;
    }

}


@media (max-width: 600px) {

    .sfy-product-spec {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 14px;
        padding: 15px 16px;
    }

    .sfy-product-spec span {
        font-size: 13px;
    }

    .sfy-product-spec strong {
        font-size: 14px;
    }

}


/* =========================================================
   Product Details - Mobile Final Alignment Fix
   ========================================================= */

@media (max-width: 900px) {

    .sfy-product-spec:nth-child(odd),
    .sfy-product-spec:nth-child(even) {
        padding-left: 20px !important;
        padding-right: 20px !important;
        border-right: 0 !important;
    }

}

@media (max-width: 600px) {

    .sfy-product-spec:nth-child(odd),
    .sfy-product-spec:nth-child(even) {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

}


/* =========================================================
   SFY Products Archive - Compact Layout
   Temporary override for visual tuning
   ========================================================= */

.sfy-products-header-inner {
    padding: 58px 0 48px;
}

.sfy-products-header h1 {
    margin-bottom: 14px;
    font-size: clamp(38px, 4.2vw, 50px);
}

.sfy-products-header-inner > p {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.65;
}

.sfy-products-categories-inner {
    min-height: 62px;
}

.sfy-products-grid-inner {
    padding: 54px 0 72px;
}

.sfy-products-grid {
    gap: 32px 22px;
}

.sfy-product-card-image {
    aspect-ratio: 4 / 4.5;
}

.sfy-product-card-image-placeholder {
    aspect-ratio: 4 / 4.5;
}

.sfy-product-card-content {
    padding: 16px 2px 0;
}

.sfy-product-card-category {
    margin-bottom: 6px;
}

.sfy-product-card-title {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.3;
}

.sfy-product-card-sku {
    margin-bottom: 9px;
}

.sfy-product-card-price {
    margin-bottom: 12px;
}


@media (max-width: 900px) {

    .sfy-products-header-inner {
        padding: 48px 0 40px;
    }

    .sfy-products-grid-inner {
        padding: 46px 0 64px;
    }

}


@media (max-width: 600px) {

    .sfy-products-header-inner {
        padding: 38px 0 32px;
    }

    .sfy-products-header h1 {
        margin-bottom: 12px;
        font-size: 34px;
    }

    .sfy-products-header-inner > p {
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.6;
    }

    .sfy-products-categories-inner {
        min-height: 0;
        padding: 10px 0;
    }

    .sfy-products-grid-inner {
        padding: 38px 0 52px;
    }

    .sfy-products-grid {
        gap: 32px;
    }

    .sfy-product-card-content {
        padding-top: 14px;
    }

    .sfy-product-card-title {
        font-size: 18px;
    }

}


/* =========================================================
   SFY Products Header - Unified Compact Height
   ========================================================= */

.sfy-products-header-inner {
    min-height: 210px;
    box-sizing: border-box;
    padding: 42px 0 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sfy-products-header h1 {
    margin-bottom: 12px;
    font-size: clamp(38px, 4vw, 48px);
}

.sfy-products-header-inner > p,
.sfy-products-category-description {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 600px) {

    .sfy-products-header-inner {
        min-height: 175px;
        padding: 32px 0;
    }

    .sfy-products-header h1 {
        margin-bottom: 10px;
        font-size: 34px;
    }

    .sfy-products-header-inner > p,
    .sfy-products-category-description {
        font-size: 14px;
        line-height: 1.55;
    }

}


/* =========================================================
   SFY Header - Final Navigation + Sticky Header
   ========================================================= */

/* ---------- Header Base ---------- */

#masthead.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Scrolled header */
#masthead.site-header.sfy-header-scrolled {
    background: rgba(255, 255, 255, 0.50);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* Upward scrolling - slightly more transparent */
#masthead.site-header.sfy-header-up {
    background: rgba(255, 255, 255, 0.50);
}


/* ---------- Main Navigation ---------- */

#primary-menu > li > a {
    position: relative;
    color: #666;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

/* Hover */
#primary-menu > li > a:hover {
    color: #111;
}

/* Active page / current section */
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a,
#primary-menu > li.current_page_item > a,
#primary-menu > li.current_page_parent > a,
#primary-menu > li.current-menu-parent > a {
    color: #111;
}

/* Active underline */
#primary-menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: #111;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

/* Hover underline */
#primary-menu > li > a:hover::after {
    transform: scaleX(1);
}

/* Keep active underline visible */
#primary-menu > li.current-menu-item > a::after,
#primary-menu > li.current-menu-ancestor > a::after,
#primary-menu > li.current_page_item > a::after,
#primary-menu > li.current_page_parent > a::after,
#primary-menu > li.current-menu-parent > a::after {
    transform: scaleX(1);
}


/* ---------- Mobile Navigation ---------- */

@media (max-width: 1024px) {

    #masthead.site-header {
        background: rgba(255, 255, 255, 0.96);
    }

    #masthead.site-header.sfy-header-up {
        background: rgba(255, 255, 255, 0.50);
    }

    #primary-menu > li > a::after {
        display: none;
    }

}

/* =========================================================
   SFY Products - Final Product Card
   ========================================================= */

/* Keep product cards aligned */
.sfy-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Let the content area stretch naturally */
.sfy-product-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product title: maximum 2 lines with ellipsis */
.sfy-product-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(2 * 1.3em);
}

/* Keep SKU spacing consistent */
.sfy-product-card-sku {
    margin-bottom: 0;
}


/* =========================================================
   SFY Header - Mobile Menu Final
   Only adjust drawer width and current-item text color.
   Keep Kadence default height and behavior.
   ========================================================= */

@media (max-width: 1024px) {

    /* Make the mobile drawer narrower without changing height */
    #mobile-drawer .drawer-inner {
        width: min(60vw, 360px) !important;
    }

    /* Keep all mobile menu text white on the black background */
    #mobile-drawer .mobile-navigation ul li > a,
    #mobile-drawer .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap {
        color: #fff !important;
    }

    /* Current menu item */
    #mobile-drawer .mobile-navigation ul li.current-menu-item > a,
    #mobile-drawer .mobile-navigation ul li.current-menu-item.menu-item-has-children > .drawer-nav-drop-wrap,
    #mobile-drawer .mobile-navigation ul li.current-menu-ancestor > a,
    #mobile-drawer .mobile-navigation ul li.current-menu-ancestor.menu-item-has-children > .drawer-nav-drop-wrap {
        color: #fff !important;
    }

    /* Hover / focus */
    #mobile-drawer .mobile-navigation ul li > a:hover,
    #mobile-drawer .mobile-navigation ul li > a:focus,
    #mobile-drawer .mobile-navigation ul li > a:focus-visible,
    #mobile-drawer .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap:hover {
        color: #fff !important;
    }

}
