/* ─── Additional Book-specific styles ─── */

/* Book card image aspect ratio fix for WooCommerce */
.book-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Price display */
.book-card-price .amount {
  font-weight: 800;
}
.book-card-price .woocommerce-Price-currencySymbol {
  font-size: 14px;
  margin-right: 2px;
}

/* Single product price section */
.book-price-section .price .amount {
  font-size: 28px;
  font-weight: 900;
}
.book-price-section .price .woocommerce-Price-currencySymbol {
  font-size: 18px;
}

/* Add to cart form on single product */
.add-to-cart-form .single-add-to-cart .amount {
  font-weight: 800;
}
.add-to-cart-form .single-add-to-cart .woocommerce-Price-currencySymbol {
  font-size: 14px;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}
.woocommerce-message {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.woocommerce-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.woocommerce-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
  font-weight: 800;
  text-decoration: underline;
}

/* WooCommerce form fields */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: var(--transition);
}
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Cart table */
.woocommerce table.shop_table {
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.woocommerce table.shop_table th {
  background: var(--bg-section);
  font-weight: 700;
  padding: 12px;
  font-size: 14px;
}
.woocommerce table.shop_table td {
  padding: 12px;
  border-top: 1px solid var(--border-light);
}
.woocommerce table.shop_table .button {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.woocommerce table.shop_table .button:hover {
  background: var(--primary-dark);
}

/* Checkout */
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.woocommerce-checkout h3 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* My Account */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
  background: var(--accent-light);
  color: var(--primary);
}

/* Filter toggle on mobile */
@media (max-width: 768px) {
  .filter-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
  }
  .filter-sidebar.open {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.5);
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .filter-sidebar.open .filter-widget {
    max-width: 320px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    margin: 0;
  }
  .filter-sidebar.open .filter-close {
    display: block !important;
  }
}

/* Cart count badge */
.cart-count {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}

/* ══════════════════════════════════════
   CART DRAWER
   ══════════════════════════════════════ */
.cart-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99998;
}
.cart-drawer {
  position: fixed;
  top: 0;
  left: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100%;
  background: var(--bg-card);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transition: left 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.cart-drawer.open { left: 0; }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
}
.cart-drawer-header h3 { font-size: 18px; margin: 0; }
.cart-drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
}
.cart-drawer-close:hover { background: var(--bg-section); color: var(--text); }
.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.drawer-item:last-child { border-bottom: none; }
.drawer-item-img { width: 60px; height: 80px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--bg-section); }
.drawer-item-img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drawer-item-name:hover { color: var(--primary); }
.drawer-item-qty { display: block; font-size: 12px; color: var(--text-light); }
.drawer-item-price { display: block; font-size: 14px; font-weight: 800; color: var(--primary); margin-top: 2px; }
.drawer-item-remove {
  color: var(--text-light);
  font-size: 20px;
  padding: 4px;
  transition: var(--transition);
}
.drawer-item-remove:hover { color: var(--danger); }
.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
}
.cart-drawer-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}
.drawer-total { color: var(--primary); }
.cart-drawer-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  margin-bottom: 8px;
}
.cart-drawer-checkout:hover { background: var(--primary-dark); color: #fff; }
.cart-drawer-cart-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px;
}
.cart-drawer-cart-link:hover { color: var(--primary); }

/* ══════════════════════════════════════
   WISHLIST
   ══════════════════════════════════════ */
