/* ============================================================
   AMERICAN TEXTILE CO — HOMEPAGE REDESIGN
   Goal: more white space, larger/bolder type scale, stronger
   section headings, calmer "premium/curated" visual language,
   Best Sellers blended into the same design system as the rest
   of the homepage.

   NOTE: Some client asks (reordering sections on the page,
   renaming heading copy, adding subtitle/button text under
   category images) require admin/markup changes, not CSS.
   Those are called out in comments below and were also sent
   separately as written instructions.
   ============================================================ */

:root {
  --ink: #14202c;          /* premium near-black for headings/buttons */
  --ink-soft: #1e2f42;
  --navy: #19355d;         /* existing brand navy, kept for header/footer */
  --muted: #6b7280;        /* gray for subtitles / SKUs */
  --line: #d9dce1;         /* thin divider line color */
  --card-bg: #ffffff;
  --section-pad-y: 140px;
  --section-pad-y-tablet: 84px;
  --section-pad-y-mobile: 56px;
}

/* ============================================================
   HEADER / FOOTER (brand chrome — left as-is, not part of this pass)
   ============================================================ */
.scp-menu,
.sct-footer {
  background-color: #19355d !important;
}

.sct-top-bar {
  background-color: #da2328 !important;
  border-bottom: 1px #da2328 solid !important;
}

.scw-storelogo.h1 a {
  color: #19355d !important;
}

/* ============================================================
   SECTION HEADINGS
   Centered, uppercase, larger scale, flanked by thin divider
   lines on both sides (matches "OUR CATEGORIES" / "SHOP THE JOB"
   reference treatment). Works because these classes sit directly
   on the heading element with no other inline children.
   ============================================================ */
.shop-category-title,
.bestsellers-header,
.section-title {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto 60px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.shop-category-title::before,
.shop-category-title::after,
.bestsellers-header::before,
.bestsellers-header::after,
.section-title::before,
.section-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

/* Optional subheading/intro copy under a section title, e.g.
   "No matter your job, we have the range..." — add a <p class="section-subtitle">
   in the admin if you want this line; styled here so it's ready. */
.section-subtitle {
  max-width: 640px;
  margin: -32px auto 56px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================================
   SHOP BY CATEGORIES
   Rectangular lifestyle imagery (not circular), more air between
   image / title / description / button, dark neutral CTA button
   to match the reference instead of brand navy.
   ============================================================ */
.shop-category-section {
  padding: var(--section-pad-y) 40px;
  text-align: center;
  margin-bottom: 80px;
}

.category-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  align-items: start;
  gap: 56px;
}

.category-card {
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
}

/* Rectangular, softly rounded image (reference uses a square-ish
   rectangle, not a circle) */
.category-image {
  position: relative;
  overflow: hidden;
  background: #e8e8e8;
  aspect-ratio: 1 / 1;
  margin-bottom: 32px;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.08);
}

.category-name {
  display: none;
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

/* Optional supporting line under the category name, e.g.
   "Find your perfect outfit" — add <p class="category-subtitle">
   in the admin if you want this copy; styled and ready to go. */
.category-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* Optional "Shop Now" button under each category — add
   <a class="category-cta">Shop Now</a> in the admin markup;
   styled here to match the reference's dark pill button. */
.category-cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--ink);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.category-cta:hover {
  background: var(--ink-soft);
}

/* ============================================================
   SHOP BY JOB
   Larger, more impactful imagery with left-aligned bold title +
   small dark "Shop Now" pill sitting on the image (gradient scrim
   for legibility) instead of centered/underlined overlay text.
   ============================================================ */
.shop-job-section {
  width: 100%;
  padding: var(--section-pad-y) 40px;
  margin-bottom: 80px;
}

.shop-job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.shop-job-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  min-height: 420px;
  cursor: pointer;
}

.shop-job-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.shop-job-card:hover img {
  transform: scale(1.08);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 60%);
}

.overlay h2 {
  color: #fff;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  text-align: left;
  margin: 0;
}

/* Optional dark "Shop Now" pill button inside the overlay — add
   <a class="overlay-cta">Shop Now</a> next to the h2 in the admin
   if available; styled to match the reference. */
.overlay-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 20px;
  background: var(--ink);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
}

