/*
Theme Name: Goldish Child
Theme URI: https://parkofideas.com/goldish/
Description: Child theme for Goldish - Biosy Makeup
Author: Biosy Makeup
Author URI: https://biosy.ro
Template: goldish
Version: 1.0.9
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: goldish-child
*/

/* =============================================================
   Cart sidebar — "You may be interested also in"
   Markup emitted by snippet #7 "ACSD - Cart Sidebar Cross-sells"
   via the woocommerce_widget_shopping_cart_before_buttons hook.
   ============================================================= */

.acsd-cart-suggestions {
    margin: 20px 0 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.acsd-cart-suggestions__title {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: #333;
    text-align: center;
}

.acsd-cart-suggestions__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.acsd-cart-suggestions__item {
    margin: 0 0 20px;
    padding: 0 0 16px;
    list-style: none;
    border-bottom: 1px solid #f0ebe8;
}
.acsd-cart-suggestions__item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

/* Row: image left · name/price right */
.acsd-cart-suggestions__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.acsd-cart-suggestions__media {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}
.acsd-cart-suggestions__img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background: #f7f5f1;
}

.acsd-cart-suggestions__info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.acsd-cart-suggestions__name {
    font-size: 13px;
    font-weight: 500;
    color: #222;
    line-height: 1.3;
    text-decoration: none;
    /* Clamp long names to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.acsd-cart-suggestions__name:hover {
    color: #a58c63;
}

.acsd-cart-suggestions__price {
    font-size: 13px;
    color: #a58c63;
    font-weight: 500;
    line-height: 1.2;
}
.acsd-cart-suggestions__price del {
    color: #999;
    font-weight: 400;
    margin-right: 4px;
}
.acsd-cart-suggestions__price ins {
    text-decoration: none;
    color: #a58c63;
}

/* Variation picker — hidden by default, shown after clicking Select options.
   Supports multi-attribute: each attribute rendered as its own row with label + swatches. */
.acsd-cart-suggestions__picker {
    margin: 12px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid #f0ebe8;
}
.acsd-cart-suggestions__picker[hidden] {
    display: none;
}
.acsd-cart-suggestions__attr {
    margin: 0 0 10px;
}
.acsd-cart-suggestions__attr:last-child {
    margin-bottom: 0;
}
.acsd-cart-suggestions__attr-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
    margin-bottom: 6px;
}
.acsd-cart-suggestions__swatches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acsd-cart-suggestions__swatch {
    list-style: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e1ddd3;
    cursor: pointer;
    overflow: hidden;
    transition: transform .15s, border-color .15s, box-shadow .15s, opacity .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

/* Family / text-only swatches render as rectangles (buttons) */
.acsd-cart-suggestions__swatch--label {
    width: auto;
    min-width: 64px;
    height: auto;
    border-radius: 3px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.2;
    color: #333;
    background: #fff;
    white-space: nowrap;
}
.acsd-cart-suggestions__swatch--label:hover:not(.is-disabled):not(.is-faded) {
    transform: none;
    border-color: #a58c63;
    color: #a58c63;
}
.acsd-cart-suggestions__swatch--label.is-selected {
    background: transparent;
    border-color: #1f1f1f;
    color: #fff;
    box-shadow: none;
}
.acsd-cart-suggestions__swatch--label .acsd-cart-suggestions__swatch-label {
    padding: 0;
    font-size: inherit;
    color: inherit;
}

.acsd-cart-suggestions__swatch.is-faded {
    opacity: .25;
}
.acsd-cart-suggestions__swatch.is-faded:hover {
    opacity: .6;
    transform: none;
}
.acsd-cart-suggestions__swatch:hover:not(.is-disabled) {
    transform: scale(1.1);
    border-color: #a58c63;
}
.acsd-cart-suggestions__swatch.is-selected {
    border: 2px solid #000;
    box-shadow: 0 0 0 2px #fff inset;
}

.acsd-cart-suggestions__swatch.is-disabled,
.acsd-cart-suggestions__swatch.wvs-no-stock {
    position: relative;
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
}
.acsd-cart-suggestions__swatch.is-disabled:after,
.acsd-cart-suggestions__swatch.wvs-no-stock:after {
    content: '' !important;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml;utf8,%3Csvg filter='drop-shadow(0px 0px 5px rgb(255 255 255 / .6))' xmlns='http://www.w3.org/2000/svg' width='72px' height='72px' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ff0000' stroke-linecap='round' stroke-width='0.6' d='M5 5L19 19M19 5L5 19'/%3E%3C/svg%3E") no-repeat center / 90% 90%;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
}

.acsd-cart-suggestions__swatch-color,
.acsd-cart-suggestions__swatch-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.acsd-cart-suggestions__swatch-img {
    object-fit: cover;
}
.acsd-cart-suggestions__swatch-label {
    font-size: 10px;
    line-height: 1;
    text-align: center;
    padding: 2px 4px;
}

/* Force the list item into a vertical stack so the action button sits UNDER the product row */
.acsd-cart-suggestions__list {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
}
.acsd-cart-suggestions__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    float: none !important;
}
.acsd-cart-suggestions__row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box;
}
.acsd-cart-suggestions__action {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    box-sizing: border-box;
    float: none !important;
}

/* Action row — full-width button below the item */
.acsd-cart-suggestions__action {
    margin-top: 12px !important;
}

.acsd-cart-suggestions .acsd-cart-suggestions__btn,
.acsd-cart-suggestions__action .acsd-cart-suggestions__btn {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 10px 14px !important;
    background: transparent !important;
    color: #a58c63 !important;
    border: 1px solid #a58c63 !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-align: center !important;
    line-height: 1.2 !important;
    transition: background .2s, color .2s !important;
    cursor: pointer;
    box-sizing: border-box !important;
    float: none !important;
    margin: 0 !important;
}
.acsd-cart-suggestions__btn:hover,
.acsd-cart-suggestions__btn:focus {
    background: #8c7550 !important;
    border-color: #8c7550 !important;
    color: #fff !important;
}
.acsd-cart-suggestions__btn.is-open {
    /* When the swatch picker is open, tone down the button until a swatch is chosen */
    opacity: .8;
}
.acsd-cart-suggestions__btn.product_type_variation {
    /* After a swatch is picked: same outlined style as Select options,
       but "Add to cart" text stays brown (gold tan) to match the brand palette. */
    background: transparent !important;
    color: #a58c63 !important;
    border-color: #a58c63 !important;
}
.acsd-cart-suggestions__btn.product_type_variation:hover,
.acsd-cart-suggestions__btn.product_type_variation:focus {
    background: #8c7550 !important;
    border-color: #8c7550 !important;
    color: #fff !important;
}
.acsd-cart-suggestions__btn.loading {
    opacity: .6;
    pointer-events: none;
}
