/* ============================================================
   CUSTOM CART DRAWER  –  cart-drawer.css
   Place in: /your-child-theme/cart-drawer.css
   ============================================================ */


/* ── HIDE ELEMENTOR'S DEFAULT CART SIDE PANEL ───────────── */
.elementor-menu-cart__container,
.elementor-menu-cart__close-button,
body.elementor-menu-cart--shown .elementor-menu-cart__overlay {
    display: none !important;
    pointer-events: none !important;
}

/* ── CSS VARIABLES ───────────────────────────────────────── */
:root {
    --ccd-bg:            #2e2c2b;
    --ccd-bg-overlay:    rgba(0, 0, 0, 0.58);
    --ccd-border:        #4b4848;
    --ccd-text:          #ffffff;
    --ccd-text-muted:    rgba(255, 255, 255, 0.38);
    --ccd-thumb-bg:      #2a2a32;
    --ccd-btn-bg:        #1A1918;
    --ccd-btn-hover:     rgba(255, 255, 255, 0.18);
    --ccd-checkout-bg:   #ffffff;
    --ccd-checkout-text: #111111;
    --ccd-radius:        24px;
    --ccd-width:         380px;
    --ccd-font:          var(--e-global-typography-9d1a8d2-font-family), Sans-serif;
    --ccd-font-gt:       "GT Planar", Sans-serif;;
}

div#customCartBody
 {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}
.custom-cart-drawer .elementor-menu-cart__subtotal, .custom-cart-drawer .elementor-menu-cart__footer-buttons{
    display: none;
}
/* ── OVERLAY ─────────────────────────────────────────────── */
.custom-cart-overlay {
    position: fixed;
    inset: 0;
    background: var(--ccd-bg-overlay);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}
.custom-cart-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* ── DRAWER ──────────────────────────────────────────────── */
.custom-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--ccd-width);
    max-width: 100vw;
    background: var(--ccd-bg);
    border-left: 1px solid var(--ccd-border);
    border-radius: var(--ccd-radius);
    display: flex;
    flex-direction: column;
    z-index: 999999;
    transform: translateX(110%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--ccd-font);
    overflow: hidden;
	
	box-shadow: 136px 150px 57px rgba(2, 2, 2, 0.01), 87px 96px 52px rgba(2, 2, 2, 0.08), 49px 54px 44px rgba(2, 2, 2, 0.27), 22px 24px 33px rgba(2, 2, 2, 0.47), 5px 6px 18px rgba(2, 2, 2, 0.54);
	border: 1px solid var(--ccd-border);
	width: 440px;
	margin: 16px;
}
.custom-cart-drawer.is-open {
    transform: translateX(0);
}

/* ── HEADER ──────────────────────────────────────────────── */
.ccd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid var(--ccd-border);
    flex-shrink: 0;
}
.ccd-title {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ccd-text);
	font-family: var(--e-global-typography-9d1a8d2-font-family), Sans-serif;
	line-height: 14px;

}

.ccd-count
 {
    color: var(--ccd-text-muted);
    font-weight: 400;
    margin-left: 5px;
    font-family: 'GT Planar';
    text-transform: capitalize;
}
.ccd-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    color: var(--ccd-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
	padding:0px;
	box-shadow: 0px -2px 4px rgba(255, 255, 255, 0.02) inset;
	border-radius: 999px;
	background-color: #1a1918;
	border: 1px solid #222120;
}
.ccd-close:hover { background: var(--ccd-btn-hover); }

