﻿/*
 Theme Name:   Afif Itani & Sons - Astra Child
 Theme URI:    https://afifitani.com
 Description:  Custom child theme for Afif Itani & Sons â€” Home Appliances & Electronics Lebanon.
 Author:       Afif Itani & Sons
 Author URI:   https://afifitani.com
 Template:     astra
 Version:      3.0.0
 License:      GNU General Public License v2
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child-afif
*/

/* ===========================================
   DESIGN SYSTEM v3.0 â€” PREMIUM APPLIANCE SHOWROOM
   ===========================================
   Strategy: Preserve ALL existing layout/responsive rules.
   Only enhance VISUAL properties: colors, backgrounds,
   borders, shadows, border-radius, transitions, gradients.
   =========================================== */

:root {
  --afif-primary: #0f172a;
  --afif-cta: #2C5AA0;
  --afif-cta-hover: #1B4D8E;
  --afif-cta-light: #3A6DB5;
  --afif-accent: #ef4444;
  --afif-success: #10b981;
  --afif-text: #0f172a;
  --afif-text-muted: #64748b;
  --afif-bg: #f8fafc;
  --afif-bg-card: #ffffff;
  --afif-border: #e2e8f0;
  --afif-border-light: #f1f5f9;
  --afif-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 50px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-cta: 0 4px 20px rgba(44,90,160,0.35);
  --shadow-card-hover: 0 16px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(44,90,160,0.08);
}

/* ===========================================
   1. GLOBAL FOUNDATIONS
   =========================================== */
html { scroll-behavior: smooth; }

body {
  background-color: var(--afif-bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography â€” Inter everywhere */
body, p, li, td, th, span, div,
.entry-content p, .entry-content li {
  font-family: var(--afif-font) !important;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .site-title,
.woocommerce-loop-product__title,
.wc-block-grid__product-title {
  font-family: var(--afif-font) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--afif-text);
}

/* Text selection branding */
::selection { background-color: var(--afif-cta); color: #fff; }
::-moz-selection { background-color: var(--afif-cta); color: #fff; }

/* Overflow control */
html, body { overflow-x: hidden; }

/* ===========================================
   2. GRADIENT ACCENT LINE â€” DISABLED
   Was covering the header/logo area. Removed.
   =========================================== */

/* ===========================================
   3. STORE NOTICE BAR
   =========================================== */
.woocommerce-store-notice, p.demo_store {
  background: linear-gradient(135deg, #0f172a, #1B4D8E) !important;
  color: #fff !important;
  font-family: var(--afif-font) !important;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 0em;
  line-height: 0em;
}

a.woocommerce-store-notice__dismiss-link { display: none; }

/* ===========================================
   4. HEADER & NAVIGATION
   =========================================== */

/* Announcement bar â€” premium gradient */
.ast-above-header-bar,
.ast-header-above-section,
.ast-above-header-wrap .ast-above-header {
  background: linear-gradient(135deg, #0f172a, #1B4D8E) !important;
  color: #fff !important;
  font-family: var(--afif-font) !important;
  font-size: 0.85rem !important;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Clean header alignment */
.ast-header-custom-item .ast-masthead-custom-menu-items { gap: 8px; }
.site-header-primary-section-left,
.site-header-primary-section-right { align-items: center; }

/* Nav links â€” animated underline */
.main-navigation a,
.ast-header-sections-navigation a,
.main-header-menu > .menu-item > a {
  font-family: var(--afif-font) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
}

.main-header-menu > .menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

.main-header-menu > .menu-item > a:hover::after,
.main-header-menu > .menu-item.current-menu-item > a::after {
  width: 80%;
  left: 10%;
}

.main-header-menu > .menu-item > a:hover {
  color: var(--afif-cta) !important;
}

/* Dropdown menus â€” elevated */
.main-header-menu .sub-menu,
.astra-megamenu {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--afif-border-light) !important;
  overflow: hidden;
}

.main-header-menu .sub-menu li a {
  transition: background-color 0.15s, color 0.15s !important;
}

.main-header-menu .sub-menu li a:hover {
  background-color: #f1f5f9 !important;
  color: var(--afif-cta) !important;
}

/* Search bar â€” rounded with glow */
.dgwt-wcas-search-wrapp input[type="search"],
.dgwt-wcas-search-input,
form.search-form input[type="search"] {
  border-radius: var(--radius-pill) !important;
  border: 2px solid var(--afif-border) !important;
  padding: 10px 20px !important;
  font-family: var(--afif-font) !important;
  transition: border-color 0.3s, box-shadow 0.3s !important;
  background: #fff !important;
}

.dgwt-wcas-search-wrapp input[type="search"]:focus,
.dgwt-wcas-search-input:focus {
  border-color: var(--afif-cta) !important;
  box-shadow: 0 0 0 4px rgba(44,90,160,0.08) !important;
  outline: none !important;
}

/* Cart icon â€” subtle highlight */
.ast-cart-menu-wrap .count,
.astra-cart-drawer-title {
  font-family: var(--afif-font) !important;
}

/* Mini-cart â€” elevated dropdown */
.ast-site-header-cart .widget_shopping_cart,
.astra-cart-drawer {
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
  border-radius: var(--radius-md) !important;
}

/* ===========================================
   5. PRODUCT CARDS â€” Clean Elevated Cards
   NO opacity changes. Products always visible.
   =========================================== */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--afif-bg-card) !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--afif-border-light) !important;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease,
              border-color 0.3s ease !important;
}

/* Dramatic hover â€” spring lift + glow border */
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-card-hover) !important;
  border-color: rgba(44,90,160,0.15) !important;
}

/* Product image â€” smooth zoom on hover */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  transition: transform 0.5s ease !important;
  border-radius: var(--radius-sm) !important;
}

