/* v726 – cart page in the established Luna Shop visual language.
   All rules are isolated to the basket page; NOVA's checkout logic remains intact. */
body:has(.basket) { background: #f8f6f4; color: #272126; }
body:has(.basket) #main-wrapper,
body:has(.basket) #content-wrapper,
body:has(.basket) #content { background: transparent; }
body:has(.basket) #content-wrapper { padding-top:0!important; }

/* Shared header frame from the approved start-page reference. */
body:has(.basket) #header-top-bar { min-height: 32px; background: linear-gradient(90deg,#3e071b,#790d37 58%,#3e071b); }
body:has(.basket) #header-top-bar a,
body:has(.basket) #header-top-bar span { color: #fff !important; }
body:has(.basket) header .hide-navbar { width:min(calc(100% - 48px),1300px)!important; max-width:1300px!important; margin:auto; padding:8px 24px!important; background:#fff; }
body:has(.basket) header .hide-navbar > .navbar { display: grid !important; grid-template-columns: minmax(230px,310px) minmax(330px,1fr) auto; gap: 30px; min-height: 66px; padding: 0 !important; }
body:has(.basket) header .nav-logo-wrapper,
body:has(.basket) header .main-search-wrapper,
body:has(.basket) header .nav-icons-wrapper { width: auto !important; max-width: none !important; padding: 0 !important; }
body:has(.basket) header .luna-v562-golden-logo { display: block !important; width: 229px !important; height: auto !important; max-height: 59px !important; object-fit: contain; }
body:has(.basket) header .main-search-wrapper .input-group { height: 44px; overflow: hidden; border: 1px solid #e5d9d4; border-radius: 24px; background: #fff; }
body:has(.basket) header .main-search-wrapper input { height: 42px; border: 0 !important; padding-left: 20px; box-shadow: none !important; }
body:has(.basket) header .main-search-wrapper button { width: 54px; border: 0 !important; border-radius: 0 !important; background: #76052f !important; color: #fff; }
body:has(.basket) header .nav-icons-wrapper .nav-link { color: #19171a !important; }
body:has(.basket) header .nav-icons-wrapper .dropdown-toggle::after { display: none; }

/* Main basket surface */
body:has(.basket) .breadcrumb-container { width:min(calc(100% - 48px),1300px); max-width:1300px; margin:0 auto; padding-top:16px; font-family:Arial,Helvetica,sans-serif; font-size:14px; }
body:has(.basket) .basket { width:min(calc(100% - 48px),1332px)!important; max-width:1332px!important; margin:0 auto; padding:18px 16px 54px; font-family:Arial,Helvetica,sans-serif; font-size:15px; line-height:1.45; }
body:has(.basket) .basket > .row { display:grid!important; grid-template-columns:minmax(0,1.9fr) minmax(420px,1fr); gap:20px; margin:0!important; }
body:has(.basket) .basket > .row > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
body:has(.basket) .basket .basket-heading { margin:0 0 20px; color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-size:31px; font-weight:400; line-height:1.12; }
body:has(.basket) .basket_wrapper { border: 1px solid #eadfda; border-radius: 10px; background: #fff; box-shadow: 0 4px 18px rgba(58,29,39,.06); overflow: hidden; }
body:has(.basket) .basket-items { padding: 0 22px; }
body:has(.basket) .cart-items-header { margin: 0; padding: 16px 0 13px; color: #6e5b63; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid #eadfda; }
body:has(.basket) .cart-items-body { margin: 0; padding: 22px 0; border-bottom: 1px solid #eee6e2; align-items: center; }
body:has(.basket) .cart-items-body:last-child { border-bottom: 0; }
body:has(.basket) .cart-items-image img { display: block; width: 108px; height: 132px; object-fit: contain; border: 1px solid #eee5e1; border-radius: 6px; background: #fff; }
body:has(.basket) .cart-items-name { color: #2e2228 !important; font-family: Georgia,"Times New Roman",serif; font-size: 19px; font-weight: 700; line-height: 1.18; text-decoration: none !important; }
body:has(.basket) .cart-items-name:hover { color: #76052f !important; }
body:has(.basket) .cart-items-body .product-data { margin: 10px 0 0; color: #655b60; font-size: 14px; line-height: 1.48; }
body:has(.basket) .cart-items-body .product-data strong { color: #2f272b; }
body:has(.basket) .cart-items-quantity .input-group { max-width: 142px; overflow: hidden; border: 1px solid #dfd4d0; border-radius: 22px; }
body:has(.basket) .cart-items-quantity .input-group button,
body:has(.basket) .cart-items-quantity .input-group input { height: 40px; border: 0 !important; background: #fff; box-shadow: none !important; text-align: center; }
body:has(.basket) .cart-items-quantity .input-group button { color: #76052f; font-weight: 700; }
body:has(.basket) .cart-items-price .price { color: #76052f; font-size: 18px; font-weight: 700; }
body:has(.basket) .cart-items-body .cart-items-actions { margin-top: 12px; }
body:has(.basket) .cart-items-body .cart-items-actions a { color: #76052f !important; }

/* NOVA renders the product row as nested Bootstrap columns.  On the cart only,
   make those columns a coherent four-column product grid like Warenkorb.png. */
@media (min-width: 1200px) {
  body:has(.basket) .cart-items-body { display:grid!important; grid-template-columns:112px minmax(0,1fr); column-gap:18px; align-items:start; }
  body:has(.basket) .cart-items-body > .cart-items-image { grid-column:1; grid-row:1; width:112px!important; max-width:112px!important; padding:0!important; }
  body:has(.basket) .cart-items-body > .cart-items-image img { width:106px; height:106px; }
  body:has(.basket) .cart-items-body > .cart-items-image + [class*='col'] { display:block!important; width:auto!important; max-width:none!important; min-width:0; padding:0!important; }
  body:has(.basket) .cart-items-body > .cart-items-image + [class*='col'] > .row { display:grid!important; grid-template-columns:minmax(220px,1.55fr) minmax(90px,.68fr) minmax(138px,.9fr) minmax(90px,.62fr); column-gap:18px; row-gap:10px; width:100%; margin:0!important; align-items:start!important; }
  body:has(.basket) .cart-items-body > .cart-items-image + [class*='col'] > .row > [class*='col'] { width:auto!important; max-width:none!important; min-width:0; padding:0!important; }
  body:has(.basket) .cart-items-body .cart-items-name { display:block; max-width:27ch; padding-top:2px; font-size:18px; }
  body:has(.basket) .cart-items-body .cart-items-single-price { grid-column:2; grid-row:1; padding-top:5px!important; font-size:14px; white-space:nowrap; }
  body:has(.basket) .cart-items-body .cart-items-single-price .cart-items-price-text,
  body:has(.basket) .cart-items-body .cart-items-price .cart-items-price-text { display:none; }
  body:has(.basket) .cart-items-body .cart-items-quantity { grid-column:3; grid-row:1; justify-self:center; width:142px!important; }
  body:has(.basket) .cart-items-body .cart-items-price { grid-column:4; grid-row:1; justify-self:end; padding-top:5px!important; color:#76052f; font-size:17px; font-weight:700; white-space:nowrap; }
  body:has(.basket) .cart-items-body .cart-items-price .price_overall { color:inherit!important; }
  body:has(.basket) .cart-items-body .ml-auto-util { grid-column:1; grid-row:2; max-width:52ch; margin:0!important; font-size:12px; line-height:1.34; }
  body:has(.basket) .cart-items-body .ml-auto-util ul { margin:0!important; }
  body:has(.basket) .cart-items-body .cart-items-delete { grid-column:1; grid-row:3; margin-top:2px; }
  body:has(.basket) .cart-items-body .cart-items-delete .btn { padding-left:0!important; }
  body:has(.basket) .cart-items-body:not(:has(.cart-items-image)) { display:block!important; min-height:0!important; padding:12px 0!important; }
  body:has(.basket) .cart-items-body:not(:has(.cart-items-image)) > [class*='col'] { width:100%!important; max-width:none!important; padding:0!important; }
  body:has(.basket) .cart-items-body:not(:has(.cart-items-image)) > [class*='col'] > .row { display:grid!important; grid-template-columns:minmax(0,1fr) auto; align-items:start!important; gap:14px; margin:0!important; }
  body:has(.basket) .cart-items-body:not(:has(.cart-items-image)) .cart-items-price { grid-column:2!important; grid-row:1!important; padding-top:0!important; }
}

/* Order summary */
body:has(.basket) .cart-summary.sticky-top { top: 22px; }
body:has(.basket) .basket > .row > [class*='col'] > .cart-summary > .basket-heading { margin-left: 2px; }
body:has(.basket) .cart-summary { overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; }
body:has(.basket) .cart-summary > .basket-heading { margin:0 0 20px!important; transform:translateY(0); }
body:has(.basket) .cart-summary .card { overflow:hidden; margin:0; border:1px solid #eadfda; border-radius:0; background:#fff; box-shadow:none; }
body:has(.basket) .cart-summary .card:first-of-type { border-bottom:0; border-radius:10px 10px 0 0; }
body:has(.basket) .cart-summary .card + .card { border-top:1px solid #eadfda; border-radius:0 0 10px 10px; box-shadow:0 4px 18px rgba(58,29,39,.06); }
body:has(.basket) .cart-summary .card-body,
body:has(.basket) .cart-summary .card > div { padding:18px 20px; }
body:has(.basket) .cart-summary .total-sum,
body:has(.basket) .cart-summary .price { color: #76052f; }
body:has(.basket) .cart-summary .total-sum { font-family: Georgia,"Times New Roman",serif; font-size: 24px; }
body:has(.basket) .cart-summary .btn-primary,
body:has(.basket) #cart-checkout-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid #76052f !important; border-radius: 7px; background: #76052f !important; color: #fff !important; font-weight: 700; text-decoration: none !important; }
body:has(.basket) .cart-summary .btn-primary:hover,
body:has(.basket) #cart-checkout-btn:hover { background: #4e071f !important; }
body:has(.basket) .cart-summary .paypal-buttons,
body:has(.basket) .cart-summary [class*='paypal'] { max-width: 100%; }

body:has(.basket) #basket-shipping-estimate-form { margin-top: 28px; padding: 24px; border: 1px solid #eadfda; border-radius: 10px; background: #fff; box-shadow: 0 4px 18px rgba(58,29,39,.05); }
body:has(.basket) #basket-shipping-estimate-form .form-control { min-height: 42px; border-color: #ddd1cc; }
body:has(.basket) #basket-shipping-estimate-form .btn { min-height: 42px; border-color: #76052f; background: #fff; color: #76052f; font-weight: 700; }

/* Footer matches the reference's dark Luna footer. */
body:has(.basket) .luna-toys-service { display:grid; grid-template-columns:repeat(4,1fr); width:min(calc(100% - 64px),1600px); min-height:92px; margin:0 auto; padding:14px 22px; border-top:1px solid #eee7e3; background:#fff; font-family:Arial,Helvetica,sans-serif; }
body:has(.basket) .luna-toys-service > span { display:flex; align-items:center; justify-content:center; gap:15px; border-right:1px solid #e6e0dd; }
body:has(.basket) .luna-toys-service > span:last-child { border-right:0; }
body:has(.basket) .luna-toys-service i { color:#76052f; font-size:25px; }
body:has(.basket) .luna-toys-service strong, body:has(.basket) .luna-toys-service small { display:block; }
body:has(.basket) .luna-toys-service strong { color:#272126; font-size:14px; }
body:has(.basket) .luna-toys-service small { margin-top:3px; color:#746b6e; font-size:12px; }
body:has(.basket) #footer { margin: 0 !important; padding: 0 !important; border: 0; background: linear-gradient(110deg,#171c20 0%,#111619 100%); color: #fff; }
body:has(.basket) #footer > .container { width: min(calc(100% - 32px),1600px); max-width: 1600px; padding: 0 22px !important; }
body:has(.basket) #footer > .container > *:not(.luna-v562-footer) { display: none !important; }
body:has(.basket) .luna-v562-footer { position:relative; display:grid; grid-template-columns:1.42fr repeat(3,.92fr) 1.18fr; align-items:start; gap:clamp(34px,4.5vw,78px); min-height:205px; padding:24px 28px 49px; color:#bec2c4; font-family:Arial,Helvetica,sans-serif; }
body:has(.basket) .luna-v562-footer a { display:block; color:#bec2c4!important; font-size:11px; line-height:1.48; text-decoration:none!important; }
body:has(.basket) .luna-v562-footer a:hover { color:#d5a44c!important; }
body:has(.basket) .luna-v562-footer h5 { margin:1px 0 7px; color:#d5d7d8; font-size:12px; font-weight:700; }
body:has(.basket) .luna-v562-footer p { margin:0; color:#b4b9bb; font-size:10px; line-height:1.45; }
body:has(.basket) .luna-v562-footer-brand p { max-width:244px; margin-top:4px; }
body:has(.basket) .luna-v575-footer-logo { display:flex!important; align-items:center; gap:9px; width:max-content; max-width:100%; margin:-2px 0 8px; text-decoration:none!important; }
body:has(.basket) .luna-v575-footer-mark { position:relative; display:block; width:53px; height:53px; flex:0 0 53px; overflow:hidden; }
body:has(.basket) .luna-v575-footer-mark img { display:block!important; width:83px!important; max-width:none!important; height:auto!important; margin:0!important; transform:translate(-15px,-1px); background:transparent!important; }
body:has(.basket) .luna-v575-footer-wordmark { display:flex; flex-direction:column; min-width:0; color:#d7a443; }
body:has(.basket) .luna-v575-footer-wordmark strong { font-family:Georgia,"Times New Roman",serif; font-size:24px; font-weight:400; line-height:1; letter-spacing:.2px; white-space:nowrap; }
body:has(.basket) .luna-v575-footer-wordmark small { margin-top:4px; color:#aeb3b5; font-size:8px; line-height:1; white-space:nowrap; }
body:has(.basket) .luna-v562-payments > div { display:flex; align-items:center; gap:6px; }
body:has(.basket) .luna-v562-payments > div span { display:flex; align-items:center; justify-content:center; min-height:25px; padding:3px 8px; border-radius:3px; background:#fff; color:#173c72; font-size:11px; font-weight:700; }
body:has(.basket) .luna-v562-payments > div span:last-child { background:#f5a9cb; color:#111; }
body:has(.basket) .luna-v562-payments > div .luna-v575-mastercard { position:relative; width:43px; padding:0; }
body:has(.basket) .luna-v575-mastercard::before, body:has(.basket) .luna-v575-mastercard::after { content:""; position:absolute; top:5px; width:15px; height:15px; border-radius:50%; }
body:has(.basket) .luna-v575-mastercard::before { left:8px; background:#e53824; }
body:has(.basket) .luna-v575-mastercard::after { right:8px; background:#f4a71d; mix-blend-mode:multiply; }
body:has(.basket) .luna-v562-payments p { margin-top:6px; }
body:has(.basket) .luna-v562-payments nav { display:flex; align-items:center; gap:22px; margin-top:13px; }
body:has(.basket) .luna-v562-payments nav a, body:has(.basket) .luna-v562-payments nav > span { display:flex!important; align-items:center; justify-content:center; width:25px; height:25px; padding:0; color:#d5d7d8!important; font-size:22px; line-height:1; }
body:has(.basket) .luna-v562-footer-withdrawal { position:absolute; right:28px; bottom:42px; }
body:has(.basket) .luna-v562-footer-withdrawal .withdrawal-link { display:flex!important; align-items:center; justify-content:center; min-width:158px; min-height:28px; padding:5px 12px; border:1px solid #d5a44c!important; border-radius:3px; background:#fff!important; color:#6a5b53!important; text-align:center; font-size:9px; font-weight:700; }
body:has(.basket) .luna-v575-footer-bottom { position:absolute; left:28px; right:28px; bottom:11px; display:flex; align-items:center; justify-content:space-between; padding-top:8px; border-top:1px solid rgba(190,194,196,.22); color:#b7bcbe; font-size:10px; line-height:1; }
body:has(.basket) .luna-v575-footer-bottom b { color:#f0a5b8; }

@media (max-width: 991.98px) {
  /* The desktop grid reserves a 420px summary column.  Collapse it before that
     minimum can exceed the viewport; otherwise the cart is horizontally cut off. */
  body:has(.basket) { overflow-x:hidden; }
  body:has(.basket) header .hide-navbar > .navbar { grid-template-columns: 1fr; gap: 10px; }
  body:has(.basket) .breadcrumb-container { width:100%; padding:18px 14px 0; }
  body:has(.basket) .basket { width: 100%; padding: 18px 14px 36px; }
  body:has(.basket) .basket > .row { grid-template-columns:minmax(0,1fr); gap:24px; }
  body:has(.basket) .basket > .row > [class*='col'] { min-width:0!important; }
  body:has(.basket) .cart-summary { width:100%; min-width:0; }
  body:has(.basket) .luna-toys-service { width:100%; grid-template-columns:repeat(2,1fr); padding:10px 12px; }
  body:has(.basket) .luna-toys-service > span { min-height:70px; border-bottom:1px solid #e6e0dd; }
  body:has(.basket) .luna-v562-footer { grid-template-columns:1fr 1fr; gap:26px; padding:24px 20px 78px; }
  body:has(.basket) .cart-summary.sticky-top { position: static; margin-top: 26px; }
  body:has(.basket) .cart-items-header { display: none; }
  body:has(.basket) .cart-items-body { padding: 18px 0; }
}

@media (max-width: 575.98px) {
  body:has(.basket) .basket { padding:14px 10px 28px; }
  body:has(.basket) .basket .basket-heading { margin-bottom:14px; font-size:28px; }
  body:has(.basket) .basket-items { padding:0 14px; }
  body:has(.basket) .cart-summary .card-body,
  body:has(.basket) .cart-summary .card > div { padding:14px; }
  body:has(.basket) #basket-shipping-estimate-form { margin-top:18px; padding:14px; }
}

/* Browser and accessibility previews can be substantially narrower than a phone.
   Keep the basket usable instead of retaining a desktop-sized intrinsic width. */
@media (max-width: 260px) {
  body:has(.basket) .basket { padding:10px 5px 22px; }
  body:has(.basket) .basket > .row { display:block!important; }
  body:has(.basket) .basket * { box-sizing:border-box; min-width:0!important; max-width:100%!important; }
  body:has(.basket) .basket .basket-heading { font-size:22px; overflow-wrap:anywhere; }
  body:has(.basket) .basket-items { padding:0 8px; }
  body:has(.basket) .cart-summary .card-body,
  body:has(.basket) .cart-summary .card > div { padding:10px 8px; }
  body:has(.basket) .cart-summary .btn,
  body:has(.basket) #cart-checkout-btn { width:100%!important; min-width:0!important; }
}
