/*
Theme Name: Antek-Child
Theme URI: https://parkofideas.com/antek/
Text Domain: antek-child
Description: Construction And Heavy Equipment Rentals Wordpress Theme
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Version: 1.0
Template: antek
Author: ideapark
Author URI: https://ideapark.com/antek-documentation/
Tags: right-sidebar, custom-background, custom-colors, featured-images, full-width-template, post-formats, theme-options, translation-ready
*/


/* =Theme customization starts here
-------------------------------------------------------------- */


/* ---------------------------------------------------------------
   Fix for /automation-category/ archive: .xlog-thumb-img was
   rendering at natural image size with no CSS constraints,
   misaligning the archive layout.
---------------------------------------------------------------- */
.xlog-product-thumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  max-width:100%;
  margin:12px 0;
}
.xlog-product-thumbs .xlog-thumb-img{
  width:120px;
  height:120px;
  object-fit:cover;
  border-radius:4px;
  display:block;
}
@media (max-width: 600px){
  .xlog-product-thumbs .xlog-thumb-img{ width:90px; height:90px; }
}


/* ===============================================================
   /automation-category/ archive card polish
   Scope: only the horizontal catalog list (.c-catalog__list--hor)
   Goal: modern, professional card layout with clean typography,
         subtle shadows, hover state, and responsive stacking.
=============================================================== */
.c-catalog__list--hor .c-vehicle--wide{
  background:#fff;
  border:1px solid #e6e9ee;
  border-radius:10px;
  box-shadow:0 1px 2px rgba(6,40,61,.04);
  padding:24px;
  margin-bottom:24px;
  align-items:flex-start;
}

/* Main thumbnail wrap */
.c-catalog__list--hor .c-vehicle__thumb-wrap{
  background:transparent !important;
  border-radius:8px;
  overflow:hidden;
  margin-right:28px;
}
.c-catalog__list--hor .c-vehicle__thumb-buttons{ margin-top:12px; }

/* Title */
.c-catalog__list--hor .c-vehicle__title{ margin-bottom:6px; }
.c-catalog__list--hor .c-vehicle__title-inner{
  font-size:22px;
  font-weight:700;
  line-height:1.3;
  color:#06283d;
}

/* "Company:" eyebrow pill */
.c-catalog__list--hor .xlog-company-name{
  display:inline-block;
  font-size:12px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#5b6b7a;
  background:#f1f4f8;
  padding:4px 10px;
  border-radius:999px;
  margin:8px 0 0;
}
.c-catalog__list--hor .xlog-company-name strong{
  color:#06283d;
  margin-right:4px;
  font-weight:700;
}

/* Excerpt */
.c-catalog__list--hor .c-vehicle__excerpt{
  margin:14px 0 0;
  padding:0;
  color:#3d4f5e;
  line-height:1.6;
  font-size:15px;
}
.c-catalog__list--hor .c-vehicle__excerpt p{ margin:0; }

/* Secondary thumbnails — label + divider */
.c-catalog__list--hor .xlog-product-thumbs{
  margin:18px 0 0;
  padding-top:14px;
  border-top:1px solid #eef0f3;
  align-items:center;
}
.c-catalog__list--hor .xlog-product-thumbs::before{
  content:"More images";
  display:block;
  width:100%;
  flex-basis:100%;
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#7b8794;
  margin-bottom:8px;
}
.c-catalog__list--hor .xlog-product-thumbs .xlog-thumb-img{
  width:88px;
  height:88px;
  border:1px solid #eef0f3;
  border-radius:4px;
}

/* Request a Quote button */
.c-catalog__list--hor .c-vehicle__booking-wrap{
  align-self:center;
  flex:0 0 auto;
  margin-bottom:0;
}
.c-catalog__list--hor .c-vehicle__button{
  padding:14px 22px !important;
  font-weight:600;
  letter-spacing:.02em;
  white-space:nowrap;
}

/* Reset the catalog list bottom margin (was -45px) */
.c-catalog__list--hor{ margin-bottom:0; }

/* Responsive: stack on small screens */
@media (max-width: 900px){
  .c-catalog__list--hor .c-vehicle--wide{
    flex-direction:column;
    padding:18px;
  }
  .c-catalog__list--hor .c-vehicle__thumb-wrap{
    margin-right:0;
    margin-bottom:16px;
    width:100%;
    max-width:none;
  }
  .c-catalog__list--hor .c-vehicle__booking-wrap{
    align-self:stretch;
    margin-top:16px;
  }
  .c-catalog__list--hor .c-vehicle__button{
    display:block;
    text-align:center;
    width:100%;
  }
  .c-catalog__list--hor .c-vehicle__title-inner{ font-size:20px; }
}


/* ===============================================================
   Fix 2: button width + category footer block alignment
=============================================================== */
/* Let the Request a Quote column size to its natural width so the
   button text never gets clipped. */
.c-catalog__list--hor .c-vehicle__booking-wrap{
  min-width: max-content;
}
.c-catalog__list--hor .c-vehicle__button{
  display:inline-block;
  width:auto;
  min-width:170px;
  text-align:center;
}

/* Category description block below the catalog list — was rendering
   full viewport width with no constraints. Constrain to the same
   content container as the catalog and give it proper typography. */