.woocommerce ul.products li.product:hover a img,
.woocommerce-page ul.products li.product:hover a img {
  transform: scale(1.05) !important;
}

/* Product titles â€” keep uppercase per existing style, add hover */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  text-transform: uppercase !important;
  font-family: var(--afif-font) !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  color: var(--afif-text) !important;
  transition: color 0.2s ease;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  color: var(--afif-cta) !important;
}

/* Prices â€” preserved red per original site branding */
.woocommerce ul.products li.product .price {
  font-family: var(--afif-font) !important;
  font-weight: 700 !important;
  color: red !important;
}

.woocommerce ul.products li.product .price del {
  opacity: 0.45;
  font-weight: 400 !important;
}

.woocommerce ul.products li.product .price ins {
  color: red !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* ===========================================
   6. ADD TO CART BUTTONS â€” Gradient Pills
   =========================================== */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .ajax_add_to_cart,
.woocommerce ul.products li.product .product_type_simple {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  font-family: var(--afif-font) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-pill) !important;
  border: none !important;
  text-transform: none !important;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: linear-gradient(135deg, #1B4D8E, #2C5AA0) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-cta) !important;
}

/* "Select options" / "Read more" buttons â€” outlined style */
.woocommerce ul.products li.product .product_type_variable,
.woocommerce ul.products li.product .product_type_grouped {
  background: transparent !important;
  color: var(--afif-cta) !important;
  border: 2px solid var(--afif-cta) !important;
}

.woocommerce ul.products li.product .product_type_variable:hover,
.woocommerce ul.products li.product .product_type_grouped:hover {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
  color: #fff !important;
}

/* ===========================================
   7. SALE BADGES â€” Gradient Pill + Pulse
   =========================================== */
@keyframes afif-pulse-badge {
  0%, 100% { box-shadow: 0 2px 12px rgba(239,68,68,0.3); }
  50% { box-shadow: 0 4px 20px rgba(239,68,68,0.5); }
}

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-family: var(--afif-font) !important;
  border-radius: var(--radius-pill) !important;
  padding: 5px 14px !important;
  font-size: 0.75rem !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.5 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: afif-pulse-badge 2s ease-in-out infinite;
}

/* Block grid onsale â€” override hidden */
.wc-block-grid__product-onsale {
  visibility: visible !important;
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--afif-font) !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
}

/* ===========================================
   8. WC BLOCK GRID (Homepage Clearance/Featured)
   =========================================== */
