/* ===================================
   Complete Outfit Widget Styles
   Matching reference design exactly
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Main Container */
.studiollice-complete-outfit-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
    font-family: 'Roboto', sans-serif;
    height: 90vh;
}

/* Left Column - Outfit Image */
.outfit-left {
    flex: 1 1 40%;
    min-width: 300px;
    display: flex;
    overflow: hidden;
}

.outfit-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Right Column */
.outfit-right {
    flex: 1 1 60%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    max-height: 100%;
    min-height: 0;
}

/* Products List */
.outfit-products-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding: 0;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: #bbb transparent;
}

.outfit-products-list::-webkit-scrollbar {
    width: 4px;
}

.outfit-products-list::-webkit-scrollbar-track {
    background: transparent;
}

.outfit-products-list::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 4px;
}

/* 1 product: placed at top */
.outfit-products-list.outfit-products-count-1 {
    justify-content: flex-start;
}

.outfit-products-list.outfit-products-count-1 .outfit-product-item {
    flex: 0 0 auto;
}

/* 2 products: each takes half */
.outfit-products-list.outfit-products-count-2 {
    justify-content: stretch;
}

/* 3 products: fill available space */
.outfit-products-list.outfit-products-count-3 {
    justify-content: stretch;
}

/* Product Item Card */
.outfit-product-item {
    display: flex;
    align-items: flex-start;
    padding: 25px 25px;
    gap: 20px;
    background: #fff;
    border: 1px solid #000;
    transition: background 0.2s ease;
    flex: 1;
}

.outfit-product-item:last-child {
    border-bottom: 1px solid #000;
}

/* Product Image */
.op-image {
    width: 110px;
    min-width: 110px;
    flex-shrink: 0;
}

.op-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Product Details */
.op-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-top: 2px;
}

/* Product Title */
.op-title {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #000;
    line-height: 1.4;
}

.op-title a {
    color: #000;
    text-decoration: none;
}

/* Product Price */
.op-price {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #000;
    text-align: left;
    margin-bottom: 6px;
}

.op-price del {
    color: #999;
    margin-right: 5px;
    font-size: 12px;
}

.op-price ins {
    text-decoration: none;
    font-weight: 500;
}

/* Variations Block */
.outfit-product-variations {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 4px;
}

.outfit-variation-block {
    margin-bottom: 2px;
}

/* Attributes Rows */
.outfit-product-item .studiollice-attributes-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Colors */
.outfit-product-item .studiollice-color-swatch {
    width: 22px;
    height: 22px;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.outfit-product-item .studiollice-color-swatch.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* Sizes */
.outfit-product-item .studiollice-sizes-row {
    justify-content: flex-start;
}

.outfit-product-item .studiollice-sizes-wrapper {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.outfit-product-item .studiollice-size-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px 0;
    background-color: transparent;
    color: #000;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: auto;
    height: auto;
}

.outfit-product-item .studiollice-size-btn:hover {
    font-weight: 500;
}

.outfit-product-item .studiollice-size-btn.active {
    font-weight: 500;
}

.outfit-product-item .studiollice-size-btn.active::after,
.outfit-product-item .studiollice-size-btn:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* Add to Cart Button (per product) - solid black like custom add-to-cart, smaller */
.op-add-to-cart-single,
.op-add-to-cart-single.button,
button.op-add-to-cart-single {
    background-color: #111 !important;
    color: #fff !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
    margin-top: 10px;
    text-decoration: none !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    transition: background-color 0.2s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    white-space: nowrap;
}

.op-add-to-cart-single:hover,
.op-add-to-cart-single.button:hover,
button.op-add-to-cart-single:hover {
    background-color: #333 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.op-add-to-cart-single[disabled],
.op-add-to-cart-single.button[disabled],
button.op-add-to-cart-single[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #111 !important;
}

.op-add-to-cart-single.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Success Message */
.op-message-success {
    color: #28a745;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Buy Complete Look Button - full width black bar at bottom */
.outfit-buy-all {
    flex-shrink: 0;
}

.studiollice-buy-complete-look-btn {
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 22px 30px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.studiollice-buy-complete-look-btn:hover {
    background: #222;
    color: #fff;
}

.studiollice-buy-complete-look-btn .btn-text {
    font-weight: 400;
    letter-spacing: 1.5px;
}

.studiollice-buy-complete-look-btn .btn-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.studiollice-buy-complete-look-btn .btn-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.studiollice-buy-complete-look-btn .btn-price del,
.studiollice-buy-complete-look-btn .btn-price strike {
    font-weight: 400;
    opacity: 0.5;
    font-size: 14px;
}

.studiollice-buy-complete-look-btn .btn-price ins {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .studiollice-complete-outfit-container {
        flex-direction: column;
    }

    .outfit-left,
    .outfit-right {
        min-width: 100%;
        flex-basis: 100%;
    }

    .outfit-right {
        max-height: none;
    }

    .outfit-products-list {
        overflow: visible !important;
        padding: 15px;
        gap: 20px;
    }

    .outfit-product-item {
        padding: 15px;
        gap: 12px;
    }

    .op-image {
        width: 80px;
        min-width: 80px;
    }

    .op-title {
        font-size: 12px;
    }

    .op-price {
        font-size: 12px;
    }

    .op-add-to-cart-single {
        font-size: 12px;
    }

    .studiollice-buy-complete-look-btn {
        padding: 18px 20px;
        font-size: 13px;
    }

    .studiollice-buy-complete-look-btn .btn-price {
        font-size: 16px;
    }
}