.xlog-cat-content-block{
  max-width:1380px;
  margin:60px auto 80px;
  padding:0 20px;
  font-size:16px;
  line-height:1.7;
  color:#3d4f5e;
  box-sizing:border-box;
}
.xlog-cat-content-block h2{
  font-size:28px;
  font-weight:700;
  color:#06283d;
  line-height:1.3;
  margin:0 0 16px;
}
.xlog-cat-content-block h3{
  font-size:20px;
  font-weight:700;
  color:#06283d;
  line-height:1.35;
  margin:32px 0 12px;
}
.xlog-cat-content-block p{ margin:0 0 14px; }
.xlog-cat-content-block strong{ color:#06283d; }
.xlog-cat-content-block a{
  color:#f14624;
  text-decoration:none;
  transition:color .15s ease;
}
.xlog-cat-content-block a:hover{
  color:#06283d;
  text-decoration:underline;
}
.xlog-cat-content-block ul,
.xlog-cat-content-block ol{
  margin:0 0 14px 20px;
  padding:0;
}
@media (max-width: 1024px){
  .xlog-cat-content-block{ padding:0 24px; margin:40px auto 60px; }
  .xlog-cat-content-block h2{ font-size:24px; }
  .xlog-cat-content-block h3{ font-size:18px; }
}

/* Prominent View Details button (secondary CTA) */
.c-catalog__list--hor .c-vehicle__thumb-buttons{
  margin-top:14px;
  width:100%;
}
.c-catalog__list--hor .c-vehicle__thumb-buttons .c-vehicle__download,
.c-catalog__list--hor a.c-vehicle__download{
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100% !important;
  text-align:center;
  font-size:15px !important;
  font-weight:700 !important;
  letter-spacing:.03em;
  color:#fff !important;
  background:#06283d !important;
  border:1px solid #06283d !important;
  border-radius:6px !important;
  padding:13px 18px !important;
  text-decoration:none !important;
  text-transform:uppercase !important;
  line-height:1.2 !important;
  height:auto !important;
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  box-shadow:0 1px 2px rgba(6,40,61,.08);
}
.c-catalog__list--hor .c-vehicle__download::after{
  content:"\2192"; /* → */
  font-size:18px;
  font-weight:400;
  line-height:1;
  transition:transform .15s ease;
}
.c-catalog__list--hor .c-vehicle__thumb-buttons .c-vehicle__download:hover,
.c-catalog__list--hor a.c-vehicle__download:hover{
  background:#f14624 !important;
  border-color:#f14624 !important;
  color:#fff !important;
}
.c-catalog__list--hor .c-vehicle__download:hover::after{
  transform:translateX(3px);
}


/* ===============================================================
   Kill the grey gradient overlay on product thumbnails
=============================================================== */
.c-catalog__list--hor .c-vehicle__thumb-inner--with-gradient::after,
.c-catalog__list--hor .c-vehicle__thumb-inner::after,
.c-catalog__list--hor .c-vehicle__thumb-inner::before{
  display:none !important;
  background:none !important;
  content:none !important;
}

/* ===============================================================
   Mobile responsive — robust stacking + sizing
=============================================================== */
/* Tablet & below: card stacks vertically */
@media (max-width: 1024px){
  .c-catalog__list--hor .c-vehicle--wide{
    flex-direction:column;
    padding:20px;
  }
  .c-catalog__list--hor .c-vehicle__thumb-wrap{
    margin-right:0 !important;
    margin-bottom:18px;
    width:100% !important;
    max-width:100% !important;
  }
  .c-catalog__list--hor .c-vehicle__thumb-inner{
    width:100% !important;
    padding-bottom:75% !important;
  }
  .c-catalog__list--hor .c-vehicle__content-wrap{
    width:100% !important;
    margin-bottom:0 !important;
  }
  .c-catalog__list--hor .c-vehicle__booking-wrap{
    align-self:stretch !important;
    margin-top:18px;
    width:100% !important;
  }
  .c-catalog__list--hor .c-vehicle__button{
    display:block !important;
    text-align:center;
    width:100% !important;
    min-width:0 !important;
  }
}

/* Phone */
@media (max-width: 600px){
  .c-catalog__list--hor .c-vehicle--wide{
    padding:16px;
    border-radius:8px;
  }
  .c-catalog__list--hor .c-vehicle__title-inner{
    font-size:18px !important;
    line-height:1.3;
  }
  .c-catalog__list--hor .xlog-company-name{
    font-size:11px;
    padding:3px 8px;
  }
  .c-catalog__list--hor .c-vehicle__excerpt{
    font-size:14px;
    line-height:1.55;
  }
  .c-catalog__list--hor .c-vehicle__thumb-buttons .c-vehicle__download,
  .c-catalog__list--hor a.c-vehicle__download{
    font-size:14px !important;
    padding:12px 16px !important;
  }
  .c-catalog__list--hor .c-vehicle__button{
    padding:14px 18px !important;
    font-size:14px !important;
  }
  .c-catalog__list--hor .xlog-product-thumbs .xlog-thumb-img{
    width:72px;
    height:72px;
  }
}

/* Catalog wrapper — collapse sidebar at narrow widths */
@media (max-width: 1024px){
  .c-catalog,
  .c-catalog--hor{
    flex-direction:column !important;
  }
  .c-catalog .c-sidebar,
  .c-catalog aside,
  .js-sticky-sidebar-nearby{
    width:100% !important;
    margin-bottom:24px;
  }
  .c-catalog__list--hor{
    width:100% !important;
  }
}

/* Catalog footer block on phone */
@media (max-width: 600px){
  .xlog-cat-content-block{
    padding:0 16px !important;
    margin:32px auto 48px !important;
    font-size:15px !important;
  }
  .xlog-cat-content-block h2{ font-size:22px !important; }
  .xlog-cat-content-block h3{ font-size:17px !important; }
}