.wc-block-grid .wc-block-grid__products .wc-block-grid__product {
  background: var(--afif-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--afif-border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease !important;
  overflow: hidden;
}

.wc-block-grid .wc-block-grid__products .wc-block-grid__product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.wc-block-grid .wc-block-grid__products .wc-block-grid__product a img {
  transition: transform 0.5s ease;
  border-radius: var(--radius-sm);
}

.wc-block-grid .wc-block-grid__products .wc-block-grid__product:hover a img {
  transform: scale(1.04);
}

.wc-block-grid .wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title {
  font-family: var(--afif-font) !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  color: var(--afif-text) !important;
  transition: color 0.2s;
}

.wc-block-grid .wc-block-grid__products .wc-block-grid__product:hover .wc-block-grid__product-title {
  color: var(--afif-cta) !important;
}

.wc-block-grid .wc-block-grid__products .wc-block-grid__product .price {
  color: red !important;
  font-family: var(--afif-font) !important;
  font-weight: 700 !important;
}

/* Block grid buttons */
.wc-block-grid .wc-block-grid__products .wc-block-grid__product .wp-block-button__link {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--afif-font) !important;
  font-weight: 600 !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.wc-block-grid .wc-block-grid__products .wc-block-grid__product .wp-block-button__link:hover {
  background: linear-gradient(135deg, #1B4D8E, #2C5AA0) !important;
  box-shadow: var(--shadow-cta) !important;
  transform: translateY(-2px);
}

/* ===========================================
   9. SECTION HEADINGS & DIVIDERS
   =========================================== */
.elementor-heading-title,
.wp-block-heading,
h2.wc-block-grid__product-title,
.woocommerce .products > h2 {
  font-size: 1.75rem !important;
  color: var(--afif-text) !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.03em;
}

.page-title { color: #0073C6 !important; }

/* Page/shop title â€” gradient underline */
.woocommerce-products-header__title {
  display: inline-block;
}
.woocommerce-products-header__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5);
  margin-top: 8px;
  border-radius: 3px;
}

/* "VIEW ALL" links */
a[href*="view-all"],
.more-link {
  font-weight: 600 !important;
  color: var(--afif-cta) !important;
  text-decoration: none !important;
  transition: all 0.3s !important;
}

a[href*="view-all"]:hover,
.more-link:hover {
  color: var(--afif-cta-hover) !important;
  letter-spacing: 0.04em;
}

/* Section spacing */
.site-content section,
.site-content .wp-block-group,
.ast-separate-container .ast-article-inner {
  margin-bottom: 48px;
}

/* ===========================================
   10. BREADCRUMBS
   =========================================== */
.woocommerce-breadcrumb,
.ast-breadcrumbs-wrapper {
  font-family: var(--afif-font) !important;
  color: var(--afif-text-muted) !important;
}

.woocommerce-breadcrumb a {
  color: var(--afif-cta) !important;
  text-decoration: none;
  transition: color 0.15s;
}

.woocommerce-breadcrumb a:hover {
  color: var(--afif-cta-hover) !important;
}

/* ===========================================
   11. SINGLE PRODUCT PAGE
   =========================================== */
.product_title {
  text-transform: uppercase !important;
  font-family: var(--afif-font) !important;
  font-weight: 800 !important;
}

/* Price on single page â€” preserved red */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product p.price ins {
  font-size: 25px !important;
  color: red !important;
  font-family: var(--afif-font) !important;
  font-weight: 800 !important;
}

.woocommerce div.product p.price del {
  font-size: 22px !important;
  color: black !important;
  font-weight: 400 !important;
  opacity: 0.5;
}

/* Add to Cart â€” gradient pill with glow */
.single-product .single_add_to_cart_button {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
  color: #fff !important;
  font-family: var(--afif-font) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  padding: 14px 32px !important;
  border-radius: var(--radius-pill) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
  border: none !important;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease !important;
  box-shadow: var(--shadow-cta);
  position: relative;
  overflow: hidden;
}

/* Button shine effect */
@keyframes afif-shine {
  0% { left: -100%; }
  100% { left: 200%; }
}

.single-product .single_add_to_cart_button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  pointer-events: none;
}

.single-product .single_add_to_cart_button:hover::after {
  animation: afif-shine 0.6s ease-out;
}

