/* ==========================================================================
   SK CREATION - WOOCOMMERCE PREMIUM (ULTRA-MINIMALIST COMPILATION)
   ========================================================================== */

/* 1. GLOBAL & PAGE BACKGROUNDS
   ========================================================================== */
.woocommerce-page,
.woocommerce-cart,
.woocommerce-checkout {
    background: #faf7f2;
}

/* MAIN CONTAINER (Maintains absolute center layouts across desktop displays) */
.woocommerce,
.wc-block-cart,
.wc-block-checkout {
    max-width: 1400px !important;
    margin: 60px auto !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
}

/* 2. CORE GRID ENGINE 
   ========================================================================== */
.wc-block-cart {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 50px !important;
    align-items: start !important;
}

.wc-block-checkout {
    display: grid;
    grid-template-columns: 1.7fr 420px;
    gap: 40px;
    align-items: start;
}

/* 3. SIMPLIFIED PRODUCT ROW ARCHITECTURE (TOTALS & DUPLICATES HIDDEN)
   ========================================================================== */
.wc-block-cart-items {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0,0,0,.04);
}

.wc-block-cart-item {
    padding: 30px 0 !important;
    border-bottom: 1px solid #ece7df !important;
}

/* HIDE PRODUCT LINE TOTALS, BADGES, COLS, AND HEADERS */
.wc-block-cart-items__header-total,
.wc-block-cart-item__table-item-value,
.wc-block-cart-item__total-price,
.wc-block-cart-item__prices,
.wc-block-components-product-price,
.wc-block-formatted-money-amount,
[class*="total-header"],
[class*="item-total"] {
    display: none !important;
}

/* ELIMINATE DUPLICATE DESCRIPTION TEXT (Fixes image_a4b804.png) */
.wc-block-components-product-details,
.wc-block-components-product-metadata,
.wc-block-cart-item__info-title .wc-block-components-product-details {
    display: none !important;
}

/* Master row distribution: 3 spacious columns (Image -> Expanded Info Title -> Controls) */
.wc-block-cart-item__wrap,
.wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 100px 1fr 180px !important;
    gap: 40px !important;
    align-items: center !important;
    width: 100% !important;
}

/* Flatten intermediate container tags into main tracking engine row */
.wc-block-cart-item__info,
.wc-block-cart-items__row > div {
    display: contents !important;
}

/* Column 2 Content Layout Group: Restores horizontal scaling room */
.wc-block-cart-item__info-title,
[class*="product-name"]-container {
    grid-column: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    width: 100% !important;
}

/* 4. PRODUCT ELEMENTS & TYPOGRAPHY
   ========================================================================== */
.wc-block-cart-item__image {
    grid-column: 1 !important;
    width: 100px !important;
}

.wc-block-cart-item__image img {
    width: 100px !important;
    height: auto !important;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

/* Premium wide typography alignment */
.wc-block-components-product-name {
    display: block !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #111 !important;
    text-decoration: none !important;
    margin: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    width: 100% !important;
}

/* 5. QUANTITY SELECTOR COLUMN & TRASH (RIGHT-ALIGNED)
   ========================================================================== */
.wc-block-components-cart-item__quantity {
    grid-column: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px !important;
}

.wc-block-components-quantity-selector {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 120px !important;
    height: 44px !important;
    border: 1px solid #e2dbd0 !important;
    border-radius: 50px !important;
    overflow: hidden !important;
    background: #fff !important;
}

.wc-block-components-quantity-selector button {
    width: 36px !important;
    height: 44px !important;
    border: none !important;
    background: none !important;
    font-size: 16px !important;
    color: #111 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wc-block-components-quantity-selector button:hover {
    background: #faf7f2 !important;
}

.wc-block-components-quantity-selector input {
    width: 40px !important;
    height: 44px !important;
    border: none !important;
    background: none !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    padding: 0 !important;
}

/* TRASH BUTTON STYLING */
.wc-block-cart-item__remove-link {
    color: #999 !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    padding: 4px;
}

.wc-block-cart-item__remove-link:hover {
    color: #cc0000 !important;
}

/* 6. SIDEBARS & ORDER SUMMARY CARD
   ========================================================================== */
.wc-block-cart__sidebar {
    width: 100% !important;
    background: #fff;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,.04);
    position: sticky;
    top: 120px;
}

.wc-block-checkout__sidebar {
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,.05);
    position: sticky;
    top: 120px;
}

