/* =====================================================
   DYSON BASKET PAGE - PIXEL PERFECT REPLICA
   Extracted from live dyson.com/basket
   ===================================================== */

/* @font-face - DysonFutura from CDN */
@font-face {
  font-family: "DysonFutura";
  src: url("https://www.dyson.com/etc.clientlibs/dyson/clientlibs/clientlib-head/resources/fonts/DysonFutura-Light.woff")
    format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DysonFutura";
  src: url("https://www.dyson.com/etc.clientlibs/dyson/clientlibs/clientlib-head/resources/fonts/DysonFutura-Book.woff")
    format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DysonFutura";
  src: url("https://www.dyson.com/etc.clientlibs/dyson/clientlibs/clientlib-head/resources/fonts/DysonFutura-Medium.woff")
    format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* -------------------------
   CSS VARIABLES
   Exact Dyson values
   ------------------------- */
:root {
  /* Colors */
  --dyson-navy: #000000;
  --dyson-green: #79b928;
  --dyson-black: #000000;
  --dyson-white: #ffffff;
  --dyson-gray-100: #fafafa;
  --dyson-gray-200: #f5f5f5;
  --dyson-gray-300: #e0e0e0;
  --dyson-gray-400: #d2d2d2;
  --dyson-gray-500: #9e9e9e;
  --dyson-gray-600: #757575;
  --dyson-gray-700: #616161;
  --dyson-gray-800: #424242;
  --dyson-gray-900: #333333;
  --dyson-text: #333333;
  --dyson-text-secondary: #666666;
  --dyson-link: #0066cc;
  --dyson-success: #4caf50;
  --dyson-paypal: #ffc439;
  --dyson-affirm: #0d1c7a;

  /* Typography */
  --font-family:
    "DysonFutura", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Layout */
  --max-width: 1296px;
  --sidebar-width: 380px;
}

/* -------------------------
   RESET
   ------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dyson-text);
  background: #fff;
  min-height: 100vh;
}

/* Minibasket Styles */
.minibasket__icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  /* height: 44px; */
  color: #fff;
  position: relative;
  z-index: 10;
}

.icon--minibasket {
  width: 24px;
  height: 24px;
  fill: #fff !important;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* -------------------------
   MAIN LAYOUT
   ------------------------- */
.main {
  padding: 32px 24px;
}

/* Header Overrides for Basket Page */
.utility-menu {
  background-color: #000;
  color: #fff;
}

.search-nav__input {
  background-color: #fff !important;
  color: #333 !important;
  border: 1px solid #d2d2d2 !important;
}

.search-nav__input::placeholder {
  color: #666 !important;
}

.search-nav__overlay {
  top: 49px !important;
}

.search-nav__container {
  /* padding: 8px 0; */
  /* margin: auto 0; */
  height: fit-content;
}

/* .input_wrapper > input:focus-within #search-nav__overlay_new {
  display: block !important;
} */

#search-nav__overlay_disabled {
  display: none !important;
}

#search-nav__overlay_enabled {
  display: block !important;
}

#search-nav-id {
  height: unset !important;
}

.js-header-row {
  background-color: #000;
}

.primary-nav {
  background-color: #000 !important;
}

.primary-nav__list {
  visibility: visible !important;
  background-color: #000 !important;
}



.global-header__drawer:after,
.global-header__drawer:before {
  background-color: #333 !important;
}

.header__logo-svg {
  fill: #000 !important; /* Logo should be black on white */
}

.nav__linkbtn {
  color: #fff !important; /* Links should be white on black */
  visibility: visible !important;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100% !important;
}

.basket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.basket-header__title {
  font-size: 24px;
  font-weight: 400;
  color: var(--dyson-text);
}

.basket-header__count {
  font-weight: 400;
}

.basket-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 48px;
}

/* -------------------------
   BASKET MAIN (LEFT COLUMN)
   ------------------------- */
.basket-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.free-delivery {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background-color: var(--dyson-white);
  border: 1px solid var(--dyson-gray-400);
  border-radius: 4px;
  font-size: 14px;
}

