/* =========================================================
   KINGSTON GROOM SUITS
   HOME PRODUCTS
   ========================================================= */

.kgs-home-products {
    width: 100%;
    margin: 0;
    padding: 110px 0 100px;
    background: var(--kgs-page-bg, #050505);
    color: var(--kgs-text, #f5f5f5);
}

.kgs-home-products-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.kgs-home-products .kgs-section-heading {
    margin-bottom: 46px;
}

.kgs-home-products .kgs-eyebrow {
    display: block;
    margin-bottom: 12px;

    color: var(--kgs-gold, #d8af32);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.kgs-home-products .kgs-section-heading h2 {
    margin: 0 0 14px;

    color: var(--kgs-text, #f5f5f5);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -1.5px;
}

.kgs-home-products .kgs-section-heading p {
    max-width: 650px;
    margin: 0;

    color: var(--kgs-text-muted, #a7a7a7);

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.kgs-home-product-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.kgs-home-product-card {
    min-width: 0;

    overflow: hidden;

    background: var(--kgs-card-bg, #101010);

    border: 1px solid var(--kgs-border, rgba(255,255,255,.12));

    border-radius: 3px;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.kgs-home-product-card:hover {
    transform: translateY(-5px);

    border-color: rgba(216,175,50,.55);

    box-shadow:
        0 18px 40px rgba(0,0,0,.28);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.kgs-home-product-image {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: #0b0b0b;
}

.kgs-home-product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .45s ease;
}

.kgs-home-product-card:hover
.kgs-home-product-image img {
    transform: scale(1.035);
}


/* =========================================================
   NO IMAGE
   ========================================================= */

.kgs-home-product-no-image {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: var(--kgs-text-muted, #777);

    font-size: 13px;
    letter-spacing: .5px;
}


/* =========================================================
   QUICK VIEW
   ========================================================= */

.kgs-product-quick-view {
    position: absolute;

    right: 16px;
    bottom: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    color: var(--kgs-text, #fff);

    background: rgba(5,5,5,.82);

    border: 1px solid rgba(216,175,50,.55);

    border-radius: 50%;

    cursor: pointer;

    backdrop-filter: blur(6px);

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.kgs-product-quick-view:hover {
    color: #050505;

    background: var(--kgs-gold, #d8af32);

    transform: scale(1.06);
}


/* =========================================================
   PRODUCT CONTENT
   ========================================================= */

.kgs-home-product-content {
    padding: 25px 22px 24px;
}

.kgs-home-product-label {
    display: block;

    margin-bottom: 10px;

    color: var(--kgs-gold, #d8af32);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.kgs-home-product-content h3 {
    margin: 0 0 12px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 22px;
    line-height: 1.25;
}

.kgs-home-product-content h3 a {
    color: var(--kgs-text, #f5f5f5);

    text-decoration: none;

    transition: color .2s ease;
}

.kgs-home-product-content h3 a:hover {
    color: var(--kgs-gold, #d8af32);
}

.kgs-home-product-content p {
    min-height: 44px;

    margin: 0 0 18px;

    color: var(--kgs-text-muted, #999);

    font-size: 13px;
    line-height: 1.65;
}


/* =========================================================
   PRICE
   ========================================================= */

.kgs-home-product-price {
    display: flex;

    flex-wrap: wrap;
    align-items: baseline;

    gap: 9px;

    margin-bottom: 22px;
}

.kgs-home-product-price strong {
    color: var(--kgs-gold, #d8af32);

    font-size: 18px;
    font-weight: 700;
}

.kgs-product-old-price {
    color: var(--kgs-text-muted, #777);

    font-size: 13px;

    text-decoration: line-through;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.kgs-home-product-actions {
    display: flex;

    gap: 10px;
}

.kgs-home-product-actions form {
    flex: 1;
    margin: 0;
}

.kgs-product-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 43px;

    padding: 10px 12px;

    color: var(--kgs-gold, #d8af32);

    background: transparent;

    border: 1px solid var(--kgs-gold, #d8af32);

    border-radius: 2px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;

    text-decoration: none;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.kgs-product-btn:hover {
    color: #050505;

    background: var(--kgs-gold, #d8af32);
}

.kgs-product-cart-btn {
    font-family: inherit;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.kgs-products-empty {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 120px;

    padding: 30px;

    color: var(--kgs-text-muted, #888);

    border: 1px dashed var(--kgs-border, rgba(255,255,255,.14));

    text-align: center;
}

.kgs-products-empty p {
    margin: 0;
}


/* =========================================================
   QUICK VIEW MODAL
   ========================================================= */

.kgs-product-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;
}

.kgs-product-modal[hidden] {
    display: none;
}

.kgs-product-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.78);

    backdrop-filter: blur(5px);
}

.kgs-product-modal-box {
    position: relative;

    z-index: 2;

    width: min(680px, calc(100% - 32px));
    max-height: calc(100vh - 40px);

    margin: 20px auto;

    overflow: auto;

    background: var(--kgs-card-bg, #111);

    border: 1px solid rgba(216,175,50,.45);

    border-radius: 4px;
}

.kgs-product-modal-close {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 5;

    width: 38px;
    height: 38px;

    color: #fff;

    background: rgba(0,0,0,.7);

    border: 1px solid rgba(255,255,255,.2);

    border-radius: 50%;

    font-size: 22px;

    cursor: pointer;
}

.kgs-product-modal-loading {
    padding: 70px 30px;

    color: var(--kgs-text-muted, #999);

    text-align: center;
}


/* =========================================================
   LIGHT THEME
   ========================================================= */

html[data-kgs-theme="light"] .kgs-home-products {
    background: var(--kgs-page-bg);
    color: var(--kgs-text);
}

html[data-kgs-theme="light"] .kgs-home-product-card {
    background: var(--kgs-card-bg);

    border-color: var(--kgs-border);
}

html[data-kgs-theme="light"] .kgs-home-product-image {
    background: #f1f1f1;
}

html[data-kgs-theme="light"] .kgs-product-quick-view {
    color: var(--kgs-text);

    background: rgba(255,255,255,.88);
}

html[data-kgs-theme="light"] .kgs-product-modal-box {
    background: var(--kgs-card-bg);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .kgs-home-products {
        padding: 85px 0 75px;
    }

    .kgs-home-products-container {
        width: min(100% - 32px, 760px);
    }

    .kgs-home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .kgs-home-products {
        padding: 70px 0 60px;
    }

    .kgs-home-products-container {
        width: calc(100% - 28px);
    }

    .kgs-home-products .kgs-section-heading {
        margin-bottom: 32px;
    }

    .kgs-home-products .kgs-section-heading h2 {
        font-size: 40px;
    }

    .kgs-home-product-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .kgs-home-product-image {
        aspect-ratio: 4 / 5;
    }

    .kgs-home-product-content {
        padding: 22px 18px;
    }

    .kgs-home-product-content h3 {
        font-size: 21px;
    }

    .kgs-home-product-actions {
        flex-direction: column;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .kgs-home-products .kgs-section-heading h2 {
        font-size: 35px;
    }

    .kgs-home-product-content h3 {
        font-size: 19px;
    }

}

/* =========================================================
   QUICK VIEW PRODUCT CONTENT
   ========================================================= */

.kgs-quick-view-product {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    min-width: 0;
}


/* =========================================================
   QUICK VIEW IMAGE
   ========================================================= */

.kgs-quick-view-image {
    position: relative;
    min-width: 0;
    min-height: 420px;
    overflow: hidden;
    background: #0a0a0a;
}

.kgs-quick-view-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.kgs-quick-view-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 30px;
    color: var(--kgs-text-muted, #888);
    text-align: center;
}

.kgs-quick-view-featured {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 11px;
    color: #050505;
    background: var(--kgs-gold, #d8af32);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


/* =========================================================
   QUICK VIEW INFORMATION
   ========================================================= */

.kgs-quick-view-information {
    min-width: 0;
    padding: 42px 36px 36px;
}

.kgs-quick-view-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--kgs-gold, #d8af32);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.kgs-quick-view-information h2 {
    margin: 0 0 10px;
    color: var(--kgs-text, #f5f5f5);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 600;
}

.kgs-quick-view-brand {
    margin-bottom: 18px;
    color: var(--kgs-text-muted, #999);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.kgs-quick-view-description {
    margin: 0 0 22px;
    color: var(--kgs-text-muted, #aaa);
    font-size: 13px;
    line-height: 1.75;
}


/* =========================================================
   QUICK VIEW PRICE
   ========================================================= */

.kgs-quick-view-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.kgs-quick-view-price strong {
    color: var(--kgs-gold, #d8af32);
    font-size: 21px;
    font-weight: 800;
}

.kgs-quick-view-old-price {
    color: var(--kgs-text-muted, #777);
    font-size: 13px;
    text-decoration: line-through;
}


/* =========================================================
   QUICK VIEW STOCK
   ========================================================= */

.kgs-quick-view-stock {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--kgs-border, rgba(255,255,255,.12));
}

.kgs-quick-stock-in {
    color: #8fca8f;
    font-size: 11px;
    font-weight: 700;
}

.kgs-quick-stock-out {
    color: #d87878;
    font-size: 11px;
    font-weight: 700;
}

.kgs-quick-view-stock small {
    color: var(--kgs-text-muted, #777);
    font-size: 10px;
}


/* =========================================================
   QUICK VIEW ATTRIBUTES
   ========================================================= */

.kgs-quick-view-attributes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 26px;
}

.kgs-quick-view-attribute {
    min-width: 0;
    padding: 11px 12px;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--kgs-border, rgba(255,255,255,.09));
}

.kgs-quick-view-attribute span {
    display: block;
    margin-bottom: 4px;
    color: var(--kgs-text-muted, #777);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.kgs-quick-view-attribute strong {
    display: block;
    overflow: hidden;
    color: var(--kgs-text, #f5f5f5);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   QUICK VIEW ACTIONS
   ========================================================= */

.kgs-quick-view-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.kgs-quick-view-cart-form {
    min-width: 0;
    margin: 0;
}

.kgs-quick-view-add-cart,
.kgs-quick-view-full-product {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 2px;
    font-family: inherit;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.kgs-quick-view-add-cart {
    color: #050505;
    background: var(--kgs-gold, #d8af32);
    border: 1px solid var(--kgs-gold, #d8af32);
}

.kgs-quick-view-add-cart:hover {
    color: #050505;
    background: #e7c65a;
    border-color: #e7c65a;
}

.kgs-quick-view-full-product {
    color: var(--kgs-gold, #d8af32);
    background: transparent;
    border: 1px solid var(--kgs-gold, #d8af32);
}

.kgs-quick-view-full-product:hover {
    color: #050505;
    background: var(--kgs-gold, #d8af32);
}


/* =========================================================
   TAILORING APPOINTMENT
   ========================================================= */

.kgs-quick-view-appointment {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    box-sizing: border-box;
    color: var(--kgs-text-muted, #999);
    border: 1px solid var(--kgs-border, rgba(255,255,255,.12));
    border-radius: 2px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color .2s ease,
        border-color .2s ease;
}

.kgs-quick-view-appointment:hover {
    color: var(--kgs-gold, #d8af32);
    border-color: var(--kgs-gold, #d8af32);
}


/* =========================================================
   QUICK VIEW ERROR
   ========================================================= */

.kgs-product-modal-error {
    padding: 70px 30px;
    color: var(--kgs-text, #f5f5f5);
    text-align: center;
}

.kgs-product-modal-error strong {
    display: block;
    margin-bottom: 10px;
    color: var(--kgs-gold, #d8af32);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.kgs-product-modal-error p {
    margin: 0;
    color: var(--kgs-text-muted, #999);
    font-size: 13px;
}


/* =========================================================
   MODAL OPEN ANIMATION
   ========================================================= */

.kgs-product-modal {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .18s ease,
        visibility .18s ease;
}

.kgs-product-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.kgs-product-modal-box {
    transform: translateY(12px) scale(.985);
    transition: transform .18s ease;
}

.kgs-product-modal.is-open .kgs-product-modal-box {
    transform: translateY(0) scale(1);
}


/* =========================================================
   BODY LOCK
   ========================================================= */

body.kgs-modal-open {
    overflow: hidden;
}


/* =========================================================
   LIGHT THEME
   ========================================================= */

html[data-kgs-theme="light"] .kgs-quick-view-image {
    background: #f1f1f1;
}

html[data-kgs-theme="light"] .kgs-quick-view-attribute {
    background: rgba(0,0,0,.025);
}

html[data-kgs-theme="light"] .kgs-quick-view-information h2,
html[data-kgs-theme="light"] .kgs-quick-view-attribute strong {
    color: var(--kgs-text);
}


/* =========================================================
   QUICK VIEW TABLET
   ========================================================= */

@media (max-width: 700px) {

    .kgs-product-modal-box {
        width: min(560px, calc(100% - 24px));
        max-height: calc(100vh - 24px);
        margin: 12px auto;
    }

    .kgs-quick-view-product {
        grid-template-columns: 1fr;
    }

    .kgs-quick-view-image {
        min-height: 300px;
        max-height: 390px;
    }

    .kgs-quick-view-image img {
        min-height: 300px;
        max-height: 390px;
    }

    .kgs-quick-view-information {
        padding: 28px 24px 26px;
    }

}


/* =========================================================
   QUICK VIEW MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .kgs-product-modal-box {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
    }

    .kgs-product-modal-close {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
        font-size: 19px;
    }

    .kgs-quick-view-image {
        min-height: 260px;
        max-height: 320px;
    }

    .kgs-quick-view-image img {
        min-height: 260px;
        max-height: 320px;
    }

    .kgs-quick-view-information {
        padding: 24px 18px 22px;
    }

    .kgs-quick-view-information h2 {
        font-size: 27px;
    }

    .kgs-quick-view-attributes {
        grid-template-columns: 1fr 1fr;
    }

    .kgs-quick-view-actions {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   HOME PRODUCT — EXISTING COMPONENT ADDITIONS
   ========================================================= */

.kgs-home-product-badge {
    position: absolute;
    top: 16px;
    left: 16px;

    padding: 7px 10px;

    color: #050505;
    background: var(--kgs-gold, #d8af32);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   CATEGORY LINKS
   ========================================================= */

.kgs-home-product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0 0 38px;
}

.kgs-home-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 8px 15px;

    color: var(--kgs-text-muted, #999);
    background: transparent;

    border: 1px solid var(--kgs-border, rgba(255,255,255,.14));

    border-radius: 2px;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.kgs-home-category-link:hover {
    color: #050505;
    background: var(--kgs-gold, #d8af32);
    border-color: var(--kgs-gold, #d8af32);
}


/* =========================================================
   STOCK
   ========================================================= */

.kgs-home-product-stock {
    margin-bottom: 18px;

    color: #8fca8f;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
}

.kgs-home-product-stock.out {
    color: #d87878;
}


/* =========================================================
   VIEW ALL
   ========================================================= */

.kgs-home-products-footer {
    display: flex;
    justify-content: center;

    margin-top: 46px;
}

.kgs-view-all-products {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 13px 22px;

    color: var(--kgs-gold, #d8af32);

    border: 1px solid var(--kgs-gold, #d8af32);
    border-radius: 2px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        color .2s ease,
        background .2s ease;
}

.kgs-view-all-products:hover {
    color: #050505;
    background: var(--kgs-gold, #d8af32);
}


/* =========================================================
   MOBILE CATEGORY NAVIGATION
   ========================================================= */

@media (max-width: 600px) {

    .kgs-home-product-categories {
        gap: 8px;
        margin-bottom: 28px;
    }

    .kgs-home-category-link {
        min-height: 34px;
        padding: 7px 11px;
        font-size: 8px;
    }

    .kgs-home-products-footer {
        margin-top: 34px;
    }

}