/* ==========================================================================
   GLOBAL STYLES
   These apply across the entire site (variables, resets, basic tags, buttons,
   pagination, footer, etc.)
   ========================================================================== */

:root {
  --main-green: #8DA242;
  --hover-green: #6B7F35;
  --light-gray: #f5f5f5;
  --border-gray: #D3D3D3;
  --corner-radius: 2px;
  --transition-speed: 0.3s;
  --error-red: #d93025;
  --error-glow: rgba(217, 48, 37, .25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: #333;
}

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

/* Global button */
.button {
  display: inline-block;
  background: var(--main-green);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--corner-radius);
  font-size: 0.9rem;
  transition: background var(--transition-speed);
  text-align: center;
}
.button:hover {
  background: var(--hover-green);
}

/* Pagination (global fallback) */
.pagination {
  text-align: right;
  margin: 40px 0;
}
.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
  color: #333;
}
.pagination a.active,
.pagination a:hover {
  background: var(--main-green);
  color: #fff;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-gray);
  background: var(--light-gray);
  padding: 20px 0;
  margin-top: 40px;
}
.footer-links.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.footer-links .account-links {
  display: flex;
  align-items: center;
}
.footer-links a {
  font-size: 0.9rem;
  color: #555;
}
.bottom-bar.wrapper {
  text-align: center;
}
.bottom-bar.wrapper p,
.bottom-bar.wrapper img {
  display: inline-block;
  vertical-align: middle;
  margin: 0 10px;
}
.bottom-bar.wrapper img {
  height: 24px;
}

/* ==========================================================================
   HEADER & BREADCRUMB
   ========================================================================== */
.brand-nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-gray);
  z-index: 1000;
}

/* Lock the header height to 60px (independent of logo size) */
.brand-nav .wrapper {
  height: 88px;              /* fixed bar height */
  padding: 0 0;              /* don’t let padding change the bar height */
  display: flex;
  align-items: center;       /* vertically center children */
  position: relative;
}

/* Make the logo smaller, but do NOT affect the header height */
.brand-nav .logo img {
  height: 44px;              /* half the old size */
  width: auto;
  display: block;
}

/* Keep the search box perfectly centered in the bar */
.search-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.search-box form {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.search-box input[type="search"] {
  flex: 0 0 auto;
  width: 400px;
  padding: 6px 10px;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius) 0 0 var(--corner-radius);
  outline: none;
}
.search-box button.button {
  padding: 6px 10px;
  border-radius: 0 var(--corner-radius) var(--corner-radius) 0;
}

/* Right-side links remain vertically centered */
.header-links {
  margin-left: auto;
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  align-items: center;
}
.account-links { white-space: nowrap; }
.header-links a:hover { color: var(--main-green); }

/* Breadcrumb */
.breadcrumb { padding: 10px 0; }
.breadcrumb .wrapper {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 0.9rem;
  color: #555;
}
.breadcrumb a.home-link { display: inline-flex; align-items: center; }
.breadcrumb a.home-link svg {
  width: 1em; height: 1em; margin-right: 4px; vertical-align: middle; fill: currentColor;
}
.breadcrumb a, .breadcrumb span { color: inherit; font-weight: normal; }
.breadcrumb .current { text-decoration: underline; }


/* ==========================================================================
   GLOBAL ERROR / SUCCESS MESSAGE STYLES (fixed width + spacing from header)
   ========================================================================== */

.error-message,
.success-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 16px;
  border-radius: var(--corner-radius);
  font-size: 0.95rem;

  /* fixed width + top spacing */
  max-width: 1200px;
  margin: 20px auto 20px;
  width: calc(100% - 30px);
}
.error-message i,
.success-message i {
  flex-shrink: 0;
  font-size: 1.2em;
  vertical-align: middle;
}
.error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}
.error-message i { color: #721c24; }
.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}
.success-message i { color: #155724; }
.error-message p,
.success-message p {
  margin: 0;
  line-height: 1.4;
}


/* ==========================================================================
   GLOBAL VALIDATION (safe site-wide)
   Only activates when your JS adds .is-invalid to a field.
   ========================================================================== */

/* Text-like controls: red border + soft glow when invalid */
.is-invalid:not([type="checkbox"]):not([type="radio"]) {
  border-color: var(--error-red) !important;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, .12);
}

/* Small inline error text (place a <div class="error-msg"> under each field) */
.error-msg {
  color: var(--error-red);
  font-size: 0.9rem;
  margin-top: -2px;
}

/* Checkboxes & Radios — soft red glow around the control only (no big box) */
input[type="checkbox"].is-invalid,
input[type="radio"].is-invalid {
  /* red tick/radio dot where supported */
  accent-color: var(--error-red);

  /* subtle outer glow around the actual control */
  box-shadow: 0 0 0 3px var(--error-glow);

  /* shape the glow */
  border-radius: 3px;            /* checkbox default */
}
input[type="radio"].is-invalid {
  border-radius: 50%;            /* circular for radios */
}