.wc-block-components-totals-wrapper {
    border: none !important;
}

.wc-block-components-totals-item {
    padding: 18px 0;
    border-bottom: 1px dashed #ece7df;
}

.wc-block-components-totals-item:last-of-type {
    border: none;
}

.wc-block-components-totals-item__label {
    font-size: 15px;
    color: #555;
}

.wc-block-components-totals-item__value {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

/* COUPON FIELD DECORATION */
.wc-block-components-panel {
    margin-bottom: 20px;
}

.wc-block-components-text-input input {
    border: 1px solid #e5d7c4 !important;
    border-radius: 12px !important;
    height: 48px !important;
}

/* 7. FORM FIELDS & CHECKOUT STEPS
   ========================================================================== */
.wc-block-components-checkout-step {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,.05);
}

input, select, textarea,
.wc-block-components-combobox-control input {
    border: 1px solid #e7dfd5 !important;
    border-radius: 12px !important;
    min-height: 52px !important;
    padding: 0 16px !important;
}

textarea {
    padding-top: 15px !important;
}

input:focus, select:focus, textarea:focus {
    border-color: #c8a97e !important;
    box-shadow: none !important;
    outline: none !important;
}

.wc-block-components-radio-control__option {
    border: 1px solid #ece7df;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
}

/* 8. PREMIUM INTERACTIVE BUTTONS & CONTRAST
   ========================================================================== */
.wc-block-components-button,
.wc-forward,
.checkout-button,
.button.alt,
button[type="submit"].wc-block-components-button {
    width: 100% !important;
    min-width: 100% !important;
    height: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
    transition: all .3s ease !important;
}

.wc-block-components-panel button.wc-block-components-button span,
.wc-block-components-button span {
    color: #fff !important;
}

/* HOVER ANIMATIONS */
.wc-block-components-button:hover,
.wc-forward:hover,
.checkout-button:hover,
.button.alt:hover {
    background: #c8a97e !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(200,169,126,.3);
}

/* 9. MEDIA QUERIES (MOBILE RESPONSIVE ENGINE)
   ========================================================================== */

/* TABLETS (1120px and Down) */
@media(max-width: 1120px) {
    .woocommerce, .wc-block-cart, .wc-block-checkout {
        padding: 0 25px !important;
        margin: 30px auto !important;
    }

    .wc-block-cart, .wc-block-checkout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .wc-block-cart__sidebar, .wc-block-checkout__sidebar {
        position: relative;
        top: auto;
        width: 100% !important;
        margin-top: 20px;
    }

    /* Stack list rows down flat cleanly on smaller viewports */
    .wc-block-cart-item__wrap,
    .wc-block-cart-items__row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .wc-block-cart-item__info-title {
        align-items: flex-start !important;
    }

    .wc-block-components-cart-item__quantity {
        justify-content: flex-start !important;
        width: 100% !important;
    }
}

/* STANDARD PHONES (768px and Down) */
@media(max-width: 768px) {
    .wc-block-cart {
        padding: 0 15px !important;
    }

    .wc-block-cart-items, .wc-block-cart__sidebar {
        padding: 20px;
        border-radius: 18px;
    }

    .wc-block-components-product-name {
        font-size: 16px !important;
    }

    .wc-block-components-button, .checkout-button {
        height: 52px !important;
        font-size: 13px !important;
    }
}