/*
Theme Name: Portfolio Press Child
Template: portfolio-press
Version: 1.0.0
*/
/* 
  Child theme contains ONLY overrides and custom features.
  Parent CSS is loaded via functions.php.
*/

/* ================================
   Custom CSS (moved from Customizer)
   ================================ */

.category-post-inline {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
}

.category-post-inline h2.post-title {
  margin-bottom: 4px;
  font-size: 1.4em;
}

.post-date {
  font-size: 0.85em;
  color: #777;
  margin-bottom: 10px;
}

.inline-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}

.inline-thumbnail img {
  width: 120px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

.inline-text {
  flex: 1;
}

.post-excerpt {
  font-size: 1em;
  color: #333;
}

@media (max-width: 768px) {
  .inline-wrapper { flex-direction: column; }
  .inline-thumbnail img {
    width: 100%;
    max-width: 100%;
  }
}

/* ================================
   RescueClocks: Horizontal Product Shelf (HARDENED)
   ================================ */

.rc-horizontal-shelf{
  overflow: visible !important; /* prevents parent overflow:hidden from killing scroll */
}

.rc-horizontal-shelf ul.products{
  display:flex !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  gap:14px !important;
  padding:10px 0 14px !important;
  margin:0 !important;

  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  touch-action: pan-x;
  scrollbar-width: thin; /* Firefox */
}

.rc-horizontal-shelf ul.products::before,
.rc-horizontal-shelf ul.products::after{
  content:none !important;
}

.rc-horizontal-shelf ul.products li.product{
  float:none !important;
  clear:none !important;
  width:auto !important;
  margin:0 !important;

  flex:0 0 180px !important;   /* card width */
  scroll-snap-align:start;
}

.rc-horizontal-shelf ul.products li.product img{
  max-height:140px;
  object-fit:contain;
}

.rc-horizontal-shelf .add_to_cart_button{
  display:none !important; /* optional */
}


/* ================================
   RescueClocks: Sidebar polish (scoped)
   ================================ */

/* Sidebar container breathing room */
#sidebar{
  padding-top: 4px;
}

/* Make each widget feel like a tidy panel */
#sidebar .widget-container{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 14px 14px 10px;
  margin: 0 0 16px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.9);
}

/* Widget titles: calmer + less shouty */
#sidebar .widget-container h3{
  border-bottom: 1px solid rgba(0,0,0,.10);
  padding: 0 0 10px 0;
  margin: 0 0 12px 0;
  text-transform: none;
  letter-spacing: .2px;
  font-size: 16px;
  color: #222;
}

/* Sidebar lists: cleaner spacing */
#sidebar .widget-container ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

#sidebar .widget-container li{
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

#sidebar .widget-container li:last-child{
  border-bottom: 0;
  padding-bottom: 4px;
}

/* Links: readable, minimal underline on hover */
#sidebar .widget-container a{
  color: #106177;
  text-decoration: none;
}

#sidebar .widget-container a:hover{
  text-decoration: underline;
}

/* Sidebar text sizing */
#sidebar,
#sidebar p,
#sidebar li{
  font-size: 14px;
  line-height: 1.5;
}

/* Search widget: make input feel consistent */
#sidebar .widget_search input[type="search"],
#sidebar .widget_search input[type="text"]{
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: none;
  border-radius: 8px;
  padding: 10px 10px;
  margin: 0;
}

#sidebar .widget-container{ padding: 16px 16px 12px; }




/* style the images */
/* Force rounded product thumbnails (Woo + theme overrides) */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.rc-horizontal-shelf ul.products li.product a.woocommerce-LoopProduct-link{
  border-radius: 14px !important;
  overflow: hidden !important;
}




.rc-for-sale-note{
  margin: 0 0 1em;
  font-size: 0.95em;
  color: #444;
}
.rc-for-sale-note a{
  margin-left: .5em;
  font-weight: 600;
}


.products li.outofstock{
  opacity: .55;
}
.products li.outofstock .price{
  text-decoration: line-through;
}


.products li.outofstock::after{
  content: "SOLD";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: .75em;
  background: #eee;
  padding: .2em .5em;
  letter-spacing: .08em;
}




/* =========================================
   Footer widget list spacing & readability
   Match sidebar rhythm
   ========================================= */

#footer-widgets ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer-widgets li{
  margin: 0 0 .45em 0;      /* vertical spacing between links */
  line-height: 1.45;       /* relaxed, readable */
}

/* Slight extra spacing for product lists */
#footer-widgets .product_list_widget li{
  margin-bottom: .6em;
}

/* Links: subtle weight + hover clarity */
#footer-widgets a{
  text-decoration: none;
  font-weight: 500;
}

#footer-widgets a:hover{
  text-decoration: underline;
}


#footer-widgets .widget-title,
#footer-widgets h3{
  margin-bottom: .75em;
}


#footer-widgets{
  font-size: 0.95em;
}




#site-generator{
  display: none;
}



.rc-footer-credit{
  text-align: center;
  font-size: 0.9em;
  margin: 1.5em 0 0;
  color: #555;
}


.rc-footer-credit{
  text-align: center;
  font-size: 0.9em;
  color: #555;
  margin: 18px 0 0;
  padding-top: 14px;

  /*border-top: 1px solid rgba(0,0,0,.12);*/
}

.rc-footer-credit a{
  font-weight: 600;
  text-decoration: none;
}

.rc-footer-credit a:hover{
  text-decoration: underline;
}




/* Footer: restore bullets for Recent Articles */
#footer-widgets .wp-block-latest-posts{
  list-style: disc;
  padding-left: 1.1em;
}

#footer-widgets .wp-block-latest-posts li{
  margin-bottom: .45em;
  line-height: 1.45;
}

#footer-widgets .wp-block-latest-posts li::marker{
  color: #888;
}



/* Footer column 2: remove the extra gap between heading block (#block-12) and categories block (#block-13) */
#footer-widgets .footer-widget-2 #block-12{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#footer-widgets .footer-widget-2 #block-13{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Also ensure the list itself doesn't introduce top spacing */
#footer-widgets .footer-widget-2 .wc-block-product-categories-list{
  margin-top: 0 !important;
  padding-top: 0 !important;
}



