/**
 * COMMERCIAL APPLIANCE RENTAL (www.commercialappliancerental.com)
 * 99% Visual & Functional Clone of WebstaurantStore.com E-Commerce Stylesheet
 */
:root {
  --ws-green-darkest: #113c15;
  --ws-green-dark: #1b5e20;
  --ws-green: #286734;
  --ws-green-hover: #1e5227;
  --ws-green-light: #e8f5e9;
  --ws-plus-orange: #f57c00;
  --ws-plus-gold: #ffb300;
  --ws-blue-link: #0056b3;
  --ws-bg: #f3f5f3;
  --ws-card-bg: #ffffff;
  --ws-border: #d5dcd5;
  --ws-text: #212529;
  --ws-muted: #5a6268;
  --ws-danger: #c62828;
  --ws-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--ws-font);
  background: var(--ws-bg);
  color: var(--ws-text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ws-blue-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--ws-green-dark);
}

/* ============================================================================
   1. TOP UTILITY BAR (WebstaurantStore Dark Forest Green Strip)
   ============================================================================ */
.ws-topbar {
  background: var(--ws-green-darkest);
  color: #e2f1e4;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.ws-topbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ws-topbar a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
}
.ws-topbar a:hover {
  color: var(--ws-plus-gold) !important;
  text-decoration: underline;
}
.ws-plus-pill {
  background: linear-gradient(135deg, #f57c00, #ef6c00);
  color: #fff;
  font-weight: 900;
  font-style: italic;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  text-transform: lowercase;
  display: inline-block;
  margin-right: 4px;
}
.ws-topbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================================
   2. MAIN WEBSTAURANTSTORE HEADER (#286734 Forest Green + Full Search Bar)
   ============================================================================ */
.ws-header {
  background: var(--ws-green);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.ws-header-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ws-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  text-decoration: none !important;
  min-width: 245px;
}
.ws-logo-icon {
  width: 42px;
  height: 42px;
  background: #fff;
  color: var(--ws-green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 900;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ws-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.ws-logo-brand {
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: #ffffff;
}
.ws-logo-brand span {
  color: #ffca28;
}
.ws-logo-sub {
  font-size: 0.69rem;
  color: #c8e6c9;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Full-width WebstaurantStore Central Search Bar */
.ws-search-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
}
.ws-search-bar {
  display: flex;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.ws-search-bar:focus-within {
  border-color: var(--ws-plus-gold);
}
.ws-search-cat-select {
  background: #f1f3f1;
  border: none;
  border-right: 1px solid #d0d7d0;
  padding: 0 10px;
  font-size: 0.8rem;
  color: #333;
  font-weight: 600;
  max-width: 175px;
  cursor: pointer;
}
.ws-search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #111;
  outline: none;
}
.ws-search-btn {
  background: var(--ws-plus-orange);
  color: #fff;
  border: none;
  padding: 0 18px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s;
}
.ws-search-btn:hover {
  background: #e65100;
}

/* Header Right Actions (Phone, Track, Cart) */
.ws-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ws-action-item {
  color: #fff !important;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  line-height: 1.2;
}
.ws-action-item:hover {
  background: rgba(255,255,255,0.1);
}
.ws-action-item strong {
  font-size: 0.88rem;
  color: #fff;
}
.ws-cart-btn {
  background: #143f19;
  border: 1.5px solid #4caf50;
  color: #fff;
  padding: 7px 14px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 0.86rem;
  transition: all 0.15s;
}
.ws-cart-btn:hover {
  background: var(--ws-plus-orange);
  border-color: #fff;
}
.ws-cart-badge {
  background: var(--ws-plus-orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 99px;
}

/* ============================================================================
   3. DEPARTMENT MEGAMENU BAR (WebstaurantStore Sub-Header Navigation)
   ============================================================================ */
.ws-deptbar {
  background: #1e5227;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid #0e3012;
}
.ws-deptbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.ws-deptbar-inner::-webkit-scrollbar {
  display: none;
}
.ws-dept-link {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.81rem;
  font-weight: 700;
  padding: 9px 13px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s;
}
.ws-dept-link:hover, .ws-dept-link.active {
  background: #fff;
  color: var(--ws-green-dark) !important;
}

/* ============================================================================
   4. WEBSTAURANTSTORE PROMO BANNER & BREADCRUMB BAR
   ============================================================================ */
.ws-promo-strip {
  background: linear-gradient(90deg, #fff8e1 0%, #ffffff 50%, #e8f5e9 100%);
  border-bottom: 1px solid var(--ws-border);
  padding: 8px 16px;
  font-size: 0.81rem;
  color: #1b5e20;
}
.ws-promo-strip-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ws-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 16px;
}

.ws-breadcrumbs {
  font-size: 0.78rem;
  color: var(--ws-muted);
  margin-bottom: 10px;
}
.ws-breadcrumbs a {
  color: var(--ws-green);
  font-weight: 600;
}

/* Hero Banner (WebstaurantStore Category/Storefront Banner) */
.ws-hero-banner {
  background: linear-gradient(125deg, #1b5e20 0%, #286734 62%, #134618 100%);
  color: #fff;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.ws-hero-banner h1 {
  margin: 0 0 6px 0;
  font-size: 1.48rem;
  font-weight: 900;
  color: #fff;
}
.ws-hero-banner h1 span {
  color: #ffca28;
}
.ws-hero-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: #e8f5e9;
  max-width: 920px;
}
.ws-pricing-formula-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ws-formula-pill {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.77rem;
  font-weight: 700;
}
.ws-formula-pill b {
  color: #ffca28;
}

/* ============================================================================
   5. WEBSTAURANTSTORE "SHOP BY CATEGORY" 30-CATEGORY VISUAL ICON GRID
   ============================================================================ */
.ws-cat-section {
  background: #fff;
  border: 1px solid var(--ws-border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 18px;
}
.ws-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--ws-green);
  padding-bottom: 8px;
}
.ws-section-head h2 {
  margin: 0;
  font-size: 1.12rem;
  color: #1b5e20;
  font-weight: 800;
}
.ws-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 10px;
}
.ws-cat-tile {
  background: #fff;
  border: 1px solid #e0e6e0;
  border-radius: 5px;
  padding: 10px 8px;
  text-align: center;
  text-decoration: none !important;
  color: var(--ws-text) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
  cursor: pointer;
}
.ws-cat-tile:hover, .ws-cat-tile.active {
  border-color: var(--ws-green);
  box-shadow: 0 3px 10px rgba(40,103,52,0.15);
  transform: translateY(-2px);
}
.ws-cat-tile img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 6px;
}
.ws-cat-num {
  font-size: 0.66rem;
  background: var(--ws-green-light);
  color: var(--ws-green-dark);
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 3px;
}
.ws-cat-title {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1f2937;
}
.ws-cat-rate {
  font-size: 0.69rem;
  color: var(--ws-green);
  font-weight: 800;
  margin-top: 3px;
}

/* ============================================================================
   6. MAIN E-COMMERCE CATALOG (LEFT FACETED SIDEBAR + RIGHT PRODUCT GRID)
   ============================================================================ */
.ws-catalog-layout {
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: 18px;
  align-items: start;
}

/* Left Faceted Filter Sidebar (WebstaurantStore Style) */
.ws-sidebar {
  background: #fff;
  border: 1px solid var(--ws-border);
  border-radius: 6px;
  overflow: hidden;
  position: sticky;
  top: 74px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.ws-sidebar-header {
  background: var(--ws-green);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ws-filter-group {
  border-bottom: 1px solid #e5eae5;
  padding: 12px 14px;
}
.ws-filter-group h3 {
  margin: 0 0 8px 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.ws-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}
.ws-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 0.78rem;
  color: #333;
  cursor: pointer;
}
.ws-filter-item:hover {
  color: var(--ws-green);
  font-weight: 700;
}
.ws-filter-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 1;
}
.ws-filter-count {
  color: #777;
  font-size: 0.72rem;
}

/* Toolbar above Product Grid */
.ws-grid-toolbar {
  background: #fff;
  border: 1px solid var(--ws-border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.ws-toolbar-count {
  font-size: 0.86rem;
  font-weight: 800;
  color: #1f2937;
}
.ws-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ws-select {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.8rem;
  background: #fff;
  font-weight: 600;
}

/* ============================================================================
   7. WEBSTAURANTSTORE PRODUCT CARDS (30 FLAGSHIP RENTAL APPLIANCES)
   ============================================================================ */
.ws-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 14px;
}
.ws-product-grid.list-view {
  grid-template-columns: 1fr;
}

.ws-card {
  background: #fff;
  border: 1px solid var(--ws-border);
  border-radius: 6px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.15s, border-color 0.15s;
  position: relative;
}
.ws-card:hover {
  border-color: var(--ws-green);
  box-shadow: 0 4px 14px rgba(0,0,0,0.09);
}
.ws-product-grid.list-view .ws-card {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ws-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.ws-cat-badge {
  background: #eef4ee;
  color: var(--ws-green-dark);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
}

.ws-card-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 185px;
  padding: 8px;
  background: #fff;
  border-bottom: 1px solid #f0f2f0;
  margin-bottom: 8px;
}
.ws-card-img-wrap img {
  max-width: 100%;
  max-height: 168px;
  object-fit: contain;
  transition: transform 0.2s;
}
.ws-card:hover .ws-card-img-wrap img {
  transform: scale(1.04);
}

.ws-rating-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  margin-bottom: 4px;
}
.ws-stars {
  color: #f59e0b;
  letter-spacing: 0.5px;
  font-weight: 900;
}

.ws-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ws-blue-link);
  margin: 0 0 5px 0;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ws-card-title:hover {
  color: var(--ws-green-dark);
}

.ws-sku-line {
  font-size: 0.72rem;
  color: var(--ws-muted);
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.ws-sku-line code {
  font-weight: 800;
  color: #111;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 3px;
}

.ws-specs-mini {
  margin: 0 0 10px 0;
  padding-left: 15px;
  font-size: 0.74rem;
  color: #374151;
}
.ws-specs-mini li {
  margin-bottom: 2px;
}

/* WebstaurantStore Tiered Pricing Box (Daily = 1/4 Retail, Weekly = Retail + 25%, Monthly = 3x Weekly) */
.ws-price-box {
  background: #f8faf8;
  border: 1px solid #cde0ce;
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.ws-retail-ref {
  font-size: 0.7rem;
  color: #555;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #d0dcd0;
  padding-bottom: 4px;
  margin-bottom: 5px;
}
.ws-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  text-align: center;
}
.ws-tier-col {
  background: #fff;
  border: 1px solid #dfeae0;
  border-radius: 4px;
  padding: 4px 2px;
}
.ws-tier-col.featured {
  border-color: var(--ws-green);
  background: #eef8ef;
}
.ws-tier-lbl {
  font-size: 0.64rem;
  font-weight: 700;
  color: #444;
  display: block;
}
.ws-tier-val {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--ws-green-dark);
}
.ws-tier-sub {
  font-size: 0.59rem;
  color: #666;
  display: block;
}

/* Add to Cart Controls (Term Selector + Qty + Green Button) */
.ws-cart-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ws-control-row {
  display: flex;
  gap: 6px;
}
.ws-term-select {
  flex: 1;
  padding: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
}
.ws-qty-input {
  width: 54px;
  padding: 6px;
  text-align: center;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}
.ws-btn-cart {
  background: var(--ws-green);
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 0.83rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}
.ws-btn-cart:hover {
  background: var(--ws-green-dark);
}
.ws-btn-quote {
  background: #fff;
  color: var(--ws-green-dark) !important;
  border: 1.5px solid var(--ws-green);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}
.ws-btn-quote:hover {
  background: var(--ws-green-light);
}

/* ============================================================================
   8. SLIDE-OUT RENTAL CART DRAWER & EMBEDDED ORDER CHECKOUT PANEL
   ============================================================================ */
.ws-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: none;
}
.ws-drawer-backdrop.open {
  display: block;
}
.ws-cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #fff;
  z-index: 2001;
  box-shadow: -4px 0 20px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}