/* ==========================================================================
   GLOBAL LAYOUT & SIDEBAR
   ========================================================================== */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  display: flex;
  gap: 20px;
  margin: 20px auto;
  padding: 0 15px;
}

.sidebar {
  width: 250px;
}
.sidebar section + section {
  border-top: 1px solid var(--border-gray);
  margin-top: 20px;
  padding-top: 20px;
}
.sidebar h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--main-green);
  display: inline-block;
}
.sidebar ul { list-style: none; }
.sidebar li { margin: 8px 0; }
.sidebar li span {
  float: right;
  color: #888;
}

.content { flex: 1; }

/* Filter UI (tags + dual-range slider) */
.sidebar .filter-group { margin-bottom: 20px; }
.sidebar .filter-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.sidebar .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.sidebar .tag {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #1f1f1f;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sidebar .tag:hover {
  background-color: #fef5f0;
  border-color: #f58220;
  color: #f58220;
}

.sidebar .range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sidebar .range-inputs input[type="number"] {
  width: 48%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
}

/* dual-thumb slider visuals */
.sidebar .slider-container {
  --a: 0;  /* left thumb % */
  --b: 100;/* right thumb % */
  position: relative;
  height: 40px;
  margin-top: 8px;
  pointer-events: none;
}
.sidebar .slider-container::before {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  transform: translateY(-50%);
  z-index: 1;
}
.sidebar .slider-container::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--a) * 1%);
  right: calc((100 - var(--b)) * 1%);
  height: 4px;
  background: #f58220;
  border-radius: 2px;
  transform: translateY(-50%);
  z-index: 2;
}
.sidebar .slider-container input[type="range"] {
  position: absolute;
  top: 50%; left: 0;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-appearance: none;
  background: transparent;
}
.sidebar .slider-container input[type="range"]::-webkit-slider-runnable-track,
.sidebar .slider-container input[type="range"]::-moz-range-track {
  height: 0;
  background: transparent;
  border: none;
}
.sidebar .slider-container input[type="range"]::-webkit-slider-thumb,
.sidebar .slider-container input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #f58220;
  cursor: pointer;
  margin-top: 0;
}
.sidebar .slider-container input.thumb--left  { z-index: 4; }
.sidebar .slider-container input.thumb--right { z-index: 3; }


/* ==========================================================================
   GLOBAL: "You may be interested in…" band (full-width above footer)
   ========================================================================== */

.interested-band {
  width: 100%;
  background: #fafafa;                /* lighter than footer */
  border-top: 1px solid var(--border-gray);
  padding: 30px 0 40px;               /* vertical breathing room */
  margin-top: 40px;                   /* space from previous section */
}

.interested-band .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;                    /* same horizontal padding as site */
}

.interested-band h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333;
}

/* Grid + cards (reusing your existing look) */
.interested-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 5px;
}

.interested-grid .product-card {
  position: relative;
  border: 1px solid var(--border-gray);
  padding: 4px 4px 14px;
  text-align: center;
  overflow: hidden;
  background: #fff;                   /* pop off the grey band */
}

.interested-grid .img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
}

.interested-grid .img-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-speed) ease;
}

.interested-grid .img-wrapper img.back { opacity: 0; }
.interested-grid .product-card:hover .img-wrapper img.front { opacity: 0; }
.interested-grid .product-card:hover .img-wrapper img.back  { opacity: 1; }

.interested-grid .sale .badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--main-green);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: var(--corner-radius);
}

.interested-grid .product-card h3 {
  font-size: 1rem;
  font-weight: normal;
  margin: 6px 0;
  color: #333;
}

.interested-grid .price {
  font-weight: bold;
  margin-bottom: 8px;
}

/* Interested band: make it a self-contained block (no margin collapse) */
.interested-band {
  background: #f7f8f5;                 /* lighter than footer */
  border-top: 1px solid var(--border-gray);
  padding: 24px 0;                      /* use padding, not margins */
}

/* The inner wrapper should NOT carry the global bottom margin when inside the band */
.interested-band .interested.wrapper {
  margin: 0 auto;                       /* override the global 0 auto 40px */
}

/* Tidy internal spacing so nothing pushes past the band */
.interested-band h2 { margin: 0 0 12px; }
.interested-band .interested-grid { margin: 0; }

/* Only remove the footer’s gap when the band is present right above it */
.interested-band + footer {
  margin-top: 0;
}

/* ==========================================================================
   GLOBAL FORMS
   Reuse across login/register, account forms, checkout, contact, etc.
   ========================================================================== */

/* Grid helpers */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;  /* single column by default */
  gap: 15px;
}
.form-grid.two-col {
  grid-template-columns: 1fr 1fr;
}
.form-grid .span-2 { grid-column: 1 / -1; }

/* Field group + label */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-weight: 600;
  color: #333;
}