/* ── SCROLLABLE BODY ─────────────────────────────────────── */
.ccd-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px 0 0 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
	font-family: var(--ccd-font-gt);
}
.ccd-body .elementor-menu-cart__product-name a {
    transition: .3s;
    color: #DAD3CD;
    font-size: 19px;
    letter-spacing: -0.02em;
    line-height: 28px;
    font-family: var(--ccd-font-gt);
    color: #dad3cd;
    text-align: left;
    display: inline-block;
    text-transform: capitalize;
}
.ccd-body span.product-quantity
{
    display: none;
}
.ccd-body .elementor-menu-cart__product-price.product-price {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 19px;
    letter-spacing: -0.02em;
    line-height: 28px;
    font-weight: 300;
    font-family: 'GT Planar';
    color: #8c857f;
    text-align: left;
}
.ccd-body .elementor-menu-cart__product-price.product-price ins{
	color: #fff;
}
.ccd-body .elementor-menu-cart__product-remove {
    border: unset !important;
    bottom: 20px;
    height: unset
    inset-inline-end: 0;
    overflow: hidden;
    width: 70px;
    border: none;
    text-decoration: underline;
    border-radius: unset;
    font-size: 14px;
    text-decoration: underline;
    letter-spacing: -0.01em;
    line-height: 21px;
    font-weight: 300;
    font-family: 'GT Planar';
    color: #8c857f;
    text-align: center;
}
.ccd-body .elementor-menu-cart__product-remove:before {
    content: 'Remove';
}
.ccd-body .elementor-menu-cart__product-remove:before, .ccd-body .elementor-menu-cart__product-remove:after{
	 transform: rotate(0deg);
	background: unset !important;
	height: auto;
	top:0;
	border:none !important;
	width: auto;
    text-decoration: underline;
}
.ccd-body::-webkit-scrollbar { width: 4px; }
.ccd-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* ── WOOCOMMERCE MINI-CART ITEMS ─────────────────────────── */
.ccd-body .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0 32px; }

.ccd-body .woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ccd-border);
}
.ccd-body .woocommerce-mini-cart-item:last-child { border-bottom: none; }

/* Product thumbnail */
.ccd-body .elementor-menu-cart__product-image{
	width: 64px;
}
.ccd-body .woocommerce-mini-cart-item a img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    flex-shrink: 0;
    background: var(--ccd-thumb-bg);
}
.ccd-body .elementor-menu-cart__product {
    display: flex;
    align-items: center;
	padding: 0 !important;
    margin-bottom: 20px;
    padding-bottom: 20px !important;
	border-bottom: 1px solid var(--ccd-border) !important;
}
.ccd-body .elementor-menu-cart__product:last-child {
	border-bottom: none !important;
}
/* Product name link */
.ccd-body .woocommerce-mini-cart-item .mini_cart_item_name,
.ccd-body .woocommerce-mini-cart-item > a:not(.remove_from_cart_button) {
    font-size: 15px;
    font-weight: 600;
    color: var(--ccd-text) !important;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

/* Price */
.ccd-body .woocommerce-mini-cart-item .woocommerce-Price-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--ccd-text);
}
.ccd-body .woocommerce-mini-cart-item del .woocommerce-Price-amount {
    font-size: 13px;
    font-weight: 400;
    color: var(--ccd-text-muted);
    text-decoration: line-through;
}
.ccd-body .woocommerce-mini-cart-item .quantity {
    font-size: 13px;
    color: var(--ccd-text-muted);
    margin-top: 2px;
}

/* Remove button */
.ccd-body .woocommerce-mini-cart-item .remove_from_cart_button {
    background: none;
    border: none;
    color: var(--ccd-text-muted) !important;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-top: 4px;
    display: block;
    transition: color 0.2s;
    font-family: var(--ccd-font);
    line-height: 1;
}
.ccd-body .woocommerce-mini-cart-item .remove_from_cart_button:hover {
    color: rgba(255, 90, 90, 0.8) !important;
}
/* Hide the ×  default icon, show "Remove" text */
.ccd-body .woocommerce-mini-cart-item .remove_from_cart_button::after {
    content: 'Remove';
}
.ccd-body .woocommerce-mini-cart-item .remove_from_cart_button * { display: none; }

/* Layout: thumbnail | info block */
.ccd-body .woocommerce-mini-cart-item > a:first-child {
    flex-shrink: 0;
}
.ccd-body .woocommerce-mini-cart-item-details,
.ccd-body .woocommerce-mini-cart-item > :not(a:first-child) {
    flex: 1;
    min-width: 0;
}

/* Empty cart message */
.ccd-body .woocommerce-mini-cart__empty-message {
    color: var(--ccd-text-muted);
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
}

/* ── "PEOPLE ALSO BOUGHT" UPSELLS ────────────────────────── */
/* WooCommerce outputs .woocommerce-mini-cart__upsells or similar.
   Style it to match the screenshot. */
