/**
 * Vale Packing Supplies — Shared Collection Page Styles
 * /public_html/css/collection.css
 */

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background: #f0f2f2;
  color: #111;
  font-size: 14px;
}

a {
  text-decoration: none;
}

/* ============================================================
   BASKET NAV BUTTON
   ============================================================ */
.basket-nav-btn {
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  background: none;
  cursor: pointer;
}

.basket-nav-btn:hover {
  border-color: #fff;
}

.basket-count {
  background: #ff9900;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.basket-count.bump {
  transform: scale(1.4);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: #fff;
  padding: 8px 16px;
  font-size: 12px;
  border-bottom: 1px solid #ddd;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb a {
  color: #007185;
}

.breadcrumb a:hover {
  color: #c45500;
  text-decoration: underline;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: 220px;
  flex-shrink: 0;
}

.sidebar-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.sidebar-title {
  background: #232f3e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
}

.sidebar-body {
  padding: 8px 0;
}

.sidebar-cat {
  display: block;
  padding: 7px 14px;
  font-size: 13px;
  color: #111;
  border-left: 3px solid transparent;
}

.sidebar-cat:hover {
  background: #f0f2f2;
}

.sidebar-cat.active {
  border-left-color: #ff9900;
  font-weight: 700;
  color: #c45500;
}

.sidebar-info {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

.sidebar-info a {
  color: #007185;
}

.sidebar-info a:hover {
  text-decoration: underline;
}

.sidebar-phone {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  display: block;
  margin-top: 4px;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.main-content {
  flex: 1;
  min-width: 0;
}

/* ============================================================
   INFO BANNER
   ============================================================ */
.info-banner {
  background: #131921;
  border-radius: 3px;
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-icon {
  width: 42px;
  height: 42px;
  background: #ff9900;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.info-banner h2 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-banner p {
  color: #ccc;
  font-size: 12px;
  line-height: 1.6;
}

/* ============================================================
   ECO STRIP
   ============================================================ */
.eco-strip {
  background: #007600;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 10px 16px;
  border-radius: 3px;
  margin-bottom: 12px;
}

/* ============================================================
   BULLDOG STRIP
   ============================================================ */
.bulldog-strip {
  background: #ff9900;
  padding: 10px 16px;
  border-radius: 3px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bulldog-strip p {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.bulldog-strip a {
  background: #131921;
  color: #ff9900;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 3px;
  white-space: nowrap;
}

.bulldog-strip a:hover {
  background: #232f3e;
}

/* ============================================================
   RESULTS HEADER
   ============================================================ */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.results-header h1 {
  font-size: 20px;
  font-weight: 700;
}

.results-count {
  font-size: 13px;
  color: #555;
  margin-top: 2px;
}

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

.sort-bar label {
  color: #555;
}

.sort-bar select {
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.product-card:hover {
  border-color: #ff9900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card.out-of-stock {
  opacity: 0.75;
}

.product-img {
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  position: relative;
}

.product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.oos-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.oos-label {
  background: #c45500;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-body {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.badge-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  min-height: 20px;
}

.product-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-eco {
  display: inline-block;
  background: #007600;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f1111;
  line-height: 1.4;
  margin-bottom: 4px;
}

.product-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
  flex: 1;
}

.product-stars {
  color: #ff9900;
  font-size: 12px;
  letter-spacing: 1px;
}

.product-reviews {
  font-size: 11px;
  color: #007185;
  margin-bottom: 6px;
}

.product-price {
  font-size: 22px;
  font-weight: 700;
  color: #B12704;
  margin-bottom: 2px;
}

.product-unit {
  font-size: 11px;
  color: #555;
  margin-bottom: 10px;
}

.product-footer {
  padding: 0 12px 12px;
}

.btn-add-basket {
  width: 100%;
  background: #ff9900;
  color: #111;
  border: none;
  padding: 10px 0;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: block;
  text-align: center;
  transition: background 0.15s;
}

.btn-add-basket:hover {
  background: #e88b00;
}

.btn-add-basket:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-call {
  width: 100%;
  display: block;
  text-align: center;
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
  padding: 8px 0;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.btn-call:hover {
  background: #f7f7f7;
}

/* ============================================================
   BASKET OVERLAY & DRAWER
   ============================================================ */
.basket-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
}

.basket-overlay.open {
  display: block;
}

.basket-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
}

.basket-drawer.open {
  right: 0;
}

.basket-header {
  background: #131921;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.basket-header h2 {
  color: #ff9900;
  font-size: 16px;
  font-weight: 700;
}

.basket-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.basket-close:hover {
  color: #ff9900;
}

.basket-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.basket-footer {
  padding: 16px;
  border-top: 2px solid #f0f2f2;
}

/* ============================================================
   BASKET ITEMS
   ============================================================ */
.basket-empty {
  text-align: center;
  padding: 40px 20px;
}

.basket-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.basket-empty p {
  color: #555;
  font-size: 13px;
  margin-bottom: 8px;
}

.basket-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 3px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.basket-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 1px solid #f0f0f0;
  border-radius: 2px;
  padding: 4px;
  background: #f9f9f9;
  flex-shrink: 0;
}

.basket-item-info {
  flex: 1;
  min-width: 0;
}

.basket-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
  line-height: 1.3;
}

.basket-item-unit {
  font-size: 11px;
  color: #555;
  margin-bottom: 4px;
}

.basket-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #B12704;
  margin-bottom: 8px;
}

.basket-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.qty-btn {
  background: #f0f0f0;
  border: 1px solid #ccc;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #e8e8e8;
}

.qty-display {
  font-weight: 700;
  font-size: 13px;
  min-width: 20px;
  text-align: center;
}

.basket-item-remove {
  background: none;
  border: none;
  color: #c45500;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  text-decoration: underline;
}

.basket-item-remove:hover {
  color: #a33c00;
}

.basket-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
}