.free-delivery--mobile {
  display: none;
}

/* -------------------------
   BASKET ITEM
   ------------------------- */
.basket-item {
  background-color: var(--dyson-white);
  border: 1px solid var(--dyson-gray-400);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.basket-item__row {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.basket-item__image-wrap {
  position: relative;
  width: 120px;
  flex-shrink: 0;
}

.basket-item__badge {
  display: none;
}

.basket-item__image {
  width: 100%;
  height: auto;
}

.basket-item__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.basket-item__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--dyson-text);
  margin-bottom: 8px;
}

.basket-item__meta {
  font-size: 14px;
  color: var(--dyson-text-secondary);
  margin-bottom: 4px;
}

.basket-item__warranty {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--dyson-text);
  margin-bottom: auto;
  padding-bottom: 16px;
}

.basket-item__warranty-info {
  color: var(--dyson-gray-500);
}

.basket-item__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.basket-item__price {
  font-size: 16px;
  font-weight: 500;
  color: var(--dyson-text);
}

/* Quantity Selector */
.basket-item__quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--dyson-gray-400);
  border-radius: 50px;
  overflow: hidden;
}

.basket-item__qty-btn {
  width: 40px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dyson-text);
  transition: background-color 0.2s;
}

.basket-item__qty-btn:hover {
  background-color: var(--dyson-gray-200);
}

.basket-item__qty-value {
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

/* Accordion */
.basket-item__accordion {
  border-top: 1px solid var(--dyson-gray-300);
}

.basket-item__accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--dyson-text);
  transition: background-color 0.2s;
}

.basket-item__accordion-toggle:hover {
  background-color: var(--dyson-gray-100);
}

.basket-item__accordion-icon {
  transition: transform 0.3s;
}

.basket-item__accordion-toggle[aria-expanded="true"]
  .basket-item__accordion-icon {
  transform: rotate(180deg);
}

.basket-item__accordion-content {
  padding: 0 20px 20px;
}

.basket-item__accordion-content[hidden] {
  display: none;
}

.basket-item__includes {
  columns: 2;
  column-gap: 24px;
}

.basket-item__includes li {
  font-size: 14px;
  color: var(--dyson-text-secondary);
  padding: 4px 0;
  break-inside: avoid;
}

/* -------------------------
   BASKET ASIDE (RIGHT COLUMN)
   ------------------------- */
.basket-aside {
  position: sticky;
  top: 120px;
}

.basket-aside__title {
  font-size: 20px;
  font-weight: 500;
  color: var(--dyson-text);
  margin-bottom: 20px;
}

/* Promo Section */
.promo-section {
  border: 1px solid var(--dyson-gray-400);
  border-radius: 4px;
  margin: 20px 0;
}

.promo-section__toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--dyson-text);
}

.promo-section__toggle:hover {
  background-color: var(--dyson-gray-100);
}

.promo-section__icon {
  transition: transform 0.3s;
}

.promo-section__content {
  padding: 0 16px 16px;
}

.promo-section__form {
  display: flex;
  gap: 8px;
}

.promo-section__input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--dyson-gray-400);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.promo-section__input:focus {
  outline: none;
  border-color: var(--dyson-text);
}

.promo-section__input::placeholder {
  color: var(--dyson-gray-500);
}

.promo-section__apply {
  padding: 12px 24px;
  border: 1px solid var(--dyson-text);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.promo-section__apply:hover {
  background-color: var(--dyson-text);
  color: var(--dyson-white);
}

/* Order Totals */
.order-totals {
  padding: 16px 0;
  border-top: 1px solid var(--dyson-gray-300);
}

.order-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.order-totals__row span:first-child {
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-totals__info {
  color: var(--dyson-gray-500);
}

.order-totals__free {
  color: var(--dyson-link);
  font-weight: 500;
}

.order-totals__row--total {
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--dyson-gray-300);
  font-weight: 500;
}

.order-totals__total {
  font-size: 20px;
  font-weight: 500;
}

/* Affirm Section */
.affirm-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: var(--dyson-text-secondary);
  padding: 16px 0;
}