/* ============================================================
   RESPONSIVE — large breakpoint
   ============================================================ */
@media (max-width: 992px) {
  .shop-job-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .overlay h2 {
    font-size: 20px;
  }

  .category-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scp-p-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 768px) {
  .shop-category-section,
  .shop-job-section {
    padding: var(--section-pad-y-tablet) 20px;
  }

  .shop-category-title,
  .bestsellers-header,
  .section-title {
    font-size: 20px;
    gap: 18px;
    margin-bottom: 44px;
  }

  .category-wrapper {
    gap: 32px;
    grid-template-columns: repeat(2, 1fr);
  }

  .category-name {
    font-size: 18px;
  }
}


@media (max-width: 1024px) {
  .bestsellers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .scp-p-title {
    max-width: 250px;
  }

  .shop-job-grid {
    grid-template-columns: 1fr;
  }

  .shop-job-card {
    min-height: 320px;
  }
}

/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */
@media (max-width: 480px) {
  .shop-category-section,
  .shop-job-section {
    padding: var(--section-pad-y-mobile) 16px;
  }

  .category-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-content: center;
  }

  .shop-category-title,
  .bestsellers-header,
  .section-title {
    font-size: 17px;
    gap: 12px;
    margin-bottom: 32px;
  }

  .category-name {
    font-size: 16px;
  }

  .bestsellers-grid {
    grid-template-columns: 1fr;
  }
}

.scw-content a {
  color: white !important;
}

.sc_openwindow {
  margin-left: 5px;
}

.bestsellers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 36px;
}

.scp-products .scp-product {
  width: 100% !important;
}

/* ============================================================
   BEST SELLERS — flattened, blended into the same design system
   as Categories/Shop-by-Job: no colored border/top-accent, no
   permanent Quick View badge, generous internal spacing, and a
   simple image → title → SKU → price stack like the reference.
   Still scoped to #sce_products_add_60 so nothing else on the
   site is affected.
   ============================================================ */

#sce_products_add_60 {
  padding: var(--section-pad-y) 40px;
  margin-bottom: 80px;
}

/* Section headings (e.g. "Port Authority Polos") */
#sce_products_add_60 .scw-individualproducts > h4 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
}

/* Override carousel plugin's inline pixel widths/heights so every
   card fills its column consistently instead of leaving gaps or
   clipping images */
#sce_products_add_60 .scw-product-slider,
#sce_products_add_60 .scw-individual-products,
#sce_products_add_60 .scwp-slider,
#sce_products_add_60 .scp-products,
#sce_products_add_60 .owl-carousel {
  width: 100% !important;
}

#sce_products_add_60 .owl-wrapper-outer {
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
}

#sce_products_add_60 .owl-wrapper {
  width: 100% !important;
  transform: none !important;
  left: 0 !important;
}

#sce_products_add_60 .owl-item {
  width: 100% !important;
}

/* Card — flattened, no border/top-accent, subtle hover lift only */
#sce_products_add_60 .scp-product {
  border: none;
  border-radius: 6px;
  background: var(--card-bg);
  padding: 0;
  box-sizing: border-box;
  height: auto !important;
  overflow: visible !important;
  transition: transform 0.2s ease;
}

#sce_products_add_60 .scp-product:hover {
  transform: translateY(-6px);
  box-shadow: none;
  border-color: transparent;
}

/* Link wrapper */
#sce_products_add_60 .scp-p-link {
  display: block !important;
  text-decoration: none;
  color: inherit;
  height: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Product image */
#sce_products_add_60 .scp-p-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 18px;
  /* background: #f4f5f6; */
  height: 280px !important;
  border: 1px solid #80808036;
}

#sce_products_add_60 .scp-p-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

#sce_products_add_60 .scp-product:hover .scp-p-image img {
  transform: scale(1.04);
}

/* Product title — regular weight, calmer color, clamp to 2 lines */
#sce_products_add_60 .scp-p-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal !important;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink) !important;
  line-height: 1.4;
  min-height: 2.7em;
  margin-bottom: 4px;
  transition: color 0.2s ease;
  opacity: 1 !important;
  visibility: visible !important;
}

#sce_products_add_60 .scp-product:hover .scp-p-title {
  color: var(--ink-soft) !important;
}