/* Inputs / selects / textareas */
.form-control {
  width: 100%;
  padding: 8px;
  font-size: 0.95rem;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--main-green);
}

/* Required marker */
.req { color: #c00; }

/* Actions row */
.form-actions {
  display: flex;
  justify-content: flex-start;   /* DEFAULT: left-aligned */
  gap: 10px;
  margin-top: 12px;
}
.form-actions--right {
  justify-content: flex-end;     /* Utility: right-align when needed */
}
.form-actions--split {
  justify-content: space-between;/* Utility: split left/right */
  align-items: center;
}

/* Danger button (global utility) */
.button--danger { background: #c62828; color: #fff; }
.button--danger:hover { background: #a31f1f; }


/* ==========================================================================
   PRODUCTS PAGE (index.php)
   ========================================================================== */

body.products-page .sorting {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  align-items: center;
  gap: 10px;
}
body.products-page .sorting label { font-size: 0.9rem; }

/* Custom dropdown arrow on the Sort select */
body.products-page .sorting select {
  padding: 6px 10px;
  font-size: 0.9rem;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 6 5-6' fill='none' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  padding-right: 36px;
}
body.products-page .sorting select::-ms-expand { display: none; }

body.products-page .products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
body.products-page .product-card {
  position: relative;
  border: 1px solid var(--border-gray);
  padding: 4px 4px 14px;
  text-align: center;
  overflow: hidden;
}
body.products-page .img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
}
body.products-page .img-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-speed) ease;
}
body.products-page .img-wrapper img.back { opacity: 0; }
body.products-page .product-card:hover .img-wrapper img.front { opacity: 0; }
body.products-page .product-card:hover .img-wrapper img.back  { opacity: 1; }
body.products-page .product-card h3 {
  font-size: 1rem;
  font-weight: normal;
  margin: 6px 0;
}
body.products-page .price {
  font-weight: bold;
  margin-bottom: 8px;
}
body.products-page .sale .badge {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--main-green);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: var(--corner-radius);
}
body.products-page .pagination { text-align: right; margin: 40px 0; }
body.products-page .pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
  color: #333;
}
body.products-page .pagination a.active,
body.products-page .pagination a:hover {
  background: var(--main-green);
  color: #fff;
}

/* Empty state */
body.products-page .products-grid .no-results {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

/* ==========================================================================
   PRODUCT PAGE (product.php)
   ========================================================================== */
body.product-page .product-detail-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}
body.product-page .product-gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.product-page .main-image img {
  width: 100%;
  border: 1px solid var(--border-gray);
}
body.product-page .thumbnails {
  display: flex;
  gap: 8px;
}
body.product-page .thumbnails .thumb {
  width: 20%;
  cursor: pointer;
  opacity: 0.6;
  border: 1px solid transparent;
  transition: opacity var(--transition-speed);
}
body.product-page .thumbnails .thumb:hover,
body.product-page .thumbnails .thumb.active {
  opacity: 1;
  border-color: var(--main-green);
}
body.product-page .product-info { flex: 1; }
body.product-page .product-info h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
body.product-page .product-info .price {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
body.product-page .product-info .description p { margin-bottom: 12px; }
body.product-page .product-info .actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
body.product-page .product-info .actions input[type="number"] {
  width: 60px;
  padding: 6px;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
  outline: none;
}
body.product-page section.reviews,
body.product-page section.related-products {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}
body.product-page section.reviews h2,
body.product-page section.related-products h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
body.product-page .review-list {
  background: #fff;
  border: 1px solid var(--border-gray);
  padding: 15px;
}
body.product-page .related-products .related-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
body.product-page .related-products .product-card {
  position: relative;
  border: 1px solid var(--border-gray);
  padding: 4px 4px 14px;
  text-align: center;
  overflow: hidden;
}
body.product-page .related-products .img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
}
body.product-page .related-products .img-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-speed) ease;
}
body.product-page .related-products .img-wrapper img.back { opacity: 0; }
body.product-page .related-products .product-card:hover .img-wrapper img.front { opacity: 0; }
body.product-page .related-products .product-card:hover .img-wrapper img.back  { opacity: 1; }
body.product-page .related-products .product-card h3 {
  font-size: 1rem;
  font-weight: normal;
  margin: 6px 0;
}
body.product-page .related-products .price {
  font-weight: bold;
  margin-bottom: 8px;
}
body.product-page .related-products .sale .badge {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--main-green);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: var(--corner-radius);
}

/* ==========================================================================
   CART PAGE (cart.php)
   ========================================================================== */