.single-product .single_add_to_cart_button:hover {
  background: linear-gradient(135deg, #1B4D8E, #2C5AA0) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(44,90,160,0.5);
}

.single-product .single_add_to_cart_button:active {
  transform: translateY(0);
}

/* Quantity input */
.single-product .quantity .qty {
  font-family: var(--afif-font) !important;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid var(--afif-border) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.single-product .quantity .qty:focus {
  outline: none;
  border-color: var(--afif-cta) !important;
  box-shadow: 0 0 0 4px rgba(44,90,160,0.08);
}

/* Product gallery â€” premium frame */
.single-product .woocommerce-product-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.single-product .woocommerce-product-gallery img {
  border-radius: var(--radius-md);
  transition: transform 0.5s ease;
}

.single-product .woocommerce-product-gallery img:hover {
  transform: scale(1.03);
}

/* Gallery thumbnails */
.woocommerce-product-gallery .flex-control-thumbs li img {
  border-radius: var(--radius-sm) !important;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}

.woocommerce-product-gallery .flex-control-thumbs li img:hover,
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
  border-color: var(--afif-cta);
}

/* Disable zoom overlay per existing setting */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .zoomImg {
  display: none !important;
}

/* Product meta */
.single-product .product_meta {
  font-size: 0.82rem;
  color: var(--afif-text-muted);
  font-family: var(--afif-font) !important;
}

.single-product .product_meta a {
  color: var(--afif-cta);
  text-decoration: none;
  transition: color 0.15s;
}

.single-product .product_meta a:hover {
  color: var(--afif-cta-hover);
}

/* Lightbox caption â€” hidden per existing */
.woocommerce .pswp__caption__center,
.woocommerce-page .pswp__caption__center { display: none; }

/* ===========================================
   12. PRODUCT TABS â€” Modern Pill Style
   =========================================== */
.woocommerce-tabs ul.tabs {
  border-bottom: none !important;
  display: flex !important;
  gap: 4px;
  background: #f1f5f9 !important;
  border-radius: var(--radius-pill) !important;
  padding: 4px !important;
  margin: 40px 0 20px !important;
}

.woocommerce-tabs ul.tabs li {
  border: none !important;
  background: none !important;
  border-radius: var(--radius-pill) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
  font-family: var(--afif-font) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  color: var(--afif-text-muted) !important;
  padding: 10px 16px !important;
  border-radius: var(--radius-pill) !important;
  display: block;
  transition: all 0.3s;
  text-transform: none !important;
  border-bottom: none !important;
}

.woocommerce-tabs ul.tabs li.active a {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}

.woocommerce-tabs ul.tabs li a:hover {
  color: var(--afif-cta) !important;
  background: rgba(44,90,160,0.06) !important;
}

.woocommerce-tabs ul.tabs li.active a:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
}

.woocommerce-tabs .panel {
  font-family: var(--afif-font) !important;
  font-size: 0.92rem;
  line-height: 1.8;
  background: var(--afif-bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--afif-border-light);
}

/* Short description â€” checkmarks */
.single-product .woocommerce-product-details__short-description ul {
  list-style: none;
  padding: 0;
}

.single-product .woocommerce-product-details__short-description ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 6px;
}

.single-product .woocommerce-product-details__short-description ul li::before {
  content: 'âœ“';
  position: absolute;
  left: 0;
  color: var(--afif-success);
  font-weight: 700;
}

/* Specs table */
.woocommerce table.shop_attributes {
  border: none !important;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.woocommerce table.shop_attributes th {
  font-weight: 600;
  background: var(--afif-bg) !important;
  border-bottom: 1px solid var(--afif-border-light) !important;
  font-family: var(--afif-font) !important;
}

.woocommerce table.shop_attributes td {
  border-bottom: 1px solid var(--afif-border-light) !important;
  background: none !important;
  font-family: var(--afif-font) !important;
}

/* Related products â€” hidden per existing setting */
.related.products { visibility: hidden; }

/* ===========================================
   13. PAGINATION â€” Pill Style
   =========================================== */
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
  border-radius: var(--radius-pill) !important;
  padding: 8px 16px !important;
  font-weight: 600;
  font-family: var(--afif-font) !important;
  transition: all 0.2s;
  border: 1.5px solid var(--afif-border) !important;
}