/* SKU code */
#sce_products_add_60 .scp-p-code {
  display: block !important;
  font-size: 12px;
  color: var(--muted) !important;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Price */
#sce_products_add_60 .scp-p-price {
  display: block !important;
  margin-bottom: 8px;
  opacity: 1 !important;
  visibility: visible !important;
}

#sce_products_add_60 .scp-p-price-new {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Quick View — always visible as a simple button, sitting below
   the price and aligned consistently across cards (title is
   clamped to 2 lines above so this button lands in the same
   spot regardless of title length) */
#sce_products_add_60 .scp-p-quick {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff !important;
  background-color: #19355d;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

#sce_products_add_60 .scp-p-quick:hover,
#sce_products_add_60 .scp-p-quick:focus-visible {
  background-color: var(--ink-soft);
}

/* Remove any icon pseudo-element the site adds to the Quick View
   link — sized for the old hover badge, not needed for the text-
   link treatment above */
#sce_products_add_60 .scp-p-quick::before,
#sce_products_add_60 .scp-p-quick::after {
  content: none !important;
  display: none !important;
}

.scp-p-quick span,
.scp-p-code,
.scp-p-price,
.scp-p-hide-price-msg,
.scp-p-title {
  background-color: transparent !important;
}
.categories-section{
    padding:0px;
    background:#fff;
}

.section-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:25px;
    margin-bottom:20px;
}

.section-title span{
    width:160px;
    height:1px;
    background:#d9d9d9;
}

.section-title h2{
    margin:0;
    font-size:38px;
    font-weight:700;
    text-transform:uppercase;
    color:#333;
}

.categories-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:35px;
}

.category-card{
    text-align:center;
    background:#fff;
    transition:.35s ease;
    overflow:hidden;
}

.category-image img{
    width:100%;
    display:block;
}

.category-content{
    padding:0px 28px 22px;
    background:#fff;
    transition:.35s ease;
}

.category-content h3{
    margin-bottom:18px;
    font-size:20px;
    font-weight:700;
    color:#333;
    text-transform:uppercase;
}

.category-content p{
    color:#666;
    font-size:18px;
    line-height:1.7;
    margin-bottom:30px;
}

.shop-btn{
    display:inline-block;
    background:#19355d;
    color:#fff;
    padding:10px 16px;
    text-decoration:none;
    transition:.3s;
    font-size:14px;
}

.shop-btn:hover{
    background:#0B3534;
}

.category-card:hover{

    transform:translateY(-18px);

    box-shadow:
        0 18px 35px rgba(0,0,0,.18);

}

.category-card:hover .category-content{

    padding-top:0px;
    padding-bottom:38px;

}
@media(max-width:1200px){

.categories-grid{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.categories-grid{
    grid-template-columns:1fr;
}

.section-title h2{
    font-size:28px;
}

.section-title span{
    width:70px;
}

}
/* Card container */
.scp-product {
  position: relative;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-align: left;
}

.scp-product:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Hide the empty checkbox span at the top of the card */
.scp-product > span:first-child {
  display: none !important;
}

/* Link wrapper resets */
.scp-p-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Product image */
.scp-p-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 6px;
  background: #fafafa;
}

.scp-p-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.scp-product:hover .scp-p-image img {
  transform: scale(1.03);
}

/* Title */
.scp-p-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 6px;
}

/* Product code */
.scp-p-code {
  display: block;
  font-size: 12px;
  color: #999999;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

/* Price */
.scp-p-price {
  display: block;
}

.scp-p-price-new {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

/* Quick view link */
.scp-p-quick {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #555555;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.scp-p-quick:hover {
  color: #000000;
  border-bottom-color: #000000;
}

/* Optional: hide carousel controls for a single-image clean look */
.owl-controls,
.owl-pagination,
.owl-buttons {
  display: none !important;
}
    
/* FOOTER ADDRESS WIDGET 
    
.store-address,
.store-phone,
.store-email {
    margin: 0 0 12px;
    color: #fff;
}

.store-address em,
.store-phone em,
.store-email em {
    margin-right: 8px; 
}*/
.owl-wrapper-outer.autoHeight{
  height: 228px !important;
}