.basket-subtotal-label {
  font-weight: 700;
  color: #111;
}

.basket-subtotal-total {
  font-size: 18px;
  font-weight: 700;
  color: #B12704;
}

.basket-paypal-wrap {
  margin-bottom: 12px;
}

.pay-icons-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pay-icon {
  font-size: 11px;
  color: #555;
  padding: 4px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  background: #f9f9f9;
}

.btn-continue {
  width: 100%;
  background: #f0f0f0;
  color: #111;
  border: 1px solid #ccc;
  padding: 10px 0;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-continue:hover {
  background: #e8e8e8;
}

/* ============================================================
   INFO / SEO SECTION
   ============================================================ */
.info-section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 24px 28px;
  margin-top: 16px;
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}

.info-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.info-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 8px;
  color: #111;
}

.info-section p {
  margin-bottom: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.amz-footer-top {
  background: #232f3e;
  padding: 24px 32px;
  margin-top: 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-col a {
  display: block;
  color: #ccc;
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-col a:hover {
  color: #fff;
}

.amz-footer-bottom {
  background: #131921;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.amz-footer-bottom span {
  color: #ccc;
  font-size: 12px;
}

/* ============================================================
   MOBILE / TABLET
   ============================================================ */
@media (max-width: 768px) {

  .page-wrap {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .main-content {
    width: 100%;
    order: 1;
    padding-top: 0;
    margin-top: 0;
  }

  .sidebar {
    width: 100%;
    order: 2;
    margin-top: 18px;
  }

  .info-banner {
    display: none;
  }

  .breadcrumb {
    font-size: 11px;
    padding: 6px 10px;
  }

  .results-header {
    margin-bottom: 6px;
    padding: 8px 10px 0;
    gap: 4px;
  }

  .results-header h1 {
    font-size: 16px;
    line-height: 1.2;
  }

  .results-count {
    font-size: 12px;
  }

  .sort-bar {
    width: 100%;
    justify-content: space-between;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 0;
    padding: 0 8px;
  }

  .product-card {
    border-radius: 2px;
  }

  .product-img {
    height: 145px;
  }

  .basket-drawer {
    max-width: 100%;
  }

  .basket-item-img {
    width: 70px;
    height: 70px;
  }

  .amz-footer-top {
    padding: 20px 16px;
  }

  .amz-footer-bottom {
    padding: 12px 16px;
    flex-direction: column;
    text-align: center;
  }

  .info-section {
    padding: 16px;
    margin-top: 14px;
  }
}

/* ============================================================
   SMALL PHONES
   ============================================================ */
@media (max-width: 420px) {

  .page-wrap {
    padding: 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 0 6px;
  }

  .product-img {
    height: 120px;
  }

  .product-name {
    font-size: 12px;
  }

  .product-price {
    font-size: 18px;
  }

  .btn-add-basket,
  .btn-call {
    font-size: 12px;
    padding: 8px 0;
  }

  .basket-item-img {
    width: 60px;
    height: 60px;
  }

  .basket-item-name {
    font-size: 12px;
  }

  .basket-item-price {
    font-size: 13px;
  }
}