/* ==========================================================================
   Ace and Whim Style Cart Drawer — base styles
   Customize colors/fonts to match your theme; class names are kept stable
   so you can safely restyle without touching cart-drawer.js or the PHP.
   ========================================================================== */

.openAWCartDrawer {
    overflow: hidden;
}

.aw-cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    transition: .3s ease right;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.openAWCartDrawer .aw-cart-drawer {
    right: 0;
}

.aw-cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23,23,23,.3);
    z-index: 99998;
    display: none;
}

.openAWCartDrawer .aw-cart-drawer-overlay {
    display: block;
}

.aw-cart-drawer-inner-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.aw-cart-drawer-inner {
    background: #fff;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 500px;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#aw-cart-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.aw-cart-drawer-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aw-cart-drawer-title {
    font-size: 28px;
    font-weight: 600;
}

.aw-cart-drawer-close {
    cursor: pointer;
}

.aw-cart-drawer-items {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.aw-cart-drawer-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.aw-cart-drawer-item:last-child {
    margin-bottom: 0;
}

.aw-cart-drawer-item-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.aw-cart-drawer-item-img a {
    width: 100%;
    height: 100%;
    display: inline-block;
}

.aw-cart-drawer-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aw-cart-drawer-item-details {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.aw-cart-drawer-item-title {
    font-size: 18px;
    display: block;
    line-height: 1.3;
}

.aw-cart-drawer-item-remove {
    font-size: 13px;
    color: #999;
    text-decoration: underline;
    display: inline-block;
    margin-top: 8px;
    transition: color .2s ease;
    cursor: pointer;
}

.aw-cart-drawer-item-remove:hover {
    color: #b87070;
}

.aw-cart-drawer-item-price {
    font-size: 15px;
    color: rgba(51,51,51,.9);
}

.aw-cart-drawer-item.is-removing {
    opacity: .5;
    pointer-events: none;
}

.aw-cart-drawer-footer {
    width: 100%;
    background: #fff;
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
}

.aw-cart-drawer-totals {
    padding: 15px 20px 0;
}

.aw-cart-drawer-totals-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
}

.aw-cart-drawer-total .aw-cart-drawer-totals-label {
    font-weight: 600;
    font-size: 17px;
    color: #000;
}

.aw-cart-drawer-total .aw-cart-drawer-totals-value {
    font-weight: bold;
    font-size: 20px;
    color: #000;
}

.aw-cart-drawer-payment-plan {
    text-align: center;
    font-size: 13px;
    color: #666;
    padding: 10px 20px 0;
}

.aw-cart-drawer-checkout {
    background: #000;
    height: 50px;
    color: #fff !important;
    font-size: 18px;
    letter-spacing: .01em;
    text-align: center;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 40px);
    margin: 15px auto 10px;
    transition: .3s ease opacity;
}

.aw-cart-drawer-checkout:hover {
    opacity: .7;
}

.aw-cart-drawer-checkout--disabled {
    background: #ccc;
    color: #888 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.aw-cart-drawer-bottom-text {
    font-size: 16px;
    text-align: center;
    padding: 0 20px 15px;
    color: #333;
}

/* Empty cart state */
.aw-cart-drawer-items--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aw-cart-drawer-empty-content {
    text-align: center;
    padding: 40px 20px;
}

.aw-cart-drawer-empty-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px 0;
}

.aw-cart-drawer-shop-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #000;
    color: #fff !important;
    padding: 14px 28px;
    font-size: 15px;
    transition: .3s ease opacity;
    cursor: pointer;
}

.aw-cart-drawer-shop-now:hover {
    opacity: .7;
}

/* Cross-sell "Complete the Collection" carousel */
.aw-cart-drawer-collection-products {
    padding: 20px;
    background-color: #f7f5f1;
}

.aw-cart-drawer-collection-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.aw-cart-drawer-collection-products.is-collapsed .aw-cart-drawer-collection-products-header {
    margin-bottom: 0;
}

.aw-cart-drawer-collection-products-title {
    font-weight: 600;
    font-size: 17px;
}

.aw-cart-drawer-collection-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
    color: inherit;
}

.aw-cart-drawer-collection-chevron {
    transition: transform .25s ease;
}

.aw-cart-drawer-collection-toggle[aria-expanded="false"] .aw-cart-drawer-collection-chevron {
    transform: rotate(-90deg);
}

.aw-cart-drawer-collection-content {
    overflow: hidden;
    transition: max-height .3s ease, opacity .25s ease;
    max-height: 500px;
    opacity: 1;
}

.aw-cart-drawer-collection-products.is-collapsed .aw-cart-drawer-collection-content {
    max-height: 0;
    opacity: 0;
}

.aw-cart-drawer-collection-products.is-collapsed .aw-cart-drawer-collection-products-nav {
    display: none;
}

.aw-cart-drawer-collection-products-nav {
    display: flex;
    gap: 8px;
}

.aw-cart-drawer-collection-products-nav a[aria-disabled="true"] {
    opacity: .35;
    pointer-events: none;
}

.aw-cart-drawer-collection-products-carousel {
    display: flex;
    gap: 15px;
    cursor: grab;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.aw-cart-drawer-collection-products-carousel::-webkit-scrollbar {
    height: 0;
}

.aw-cart-drawer-collection-products-carousel.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.aw-cart-drawer-collection-product {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #fff;
    border-radius: 12px;
    padding: 8px;
    min-width: calc(100% - 60px);
    width: calc(100% - 60px);
}

.aw-cart-drawer-collection-product-img {
    width: 90px;
    flex-shrink: 0;
}

.aw-cart-drawer-collection-product-img img {
    border-radius: 8px;
    width: 100%;
    display: block;
}

.aw-cart-drawer-collection-product-title {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.aw-cart-drawer-collection-product-price {
    display: block;
    font-size: 14px;
    color: rgba(51,51,51,.9);
    margin-bottom: 8px;
}

.aw-cart-drawer-add-collection {
    color: #957b66 !important;
    text-decoration: underline !important;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity .25s ease;
}

.aw-cart-drawer-add-collection.is-adding {
    opacity: .6;
}

.aw-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: aw-spin .6s linear infinite;
    display: inline-block;
}

@keyframes aw-spin {
    to { transform: rotate(360deg); }
}

.wc-cart-icon-wrapper {
    cursor: pointer;
    position: relative;
}
