:root {
    --primary-color: #0F233B;
    --color-secondary: #C8B297;
    --color-accent: #2E495B;
    --color-bg: #FAF9F7;
    --color-white: #FAF9F7;
    --light-gray: #f2f4f7;
    --border-color: #e5e8ed;
    --text-muted: #667085;
}

.side-cart-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 656px;
    max-width: 100%;
    height: auto;
    max-height: 100vh;
    background: #fff;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.side-cart-container.active {
    transform: translateX(0);
}

.side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.side-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-cart-container {
    padding: 20px;
}


.custom-mini-cart-actions a {
    margin-left: 15px;
    color: rgba(15, 35, 59, 0.5);
    text-decoration: none;
    font-size: 24px;
    font-family: var(--font-heading);
    line-height: 1.1;
}

.custom-mini-cart-actions a.close-cart {
    color: var(--primary-color);
}

.custom-mini-cart-actions a:hover {
    color: var(--primary-color);
}

.custom-mini-cart-body p {
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.custom-mini-cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-mini-cart-item {
    display: flex;
    align-items: center;
    padding: 15px 16px 15px 0;
    border-bottom: 1px solid #eee;
}

.custom-mini-cart-item:last-child {
    border-bottom: none;
}

.custom-mini-cart-item .item-thumbnail {
    margin-right: 15px;
}

.item-details {
    flex: 1;
}


.item-meta {
    font-size: 12px;
    color: #777;
}



.item-remove a {
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: url(../../assets/img/cart.svg) no-repeat center center;
    font-size: 0;
}

.item-remove a:hover {
    color: #cc0000;
}

.custom-mini-cart-totals {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 8px 0;
    border: 0;
}

.custom-mini-cart-totals .subtotal-label {
    font-weight: 400;
    font-size: 20px;
    font-family: var(--font-heading);
}

.custom-mini-cart-totals .subtotal-value {
    font-weight: 400;
    font-size: 20px;
    font-family: var(--font-heading);
}

.custom-mini-cart-footer {
    text-align: center;
    margin-top: 20px;
}


.next-step-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1a2b3c;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.next-step-btn:hover {
    background: #0d1722;
}


.side-cart-container {
    width: 658px;
    background: var(--color-bg);
    padding: 40px;
    box-sizing: border-box;
}

.custom-mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 0;
    margin-bottom: 24px;
}

.custom-mini-cart-header h3 {
    font-size: 46px;
    font-weight: 400;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.1;
}


.custom-mini-cart-actions a::before {
    content: '[';
}

.custom-mini-cart-actions a::after {
    content: ']';
}

.custom-mini-cart-body>p {
    color: var(--primary-color);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 315px;
    margin-top: 0;
}

.custom-mini-cart-body>p.empty-message {
    color: var(--color-accent);
}

.custom-mini-cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-mini-cart-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.custom-mini-cart-item:first-child {
    border-top: 1px solid var(--border-color);
}

.item-thumbnail {
    grid-row: span 2;
    background: #f9f9f9;
}

.item-thumbnail img {
    width: 130px;
    height: auto;
    display: block;
}

.item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

.custom-mini-cart-item .item-price {
    font-size: 20px;
    color: var(--primary-color);
    text-align: right;
    font-family: var(--font-heading);
}

/*
.custom-mini-cart-item .item-price bdi::after {
    content: '/day';
    font-size: 0.7em;
}
*/
.custom-mini-cart-items .item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--primary-color);
    width: fit-content;
    height: 32px;
    margin-top: auto;
}

.custom-mini-cart-items .qty-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    padding: 0;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.custom-mini-cart-items .qty-btn:focus,
.custom-mini-cart-items .qty-btn:hover {
    background-color: var(--color-bg) !important;
}

.custom-mini-cart-items .qty-input {
    width: 30px;
    border: none;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
    height: 30px;
    padding: 0;
    background-color: var(--color-bg);
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.item-remove {
    position: absolute;
    right: 0;
    bottom: 25px;
}

.remove-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 24px;
    display: inline-block;
}

.custom-mini-cart-totals {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 30px;
    font-size: 28px;
    color: var(--primary-color);
}

.subtotal-value bdi::after {
    content: '  *';
}

.custom-mini-cart-footer p {
    font-size: 12px;
    color: var(--primary-color);
    margin: 8px 0 40px;
    line-height: 1.5;
    text-align: left;
}

.custom-mini-cart-footer .next-step-btn {
    width: 100%;
    background: var(--primary-color);
    color: #FAF9F7;
    border: none;
    padding: 9px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: var(--font-ui);
}

.next-step-btn:hover {
    opacity: 0.9;
}

.custom-mini-cart {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    overflow: hidden;
}

.custom-mini-cart-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.custom-mini-cart-body:has(.empty-message) {
    align-items: center;
    justify-content: center;
}

.custom-mini-cart-items {
    flex-grow: 1;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(15, 35, 59, 1);
    padding-right: 16px;
}

.custom-mini-cart-items::-webkit-scrollbar {
    width: 6px;
}

.custom-mini-cart-items::-webkit-scrollbar-thumb {
    background-color: rgba(15, 35, 59, 1);
    border-radius: 10px;
}

.custom-mini-cart-header,
.custom-mini-cart-totals,
.custom-mini-cart-footer {
    flex-shrink: 0;
}

.remove-all-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.confirm-content {
    text-align: center;
    width: 100%;
    position: relative;
}

.close-confirm {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.confirm-title {
    font-family: serif;
    font-size: 32px;
    color: #1a2b3c;
    margin-bottom: 15px;
    font-weight: 400;
    width: 330px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.confirm-subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 40px;
}

.confirm-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 280px;
    margin: 0 auto;
}

.confirm-buttons button {
    width: 100%;
    padding: 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #1a2b3c;
}

.btn-confirm-delete {
    background-color: #1a2b3c;
    color: white;
}

.btn-confirm-delete:hover {
    background-color: #0d1620;
}

.btn-confirm-cancel {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.btn-confirm-cancel:hover {
    background-color: #eee;
}

@media (max-width: 1024px) {
    .custom-mini-cart-items {
        min-height: 150px;
    }

    .custom-mini-cart-totals {
        margin: 10px 0;
    }

    .custom-mini-cart-footer p {
        margin-bottom: 10px;
    }

    .custom-mini-cart-footer {
        margin-top: 0;
    }

    .custom-mini-cart {
        max-height: calc(100vh - 32px);
    }
}

@media(max-width: 768px) {
    .custom-mini-cart-items {
        min-height: 120px;
        overflow-x: hidden;
    }

    .side-cart-container {
        width: 95vw;
        height: 100vh;
        padding: 16px;
    }

    .custom-mini-cart-header h3 {
        font-size: 32px;
    }

    .custom-mini-cart-actions a {
        font-size: 18px;
    }

    .custom-mini-cart {
        padding: 0;
        height: calc(100vh - 32px);
    }

    .custom-mini-cart-item .item-thumbnail {
        margin-right: 0;
    }

    .item-thumbnail img {
        width: 60px;
    }

    .custom-mini-cart-item {
        grid-template-columns: 60px 1fr auto;
        gap: 10px 10px;
    }
}