/* =========================================================
   KINGSTON GROOM SUITS
   CART PAGE
   assets/css/cart.css
   ========================================================= */

.kgs-cart-page {
    width: 100%;
    min-height: 100vh;
    padding: 45px 20px 80px;
    background: var(--kgs-bg, #0b0b0c);
    color: var(--kgs-text, #f5f5f5);
}

.kgs-cart-container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.kgs-cart-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.kgs-cart-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--kgs-gold, #d4af37);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.kgs-cart-header h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.1;
}

.kgs-cart-header p {
    margin: 0;
    color: var(--kgs-muted, #aaa);
    font-size: 14px;
    line-height: 1.6;
}

.kgs-cart-continue {
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--kgs-border, #303034);
    border-radius: 8px;
    color: var(--kgs-text, #f5f5f5);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.kgs-cart-continue:hover {
    border-color: var(--kgs-gold, #d4af37);
    color: var(--kgs-gold, #d4af37);
}

/* =========================================================
   ALERTS
   ========================================================= */

.kgs-cart-alert {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.kgs-cart-success {
    border: 1px solid rgba(70, 180, 100, .35);
    background: rgba(70, 180, 100, .08);
}

.kgs-cart-error {
    border: 1px solid rgba(220, 80, 80, .35);
    background: rgba(220, 80, 80, .08);
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.kgs-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 25px;
    align-items: start;
}

/* =========================================================
   CART ITEMS
   ========================================================= */

.kgs-cart-items {
    min-width: 0;
}

.kgs-cart-items-head {
    padding: 0 0 14px;
    border-bottom: 1px solid var(--kgs-border, #29292d);
}

.kgs-cart-items-head h2 {
    margin: 0;
    font-size: 20px;
}

.kgs-cart-items-head span {
    color: var(--kgs-muted, #888);
    font-size: 14px;
    font-weight: 500;
}

/* =========================================================
   CART ITEM
   ========================================================= */

.kgs-cart-item {
    position: relative;

    display: grid;
    grid-template-columns: 110px minmax(180px, 1fr) 100px 130px 35px;
    gap: 17px;
    align-items: center;

    padding: 20px 0;

    border-bottom: 1px solid var(--kgs-border, #29292d);
}

/* =========================================================
   IMAGE
   ========================================================= */

.kgs-cart-item-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 110px;
    height: 135px;

    overflow: hidden;

    border-radius: 9px;
    background: #151517;

    color: #888;
    text-decoration: none;
    font-size: 11px;
}

.kgs-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.kgs-cart-item-image:hover img {
    transform: scale(1.04);
}

/* =========================================================
   INFO
   ========================================================= */

.kgs-cart-item-category {
    margin-bottom: 6px;
    color: var(--kgs-gold, #d4af37);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.kgs-cart-item-info h3 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.4;
}

.kgs-cart-item-info h3 a {
    color: var(--kgs-text, #f5f5f5);
    text-decoration: none;
}

.kgs-cart-item-info h3 a:hover {
    color: var(--kgs-gold, #d4af37);
}

.kgs-cart-sku {
    display: block;
    margin-bottom: 10px;
    color: var(--kgs-muted, #888);
    font-size: 11px;
}

.kgs-cart-item-price {
    color: var(--kgs-gold, #d4af37);
    font-size: 14px;
    font-weight: 800;
}

/* =========================================================
   QUANTITY
   ========================================================= */

.kgs-cart-quantity {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kgs-cart-quantity label {
    color: var(--kgs-muted, #888);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.kgs-cart-quantity input {
    width: 75px;
    height: 38px;
    padding: 0 8px;

    border: 1px solid var(--kgs-border, #333);
    border-radius: 6px;

    background: var(--kgs-card, #141416);
    color: var(--kgs-text, #fff);

    outline: none;
    font: inherit;
    font-size: 13px;
    text-align: center;
}

.kgs-cart-quantity input:focus {
    border-color: var(--kgs-gold, #d4af37);
}

.kgs-cart-quantity button {
    width: 75px;
    padding: 0;

    border: 0;
    background: transparent;
    color: var(--kgs-gold, #d4af37);

    font: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

/* =========================================================
   LINE TOTAL
   ========================================================= */

.kgs-cart-line-total {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kgs-cart-line-total span {
    color: var(--kgs-muted, #888);
    font-size: 10px;
    text-transform: uppercase;
}

.kgs-cart-line-total strong {
    color: var(--kgs-text, #fff);
    font-size: 14px;
}

/* =========================================================
   REMOVE
   ========================================================= */

.kgs-cart-remove-form {
    display: flex;
    justify-content: center;
}

.kgs-cart-remove {
    width: 32px;
    height: 32px;

    border: 1px solid var(--kgs-border, #333);
    border-radius: 50%;

    background: transparent;
    color: var(--kgs-muted, #999);

    font-size: 20px;
    line-height: 1;

    cursor: pointer;
    transition: .2s ease;
}

.kgs-cart-remove:hover {
    border-color: #d65c5c;
    color: #d65c5c;
}

/* =========================================================
   SUMMARY
   ========================================================= */

.kgs-cart-summary {
    position: sticky;
    top: 25px;

    padding: 25px;

    border: 1px solid var(--kgs-border, #2b2b2f);
    border-radius: 13px;

    background: var(--kgs-card, #141416);
}

.kgs-cart-summary-head {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--kgs-border, #29292d);
}

.kgs-cart-summary-head span {
    color: var(--kgs-gold, #d4af37);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.kgs-cart-summary-head h2 {
    margin: 7px 0 0;
    font-size: 23px;
}

/* =========================================================
   SUMMARY ROWS
   ========================================================= */

.kgs-cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 0;

    color: var(--kgs-muted, #aaa);
    font-size: 13px;
}

.kgs-cart-summary-row strong {
    color: var(--kgs-text, #f5f5f5);
}

.kgs-cart-summary-divider {
    height: 1px;
    background: var(--kgs-border, #29292d);
}

.kgs-cart-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 0;

    font-size: 15px;
    font-weight: 700;
}

.kgs-cart-summary-total strong {
    color: var(--kgs-gold, #d4af37);
    font-size: 20px;
}

/* =========================================================
   CHECKOUT
   ========================================================= */

.kgs-cart-checkout {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: var(--kgs-gold, #d4af37);
    color: #111;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition: .2s ease;
}

.kgs-cart-checkout:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.kgs-cart-back {
    display: block;
    margin-top: 15px;

    color: var(--kgs-muted, #999);

    text-align: center;
    text-decoration: none;

    font-size: 12px;
}

.kgs-cart-back:hover {
    color: var(--kgs-gold, #d4af37);
}

/* =========================================================
   EMPTY CART
   ========================================================= */

.kgs-cart-empty {
    max-width: 650px;
    margin: 40px auto;
    padding: 70px 25px;

    border: 1px solid var(--kgs-border, #29292d);
    border-radius: 14px;

    background: var(--kgs-card, #141416);

    text-align: center;
}

.kgs-cart-empty-icon {
    margin-bottom: 15px;
    font-size: 45px;
}

.kgs-cart-empty h2 {
    margin: 0 0 9px;
    font-size: 25px;
}

.kgs-cart-empty p {
    margin: 0 0 25px;
    color: var(--kgs-muted, #999);
    font-size: 14px;
}

.kgs-cart-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 20px;

    border-radius: 7px;

    background: var(--kgs-gold, #d4af37);
    color: #111;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;
}

/* =========================================================
   LIGHT THEME
   ========================================================= */

[data-kgs-theme="light"] .kgs-cart-page {
    background: var(--kgs-bg, #f7f7f8);
}

[data-kgs-theme="light"] .kgs-cart-summary,
[data-kgs-theme="light"] .kgs-cart-empty {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
}

[data-kgs-theme="light"] .kgs-cart-item-image {
    background: #eeeeee;
}

[data-kgs-theme="light"] .kgs-cart-quantity input {
    background: #fff;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .kgs-cart-layout {
        grid-template-columns: 1fr;
    }

    .kgs-cart-summary {
        position: static;
    }

    .kgs-cart-item {
        grid-template-columns: 95px minmax(0, 1fr) 90px 110px 35px;
    }

    .kgs-cart-item-image {
        width: 95px;
        height: 120px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .kgs-cart-page {
        padding: 30px 14px 60px;
    }

    .kgs-cart-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .kgs-cart-continue {
        width: 100%;
    }

    .kgs-cart-item {
        grid-template-columns: 85px minmax(0, 1fr) 30px;
        gap: 13px;
        padding: 18px 0;
    }

    .kgs-cart-item-image {
        width: 85px;
        height: 105px;
    }

    .kgs-cart-quantity {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .kgs-cart-quantity label {
        width: 100%;
    }

    .kgs-cart-line-total {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .kgs-cart-remove-form {
        grid-column: 3;
        grid-row: 1;
    }

    .kgs-cart-summary {
        padding: 20px;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .kgs-cart-item-info h3 {
        font-size: 14px;
    }

    .kgs-cart-item-price {
        font-size: 13px;
    }

    .kgs-cart-empty {
        padding: 50px 18px;
    }

}

.kgs-cart-clear-form{
    margin-top:10px;
}

.kgs-cart-clear{
    width:100%;
    min-height:38px;
    border:1px solid rgba(180,70,70,.45);
    border-radius:7px;
    background:transparent;
    color:#d99;
    cursor:pointer;
    font-size:10px;
    font-weight:700;
    letter-spacing:.5px;
}

.kgs-cart-clear:hover{
    background:rgba(180,70,70,.12);
    color:#ffaaaa;
    border-color:#b55;
}