body.cart-page .container {
  flex-direction: column;
  gap: 40px;
}
body.cart-page main {
  width: 100%;
}
body.cart-page .coupon-update {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 40px;
}
body.cart-page .coupon-update .coupon-box {
  display: flex;
  gap: 8px;
}
body.cart-page .coupon-update .coupon-box input[type="text"] {
  padding: 8px;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius) 0 0 var(--corner-radius);
  outline: none;
}
body.cart-page .coupon-update .coupon-box button {
  border-radius: 0 var(--corner-radius) var(--corner-radius) 0;
}
body.cart-page .suggestions-totals {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}
body.cart-page .basket-totals {
  width: 300px;
}
body.cart-page .basket-totals h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
body.cart-page .basket-totals table {
  width: 100%;
  margin-bottom: 20px;
}

/* ==========================================================================
   CART PAGE (shopping-basket.php) STYLES
   ========================================================================== */

/* 1. Empty Basket Message */
body.cart-page .empty-basket-message {
  padding: 20px;
  text-align: center;
  background: #f9f9f9;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}
body.cart-page .empty-basket-text {
  font-size: 1.2em;
  color: #555;
  margin-bottom: 10px;
}
body.cart-page .return-to-shop {
  display: inline-block;
  margin-top: 10px;
}

/* 2. Basket Items Table */
body.cart-page .basket-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}
body.cart-page .basket-items-table thead {
  background: var(--main-green);
  color: #fff;
}
body.cart-page .basket-items-table th,
body.cart-page .basket-items-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-gray);
  vertical-align: middle;
}

/* Column-specific widths / alignment */
body.cart-page .basket-items-table .col-remove {
  width: 40px;
  text-align: center;
}
body.cart-page .basket-items-table .col-product {
  text-align: left;
}
body.cart-page .basket-items-table .col-price,
body.cart-page .basket-items-table .col-qty,
body.cart-page .basket-items-table .col-subtotal {
  text-align: left;
  width: 120px;
}

/* “×” remove link */
body.cart-page .remove-item {
  color: red;
  font-weight: bold;
  text-decoration: none;
}

/* Inside the “Product” cell: flex wrapper + thumbnail */
body.cart-page .product-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.cart-page .product-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid var(--border-gray);
}

/* 2a. Quantity Input */
body.cart-page .quantity-input {
  width: 60px;
  padding: 6px;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
  outline: none;
}

/* 3. Coupon & Update Layout */
body.cart-page .basket-actions {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
body.cart-page .coupon-section {
  flex: 0 1 auto;      /* only as wide as its contents */
}
body.cart-page .coupon-update {
  display: flex;
  gap: 8px;
  align-items: center;
}
body.cart-page .coupon-input {
  flex: 1 1 200px;     /* allow input to grow/shrink, with a minimum basis */
  min-width: 0;        /* prevent overflow */
  padding: 8px;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
  outline: none;
}
body.cart-page .coupon-button {
  flex: 0 0 auto;
  padding: 8px 12px;
}
body.cart-page .update-section {
  margin-left: auto;    /* push the Update button all the way to the right */
  flex: 0 0 auto;       /* fixed size for the button */
}
body.cart-page .update-button {
  padding: 10px 16px;
}

/* 4. Basket Totals Sidebar */
body.cart-page .basket-totals {
  max-width: 400px;
  margin-left: auto;
  margin-bottom: 40px;
  border: 1px solid var(--border-gray);
  padding: 20px;
}
body.cart-page .basket-totals h2 {
  margin-bottom: 16px;
  font-size: 1.2em;
  border-bottom: 1px solid var(--border-gray);
  padding-bottom: 8px;
}
body.cart-page .basket-totals table {
  width: 100%;
  border-collapse: collapse;
}
body.cart-page .basket-totals .totals-line {
  color: #333;
}
body.cart-page .basket-totals .discount-line {
  color: red;
}
body.cart-page .basket-totals .totals-note {
  margin: 4px 0;
  color: #555;
  font-size: 0.9em;
  text-align: center;
}
body.cart-page .basket-totals .remove-coupon-form {
  display: inline;
  margin-left: 6px;
}
body.cart-page .basket-totals .remove-coupon-button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.2em;
  vertical-align: middle;
}
body.cart-page .basket-totals .total-line {
  font-weight: bold;
  color: #000;
}
body.cart-page .checkout-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
}

/* 5. “You may be interested in…” wrapper */
body.cart-page .interested.wrapper {
  max-width: 1100px;
  margin: 0 auto 40px;
}


/* ==========================================================================
   TEXT PAGE OVERRIDES
   ========================================================================== */