.ccd-body .woocommerce-mini-cart__upsells, .ccd-body .ccd-upsells {
    padding: 24px 32px;
    border-top: 1px solid var(--ccd-border);
}
.ccd-body .woocommerce-mini-cart__upsells-title,
.ccd-body .ccd-upsells-title {
   font-size: 16px;
	letter-spacing: -0.02em;
	line-height: 24px;
	font-weight: 300;
	font-family: var(--ccd-font-gt);
	color: #8c857f;
	text-align: left;
	display: inline-block;
}
.ccd-body .upsell-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
/*     padding: 10px 0; */
/*     border-bottom: 1px solid rgba(255,255,255,0.05); */
	border-bottom: none;
	padding: 6px 6px 0;
    margin: 0px -6px 4px;
    border-radius: 6px;
	transition: all .3s ease;
}
.ccd-body .upsell-product-item:hover
{
    background-color: var(--ccd-border);
}
.ccd-body .ccd-upsells-title {
	margin-bottom: 16px;
}
.ccd-body .upsell-product-item:last-child { border-bottom: none; }
.ccd-body .upsell-product-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
	width: 100%;
	border-radius: 9.14px;
	background-color: #0e0e0d;
	border: 1.1px solid #1a1918;
}
.ccd-body .upsell-product-info { flex: 1; min-width: 0; }
.ccd-body .upsell-product-name {
    font-size: 16px;
	letter-spacing: -0.02em;
	line-height: 24px;
	font-family: var(--ccd-font-gt);
	color: #dad3cd;
	text-align: left;
    color: var(--ccd-text);
	font-weight: 400;
}

.ccd-body .upsell-product-price {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 2px;
	font-size: 16px;
	letter-spacing: -0.02em;
	line-height: 24px;
	font-family: var(--ccd-font-gt);
	color: #dad3cd;
}
.ccd-body .upsell-product-price del {
    font-size: 12px;
    color: var(--ccd-text-muted);
}
.ccd-body .upsell-product-price ins,
.ccd-body .upsell-product-price .amount {
    font-size: 13px;
    font-weight: 600;
    color: var(--ccd-text);
    text-decoration: none;
}
.ccd-body .upsell-add-btn {
    background: var(--ccd-btn-bg);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    letter-spacing: -0.01em;
    line-height: 21px;
    font-weight: 500;
    color: #dad3cd;
    border-radius: 20px;
}
.ccd-body .upsell-add-btn:hover  { background: var(--ccd-btn-hover); transform: scale(1.04); }
.ccd-body .upsell-add-btn:active { transform: scale(0.97); }
.ccd-body .upsell-add-btn.added  {
    background: rgba(100, 220, 130, 0.18);
    color: rgb(100, 220, 130);
    pointer-events: none;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.ccd-footer {
    padding: 16px 22px 24px;
    border-top: 1px solid var(--ccd-border);
    background: var(--ccd-bg);
    flex-shrink: 0;
}
.ccd-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.ccd-subtotal-label {
    color: #dad3cd;
    font-family: var(--ccd-font);
    font-size: 22px;
    letter-spacing: -0.02em;
    line-height: 32px;
    font-weight: 300;
}
.ccd-subtotal-amount {
    font-size: 22px;
	letter-spacing: -0.02em;
	line-height: 32px;
	color: #dad3cd;
}
.ccd-checkout-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 8px !important;
    border-radius: 200px !important;
    border: none !important;
    background: var(--ccd-checkout-bg) !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    box-sizing: border-box;
	font-size: 16px;
	letter-spacing: -0.02em;
	line-height: 24px;
	font-weight: 500;
	color: #020202;
	text-align: center;
	margin-bottom: 16px;
}
.ccd-checkout-btn:hover  { background: #e8e8e8 !important; }
.ccd-checkout-btn:active { transform: scale(0.98); }
.ccd-tax-note {
    font-size: 14px;
	letter-spacing: -0.01em;
	line-height: 21px;
	font-weight: 300;
	font-family: 'GT Planar';
	color: #8c857f;
	text-align: center;
}
.ccd-body .elementor-menu-cart__product-name a {
    max-width: 200px;
}
@media (max-width: 1440px) {
	 .custom-cart-drawer {
        max-width; 396px;
    }
	.ccd-body .elementor-menu-cart__product-name a {
		max-width: 180px;
	}
}
/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .custom-cart-drawer {
        width: calc(100vw - 32px);
    }
	.cart-upsells .upsell-item__btn.add_to_cart_button .e-atc-icon {
/* 		display: none !important; */
	}
	.upsell-item__name {
    	font-size: 15px; 
	}
	a.upsell-item__btn.add_to_cart_button{
		font-size: 0;
	}
}