.woocommerce-pagination .page-numbers li span.current {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
  color: #fff !important;
  border-color: var(--afif-cta) !important;
}

.woocommerce-pagination .page-numbers li a:hover {
  background: var(--afif-bg) !important;
  border-color: var(--afif-cta) !important;
  color: var(--afif-cta) !important;
}

/* ===========================================
   14. SIDEBAR / FILTERS
   =========================================== */
.widget-area .widget {
  background: var(--afif-bg-card);
  border-radius: var(--radius-lg) !important;
  padding: 20px !important;
  border: 1px solid var(--afif-border-light) !important;
  margin-bottom: 20px !important;
  box-shadow: var(--shadow-sm);
}

.widget-area .widget-title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--afif-text) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--afif-border);
  margin-bottom: 12px !important;
  font-family: var(--afif-font) !important;
}

/* Category filter links */
.widget_product_categories ul li a,
.woocommerce-widget-layered-nav-list li a {
  font-family: var(--afif-font) !important;
  transition: color 0.15s, padding-left 0.2s;
}

.widget_product_categories ul li a:hover,
.woocommerce-widget-layered-nav-list li a:hover {
  color: var(--afif-cta) !important;
  padding-left: 4px;
}

/* Price filter slider */
.widget_price_filter .price_slider {
  background: var(--afif-border) !important;
}

.widget_price_filter .ui-slider-range {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
}

.widget_price_filter .ui-slider-handle {
  background: var(--afif-cta) !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ===========================================
   15. CART PAGE
   =========================================== */
.woocommerce table.shop_table {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  border: 1px solid var(--afif-border-light) !important;
  font-family: var(--afif-font) !important;
}

.woocommerce table.shop_table th {
  background: var(--afif-bg) !important;
  font-family: var(--afif-font) !important;
  font-weight: 700;
}

.woocommerce .cart-collaterals .cart_totals {
  background: var(--afif-bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--afif-border-light);
  box-shadow: var(--shadow-sm);
}

/* Proceed to checkout button */
.woocommerce .checkout-button,
.wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--afif-font) !important;
  font-weight: 700 !important;
  border: none !important;
  transition: all 0.3s ease !important;
  box-shadow: var(--shadow-cta);
}

.woocommerce .checkout-button:hover {
  background: linear-gradient(135deg, #1B4D8E, #2C5AA0) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(44,90,160,0.5);
}

/* Hide per existing */
a.shipping-calculator-button { display: none; }
p.woocommerce-shipping-destination { display: none; }

/* ===========================================
   16. CHECKOUT PAGE
   =========================================== */
.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout .woocommerce-input-wrapper textarea {
  border-radius: var(--radius-md) !important;
  border: 2px solid var(--afif-border) !important;
  font-family: var(--afif-font) !important;
  padding: 10px 14px !important;
  transition: border-color 0.2s !important;
}

.woocommerce-checkout .woocommerce-input-wrapper input:focus,
.woocommerce-checkout .woocommerce-input-wrapper select:focus {
  border-color: var(--afif-cta) !important;
  box-shadow: 0 0 0 4px rgba(44,90,160,0.08) !important;
  outline: none !important;
}

#place_order {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--afif-font) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  padding: 14px 32px !important;
  border: none !important;
  box-shadow: var(--shadow-cta);
  transition: all 0.3s ease !important;
}

#place_order:hover {
  background: linear-gradient(135deg, #1B4D8E, #2C5AA0) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(44,90,160,0.5);
}

/* ===========================================
   17. FOOTER â€” Clean Dark Premium
   Key: No white boxes. Transparent widget backgrounds.
   =========================================== */
.site-footer {
  background: #0f172a !important;
  color: #94a3b8 !important;
  position: relative;
  font-family: var(--afif-font) !important;
  padding-top: 0 !important;
}

/* Gradient line at top of footer */
.site-footer::before {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2C5AA0, #3A6DB5, #06b6d4);
}

/* CRITICAL: Remove white boxes from footer widgets */
.site-footer .widget,
.site-footer .ast-widget-area,
.site-footer section,
.site-footer aside,
.site-footer .footer-widget-area,
.site-footer .ast-footer-widget-area,
.site-footer .elementor-widget-wrap,
.site-footer .wp-block-columns,
.site-footer .wp-block-column,
.site-footer .wp-block-group,
.site-footer .wp-block-group__inner-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #94a3b8 !important;
}