.header-wishlist-btn {
  position: relative;
}
.wishlist-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.header-wishlist-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99990;
}
.header-wishlist-overlay.open { display: block; }
.header-wishlist-dropdown {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  max-width: 90vw;
  max-height: 80vh;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  z-index: 99991;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.header-wishlist-dropdown.open { display: block; }
.header-wishlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.header-wishlist-header h4 { margin: 0; font-size: 16px; }
.header-wishlist-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.header-wishlist-close:hover { color: var(--danger); }
.header-wishlist-body {
  padding: 16px;
  max-height: 60vh;
  overflow-y: auto;
}
.wishlist-empty {
  text-align: center;
  padding: 30px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.wishlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.wishlist-item:last-child { border-bottom: none; }
.wishlist-item-img { width: 50px; height: 65px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--bg-section); }
.wishlist-item-img img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-item-info { flex: 1; min-width: 0; }
.wishlist-item-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wishlist-item-name:hover { color: var(--primary); }
.wishlist-item-price { display: block; font-size: 14px; font-weight: 800; color: var(--primary); margin-top: 2px; }
.wishlist-item-remove {
  color: var(--text-light);
  font-size: 18px;
  padding: 4px 8px;
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}
.wishlist-item-remove:hover { color: var(--danger); }

/* ══════════════════════════════════════
   CHECKOUT STYLING
   ══════════════════════════════════════ */
.co-stack { display: flex; flex-direction: column; gap: 16px; max-width: 600px; margin: 0 auto; padding: 24px 16px; }
.co-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.co-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px; font-weight: 700; font-size: 15px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-section);
}
.co-card-head svg { flex-shrink: 0; }
.co-ship-cost { margin-right: auto; font-size: 14px; color: var(--primary); }
.co-card-body { padding: 20px; }
.co-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-field { margin-bottom: 14px; }
.co-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.co-field label span { color: var(--danger); }
.co-field input, .co-field textarea, .co-field select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; background: #fff;
  transition: var(--transition); font-family: var(--font);
}
.co-field input:focus, .co-field textarea:focus, .co-field select:focus {
  outline: none; border-color: var(--primary);
}
.co-commune-wrap { position: relative; }
.co-commune-dropdown {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  max-height: 200px; overflow-y: auto; z-index: 100; box-shadow: var(--shadow-md);
}
.co-cm-item {
  padding: 10px 14px; cursor: pointer; font-size: 14px;
  border-bottom: 1px solid var(--border-light); transition: var(--transition);
}
.co-cm-item:last-child { border-bottom: none; }
.co-cm-item:hover { background: var(--accent-light); color: var(--primary); }
.co-delivery-toggle { display: flex; gap: 12px; }
.co-radio-mini {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: var(--transition);
}
.co-radio-mini:has(input:checked) { border-color: var(--primary); background: var(--accent-light); }
.co-radio-mini input { display: none; }
.co-radio-mini-label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.co-rate-label { font-size: 14px; color: var(--primary); }
.co-coupon { margin-bottom: 16px; }
.co-coupon-row { display: flex; gap: 8px; }
.co-coupon-row input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; }
.co-coupon-row input:focus { outline: none; border-color: var(--primary); }
.co-coupon-btn {
  padding: 10px 20px; background: var(--primary); color: #fff; border: none;
  border-radius: 8px; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.co-coupon-btn:hover { background: var(--primary-dark); }
.co-coupon-msg { font-size: 13px; margin-top: 6px; font-weight: 600; }

/* Checkout Items */
.co-items { display: flex; flex-direction: column; gap: 12px; }
.co-item { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.co-item:last-child { border-bottom: none; padding-bottom: 0; }
.co-item-thumb { width: 55px; height: 70px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--bg-section); }
.co-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-item-body { flex: 1; min-width: 0; }
.co-item-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.co-item-name a { color: var(--text); }
.co-item-name a:hover { color: var(--primary); }
.co-item-meta { display: flex; justify-content: space-between; align-items: center; }
.co-item-qty { font-size: 13px; color: var(--text-light); }
.co-item-price { font-size: 15px; font-weight: 800; color: var(--primary); }

/* Checkout Totals */
.co-totals { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.co-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.co-total-label { color: var(--text-muted); }
.co-total-value { font-weight: 700; }
.co-total-sub .co-total-value { color: var(--text); }
.co-total-discount .co-total-value { color: var(--success); }
.co-total-ship .co-total-value { color: var(--primary); }
.co-total-final { padding-top: 12px; margin-top: 8px; border-top: 2px solid var(--primary); font-size: 18px; }
.co-total-final .co-total-label { color: var(--text); font-weight: 800; }
.co-total-final .co-total-value { color: var(--primary); font-size: 20px; }

/* Checkout Payment */
.co-pay { margin-bottom: 0; }
.co-radio {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card);
}
.co-radio-content { display: flex; flex-direction: column; gap: 2px; }
.co-radio-title { font-weight: 700; font-size: 15px; }
.co-radio-sub { font-size: 13px; color: var(--text-muted); }

/* Checkout Submit */
.co-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-lg); font-size: 17px;
  font-weight: 800; cursor: pointer; transition: var(--transition);
  max-width: 600px; margin: 0 auto;
}
.co-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Mobile Sticky */
.co-sticky { display: none; }
@media (max-width: 768px) {
  .co-sticky {
    display: block;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-card); z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 12px 16px;
  }
  .co-sticky-inner { display: flex; align-items: center; gap: 12px; }
  .co-sticky-info { flex: 1; }
  .co-sticky-label { display: block; font-size: 12px; color: var(--text-muted); }
  .co-sticky-total { display: block; font-size: 18px; font-weight: 900; color: var(--primary); }
  .co-sticky-btn {
    padding: 12px 24px; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius); font-size: 15px;
    font-weight: 800; cursor: pointer; transition: var(--transition);
  }
  .co-sticky-btn:hover { background: var(--primary-dark); }
  .co-submit { display: none; }
  .co-field-row { grid-template-columns: 1fr; }
  .co-stack { padding: 16px 12px; }
}