body.text-page section.text-page { padding: 0; }
body.text-page section.text-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #333;
}
body.text-page section.text-page h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: normal;
  color: #555;
}
body.text-page section.text-page p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #444;
}
body.text-page section.text-page p strong { font-weight: 600; }
body.text-page section.text-page p em { font-style: italic; }
body.text-page section.text-page table.delivery-returns {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
body.text-page section.text-page table.delivery-returns th,
body.text-page section.text-page table.delivery-returns td {
  padding: 0.75em 1em;
  text-align: left;
}
body.text-page section.text-page table.delivery-returns thead tr { background-color: #f9f9f9; }
body.text-page section.text-page table.delivery-returns th {
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}
body.text-page section.text-page table.delivery-returns td { border-bottom: 1px solid #eee; }
body.text-page section.text-page table.delivery-returns tbody tr:last-child td { border-bottom: none; }

/* ==========================================================================
   WISH LIST CARD‐STYLE LAYOUT (buttons without boxes + image fix)
   ========================================================================== */
.wishlist-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.wishlist-item-card {
  position: relative;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
  padding: 20px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* Product page: wishlist heart toggle */
.wishlist-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wishlist-toggle .heart-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.6em;
  line-height: 1;
  padding: 0;
}
.wishlist-toggle .heart-icon { color: #bbb; }
.wishlist-toggle .heart-icon.active { color: #c00; }
.wishlist-toggle .wishlist-label {
  font-size: 0.95em;
  color: #555;
}
.wishlist-toggle .wishlist-login {
  font-size: 0.95em;
  color: #777;
  text-decoration: underline;
}

/* Delete (“×”) button */
.remove-button-form {
  position: absolute;
  top: 12px;
  right: 12px;
}
.remove-button-form button {
  border: none;
  background: none;
  font-size: 1.2em;
  color: red;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

/* Add-to-cart button */
.add-button-form {
  position: absolute;
  bottom: 12px;
  right: 12px;
}
.add-button-form .button { padding: 6px 12px; }

/* Left: Product thumbnail */
.wishlist-item-card .item-image { flex: 0 0 100px; }
.wishlist-item-card .item-image img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
}

/* Middle: Product details (including “Added on”) */
.wishlist-item-card .item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wishlist-item-card .item-details h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: #333;
}
.wishlist-item-card .item-details .price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wishlist-item-card .item-details .original-price {
  text-decoration: line-through;
  color: #777;
}
.wishlist-item-card .item-details .price {
  font-weight: bold;
  font-size: 1rem;
  color: #333;
}
.wishlist-item-card .item-details .meta {
  font-size: 0.9rem;
  color: #555;
}

/* ==========================================================================
   LOGIN PAGE OVERRIDES
   ========================================================================== */
body.logreg-page .form-container {
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
}
body.logreg-page .form-group + .form-group { margin-top: 15px; }
body.logreg-page .form-control {
  width: 100%;
  padding: 8px;
  font-size: 0.95rem;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
}

/* ==========================================================================
   ACCOUNT — REGISTER (page-specific polish)
   ========================================================================== */

/* Page intro typography (keeps same h1 + p pattern as other account pages) */
.content.register-page > .form-section > h1 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0 0 6px;
}
.content.register-page > .form-section > p {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 12px;
}

/* Card wrapper similar to address page */
.content.register-page .form-section {
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
  padding: 16px 18px;
  margin: 18px 0;
}

/* Form layout tweaks */
.content.register-page .register-form {
  gap: 14px 16px; /* row / column gap */
}

/* CAPTCHA image */
body.register-page .captcha-img {
  display: inline-block;
  height: auto;           /* let the image size itself */
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  vertical-align: middle; /* aligns nicely next to labels if needed */
}


/* ==========================================================================
   ACCOUNT AREA (shared across all account pages)
   Applies to: account.php, account-orders.php, account-order.php,
               account-addresses.php, account-address.php, etc.
   ========================================================================== */

/* ---------- Headings & text ---------- */
body.account-page .content h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
body.account-page .content h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: #333;
  border-bottom: 2px solid var(--main-green);
  padding-bottom: 4px;
}
body.account-page .content h3 {
  font-size: 1.2rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #555;
}
body.account-page .content p {
  margin-bottom: 0.75rem;
}

/* ---------- Empty states & actions ---------- */
body.account-page .empty-state {
  margin-top: 20px;
  font-size: 1rem;
  color: #555;
}

/* Left-aligned action row (used with empty states) */
body.account-page .empty-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

/* Right-aligned action row (e.g., “Continue shopping”, “Add Address”) */
body.account-page .actions-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

/* Optional larger CTA size */
.button--lg { padding: 10px 20px; }

/* ---------- Generic account tables (list-style) ---------- */
.account-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: #333;
}
.account-table thead th {
  border-bottom: 1px solid var(--border-gray);
  padding: 8px;
  text-align: left;
}
.account-table tbody td {
  padding: 8px;
  border-bottom: 1px solid var(--border-gray);
  vertical-align: middle;
}

/* Column alignment for the order-items table */
.account-order-items thead th:nth-child(2),
.account-order-items tbody td:nth-child(2) { text-align: center; }
.account-order-items thead th:nth-child(3),
.account-order-items thead th:nth-child(4),
.account-order-items tbody td:nth-child(3),
.account-order-items tbody td:nth-child(4) { text-align: right; }

/* ---------- Key/Value table blocks (payments, shipping) ---------- */
.account-kv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: #333;
}
.account-kv-table th {
  width: 30%;
  text-align: left;
  padding: 6px;
  border-top: 1px solid var(--border-gray);
  background: #f9f9f9;
  font-weight: 600;
}
.account-kv-table td {
  padding: 6px;
  border-top: 1px solid var(--border-gray);
}