.ws-cart-drawer.open {
  right: 0;
}
.ws-drawer-head {
  background: var(--ws-green);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}
.ws-drawer-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

/* Embedded Checkout Box */
.ws-checkout-section {
  background: #fff;
  border: 2px solid var(--ws-green);
  border-radius: 6px;
  padding: 20px;
  margin-top: 22px;
}
.ws-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.ws-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 4px;
}
.ws-field input, .ws-field select, .ws-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ============================================================================
   9. SEO DIRECTORY LINKS, 50-STATE CLOUD & FOOTER
   ============================================================================ */
.ws-info-box {
  background: #fff;
  border: 1px solid var(--ws-border);
  border-radius: 6px;
  padding: 18px;
  margin-top: 18px;
}
.ws-links-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 7px;
}
.ws-links-cloud a {
  background: #f8faf8;
  border: 1px solid #e0e7e0;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1f2937;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-links-cloud a:hover {
  border-color: var(--ws-green);
  background: var(--ws-green-light);
  color: var(--ws-green-dark);
}

.ws-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.79rem;
}
.ws-spec-table th {
  background: var(--ws-green);
  color: #fff;
  text-align: left;
  padding: 8px 10px;
}
.ws-spec-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #e5e7eb;
}
.ws-spec-table tr:nth-child(even) {
  background: #f8faf8;
}

.ws-footer {
  background: var(--ws-green-darkest);
  color: #d1e7d3;
  margin-top: 32px;
  padding: 36px 16px 24px;
  font-size: 0.8rem;
}
.ws-footer-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.ws-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  margin: 0 0 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 6px;
}
.ws-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ws-footer li {
  margin-bottom: 5px;
}
.ws-footer a {
  color: #c8e6c9 !important;
}
.ws-footer a:hover {
  color: #ffca28 !important;
}

@media (max-width: 980px) {
  .ws-catalog-layout {
    grid-template-columns: 1fr;
  }
  .ws-sidebar {
    position: static;
    max-height: none;
  }
}
