/*
Theme Name: Blocksy Child
Theme URI: https://amazinghandsnepal.com
Description: Custom 24S Minimalist Luxury Styling for Blocksy
Author: Amazing Hands Nepal
Template: blocksy
Version: 1.0.1
*/

/* --- 24S LUXURY DESIGN SYSTEM --- */
:root {
  --theme-font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --theme-heading-font-family: 'Playfair Display', Georgia, serif;
  --theme-palette-color-1: #111111; /* Primary Text & Dark Accents */
  --theme-palette-color-2: #FAF9F6; /* Luxury Off-White / Cream */
  --theme-palette-color-3: #E8E6E1; /* Soft Borders */
  --theme-palette-color-4: #767676; /* Secondary Muted Text */
}

/* Global Body & Background Setup */
body {
  background-color: #FAF9F6 !important;
  color: #111111 !important;
  font-family: var(--theme-font-family) !important;
  -webkit-font-smoothing: antialiased;
}

/* Luxury Serif Typography Overrides */
h1, h2, h3, h4, 
.site-title, 
.entry-title, 
.woocommerce-loop-product__title, 
.product_title {
  font-family: var(--theme-heading-font-family) !important;
  letter-spacing: 0.04em !important;
  font-weight: 500 !important;
}

/* 24S Sharp Capitalized Buttons */
.button, 
.ct-button, 
button.single_add_to_cart_button, 
.checkout-button, 
.woocommerce a.button {
  text-transform: uppercase !important;
  letter-spacing: 0.18em !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  border-radius: 0px !important;
  background-color: #111111 !important;
  color: #FFFFFF !important;
  border: 1px solid #111111 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 14px 28px !important;
}

.button:hover, 
button.single_add_to_cart_button:hover, 
.checkout-button:hover {
  background-color: #333333 !important;
  border-color: #333333 !important;
  color: #FFFFFF !important;
}

/* Product Card Grid (24S Portrait/Square Minimalist Look) */
.woocommerce ul.products li.product, 
.ct-products-grid article {
  border: none !important;
  background: transparent !important;
  text-align: center;
  margin-bottom: 2rem !important;
}

.woocommerce ul.products li.product img {
  border-radius: 0px !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.02);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.95rem !important;
  margin-top: 14px !important;
  margin-bottom: 6px !important;
  color: #111111 !important;
}

.woocommerce ul.products li.product .price {
  font-size: 0.85rem !important;
  color: #666666 !important;
  font-weight: 400 !important;
}

/* Total Package Weight Badge (Mini-Cart & Checkout) */
.cart-total-weight-box {
  background: #F4F3EE;
  border: 1px solid #E2E0D8;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #444444;
}

.cart-total-weight-box .weight-value {
  color: #111111;
  font-weight: 700;
}

.cart-weight-row th, 
.cart-weight-row td {
  border-top: 1px solid #E8E6E1 !important;
  padding: 12px 0 !important;
  font-size: 0.9rem;
}

/* ==========================================================================
   1. STICKY MOBILE ADD TO CART BAR
   ========================================================================== */
.sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #FAF9F6;
  border-top: 1px solid #E8E6E1;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.sticky-cart-bar.is-visible {
  transform: translateY(0);
}

.sticky-cart-info {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 60%;
}

.sticky-cart-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 0px;
}

.sticky-cart-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sticky-cart-title {
  font-family: var(--theme-heading-font-family, serif);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111111;
}

.sticky-cart-price {
  font-size: 0.78rem;
  color: #666666;
  margin-top: 2px;
}

.sticky-cart-action .sticky-btn {
  padding: 10px 18px !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.12em !important;
  white-space: nowrap;
}

/* Hide on Desktop (Only show on Mobile & Tablet) */
@media (min-width: 1025px) {
  .sticky-cart-bar {
    display: none !important;
  }
}


/* ==========================================================================
   2. 24S OFF-CANVAS FILTER DRAWER STYLING
   ========================================================================== */
/* Off-Canvas Panel Base Overrides */
.ct-offcanvas-filter, 
[data-id="offcanvas-filter"] {
  background-color: #FAF9F6 !important;
  padding: 30px 24px !important;
}

.ct-offcanvas-filter .ct-panel-title {
  font-family: var(--theme-heading-font-family, serif) !important;
  font-size: 1.25rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  border-bottom: 1px solid #E8E6E1;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

/* Widget Headings inside Filter Drawer */
.ct-offcanvas-filter .widget-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-weight: 600 !important;
  color: #111111 !important;
  margin-bottom: 15px !important;
}

/* Filter List Options */
.ct-offcanvas-filter ul {
  list-style: none !important;
  padding-left: 0 !important;
}

.ct-offcanvas-filter ul li {
  padding: 6px 0 !important;
  font-size: 0.85rem !important;
  color: #444444;
  border-bottom: 1px dotted #E2E0D8;
}

.ct-offcanvas-filter ul li a {
  color: #444444 !important;
  transition: color 0.2s ease;
}

.ct-offcanvas-filter ul li a:hover {
  color: #111111 !important;
}

/* Price Slider & Filter Buttons inside Drawer */
.ct-offcanvas-filter .price_slider_amount .button,
.ct-offcanvas-filter .widget_price_filter .button {
  width: 100%;
  margin-top: 15px;
}

/* Fix Navigation Menu Visibility */
.ct-header-menu .menu-item a,
header nav ul li a,
.site-header a {
  color: #111111 !important; /* Bold Obsidian Black */
  font-weight: 600 !important; /* Semi-bold for readability */
  letter-spacing: 0.12em !important;
  opacity: 1 !important;
}

/* Hover State */
.ct-header-menu .menu-item a:hover,
header nav ul li a:hover {
  color: #666666 !important;
}

/* Dropdown Menu Items */
.ct-header-menu .sub-menu a {
  color: #111111 !important;
  background-color: #FAF9F6 !important;
}

.woocommerce-loop-category__title,
.product-categories,
.ct-product-meta {
  color: #555555 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
}