/**
 * Dravin Cart Widgets — Frontend Styles
 * Plugin: Dravin Cart Widgets v1.0.0
 * Author: TAMAL  |  Brand: Dravin
 * Reference: thesouledstore.com/cart
 *
 * Design Tokens
 * ─────────────────────────────────
 * Primary Teal      : #009688
 * Mobile CTA Red    : #C62828
 * Body Text         : #212121
 * Secondary Text    : #757575
 * Strikethrough     : #9E9E9E
 * Savings Row BG    : #EDE7F6
 * Border / Divider  : #E0E0E0
 * White             : #FFFFFF
 * Overlay           : rgba(0,0,0,0.5)
 * Action Text       : #424242
 * Free Shipping     : #009688
 */

/* ========================================================
   0. RESET / BASE
   ======================================================== */
.dravin-cart-counter,
.dravin-cart-items-wrapper,
.dravin-cart-actions,
.dravin-apply-coupon,
.dravin-billing,
.dravin-sticky-bar,
.dravin-popup-overlay {
    box-sizing: border-box;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dravin-cart-counter *,
.dravin-cart-items-wrapper *,
.dravin-cart-actions *,
.dravin-apply-coupon *,
.dravin-billing *,
.dravin-sticky-bar *,
.dravin-popup-overlay * {
    box-sizing: border-box;
}

/* ========================================================
   1. CART COUNTER
   ======================================================== */
.dravin-cart-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
}

.dravin-cart-counter__left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dravin-cart-counter__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Custom Checkbox (shared pattern) */
.dravin-cart-counter__checkbox-wrap,
.dravin-cart-item__checkbox-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.dravin-cart-counter__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.dravin-cart-item__checkbox {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.dravin-cart-counter__checkmark,
.dravin-cart-item__checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    background: #FFFFFF;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.dravin-cart-counter__checkbox:checked + .dravin-cart-counter__checkmark,
.dravin-cart-item__checkbox:checked + .dravin-cart-item__checkmark {
    background-color: #009688;
    border-color: #009688;
}

.dravin-cart-counter__checkbox:checked + .dravin-cart-counter__checkmark::after,
.dravin-cart-item__checkbox:checked + .dravin-cart-item__checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.dravin-cart-counter__checkbox:indeterminate + .dravin-cart-counter__checkmark {
    background-color: #009688;
    border-color: #009688;
}

.dravin-cart-counter__checkbox:indeterminate + .dravin-cart-counter__checkmark::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 7px;
    width: 10px;
    height: 2px;
    background: #FFFFFF;
    border: none;
    transform: none;
}

.dravin-cart-counter__text {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
    line-height: 1.4;
    white-space: nowrap;
}

.dravin-cart-counter__selected,
.dravin-cart-counter__count {
    font-weight: 700;
}

.dravin-cart-counter__total {
    font-size: 14px;
    font-weight: 700;
    color: #009688;
    white-space: nowrap;
}

.dravin-cart-counter__total-amount {
    font-weight: 700;
}

.dravin-cart-counter__heart,
.dravin-cart-counter__trash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    color: #757575;
    font-size: 20px;
    transition: color 0.2s ease, transform 0.15s ease;
    padding: 4px;
}

.dravin-cart-counter__heart:hover,
.dravin-cart-counter__trash:hover {
    color: #009688;
    transform: scale(1.1);
}

.dravin-cart-counter__heart--loading,
.dravin-cart-counter__trash--loading {
    opacity: 0.5;
    pointer-events: none;
}

.dravin-cart-counter__heart--active,
.dravin-cart-counter__heart--active svg,
.dravin-cart-counter__heart--active i {
    color: #e53935 !important;
    fill: #e53935 !important;
    stroke: #e53935 !important;
}

.dravin-cart-counter__heart--active i.fa-heart-o::before {
    content: "\f004";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome;
    font-weight: 900;
}

.dravin-cart-counter__heart--active > i,
.dravin-cart-counter__heart--active > svg {
    visibility: hidden;
}

.dravin-cart-counter__heart--active::before {
    content: "\f004";
    position: absolute;
    top: 50%;
    left: 50%;
    color: #e53935;
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome;
    font-size: 1em;
    font-weight: 900;
    line-height: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ========================================================
   2. CART ITEM CARDS
   ======================================================== */
.dravin-cart-items-wrapper {
    padding: 0;
}

.dravin-cart-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 0;
    position: relative;
    transition: box-shadow 0.2s ease, opacity 0.3s ease;
}

