/* ===== GLOBAL FONT OVERRIDE ===== */
body,
input,
textarea,
select,
button {
  font-family: 'Roboto', sans-serif !important;
}

/* ===== GLOBAL UTILITY ===== */
.d-none {
  display: none !important;
}

/* ===== HERO WRAPPER ===== */
.c-hero-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.c-hero-wrapper .c-hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== HEADER ABSOLUTE OVERLAY (Home only) ===== */
.c-header {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent !important;
}

.c-header.is-fixed {
  background-color: rgba(0, 0, 0, 0.88) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
}

/* Solid header for subpages */
.c-header.subpage-header {
  background-color: rgba(0, 0, 0, 0.88) !important;
  position: sticky !important;
}

/* ===== NEW HEADER LAYOUT ===== */
.c-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 0;
}

.c-header__logo-new img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.c-header__nav-new {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-header__nav-new a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.c-header__nav-new a:hover,
.c-header__nav-new a.active {
  color: #FDB827;
}

.c-header__actions-new {
  display: flex;
  align-items: center;
  gap: 16px;
}

.c-header__icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 4px;
  font-size: 18px;
  transition: color 0.2s;
}

.c-header__icon-btn:hover {
  color: #FDB827;
}

.c-header__order-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.c-header__order-btn:hover {
  background: #FDB827;
  border-color: #FDB827;
  color: #111;
}

.c-header__order-btn svg {
  width: 16px;
  height: 16px;
}

/* Hamburger Menu Button */
.c-header__hamburger-new {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.c-header__hamburger-new span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 991px) {
  .c-header__inner {
    padding: 12px 16px;
  }
  .c-header__logo-new img {
    height: 40px;
  }
  .c-header__hamburger-new {
    display: block;
  }

  .c-header__nav-new {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    transition: right 0.3s ease-in-out;
    z-index: 100;
    margin: 0;
  }

  .c-header__nav-new.is-active {
    right: 0;
  }

  .c-header__nav-new a {
    font-size: 16px;
    padding: 15px 0;
    display: block;
  }

  .c-header__hamburger-new.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .c-header__hamburger-new.is-active span:nth-child(2) {
    opacity: 0;
  }
  .c-header__hamburger-new.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .c-header__actions-new {
    gap: 8px;
    margin-right: 15px;
  }
  .c-header__order-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  .c-header__icon-btn {
    padding: 2px;
    font-size: 16px;
  }
}

/* ===== PRODUCT CARD ===== */
.c-products__item {
  background: #fff;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.c-products__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.c-products__link {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 0 !important;
  gap: 0 !important;
  flex: 1;
  min-height: 0;
}

.c-products__thumb {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.c-products__thumb img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 auto;
  display: block;
  object-fit: contain !important;
  padding: 12px;
}

.c-products__content {
  padding: 12px 14px 6px !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 88px;
}

.c-products__name {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #222 !important;
  margin-bottom: 6px !important;
  line-height: 1.4 !important;
  min-height: 40px;
  overflow: hidden;
}

.c-products__price {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #FDB827 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap;
}

.c-products__price--old {
  font-size: 13px !important;
  color: #999 !important;
  text-decoration: line-through !important;
  font-weight: 400 !important;
  margin-left: 0 !important;
}

.c-products__sizes {
  display: none !important;
}

.c-products__btn-group {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  margin-top: auto;
  min-height: 56px;
  align-items: center;
}

.c-products__btn-order {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  min-width: 0;
}

.c-products__btn-order:hover {
  background: #333;
}

.c-products__btn-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: #111;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
  min-width: 0;
}

.c-products__btn-cart:hover {
  border-color: #FDB827;
  background: #fffbf0;
}

@media screen and (max-width: 768px) {
  .c-products__btn-group {
    flex-direction: column;
    padding: 10px;
  }
  .c-products__btn-order,
  .c-products__btn-cart {
    width: 100%;
    padding: 8px;
  }
  .c-products__price {
    font-size: 15px !important;
  }
  .c-products__price--old {
    font-size: 12px !important;
  }
}