/* ══════════════════════════════════════
   THANK YOU PAGE
   ══════════════════════════════════════ */
.ty-wrap { max-width: 700px; margin: 40px auto; padding: 0 20px; }
.ty-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 40px; text-align: center; box-shadow: var(--shadow-sm); }
.ty-icon { margin-bottom: 16px; }
.ty-title { font-size: 28px; margin-bottom: 8px; }
.ty-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 8px; }
.ty-msg { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.ty-table-wrap { overflow-x: auto; text-align: right; margin-bottom: 24px; }
.ty-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ty-table th { background: var(--bg-section); padding: 10px 12px; font-weight: 700; border-bottom: 1px solid var(--border); }
.ty-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.ty-thumb { width: 40px; height: 50px; display: inline-block; vertical-align: middle; margin-left: 8px; border-radius: 4px; overflow: hidden; }
.ty-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ty-name { vertical-align: middle; font-weight: 600; }
.ty-totals { text-align: right; margin-bottom: 24px; }
.ty-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.ty-total-label { color: var(--text-muted); }
.ty-total-value { font-weight: 700; }
.ty-total-final { padding-top: 8px; border-top: 2px solid var(--primary); font-size: 18px; }
.ty-total-final .ty-total-value { color: var(--primary); }
.ty-details { text-align: right; margin-bottom: 16px; }
.ty-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.ty-label { color: var(--text-muted); }
.ty-value { font-weight: 700; }
.ty-status-pending { color: var(--warning); }
.ty-footer-msg { font-size: 14px; color: var(--text-muted); margin-top: 16px; }
.ty-related { margin-top: 40px; }
.ty-related-heading { font-size: 20px; margin-bottom: 20px; }
@media (max-width: 768px) {
  .ty-card { padding: 24px 16px; }
  .ty-table td:before { content: attr(data-label) ': '; font-weight: 600; display: inline-block; width: 80px; }
  .ty-table thead { display: none; }
  .ty-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
  .ty-table td { display: block; padding: 4px 0; border: none; }
  .ty-thumb { width: 36px; height: 44px; }
}

/* ══════════════════════════════════════
   CART PAGE
   ══════════════════════════════════════ */
.cart-page { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty svg { margin-bottom: 16px; }
.cart-empty h2 { font-size: 24px; margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }
.cart-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--primary); color: #fff;
  border-radius: var(--radius); font-weight: 700; transition: var(--transition);
}
.cart-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.cart-sidebar { order: 1; }
.cart-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); position: sticky; top: 100px; }
.cart-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px; font-weight: 700; font-size: 15px;
  border-bottom: 1px solid var(--border-light); background: var(--bg-section);
}
.cart-coupon { padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.cart-coupon-row { display: flex; gap: 8px; }
.cart-coupon-row input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; }
.cart-coupon-row input:focus { outline: none; border-color: var(--primary); }
.cart-coupon-row button {
  padding: 8px 16px; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
  transition: var(--transition);
}
.cart-coupon-row button:hover { background: var(--primary-dark); }
.cart-coupon-msg { font-size: 12px; margin-top: 4px; font-weight: 600; }
.cart-totals { padding: 16px 20px; }
.cart-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.ct-label { color: var(--text-muted); }
.ct-value { font-weight: 700; }
.ct-ship { color: var(--primary); font-size: 13px; }
.cart-divider { height: 1px; background: var(--border-light); margin: 8px 0; }
.cart-total-final { padding-top: 8px; margin-top: 4px; font-size: 18px; }
.cart-total-final .ct-label { color: var(--text); font-weight: 800; }
.cart-total-final .ct-value { color: var(--primary); }
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 20px 12px; padding: 14px; border-radius: var(--radius);
  font-size: 15px;
}
.cart-continue {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 20px 20px; font-size: 13px; color: var(--text-muted); padding: 6px;
}
.cart-continue:hover { color: var(--primary); }
.cart-info { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-info-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cart-info-item strong { display: block; font-size: 14px; color: var(--text); }
.cart-info-item span { display: block; color: var(--text-muted); }
.cart-items { order: 0; }
.cart-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.cart-title { font-size: 24px; margin: 0; }
.cart-count-badge { font-size: 14px; color: var(--text-muted); }
.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--bg-section); padding: 12px 14px; font-size: 14px; font-weight: 700; text-align: right; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 14px; vertical-align: middle; border-bottom: 1px solid var(--border-light); }
.cart-table-row:hover td { background: #faf7f2; }
.ctd-thumb { width: 80px; }
.ctd-thumb img { width: 60px; height: 80px; object-fit: cover; border-radius: 6px; }
.ctd-name { font-weight: 700; font-size: 15px; color: var(--text); display: block; margin-bottom: 4px; }
.ctd-name:hover { color: var(--primary); }
.ctd-attrs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.ctd-attr { font-size: 12px; color: var(--text-muted); }
.ctd-stock { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.ctd-stock.in-stock { background: #dcfce7; color: #166534; }
.ctd-stock.out-of-stock { background: #fee2e2; color: #991b1b; }
.ctd-stock.on-backorder { background: #fef3c7; color: #92400e; }
.ctd-qty-inner { display: flex; align-items: center; gap: 4px; }
.ci-qty-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-section); border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; font-size: 16px; font-weight: 700; transition: var(--transition);
  color: var(--text);
}
.ci-qty-btn:hover { background: var(--border); }
.ci-qty-input {
  width: 48px; height: 32px; text-align: center; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; font-weight: 700;
}
.ci-qty-input:focus { outline: none; border-color: var(--primary); }
.ctd-subtotal-val { font-weight: 800; font-size: 16px; color: var(--primary); }
.ci-remove { color: var(--text-light); transition: var(--transition); display: flex; }
.ci-remove:hover { color: var(--danger); }
@media (max-width: 768px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-sidebar { order: 0; }
  .cart-card { position: static; }
  .cart-table thead { display: none; }
  .cart-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
  .cart-table td { display: flex; align-items: center; gap: 8px; padding: 6px 0; border: none; }
  .cart-table td:before { content: attr(data-label) ': '; font-weight: 600; font-size: 13px; color: var(--text-muted); min-width: 60px; }
  .ctd-thumb { width: 50px; }
  .ctd-thumb img { width: 50px; height: 65px; }
  .ctd-thumb:before { display: none; }
}

/* ══════════════════════════════════════
   HEADER WISHLIST / CART BUTTONS
   ══════════════════════════════════════ */
.header-cart-btn { position: relative; }
.header-wishlist-btn svg, .header-cart-btn svg { flex-shrink: 0; }