.dravin-cart-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dravin-cart-item--loading {
    opacity: 0.5;
    pointer-events: none;
}

.dravin-cart-item--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #E0E0E0;
    border-top-color: #009688;
    border-radius: 50%;
    animation: dravin-spin 0.7s linear infinite;
}

.dravin-cart-item__checkbox-wrap {
    margin-right: 8px;
    margin-top: 4px;
}

.dravin-cart-item__checkmark {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 0;
    pointer-events: none;
}

.dravin-cart-item__checkbox:checked + .dravin-cart-item__checkmark::after {
    left: 4px;
    top: 1px;
    width: 5px;
    height: 10px;
}

.dravin-cart-item__image {
    flex-shrink: 0;
    margin-right: 12px;
}

.dravin-cart-item__image img {
    width: 80px;
    height: 100px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 6px;
    display: block;
}

.dravin-cart-item__details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dravin-cart-item__name {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dravin-cart-item__category {
    font-size: 12px;
    font-weight: 400;
    color: #757575;
    margin: 0;
    line-height: 1.3;
}

/* Dropdowns row */
.dravin-cart-item__dropdowns {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.dravin-cart-item__size-wrap,
.dravin-cart-item__qty-wrap {
    position: relative;
    flex: 1;
}

.dravin-cart-item__size,
.dravin-cart-item__qty {
    width: 100%;
    padding: 6px 28px 6px 10px;
    font-size: 13px;
    font-weight: 400;
    color: #212121;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
}

.dravin-cart-item__size:focus,
.dravin-cart-item__qty:focus {
    border-color: #009688;
    box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.1);
}

.dravin-cart-item__size:hover,
.dravin-cart-item__qty:hover {
    border-color: #BDBDBD;
}

/* Pricing */
.dravin-cart-item__pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.dravin-cart-item__price {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
}

.dravin-cart-item__original-price {
    font-size: 12px;
    font-weight: 400;
    color: #9E9E9E;
    text-decoration: line-through;
}

.dravin-cart-item__mrp-label {
    font-size: 11px;
    font-weight: 400;
    color: #757575;
}

.dravin-cart-item__savings {
    font-size: 12px;
    font-weight: 600;
    color: #009688;
    margin-top: 2px;
    display: none; /* hidden on mobile by default */
}

/* ========================================================
   3. CART ACTIONS (REMOVE / WISHLIST)
   ======================================================== */
.dravin-cart-actions {
    display: flex;
    align-items: stretch;
    border-top: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 12px;
    background: #FFFFFF;
}

.dravin-cart-actions__remove,
.dravin-cart-actions__wishlist {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #424242;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    outline: none;
    font-family: inherit;
}

.dravin-cart-actions__remove:hover,
.dravin-cart-actions__wishlist:hover {
    background-color: #F5F5F5;
}

.dravin-cart-actions__remove:active,
.dravin-cart-actions__wishlist:active {
    background-color: #EEEEEE;
}

.dravin-cart-actions__wishlist--loading {
    opacity: 0.5;
    pointer-events: none;
}

.dravin-cart-actions__divider {
    width: 1px;
    background-color: #E0E0E0;
    align-self: stretch;
    flex-shrink: 0;
}

/* Hidden config helper for popup data */
.dravin-cart-actions-config {
    display: none !important;
}

/* ========================================================
   4. REMOVE ITEM POPUP
   ======================================================== */
.dravin-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: dravin-fade-in 0.25s ease-out;
}

.dravin-popup {
    background: #FFFFFF;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    padding: 24px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: dravin-slide-up 0.3s ease-out;
}

.dravin-popup__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #757575;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
    font-family: inherit;
}

.dravin-popup__close:hover {
    color: #212121;
}

.dravin-popup__body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.dravin-popup__image-wrap {
    flex-shrink: 0;
}

.dravin-popup__image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.dravin-popup__content {
    flex: 1;
    min-width: 0;
}