/* Footer links */
.site-footer a {
  color: #93c5fd !important;
  transition: color 0.15s;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff !important;
}

/* Footer headings */
.site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5,
.site-footer .widget-title,
.site-footer .wp-block-heading {
  color: #fff !important;
  font-family: var(--afif-font) !important;
  font-weight: 700;
  font-size: 1rem !important;
  letter-spacing: 0.03em;
  margin-bottom: 12px !important;
}

/* Footer text and list items */
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer div {
  color: #94a3b8 !important;
  font-family: var(--afif-font) !important;
}

/* Footer list items â€” clean spacing */
.site-footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-footer ul li {
  padding: 4px 0;
  border: none !important;
}

/* Red arrow markers in footer */
.site-footer li::marker,
.site-footer .wp-block-list li::marker {
  color: var(--afif-accent) !important;
}

/* Footer logo */
.site-footer img {
  max-width: 180px;
  height: auto;
}

/* Social icons â€” scale up on hover */
.site-footer a[href*="facebook"],
.site-footer a[href*="instagram"],
.site-footer a[href*="whatsapp"],
.site-footer a[href*="tiktok"] {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), color 0.15s !important;
}

.site-footer a[href*="facebook"]:hover,
.site-footer a[href*="instagram"]:hover,
.site-footer a[href*="whatsapp"]:hover,
.site-footer a[href*="tiktok"]:hover {
  transform: scale(1.2);
  color: #fff !important;
}

/* Copyright bar */
.ast-footer-copyright,
.site-below-footer-wrap,
.ast-small-footer {
  background: rgba(0,0,0,0.3) !important;
  color: #64748b !important;
  font-size: 0.78rem;
  font-family: var(--afif-font) !important;
  padding: 12px 0 !important;
}

.ast-footer-copyright a,
.site-below-footer-wrap a {
  color: #93c5fd !important;
}

/* Footer inner container â€” ensure transparent */
.ast-footer-overlay,
.site-footer .ast-container,
.site-footer .ast-row {
  background: transparent !important;
}

/* ===========================================
   18. WOOCOMMERCE NOTICES
   =========================================== */
.woocommerce-message {
  border-top-color: var(--afif-success) !important;
  background: #f0fdf4 !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--afif-font) !important;
}

.woocommerce-info {
  border-top-color: var(--afif-cta) !important;
  background: #eff6ff !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--afif-font) !important;
}

.woocommerce-error {
  border-top-color: var(--afif-accent) !important;
  background: #fef2f2 !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--afif-font) !important;
}

/* Add to cart button in notices */
.woocommerce-message .button {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--afif-font) !important;
  border: none !important;
}

/* ===========================================
   19. WHATSAPP BUTTON
   =========================================== */
a[href*="wa.me"],
.whatsapp-button,
.wa-chat-box-brand,
div.ht_ctc_style.ht_ctc_chat_style {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
}

a[href*="wa.me"]:hover,
.whatsapp-button:hover {
  transform: scale(1.1) !important;
}

/* ===========================================
   20. SCROLL TO TOP
   =========================================== */
.ast-scroll-top-icon {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
  color: #fff !important;
  border-radius: 50% !important;
  box-shadow: var(--shadow-md) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.ast-scroll-top-icon:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-cta) !important;
}

/* ===========================================
   21. CATEGORY SLIDER PLUGIN
   =========================================== */
.sp-wcsp-cat-item {
  transition: transform 0.3s ease;
}

.sp-wcsp-cat-item:hover {
  transform: scale(1.05);
}

/* ===========================================
   22. MY ACCOUNT PAGE
   =========================================== */
.woocommerce-MyAccount-navigation ul li {
  border-radius: var(--radius-md) !important;
  transition: background 0.2s;
  font-family: var(--afif-font) !important;
}