/* ---------- Orders list table (account-orders.php) ---------- */
body.account-page.orders-page .account-table {
  margin-top: 20px;
}
body.account-page.orders-page .account-table thead th {
  background: var(--light-gray);
  font-weight: 600;
  color: #333;
  padding: 8px 12px;
  border-bottom: 2px solid var(--border-gray);
}
body.account-page.orders-page .account-table tbody td {
  padding: 8px 12px;
}

/* Column alignment helpers for orders list */
body.account-page.orders-page .account-table thead th:nth-child(5),
body.account-page.orders-page .account-table tbody td:nth-child(5) {
  text-align: right;  /* Total */
}

/* Links inside tables */
body.account-page .account-table a {
  color: var(--main-green);
  text-decoration: none;
}
body.account-page .account-table a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   ACCOUNT — SETTINGS (typography + spacing tune-up)
   ========================================================================== */

/* Top title and intro copy (keep your existing h1 + two <p> pattern) */
body.account-settings-page .content > h1 {
  font-size: 1.4rem;          /* smaller than default */
  line-height: 1.3;
  margin: 0 0 6px;
}
body.account-settings-page .content > p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 10px;
}

/* Card blocks */
body.account-settings-page .form-section {
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
  padding: 14px 16px;          /* slightly tighter padding */
  margin: 16px 0;              /* consistent vertical rhythm */
}

/* Section headings (e.g., “Change Password”) — make smaller + add space */
body.account-settings-page .content .form-section h2,
body.account-settings-page .content .form-section h3 {
  font-size: 1.05rem;          /* reduced size */
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin: 8px 0 12px;          /* top/bottom spacing so it doesn’t feel cramped */
}

/* Form spacing refinements */
body.account-settings-page .form-grid { gap: 12px 14px; }
body.account-settings-page .form-actions { margin-top: 8px; }

/* Extra breathing room before the first form card */
body.account-settings-page .content .form-section:first-of-type {
  margin-top: 18px;
}

/* ==========================================================================
   ACCOUNT — ADD/EDIT ADDRESS (page-specific polish)
   ========================================================================== */

body.user-address-page .content > h1 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0 0 6px;
}
body.user-address-page .content > p {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 10px;
}

/* Keep the form narrow and tidy */
body.user-address-page .address-form {
  max-width: 760px;
}

/* Small helper text for optional fields */
body.user-address-page .form-hint {
  color: #777;
  font-size: 0.85rem;
}

/* Space above the standalone delete row */
body.user-address-page .address-delete-row {
  margin-top: 8px;
}

/* ==========================================================================
   AUTH PAGES — left-aligned (consistent with other forms)
   ========================================================================== */

.content.auth-page .auth-section {
  max-width: 560px;  /* optional cap for readable lines */
  margin: 0;         /* align to left edge of the content column */
  text-align: left;
}

.content.auth-page .auth-form {
  max-width: 420px;  /* comfortable form width */
  width: 100%;
  margin: 0;         /* no centering */
}

.content.auth-page .auth-form .form-group label {
  text-align: left;
}

.content.auth-page .auth-form .form-actions {
  justify-content: flex-start;  /* buttons left, matching site-wide */
}

.content.auth-page .auth-links {
  text-align: left;
  margin-top: 8px;
}

/* Keep inline links obvious */
.content.auth-page .auth-section p a,
.content.auth-page .auth-links a {
  color: var(--main-green);
  text-decoration: underline;
  font-weight: 600;
}


/* ==========================================================================
   CHECKOUT — small polish for shipping + payment notices
   ========================================================================== */
body.checkout-page .checkout-block {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
  padding: 14px 16px;
  margin: 16px 0;
}

body.checkout-page .checkout-block .block-title {
  font-size: 1.15rem;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-gray);
  color: #333;
}