.affirm-logo {
  margin: 0 4px;
}

.affirm-link {
  color: var(--dyson-link);
  text-decoration: underline;
}

/* Express Buttons */
.express-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.express-btn {
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.express-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.express-btn--paypal {
  background-color: var(--dyson-paypal);
}

.express-btn--apple {
  background-color: var(--dyson-black);
  color: var(--dyson-white);
}

.express-btn__text {
  font-size: 15px;
  letter-spacing: 0.5px;
}

.or-divider {
  text-align: center;
  font-size: 14px;
  color: var(--dyson-text-secondary);
  margin-bottom: 12px;
}

/* Checkout Button */
.checkout-btn {
  width: 100%;
  height: 52px;
  background-color: var(--dyson-green);
  color: var(--dyson-white);
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.checkout-btn:hover {
  background-color: #5d8921;
  transform: translateY(-1px);
}

/* .js-yext-submit{
  display: none;
} */

/* -------------------------
   MOBILE STICKY BAR
   ------------------------- */
.bottom-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dyson-white);
  border-top: 1px solid var(--dyson-gray-300);
  padding: 16px;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.bottom-sticky-bar__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bottom-sticky-bar__label {
  font-size: 16px;
  font-weight: 400;
}

.bottom-sticky-bar__value {
  font-size: 20px;
  font-weight: 500;
}

.bottom-sticky-bar__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.bottom-sticky-bar__btn {
  height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}

.bottom-sticky-bar__btn--paypal {
  background-color: var(--dyson-paypal);
}

.bottom-sticky-bar__btn--apple {
  background-color: var(--dyson-black);
  color: var(--dyson-white);
}

.bottom-sticky-bar__checkout {
  width: 100%;
  height: 52px;
  background-color: var(--dyson-green);
  color: var(--dyson-white);
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- NEW COMPONENTS --- */

/* Accordion Grid */
.basket-item__includes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.include-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dyson-gray-300);
}
.include-item:last-child {
  border-bottom: none;
}
.include-item__image img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.include-item__details h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--dyson-text);
}
.include-item__details p {
  font-size: 13px;
  color: var(--dyson-text-secondary);
  line-height: 1.4;
}

/* Secure Checkout */
.secure-checkout {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  margin: 16px 0;
  border-top: 1px solid var(--dyson-gray-300);
  border-bottom: 1px solid var(--dyson-gray-300);
}
.secure-checkout__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.secure-checkout__text {
  font-weight: 500;
  font-size: 13px;
}
.secure-checkout__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.secure-checkout__cards img {
  height: 20px;
}

#input_wrapper {
  display: flex;
  gap: 5px;
  align-items: center;
  background-color: white;
  padding: 8px 0.625rem;
  border-radius: 0.25rem;
  min-width: 100%;
}

#input_wrapper > input {
  width: 100%;
  border: none;
  outline: none !important;
  font-size: 0.75rem;
  font-weight: 300;
}

#input_wrapper > img {
  width: 18px;
  height: 18px;
}

/* Minimal Footer */
.footer--minimal {
  background-color: #000;
  color: #fff;
  padding: 32px 0;
  margin-top: 48px;
}
.footer__breadcrumb {
  max-width: 1296px;
  display: flex;
  gap: 8px;
  font-size: 12px;
  padding: 0 40px;
  margin: 0 auto 0;
  color: #fff;
}

.footer {
  padding-top: 0;
  padding-bottom: 0;
}

.footer_bread_wrapper {
  background-color: #666;
  padding: 20px 0;
  display: none;
}