.dravin-popup__heading {
    font-size: 16px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.dravin-popup__subheading {
    font-size: 13px;
    font-weight: 400;
    color: #757575;
    margin: 0;
    line-height: 1.5;
}

.dravin-popup__buttons {
    display: flex;
    gap: 12px;
}

.dravin-popup__no,
.dravin-popup__yes {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
    outline: none;
    font-family: inherit;
}

.dravin-popup__no {
    background: #FFFFFF;
    color: #424242;
    border: 1px solid #E0E0E0;
}

.dravin-popup__no:hover {
    background: #F5F5F5;
}

.dravin-popup__yes {
    background: #009688;
    color: #FFFFFF;
    border: 1px solid #009688;
}

.dravin-popup__yes:hover {
    background: #00796B;
    border-color: #00796B;
}

.dravin-popup__no:active,
.dravin-popup__yes:active {
    transform: scale(0.97);
}

/* ========================================================
   5. APPLY COUPON (Accordion)
   ======================================================== */
.dravin-apply-coupon {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 0;
    overflow: hidden;
}

.dravin-apply-coupon__header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.dravin-apply-coupon__header:hover {
    background-color: #FAFAFA;
}

.dravin-apply-coupon__icon {
    color: #757575;
    font-size: 18px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.dravin-apply-coupon__title {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    flex: 1;
}

.dravin-apply-coupon__chevron {
    color: #757575;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.dravin-apply-coupon__chevron i {
    transition: transform 0.2s ease;
    display: inline-block;
}

.dravin-apply-coupon__chevron--open i {
    transform: rotate(180deg);
}

.dravin-apply-coupon__content {
    padding: 0 16px 16px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.dravin-apply-coupon__input-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.dravin-apply-coupon__input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    color: #212121;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.dravin-apply-coupon__input::placeholder {
    color: #9E9E9E;
}

.dravin-apply-coupon__input:focus {
    border-color: #009688;
    box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.1);
}

.dravin-apply-coupon__button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    background: #009688;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.dravin-apply-coupon__button:hover {
    background: #00796B;
}

.dravin-apply-coupon__button:active {
    background: #00695C;
}

.dravin-apply-coupon__applied-coupons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.dravin-apply-coupon__applied-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #009688;
    background: #E0F2F1;
    border: 1px solid #B2DFDB;
    border-radius: 16px;
    text-transform: uppercase;
}

.dravin-apply-coupon__remove-coupon {
    background: none;
    border: none;
    color: #009688;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    font-family: inherit;
}

.dravin-apply-coupon__remove-coupon:hover {
    color: #C62828;
}

.dravin-apply-coupon__message {
    font-size: 13px;
    line-height: 1.4;
    padding: 6px 0;
}

.dravin-apply-coupon__message--success {
    color: #009688;
}

.dravin-apply-coupon__message--error {
    color: #C62828;
}

/* ========================================================
   6. BILLING DETAILS
   ======================================================== */
.dravin-billing-details-wrapper {
    margin: 0;
}

.dravin-billing {
    background: #FFFFFF;
    padding: 16px;
}

.dravin-billing__heading {
    font-size: 13px;
    font-weight: 700;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.dravin-billing__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.dravin-billing--has-dividers .dravin-billing__row {
    border-bottom: 1px solid #E0E0E0;
}

.dravin-billing--has-dividers .dravin-billing__row:last-child {
    border-bottom: none;
}

.dravin-billing__label {
    font-size: 13px;
    font-weight: 400;
    color: #212121;
    line-height: 1.4;
}

.dravin-billing__value {
    font-size: 13px;
    font-weight: 400;
    color: #212121;
    text-align: right;
    line-height: 1.4;
    white-space: nowrap;
}

/* Savings row */
.dravin-billing__savings-row {
    background: #EDE7F6;
    margin: 0 -16px;
    padding: 10px 16px !important;
    border-radius: 0;
}

.dravin-billing__savings-row .dravin-billing__label {
    font-weight: 700;
    color: #009688;
}

.dravin-billing__savings-row .dravin-billing__value {
    font-weight: 700;
    color: #009688;
}

/* Shipping */
.dravin-billing__shipping-free {
    color: #009688;
    font-weight: 700;
    margin-right: 6px;
}

.dravin-billing__shipping-original {
    color: #9E9E9E;
    text-decoration: line-through;
    font-size: 12px;
}

/* Total row */
.dravin-billing__total-row .dravin-billing__label {
    font-weight: 700;
    font-size: 14px;
}

.dravin-billing__total-row .dravin-billing__value {
    font-weight: 700;
    font-size: 14px;
}

.dravin-billing__total-note {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}

/* ========================================================
   7. STICKY BOTTOM BAR
   ======================================================== */
.dravin-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #FFFFFF;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #E0E0E0;
}