body.checkout-page .option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Radio “card” */
body.checkout-page .option-card {
  display: block;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
  padding: 10px 12px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
body.checkout-page .option-card:hover {
  border-color: var(--main-green);
  background: #fff;
}
body.checkout-page .option-card input[type="radio"] {
  margin-right: 10px;
  vertical-align: middle;
}
body.checkout-page .option-card .option-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
body.checkout-page .option-card .opt-name { font-weight: 600; color: #333; }
body.checkout-page .option-card .opt-price { font-weight: 700; }
body.checkout-page .option-card .opt-note { color: #666; font-size: 0.9rem; margin-top: 4px; }

/* Guard notice shown before payment if no address yet */
body.checkout-page .payment-guard {
  background: #fff8e5;
  border: 1px solid #f5d7a3;
  color: #7a4d00;
  padding: 10px 12px;
  border-radius: var(--corner-radius);
  margin: 10px 0 0;
  font-size: 0.95rem;
}

/* ==========================================================================
   CHECKOUT
   ========================================================================== */

/* Headline/intro spacing on the left column */
.checkout-page .content h1 {
  font-size: 1.8rem;
  margin: 0 0 8px;
}
.checkout-page .content p {
  margin: 0 0 12px;
  color: #444;
}

/* Right column width */
.checkout-page .order-summary {
  flex: 0 0 340px;              /* fixed sidebar width */
}

/* Order summary list */
.checkout-page .order-summary h2 {
  margin-bottom: 10px;
}
.checkout-page .order-summary ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.checkout-page .order-summary li {
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid #eee; /* soft divider between items */
}
.checkout-page .order-summary img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
  border: 1px solid var(--border-gray);
  border-radius: var(--corner-radius);
}

/* Totals */
.checkout-page .order-summary p {
  margin: 8px 0;
}
.checkout-page .order-summary hr {
  border: 0;
  border-top: 1px solid #e6e6e6;
  margin: 10px 0 8px;
}

/* “Need address” notice */
.checkout-page .need-address {
  color: var(--error-red);
  font-weight: 600;
  margin-top: 10px;
}

/* Small helper: “FREE” emphasis */
.checkout-page .badge-free {
  font-weight: 700;
}

body.checkout-page .container {
  gap: 60px;            /* or whatever you prefer */
  align-items: flex-start; /* keeps tops aligned nicely */
}

/* ==========================================================================
   ORDER CONFIRMATION (clean, borderless)
   Applies to: paypal-order-confirmation.php
   ========================================================================== */

body.order-confirmation-page .confirm-wrap.wrapper {
  max-width: 840px;          /* narrower than default wrapper for easier reading */
  margin: 24px auto;
  padding: 0 15px;
}

/* Intro */
body.order-confirmation-page .oc-header h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 6px;
  color: #333;
}
body.order-confirmation-page .oc-header p {
  color: #666;
  margin: 0 0 16px;
  font-size: 0.95rem;
}

/* Sections */
body.order-confirmation-page .oc-section {
  margin: 18px 0;
}
body.order-confirmation-page .oc-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
}

/* Address */
body.order-confirmation-page .oc-address address {
  font-style: normal;              /* don’t italicize */
  line-height: 1.5;
  color: #444;
  white-space: pre-line;           /* keeps our <br>-style line breaks tidy */
}

/* Items list */
body.order-confirmation-page .oc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
body.order-confirmation-page .oc-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}
body.order-confirmation-page .oc-item-main {
  min-width: 0;                    /* prevent overflow */
}
body.order-confirmation-page .oc-title {
  font-weight: 600;
  color: #333;
  margin: 0 0 2px;
}
body.order-confirmation-page .oc-meta {
  color: #666;
  font-size: 0.92rem;
}
body.order-confirmation-page .oc-amount {
  flex: 0 0 auto;
  font-weight: 600;
  color: #1f1f1f;
  white-space: nowrap;
}

/* Totals */
body.order-confirmation-page .oc-totals p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 6px 0;
  color: #333;
}
body.order-confirmation-page .oc-totals .oc-total {
  font-size: 1.15rem;
  font-weight: 700;
}

/* CTA */
body.order-confirmation-page .oc-actions {
  margin-top: 16px;
}

/* ==========================================================================
   RESPONSIVE ENHANCEMENTS (non-destructive)
   Breakpoints: 1200↓ (large), 1024↓ (laptop), 900↓ (small laptop),
                768↓ (tablet), 600↓ (large phone), 480↓ (phone)
   ========================================================================== */

/* ---------- 1200px and down ---------- */
@media (max-width: 1200px) {
  .wrapper,
  .container,
  .interested-band .wrapper,
  body.product-page .product-detail-container {
    padding: 0 12px;
  }

  /* Search box a bit narrower on smaller widescreens */
  .search-box input[type="search"] { width: 360px; }
}

