/*
!* Custom Offcanvas Styles *!
.custom-offcanvas {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75vh;
    background: white;
    z-index: 1045;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none;
}

!* on mobile *!
@media (max-width: 768px) {
    .custom-offcanvas {
        height: 90vh;
    }
}

.custom-offcanvas.show {
    transform: translateY(0);
    display: block;
}

.custom-offcanvas-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-offcanvas-body {
    padding: 1rem;
    overflow-y: auto;
    height: calc(75vh - 60px);
}

!* on mobile *!
@media (max-width: 768px) {
    .custom-offcanvas-body {
        padding: 1rem;
        overflow-y: auto;
        height: calc(90vh - 60px);
    }
}

.close-offcanvas {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

!* Overlay background *!
.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

.offcanvas-backdrop.show {
    display: block;
}*/

/* Base Custom Offcanvas Styles */
.custom-offcanvas {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85vh;
    background: white;
    z-index: 1045;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Show state */
.custom-offcanvas.show {
    transform: translateY(0);
}

/* Header */
.custom-offcanvas-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background: white;
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Body */
.custom-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    position: relative;
}

/* Configurator Elements */
.configurator-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.configurator-navigation {
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.configuration-nav {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    z-index: 2;
}

.progress-configurator {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f8f9fa;
    padding: 0.5rem 0;
}

.configurator-progress {
    margin: 0 1rem 0 1rem;
}

.progress-bar-configurator {
    height: 5px;
    border-radius: 50px;
}

/* Product Cards */
.config-product-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: all 0.2s;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.config-product-card.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 2px #007bff;
}

/* Close Button */
.close-offcanvas {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Backdrop */
.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

.offcanvas-backdrop.show {
    display: block;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .custom-offcanvas {
        height: 90vh;
    }

    .custom-offcanvas-body {
        padding: 0.5rem;
    }
}

.config-product-card {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    background: #f8f9fa;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.product-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    background: white;
}

.quantity-btn {
    border: none;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.quantity-input {
    width: 3rem;
    text-align: center;
    border: none;
    padding: 0.5rem;
    -moz-appearance: textfield;
    background: white;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.config-product-card.has-quantity {
    border-color: #007bff;
    box-shadow: 0 0 0 1px #007bff;
}