.woocommerce-MyAccount-navigation ul li.is-active,
.woocommerce-MyAccount-navigation ul li:hover {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li:hover a {
  color: #fff !important;
}

/* ===========================================
   23. PRESERVED EXISTING BEHAVIORS
   =========================================== */
ul.wc-block-grid__products { margin-left: 5px; }
.home .woocommerce-ordering select { visibility: hidden; }
.woocommerce-ordering select { font-size: 11px; }
.woocommerce .woocommerce-result-count,
.woocommerce-result-count { display: none; }
h4, .entry-content h4 { line-height: 1.5; text-transform: uppercase; }
.tax-product_cat .term-description { display: none; }
.wp-block-latest-posts__post-title { display: none; }

/* ===========================================
   24. RESPONSIVE â€” DESKTOP (990px+)
   =========================================== */
@media screen and (min-width: 990px) {
  .ast-breadcrumbs-wrapper, .ast-breadcrumbs-wrapper * {
    font-size: 13px;
    font-weight: 500;
    margin-left: 5px;
  }
  .ast-scroll-top-icon { margin-right: 3em; }
  .ast-breadcrumbs-wrapper { margin-top: 1em; margin-left: -1em; }
  .woocommerce-store-notice, p.demo_store { font-size: 15px; }

  .wc-block-grid .wc-block-grid__products .wc-block-grid__product a img {
    width: 70%;
    display: block;
  }

  .wc-block-grid .wc-block-grid__products .wc-block-grid__product .price {
    font-size: 15px;
    margin-right: 7em;
    color: red !important;
    margin-left: 0em;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px !important;
    text-align: left;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 4.54em;
  }

  .wc-block-grid .wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title {
    font-size: 12px !important;
    text-align: left;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 4.54em;
    margin-right: 6em;
  }

  .woocommerce ul.products li.product .price {
    font-size: 15px !important;
    text-align: left;
  }

  .woocommerce-js ul.products li.product .price ins { font-size: 15px !important; }

  .ast-breadcrumbs-wrapper { line-height: 2; font-size: 12px; }

  .woocommerce ul.products li.product.tablet-align-left,
  .woocommerce-page ul.products li.product.tablet-align-left {
    margin-left: -1em;
    padding-right: 1.2em;
  }

  .dgwt-wcas-search-wrapp { width: 500px; }

  .woocommerce ul.products li.product a img {
    width: 90%;
    display: block;
  }

  .entry-content h4 {
    font-size: 15px;
    font-weight: 400;
    line-height: 2em;
  }
}

/* ===========================================
   25. RESPONSIVE â€” TABLET (550-990px)
   =========================================== */
@media screen and (min-width: 550px) and (max-width: 990px) {
  .dgwt-wcas-search-wrapp { width: 400px; }
  .site-logo-img img { margin-left: -6em; }
  .woocommerce-js .woocommerce-breadcrumb { font-size: 12px; }
  .ahfb-svg-iconset svg { margin-left: 0.5em; }
  .ast-scroll-top-icon { margin-right: 3em; }
  .woocommerce-store-notice, p.demo_store { font-size: 15px; }
  .woocommerce-js div.product div.images img { width: 80%; }

  .wc-block-grid .wc-block-grid__products .wc-block-grid__product .price {
    font-size: 12px;
    margin-right: 0em;
    color: red !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px !important;
    text-align: left;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 4.54em;
  }

  .wc-block-grid .wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title {
    font-size: 10px !important;
    text-align: left;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 4.54em;
  }

  .ast-single-post .entry-title, .page-title { font-size: 30px !important; }

  .woocommerce ul.products li.product .price {
    font-size: 17px !important;
    text-align: left;
  }

  .woocommerce-js ul.products li.product .price ins { font-size: 20px !important; }
  .ast-breadcrumbs-wrapper { line-height: 2; font-size: 10px; }

  .woocommerce ul.products li.product a img {
    width: 90%;
    display: block;
  }

  .entry-content h4 {
    font-size: 15px;
    font-weight: 400;
    line-height: 2em;
  }

  /* Tablet card adjustments */
  .woocommerce ul.products li.product:hover {
    transform: translateY(-5px) !important;
  }
}

/* ===========================================
   26. RESPONSIVE â€” MOBILE (500px and below)
   =========================================== */
@media screen and (max-width: 500px) {
  .woocommerce-store-notice, p.demo_store { font-size: 14px; }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 11.5px !important;
    overflow: hidden;
    min-height: 4.5em;
    padding-left: 1.5em;
  }

  .woocommerce-js ul.products li.product a img { padding-left: 1em; }

  .woocommerce ul.products li.product .price {
    font-size: 14px !important;
    margin-left: -1.2em;
  }

  .woocommerce-js ul.products li.product .price ins { font-size: 15px !important; }
  .dgwt-wcas-search-wrapp { width: 300px; }

  div.ht_ctc_style.ht_ctc_chat_style {
    width: 10%;
    position: fixed;
    bottom: 15px;
    right: 3px;
  }

  .ast-single-post .entry-title, .page-title { font-size: 23px !important; }

  .entry-content h4 {
    font-size: 13px;
    font-weight: 400;
    line-height: 2em;
  }

  .ast-cart-menu-wrap .count { font-size: 10px; }

  .woocommerce-tabs ul.tabs {
    flex-direction: column !important;
    border-radius: var(--radius-lg) !important;
  }

  .woocommerce-tabs ul.tabs li a {
    text-align: center !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin-left: -2em;
    margin-right: 0em;
    min-height: 6em !important;
  }

  .woocommerce-js ul.products li.product a img { margin-left: -1.8em; }
  .woocommerce-js ul.products li.product .price { margin-left: -1em; }
  .woocommerce-js div.product .woocommerce-tabs .shop_attributes td { font-size: 12px; }

  .wc-block-grid__products li {
    width: 50%;
    float: left;
  }

  .wc-block-grid__products li:nth-of-type(2n+1) { clear: both; }

  .wc-block-grid .wc-block-grid__products .wc-block-grid__product a img {
    width: 90%;
    display: block;
  }

  .wc-block-grid .wc-block-grid__products .wc-block-grid__product .price {
    margin-left: 0.5em;
    font-size: 12px;
    color: red !important;
  }

  .wc-block-grid .wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title {
    min-height: 7em;
    margin-right: -0.1em;
    font-size: 11px !important;
    max-height: 4.5em;
  }

  .woocommerce-ordering select { font-size: 8px; }
  .ast-scroll-top-icon { margin-right: 0.9em; }

  .ast-breadcrumbs-wrapper, .ast-breadcrumbs-wrapper * {
    font-family: var(--afif-font) !important;
    font-weight: 500;
    font-size: 11px;
    margin-top: 1.5em;
  }

  .sp-wcsp-cat-item .sp-wcsp-cat-thumbnail img { margin-top: 2em; }

  body .is-layout-flex {
    display: block;
    margin-bottom: 3em;
    margin-top: -2em;
  }

  .wp-block-button .wp-block-button__link {
    margin-left: 13em;
    margin-bottom: -5em;
  }

  /* Mobile card adjustments */
  .woocommerce ul.products li.product:hover {
    transform: translateY(-4px) !important;
  }

  .elementor-heading-title, .wp-block-heading {
    font-size: 1.35rem !important;
  }

  .ast-header-custom-item .ast-masthead-custom-menu-items {
    flex-wrap: wrap;
  }

  .single-product .single_add_to_cart_button {
    font-size: 0.95rem !important;
    padding: 12px 24px !important;
  }
}

/* ===========================================
   27. LOADING SPINNER â€” Branded
   =========================================== */
.woocommerce .blockUI.blockOverlay::before,
.woocommerce .loader::before {
  border-color: rgba(44,90,160,0.2) !important;
  border-top-color: var(--afif-cta) !important;
}

/* ===========================================
   28. STAR RATINGS â€” Blue
   =========================================== */
.star-rating span::before,
.woocommerce .star-rating span::before {
  color: #f59e0b !important;
}

/* ===========================================
   29. OUT OF STOCK
   =========================================== */
.woocommerce ul.products li.product .outofstock-label,
.woocommerce span.outofstock {
  background: #64748b !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--afif-font) !important;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ===========================================
   30. COUPON INPUT
   =========================================== */
.woocommerce #coupon_code {
  border-radius: var(--radius-pill) !important;
  border: 2px solid var(--afif-border) !important;
  font-family: var(--afif-font) !important;
  padding: 10px 16px !important;
}

.woocommerce .coupon .button {
  background: linear-gradient(135deg, #2C5AA0, #3A6DB5) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  border: none !important;
  font-family: var(--afif-font) !important;
}