.dravin-sticky-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    height: auto;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    max-width: 100%;
}

.dravin-sticky-bar__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 1px;
}

.dravin-sticky-bar__total {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #212121;
    line-height: 1.2;
    white-space: nowrap;
}

.dravin-sticky-bar__gst-note {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #757575;
    line-height: 1.3;
    margin-top: 1px;
    white-space: nowrap;
}

.dravin-sticky-bar__view-details {
    font-size: 12px;
    font-weight: 400;
    color: #009688;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    font-family: inherit;
    display: inline-block;
    line-height: 1.25;
    white-space: nowrap;
}

.dravin-sticky-bar__view-details:hover {
    color: #00796B;
}

.dravin-sticky-bar__right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.dravin-sticky-bar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    background: #C62828;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    white-space: nowrap;
    min-width: 160px;
    max-width: 100%;
    font-family: inherit;
}

.dravin-sticky-bar__button:hover {
    background: #B71C1C;
    color: #FFFFFF;
    text-decoration: none;
}

.dravin-sticky-bar__button:active {
    transform: scale(0.98);
}

/* Responsive visibility */
.dravin-sticky-bar--hidden {
    display: none !important;
}

.dravin-sticky-bar--visible {
    display: block !important;
}

/* ========================================================
   8. TOAST NOTIFICATION
   ======================================================== */
.dravin-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10001;
    background: #323232;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    text-align: center;
    max-width: 90%;
    white-space: nowrap;
}

.dravin-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dravin-toast__message {
    display: inline;
}

/* ========================================================
   9. EMPTY CART STATE
   ======================================================== */
.dravin-cart-empty {
    text-align: center;
    padding: 48px 24px;
    background: #FFFFFF;
    border-radius: 8px;
}

.dravin-cart-empty__message {
    font-size: 16px;
    font-weight: 600;
    color: #757575;
    margin: 0 0 16px 0;
}

.dravin-cart-empty__continue {
    display: inline-block;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #FFFFFF;
    background: #009688;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dravin-cart-empty__continue:hover {
    background: #00796B;
    color: #FFFFFF;
    text-decoration: none;
}

/* ========================================================
   10. LOADING STATES
   ======================================================== */
.dravin-loading {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

.dravin-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid #E0E0E0;
    border-top-color: #009688;
    border-radius: 50%;
    animation: dravin-spin 0.7s linear infinite;
    z-index: 10;
}

/* ========================================================
   11. ACCORDION GENERIC (used by coupon / gift voucher / points)
   ======================================================== */
.dravin-accordion__header {
    cursor: pointer;
}

/* ========================================================
   12. ANIMATIONS
   ======================================================== */
@keyframes dravin-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes dravin-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes dravin-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dravin-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes dravin-slide-out {
    from {
        max-height: 200px;
        opacity: 1;
        margin-bottom: 12px;
    }
    to {
        max-height: 0;
        opacity: 0;
        margin-bottom: 0;
        padding: 0;
        border-width: 0;
        overflow: hidden;
    }
}

/* ========================================================
   13. RESPONSIVE — TABLET (768px+)
   ======================================================== */
@media (min-width: 768px) {
    .dravin-cart-item__image img {
        width: 100px;
        height: 120px;
    }

    .dravin-cart-item__name {
        font-size: 15px;
    }

    .dravin-cart-item__category {
        font-size: 13px;
    }

    .dravin-cart-item__price {
        font-size: 15px;
    }

    .dravin-cart-counter__text {
        font-size: 15px;
    }

    .dravin-popup {
        max-width: 420px;
        padding: 28px;
    }

    .dravin-popup__heading {
        font-size: 17px;
    }

    .dravin-sticky-bar__button {
        min-width: 200px;
        font-size: 16px;
    }

    .dravin-billing__label {
        font-size: 14px;
    }

    .dravin-billing__value {
        font-size: 14px;
    }

    .dravin-billing__total-row .dravin-billing__label,
    .dravin-billing__total-row .dravin-billing__value {
        font-size: 15px;
    }
}

/* ========================================================
   14. RESPONSIVE — DESKTOP (1025px+)
   ======================================================== */