.footer__legal-bar {
  max-width: 1296px;
  margin: 0 auto;
  padding: 40px 40px 40px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.footer__legal-links {
  display: flex;
  gap: 16px;
  color: #ccc;
}
.footer__legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer__contact {
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer__copyright-bar {
  max-width: 1296px;
  margin: 16px auto 0;
  padding: 0 40px;
  text-align: right;
  font-size: 12px;
  color: #666;
}

/* -------------------------
   RESPONSIVE - TABLET
   ------------------------- */
@media (max-width: 1024px) {
  .header {
    display: block;
  }

  .header-mobile {
    display: flex;
  }

  .basket-main {
    width: 100%;
  }
  .basket-layout {
    /* grid-template-columns: 1fr;
    gap: 24px; */
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .basket-aside {
    width: 100%;
  }

  .free-delivery {
    display: none;
  }

  .checkout-btn {
    display: none;
  }

  .free-delivery--mobile {
    display: flex;
  }

  .bottom-sticky-bar {
    display: block;
  }

  body {
    padding-bottom: 135px;
  }
}

/* -------------------------
   RESPONSIVE - MOBILE
   ------------------------- */
@media (max-width: 768px) {
  .main {
    padding: 20px 16px;
  }

  .basket-header__title {
    font-size: 20px;
  }

  .basket-item__row {
    gap: 16px;
  }

  .basket-item__image-wrap {
    margin: 0 auto;
  }

  .basket-item__includes {
    columns: 1;
  }

  .basket-item__price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .basket-item__quantity {
    align-self: flex-end;
  }

  .basket-item__includes-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet / Intermediate Footer (Left Aligned, Contact Top) */
@media (max-width: 1024px) {
  .footer__legal-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 0;
  }

  .footer__contact {
    order: -1;
    width: 100%;
    margin-bottom: 16px;
    justify-content: flex-start;
    margin-top: 0;
  }

  .footer__legal-links {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .footer__copyright-bar {
    text-align: left;
    padding: 0 24px;
  }
}

/* Mobile Footer (Centered, Contact Top) */
@media (max-width: 768px) {
  .footer__legal-bar {
    align-items: center;
    text-align: center;
  }

  .footer__contact {
    justify-content: center;
  }

  .footer__copyright-bar {
    text-align: center;
  }
}

/* --- STOCK & PRICE UPDATES --- */

.basket-item__stock {
  color: #cc0000;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 4px;
}

.basket-item__price-stack {
  display: flex;
  flex-direction: column;
}

.basket-item__price-current {
  font-size: 20px;
  font-weight: 500;
  color: #0066cc;
}

.basket-item__price-was {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.basket-item__price-save {
  font-size: 14px;
  color: #0066cc;
  font-weight: 500;
}

/* Savings Row */
.order-totals__savings-label,
.order-totals__savings-value {
  color: #0066cc;
  font-weight: 500;
  font-size: 14px;
}

@media (max-width: 480px) {
  .basket-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .bottom-sticky-bar__buttons {
    grid-template-columns: 1fr;
  }
}

/* -------------------------
   FOOTER (OLD - REMOVED)
   ------------------------- */
/* Old footer styles removed */

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__heading {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--dyson-white);
}

.footer__text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  line-height: 1.5;
}

.footer__newsletter {
  display: flex;
  gap: 8px;
}

.footer__newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  color: var(--dyson-white);
  font-size: 13px;
}

.footer__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer__newsletter-btn {
  padding: 10px 20px;
  background: var(--dyson-green);
  color: var(--dyson-white);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.footer__newsletter-btn:hover {
  background: #6aa523;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
}

.footer__region {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.footer__legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: var(--dyson-white);
}

.footer__copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: auto;
}

.footer__payment {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer__payment img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* -------------------------
   SECURE CHECKOUT
   ------------------------- */
.secure-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  margin-top: 12px;
  border-top: 1px solid var(--dyson-gray-300);
}

.secure-checkout__icon {
  color: var(--dyson-gray-600);
}

.secure-checkout__text {
  font-size: 12px;
  color: var(--dyson-text-secondary);
}

.secure-checkout__cards {
  display: flex;
  gap: 6px;
  align-items: center;
}

.secure-checkout__cards img {
  height: 20px;
  width: auto;
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__copyright {
    margin-left: 0;
  }
}