/* Product grid in listing pages */
.product-grid > .c-products__item {
  flex: 0 0 calc(25% - 15px) !important;
}

@media screen and (max-width: 991px) {
  .product-grid > .c-products__item {
    flex: 0 0 calc(33.333% - 14px) !important;
  }
}

@media screen and (max-width: 768px) {
  .product-grid > .c-products__item {
    flex: 0 0 calc(50% - 10px) !important;
  }
}


/* ===== MAIN / PAGE TOP ===== */
.p-top {
  padding-top: 0 !important;
}

.p-top > section:first-of-type {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Swiper product alignment */
.c-products .swiper-wrapper,
.c-related-products .swiper-wrapper {
  align-items: stretch !important;
}

.c-products .swiper-slide,
.c-related-products .swiper-slide {
  display: flex !important;
  align-items: stretch !important;
  height: auto !important;
}

.c-products .swiper-slide > .c-products__item,
.c-related-products .swiper-slide > .c-products__item {
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* ===== SEARCH MODAL ===== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.search-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.search-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.search-modal__content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-modal.is-active .search-modal__content {
  transform: translateY(0);
}

.search-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal__close:hover {
  background: #f1f1f1;
  color: #e53e3e;
}

.search-modal__form {
  position: relative;
  margin-top: 10px;
}

.search-modal__input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 5px 15px;
  transition: border-color 0.2s;
}

.search-modal__input-wrap:focus-within {
  border-color: #000;
}

.search-modal__input-icon {
  color: #999;
  flex-shrink: 0;
  margin-right: 10px;
}

.search-modal__input {
  flex-grow: 1;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 16px;
  background: transparent;
}

.search-modal__submit {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.search-modal__submit:hover {
  background: #333;
}

/* ===== PRODUCT IMAGE FIT / GALLERY ===== */
.product-details__img .js-product-details {
  aspect-ratio: 1 / 1;
  height: auto !important;
  max-height: 560px;
  background: #fff;
}

.product-details__img .js-product-details .swiper-wrapper,
.product-details__img .js-product-details .swiper-slide {
  height: 100% !important;
}

.product-details__img .js-product-details .swiper-slide {
  aspect-ratio: 1 / 1;
  padding: 16px !important;
  background: #fff;
}

.product-details__img .js-product-details .swiper-slide img,
.product-details__img .js-product-details-thumb .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}

.product-details__img .js-product-details-thumb .swiper-slide {
  width: 88px !important;
  height: 88px !important;
  aspect-ratio: 1 / 1;
  background: #fff;
}

/* ===== PRODUCT QUICK SPECS ===== */
.product-quick-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.product-quick-specs__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-quick-specs__icon {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.product-quick-specs__text {
  display: flex;
  flex-direction: column;
}

.product-quick-specs__label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-quick-specs__val {
  font-size: 13px;
  font-weight: bold;
  color: #0f172a;
}

/* ===== PRODUCT SPECS TABLE ===== */
.product-specs-wrapper {
  margin-top: 40px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.product-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.product-specs-table th,
.product-specs-table td {
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.product-specs-table tr:last-child th,
.product-specs-table tr:last-child td {
  border-bottom: none;
}

.product-specs-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  width: 40%;
  border-right: 1px solid #e2e8f0;
}

.product-specs-table td {
  color: #0f172a;
  font-weight: 500;
}

.product-specs-table i {
  color: #64748b;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* ===== PRODUCT DETAIL PRICE ROW ===== */
.product__price {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.product__price--old {
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #999999 !important;
  text-decoration: line-through !important;
  margin-left: 8px !important;
}

/* ===== RESPONSIVE: PRODUCT DETAILS & REVIEWS ===== */
@media screen and (max-width: 768px) {
  .product-details__img .js-product-details {
    max-height: none;
  }

  .product-details__img .js-product-details-thumb .swiper-slide {
    width: 72px !important;
    height: 72px !important;
  }

  .product-quick-specs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-specs-table th {
    width: 50%;
  }

  .rv-box {
    flex-direction: column;
  }

  .rv-left {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
    text-align: center;
  }

  .rv-right {
    padding: 20px;
  }

  /* Product details top layout */
  .l-sidebar {
    flex-direction: column;
  }

  .l-sidebar__left {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .l-sidebar__right {
    width: 100%;
  }

  /* Subpage header */
  .c-header__inner {
    padding: 10px;
  }
}

@media screen and (max-width: 480px) {
  .product-specs-table th,
  .product-specs-table td {
    padding: 10px;
    font-size: 13px;
  }

  .rv-score {
    font-size: 48px;
  }

  .product-nums__group {
    width: 100%;
    justify-content: space-between;
  }

  .product-nums__btns {
    flex-direction: column;
  }

  .product__addtocart,
  .product__buy {
    width: 100%;
  }
}

/* ===== SIDEBAR FILTER STYLING ===== */
.product-listing__sidebar .sidebar-filter-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid #eaeaea;
}

.product-listing__sidebar .filter-group {
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 18px;
}

.product-listing__sidebar .filter-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.product-listing__sidebar .filter-group__heading {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
  text-transform: none;
}

.product-listing__sidebar .filter-group__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-listing__sidebar .top-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  width: 100%;
}

.product-listing__sidebar .top-filter-option:hover {
  color: #FDB827;
}

.product-listing__sidebar .filter-checkbox {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #FDB827;
}

.product-listing__sidebar .option-text {
  font-size: 14px;
  line-height: 1.4;
}

.product-listing__sidebar .filter-reset-wrap {
  margin-top: 10px;
}

.product-listing__sidebar .reset-btn {
  width: 100%;
  padding: 10px;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.product-listing__sidebar .reset-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ===== LISTING CONTROLS ===== */
.listing-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eaeaea;
}

.listing-controls__sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.listing-controls__sort-label {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

.xe-dien-sort-select {
  padding: 8px 36px 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%23666666' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.xe-dien-sort-select:focus,
.xe-dien-sort-select:hover {
  border-color: #FDB827;
  box-shadow: 0 0 0 3px rgba(253, 184, 39, 0.1);
}

/* Mobile filter button hidden on desktop */
.mobile-filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-filter-toggle-btn:hover {
  background: #333;
}

.mobile-filter-toggle-btn svg {
  width: 14px;
  height: 14px;
}

@media screen and (max-width: 1024px) {
  .listing-controls {
    justify-content: space-between;
  }

  .mobile-filter-toggle-btn {
    display: flex;
  }
}

/* ===== PREMIUM CART PAGE STYLING ===== */
section.cart {
  padding: 50px 0;
  background: #fdfdfd;
}

.cart__title {
  font-size: 26px;
  font-weight: 800;
  color: #111;
  margin-bottom: 30px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr 150px;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  margin-bottom: 16px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.cart-item:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* Remove animation when cart item is being deleted */
.cart-item--removing {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s, transform 0.3s;
}

.cart-item__media {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0f0f0;
}

.cart-item__image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.cart-item__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item__name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}

.cart-item__meta {
  font-size: 13px;
  color: #888;
}

.cart-item__attribute {
  font-size: 13px;
  color: #555;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

/* Quantity controls in cart */
.cart-item__quantity-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  height: 32px;
  width: fit-content;
  margin-top: 6px;
}

.cart-item__qty-minus,
.cart-item__qty-plus {
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-item__qty-minus:hover,
.cart-item__qty-plus:hover {
  background: #e5e7eb;
}

.cart-item__qty-input {
  width: 40px;
  height: 32px;
  border: none;
  border-left: 1px solid #d1d5db;
  border-right: 1px solid #d1d5db;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cart-item__price {
  font-size: 18px;
  font-weight: 800;
  color: #d8000d;
}

.cart-item__remove {
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-item__remove:hover {
  color: #d8000d;
}

/* Cart empty state */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty__text {
  font-size: 16px;
  color: #888;
  margin-bottom: 24px;
}

/* Coupon */
.cart-coupon {
  margin-top: 24px;
}

.cart-coupon__form {
  display: flex;
  gap: 12px;
  max-width: 400px;
}

.cart-coupon__input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.cart-coupon__input:focus {
  border-color: #FDB827;
}

.cart-coupon__btn {
  padding: 10px 24px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-coupon__btn:hover {
  background: #333;
}

/* ===== ORDER SUMMARY (cart & checkout) ===== */
.order-summary {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.order-summary__title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f1f1;
}

.order-summary__lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.order-summary__line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
}

.order-summary__value {
  font-weight: 600;
  color: #111;
}

.order-summary__line--total {
  border-top: 1px solid #f1f1f1;
  padding-top: 12px;
  margin-top: 6px;
}

.order-summary__line--total .order-summary__label {
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

.order-summary__line--total .order-summary__value {
  font-size: 20px;
  font-weight: 800;
  color: #d8000d;
}

.order-summary__checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #d8000d;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 12px;
  text-decoration: none;
}

.order-summary__checkout-btn:hover {
  background: #a8000a;
  color: #fff;
}

.order-summary__continue-btn {
  display: block;
  text-align: center;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.order-summary__continue-btn:hover {
  color: #FDB827;
}

/* ===== PREMIUM CHECKOUT PAGE ===== */
.checkout-page {
  padding: 50px 0;
  background: #fdfdfd;
}

.checkout-billing-section {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.checkout-billing-section .title {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 12px;
}

.half-input-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

/* Input styling */
.checkout-page input[type="text"],
.checkout-page input[type="email"],
.checkout-page input[type="tel"],
.checkout-page select,
.checkout-page textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.checkout-page input:focus,
.checkout-page select:focus,
.checkout-page textarea:focus {
  border-color: #FDB827;
  box-shadow: 0 0 0 3px rgba(253, 184, 39, 0.1);
}

.checkout-page label {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  display: block;
}

/* Address Cards */
.address-card {
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.address-card:hover {
  border-color: #FDB827;
}

.address-card.selected {
  border-color: #FDB827;
  background-color: #fffdf5;
}

.address-card.border-dashed {
  border-style: dashed;
}

/* Summary checkout sidebar card */
.right-card-sidebar-checkout {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.title-checkout {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
}

.top-wrapper {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.single-shop-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f9f9f9;
  font-size: 14px;
  color: #555;
}

.single-shop-list.border-top {
  border-top: 1px solid #f1f1f1;
  padding-top: 16px;
  margin-top: 12px;
}

.single-shop-list .left-area {
  display: flex;
  align-items: center;
  flex: 1;
}

.single-shop-list .thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.single-shop-list .thumbnail img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.single-shop-list .price {
  font-weight: 700;
  color: #111;
}

.single-shop-list .btn-remove-cart-item {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.single-shop-list .btn-remove-cart-item:hover {
  color: #d8000d;
}

/* Payment choices */
.checkout-payment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.checkout-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid #eee;
  border-radius: 6px;
  cursor: pointer;
  background: #fafafa;
}

.checkout-choice__input {
  cursor: pointer;
  accent-color: #FDB827;
}

.checkout-choice__label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  margin: 0 !important;
}

.checkout-terms {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.checkout-terms__input {
  accent-color: #FDB827;
}

.checkout-terms__label {
  font-size: 13px;
  color: #666;
  margin: 0 !important;
}

/* ===== RESPONSIVE: CART & CHECKOUT ===== */
@media screen and (max-width: 768px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 16px;
  }

  .cart-item__media {
    width: 80px;
    height: 80px;
  }

  .cart-item__actions {
    grid-column: 1 / span 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f1f1;
    padding-top: 12px;
    margin-top: 6px;
  }

  .checkout-billing-section {
    padding: 20px;
  }

  .half-input-wrapper {
    grid-template-columns: 1fr;
  }
}
/* Fix missing padding for all containers on mobile/tablet */
@media screen and (max-width: 991px) {
  .l-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Prevent double padding when l-pd-0-54px is nested inside l-container */
  .l-container .l-pd-0-54px {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