/* ---------- 1024px and down ---------- */
@media (max-width: 1024px) {
  /* Header: keep height, reduce search width for comfort */
  .search-box input[type="search"] { width: 320px; }

  /* Products grid: 3 → 2 columns */
  body.products-page .products-grid { grid-template-columns: repeat(2, 1fr); }

  /* Related products: 4 → 3 columns */
  body.product-page .related-products .related-carousel {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Global container spacing */
  .container { gap: 16px; }
}

/* ---------- 900px and down ---------- */
@media (max-width: 900px) {
  /* Product page layout: reduce gap */
  body.product-page .product-detail-container { gap: 24px; }

  /* Account table: tighter padding */
  .account-table thead th,
  .account-table tbody td { padding: 8px 10px; }
}

/* ---------- 768px and down (tablet) ---------- */
@media (max-width: 768px) {
  /* Header: keep fixed bar height, shrink logo slightly on tablets */
  .brand-nav .wrapper { height: 80px; min-height: 80px; }
  .brand-nav .logo img { max-height: 40px; height: auto; }

  /* Center the search under the logo if space is cramped */
  .search-box {
    position: static;
    transform: none;
    margin: 8px 0 0;
  }
  .brand-nav .wrapper {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }
  .header-links { margin-left: 0; }

  /* Breadcrumb: smaller spacing */
  .breadcrumb { padding: 8px 0; }
  .breadcrumb .wrapper { gap: 4px; font-size: 0.9rem; }

  /* Global container: stack columns */
  .container {
    flex-direction: column;
    gap: 18px;
  }
  .sidebar { width: 100%; }
  .content { width: 100%; }

  /* Forms: two-col → single column */
  .form-grid.two-col { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }

  /* Products grid: 2 columns on tablet */
  body.products-page .products-grid { grid-template-columns: repeat(2, 1fr); }

  /* Product page */
  body.product-page .product-detail-container {
    flex-direction: column;
    gap: 16px;
  }

  /* Cart page stacks by design already; ensure gaps */
  body.cart-page .container { gap: 24px; }

  /* Checkout: left/right stack, keep comfortable spacing */
  body.checkout-page .container { gap: 24px; }
  .checkout-page .order-summary { flex: 1 1 auto; }

  /* Order confirmation: comfy margins */
  body.order-confirmation-page .confirm-wrap.wrapper {
    margin: 20px auto;
    padding: 0 12px;
  }
}

/* ---------- 600px and down (large phones) ---------- */
@media (max-width: 600px) {
  /* Header: limit search width, prevent overflow */
  .search-box input[type="search"] {
    width: 100%;
    max-width: 100%;
  }
  .search-box form { width: 100%; }

  /* Buttons: slightly larger tap target */
  .button { padding: 10px 14px; font-size: 0.95rem; }

  /* Footer: stack links */
  .footer-links.wrapper {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  /* Product grids: 2 → 1 column */
  body.products-page .products-grid { grid-template-columns: 1fr; }
  body.product-page .related-products .related-carousel {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Tables (account, cart): make mobile-friendly */
  .account-table thead { display: none; }
  .account-table,
  .account-table tbody,
  .account-table tr,
  .account-table td {
    display: block;
    width: 100%;
  }
  .account-table tr { border-bottom: 1px solid #eee; margin: 0 0 10px; }
  .account-table td {
    border: none;
    padding: 6px 0;
  }

  /* Basket items table: similar stacking */
  body.cart-page .basket-items-table thead { display: none; }
  body.cart-page .basket-items-table,
  body.cart-page .basket-items-table tbody,
  body.cart-page .basket-items-table tr,
  body.cart-page .basket-items-table td {
    display: block;
    width: 100%;
  }
  body.cart-page .basket-items-table tr {
    border-bottom: 1px solid #eee;
    margin: 0 0 12px;
    padding-bottom: 8px;
  }
  body.cart-page .basket-items-table td { padding: 6px 0; }

  /* Forms: tighten gaps on small screens */
  .form-grid { gap: 12px; }
  .form-actions { margin-top: 8px; gap: 8px; }

  /* Validation glow: soften on small screens */
  .is-invalid:not([type="checkbox"]):not([type="radio"]) {
    box-shadow: 0 0 0 2px rgba(217, 48, 37, .18);
  }

  /* Checkout summary visuals */
  .checkout-page .order-summary img {
    width: 36px; height: 36px;
  }
}

/* ---------- 480px and down (phones) ---------- */
@media (max-width: 480px) {
  /* Header: compact spacing */
  .brand-nav .wrapper { height: 72px; min-height: 72px; }
  .brand-nav .logo img { max-height: 36px; }

  /* Breadcrumb: smaller text */
  .breadcrumb .wrapper { font-size: 0.85rem; }

  /* General typography tweaks */
  body { line-height: 1.45; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }

  /* Search input padding to save space */
  .search-box input[type="search"] { padding: 6px 8px; }
  .search-box button.button { padding: 6px 8px; }

  /* Product page thumbnails: tighter gaps */
  body.product-page .thumbnails { gap: 6px; }

  /* Auth & register forms: keep left aligned, full width */
  .content.auth-page .auth-form,
  .content.register-page .form-section { max-width: 100%; }

  /* Wishlist card spacing */
  .wishlist-items { gap: 16px; }
  .wishlist-item-card { padding: 14px; }

  /* Checkout: item lines tighter */
  .checkout-page .order-summary li { margin: 0 0 10px; padding: 0 0 6px; }

  /* Footer: icons smaller */
  .bottom-bar.wrapper img { height: 20px; }
}

/* ---------- Very small devices (360px and down) ---------- */
@media (max-width: 360px) {
  .search-box form { gap: 6px; }
  .header-links { gap: 10px; font-size: 0.85rem; }
  .button { padding: 8px 12px; font-size: 0.9rem; }
  .form-control { padding: 7px; font-size: 0.92rem; }
}
