/* Sweet Coco — Cart hover dropdown */

.sc-cart-widget {
    position: relative;
}

#cart-qty.sc-cart-widget .cshort-summary,
.sc-cart-widget .cshort-summary {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    width: min(360px, 92vw) !important;
    max-height: none !important;
    padding: 0 !important;
    background: #fffcf7 !important;
    border: 1px solid rgba(184, 146, 90, 0.2) !important;
    border-radius: 18px !important;
    box-shadow:
        0 16px 48px rgba(42, 24, 20, 0.14),
        0 4px 12px rgba(42, 24, 20, 0.06) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
    overflow: hidden;
    z-index: 99999 !important;
}

#cart-qty.sc-cart-widget:hover .cshort-summary,
#cart-qty.sc-cart-widget:focus-within .cshort-summary,
.sc-cart-widget:hover .cshort-summary,
.sc-cart-widget:focus-within .cshort-summary {
    top: calc(100% + 10px) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}

.sc-cart-drop__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(184, 146, 90, 0.12);
}

.sc-cart-drop__title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    color: #2a1814;
}

.sc-cart-drop__count {
    font-size: 12px;
    font-weight: 600;
    color: #87796a;
    background: #f8f4ed;
    padding: 4px 10px;
    border-radius: 999px;
}

.sc-cart-drop__items {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 10px;
}

.sc-cart-drop__items::-webkit-scrollbar {
    width: 4px;
}

.sc-cart-drop__items::-webkit-scrollbar-thumb {
    background: rgba(184, 146, 90, 0.35);
    border-radius: 99px;
}

.sc-cart-drop__item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.sc-cart-drop__item:hover {
    background: rgba(248, 244, 237, 0.8);
}

.sc-cart-drop__item + .sc-cart-drop__item {
    margin-top: 2px;
}

.sc-cart-drop__thumb {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(184, 146, 90, 0.18);
    flex-shrink: 0;
}

.sc-cart-drop__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.sc-cart-drop__info {
    min-width: 0;
}

.sc-cart-drop__name {
    display: block;
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #241812;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-cart-drop__name:hover {
    color: #b8925a;
}

.sc-cart-drop__qty {
    font-size: 12px;
    color: #87796a;
}

.sc-cart-drop__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.sc-cart-drop__price {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #4a2f26;
    white-space: nowrap;
}

.sc-cart-drop__remove,
.sc-cart-drop__remove:focus,
.sc-cart-widget .remove-cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 26px !important;
    height: 26px !important;
    line-height: 1 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    background: rgba(166, 61, 61, 0.1) !important;
    color: #a63d3d !important;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    outline: none;
}

.sc-cart-drop__remove:hover,
.sc-cart-widget .remove-cart:hover {
    background: #a63d3d !important;
    color: #fff !important;
}

.sc-cart-drop__remove i {
    font-size: 11px;
    line-height: 1;
}

.sc-cart-drop__empty {
    padding: 32px 20px;
    text-align: center;
    color: #87796a;
    font-size: 14px;
}

.sc-cart-drop__empty i {
    display: block;
    font-size: 28px;
    color: #b8925a;
    opacity: 0.5;
    margin-bottom: 10px;
}

.sc-cart-drop__footer {
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(184, 146, 90, 0.12);
    background: linear-gradient(180deg, transparent, rgba(248, 244, 237, 0.5));
}

.sc-cart-drop__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #87796a;
}

.sc-cart-drop__total strong {
    font-size: 18px;
    font-weight: 700;
    color: #2a1814;
}

.sc-cart-drop__btn,
.sc-cart-drop__btn:hover {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin: 0 0 8px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #4a2f26, #2a1814);
    color: #dcc9a3 !important;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc-cart-drop__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(42, 24, 20, 0.22);
}

.sc-cart-drop__view,
.sc-cart-drop__view:hover {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #87796a;
    text-decoration: none;
}

.sc-cart-drop__view:hover {
    color: #4a2f26;
}

/* Override legacy grid layout inside dropdown */
.sc-cart-widget .cshort-summary ul {
    display: none !important;
}

.sc-cart-widget .cshort-summary > p {
    display: none !important;
}

.sc-cart-widget .cshort-summary > .go_cart {
    display: none !important;
}