@media (min-width: 1025px) {
    /* Sticky bar hidden on desktop by default */
    .dravin-sticky-bar {
        display: none;
    }

    .dravin-sticky-bar[data-show-desktop="yes"] {
        display: block;
    }

    /* Show member savings on desktop */
    .dravin-cart-item__savings {
        display: block;
    }

    /* Larger images on desktop */
    .dravin-cart-item__image img {
        width: 110px;
        height: 130px;
    }

    .dravin-cart-item__name {
        font-size: 16px;
    }

    .dravin-cart-item__category {
        font-size: 14px;
    }

    .dravin-cart-item__price {
        font-size: 16px;
    }

    .dravin-cart-item__original-price {
        font-size: 13px;
    }

    .dravin-cart-item__mrp-label {
        font-size: 12px;
    }

    .dravin-cart-counter__text {
        font-size: 16px;
    }

    .dravin-cart-counter__total {
        font-size: 15px;
    }

    .dravin-popup {
        max-width: 440px;
    }

    .dravin-popup__heading {
        font-size: 18px;
    }

    .dravin-popup__subheading {
        font-size: 14px;
    }
}

/* Device-specific hide classes for sticky bar */
@media (max-width: 767px) {
    .dravin-sticky-bar--hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dravin-sticky-bar--hide-tablet {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .dravin-sticky-bar--hide-desktop {
        display: none !important;
    }
}

/* ========================================================
   15. PRINT STYLES
   ======================================================== */
@media print {
    .dravin-sticky-bar,
    .dravin-popup-overlay,
    .dravin-toast {
        display: none !important;
    }
}

/* ========================================================
   16. EMPTY CART
   ======================================================== */
.dravin-empty-cart,
.dravin-empty-cart * {
    box-sizing: border-box;
}

.dravin-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 40px;
    background: #FFFFFF;
    text-align: center;
}

.dravin-empty-cart--hidden {
    display: none !important;
}

.dravin-empty-cart__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #BDBDBD;
    line-height: 1;
}

.dravin-empty-cart__icon i {
    display: inline-block;
    font-size: 100px;
    color: inherit;
    line-height: 1;
}

.dravin-empty-cart__icon svg {
    display: block;
    width: 100px;
    height: 100px;
    color: inherit;
    fill: currentColor;
}

.dravin-empty-cart__icon img {
    display: block;
    width: 100px;
    max-width: 100px;
    height: auto;
}

.dravin-empty-cart__heading {
    margin: 0 0 8px;
    color: #212121;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.dravin-empty-cart__subheading {
    max-width: 560px;
    margin: 0 0 24px;
    color: #757575;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.dravin-empty-cart__categories-box {
    width: 100%;
    max-width: 560px;
    margin-bottom: 24px;
    padding: 16px;
    background: #F5F5F5;
    border-radius: 8px;
}

.dravin-empty-cart__categories-title {
    margin: 0 0 14px;
    color: #212121;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.dravin-empty-cart__categories-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.dravin-empty-cart__cat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 14px;
    border: 1px solid #E0E0E0;
    border-radius: 100px;
    background: #FFFFFF;
    color: #424242;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.dravin-empty-cart__cat-pill:hover,
.dravin-empty-cart__cat-pill:focus {
    color: #009688;
    text-decoration: none;
}

.dravin-empty-cart__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.dravin-empty-cart__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 160px;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.dravin-empty-cart__btn:hover,
.dravin-empty-cart__btn:focus {
    text-decoration: none;
}

.dravin-empty-cart__btn:active {
    transform: scale(0.98);
}

.dravin-empty-cart__btn--continue {
    border: 1.5px solid #009688;
    background: transparent;
    color: #009688;
}

.dravin-empty-cart__btn--continue:hover,
.dravin-empty-cart__btn--continue:focus {
    background: rgba(0, 150, 136, 0.08);
    color: #00796B;
}

.dravin-empty-cart__btn--login {
    border: 1px solid #009688;
    background: #009688;
    color: #FFFFFF;
}

.dravin-empty-cart__btn--login:hover,
.dravin-empty-cart__btn--login:focus {
    background: #00796B;
    color: #FFFFFF;
}

@media (max-width: 767px) {
    .dravin-empty-cart {
        padding: 32px 16px;
    }

    .dravin-empty-cart__categories-box {
        max-width: 100%;
    }

    .dravin-empty-cart__buttons {
        align-items: stretch;
    }

    .dravin-empty-cart__btn {
        flex: 1 1 140px;
        min-width: 0;
        padding-right: 16px;
        padding-left: 16px;
    }
}
