/*
Theme Name: StanCreatives
Theme URI: https://stancreatives.com
Author: StanCreatives
Author URI: https://stancreatives.com
Description: A premium home essentials & luminaires WooCommerce theme with slide-in cart, image flip on hover, and variable product pricing.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stancreatives
Tags: e-commerce, woocommerce, one-column, two-columns, right-sidebar, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #E8620A;
  --orange-dark: #c4530a;
  --navy: #1a2236;
  --navy-light: #243049;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --gray-100: #f4f4f4;
  --gray-200: #e8e8e8;
  --gray-400: #aaaaaa;
  --gray-600: #666666;
  --gray-800: #333333;
  --text: #1a1a1a;
  --green: #28a745;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --transition: 0.3s ease;
  --cart-width: 420px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }

img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

ul { list-style: none; }

input, select, textarea, button {
  font-family: var(--font-body);
  font-size: 14px;
}

/* =============================================
   LAYOUT
============================================= */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-content {
  min-height: 60vh;
}

/* =============================================
   TOP BAR
============================================= */
.top-bar {
  background: var(--navy);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-bar-message {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-message svg { flex-shrink: 0; }

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-phone {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  font-weight: 600;
}

.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-socials a {
  color: var(--white);
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.top-bar-socials a:hover { background: var(--orange); }

/* =============================================
   HEADER
============================================= */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 54px;
  width: auto;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
}

.site-logo .logo-text span { color: var(--orange); }

/* Search bar */
.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.header-search:focus-within { border-color: var(--orange); }

.search-category {
  padding: 0 12px;
  background: var(--gray-100);
  border-right: 1px solid var(--gray-200);
  height: 44px;
  display: flex;
  align-items: center;
}

.search-category select {
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--gray-800);
  cursor: pointer;
  outline: none;
  padding-right: 6px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  height: 44px;
  font-size: 14px;
  color: var(--text);
  background: transparent;
}

.search-input::placeholder { color: var(--gray-400); }

.search-btn {
  background: var(--orange);
  border: none;
  color: var(--white);
  height: 44px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.search-btn:hover { background: var(--orange-dark); }

/* Header icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--navy);
  border-radius: var(--radius);
  transition: background var(--transition);
  position: relative;
}

.header-icon-btn:hover { background: var(--gray-100); }

.header-icon-btn span {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
}

.icon-count {
  position: absolute;
  top: 2px;
  right: 6px;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-icon-btn {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 16px;
  flex-direction: row;
  gap: 8px;
}

.cart-icon-btn:hover { background: var(--navy-light); }

.cart-icon-btn span { color: var(--white); font-size: 13px; font-weight: 600; }

.cart-total {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* =============================================
   MAIN NAV
============================================= */
.main-nav {
  background: var(--orange);
}

.nav-inner {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
}

.main-nav ul li a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 22px;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition);
  white-space: nowrap;
}

.main-nav ul li.current-menu-item > a,
.main-nav ul li a:hover {
  background: rgba(0,0,0,0.15);
  color: var(--white);
}

.main-nav ul li {
  position: relative;
}

.main-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-hover);
  z-index: 999;
  flex-direction: column;
}

.main-nav ul li:hover > ul { display: flex; }

.main-nav ul li ul li a {
  color: var(--gray-800);
  padding: 10px 18px;
  font-weight: 500;
}

.main-nav ul li ul li a:hover {
  background: var(--gray-100);
  color: var(--orange);
}

/* =============================================
   HERO BANNER
============================================= */
.hero-banner {
  background: linear-gradient(135deg, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  background: var(--orange);
  opacity: 0.08;
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-content h1 span { color: var(--orange); }

.hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-height: 320px;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

/* =============================================
   CATEGORY BAR
============================================= */
.cat-strip {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
  overflow-x: auto;
}

.cat-strip-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.cat-strip-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  border-right: 1px solid var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.cat-strip-item:hover,
.cat-strip-item.active {
  background: var(--orange);
  color: var(--white);
}

/* =============================================
   SECTION TITLES
============================================= */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  position: relative;
  padding-bottom: 10px;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.section-heading a {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

/* =============================================
   SHOP LAYOUT
============================================= */
.shop-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 36px 0;
}

/* =============================================
   SIDEBAR
============================================= */
.shop-sidebar {
  flex-shrink: 0;
}

.widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}

/* Category list */
.woocommerce-widget-layered-nav ul,
.product-categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.woocommerce-widget-layered-nav ul li a,
.product-categories li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-800);
  transition: all var(--transition);
  font-weight: 500;
}

.woocommerce-widget-layered-nav ul li a:hover,
.product-categories li a:hover {
  background: var(--orange);
  color: var(--white);
}

.product-categories li.current-cat > a {
  background: var(--orange);
  color: var(--white);
}

.product-categories li a .count,
.woocommerce-widget-layered-nav ul li a .count {
  background: var(--gray-200);
  color: var(--gray-600);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  transition: all var(--transition);
}

.product-categories li a:hover .count,
.product-categories li.current-cat > a .count {
  background: rgba(255,255,255,0.25);
  color: var(--white);
}

/* Price filter */
.price_slider_wrapper { margin-top: 10px; }
.price_slider { margin-bottom: 16px; }

.ui-slider {
  position: relative;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin: 10px 0 20px;
}

.ui-slider-range {
  position: absolute;
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
}

.ui-slider-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--orange);
  border-radius: 50%;
  top: -7px;
  margin-left: -9px;
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange);
}

.price_slider_amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price_slider_amount .price_label {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
}

.price_slider_amount button {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.price_slider_amount button:hover { background: var(--orange-dark); }

/* =============================================
   SHOP MAIN AREA
============================================= */
.shop-main { min-width: 0; }

.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.woocommerce-result-count {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
}

.woocommerce-result-count strong { color: var(--navy); font-weight: 700; }

.shop-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.woocommerce-ordering select {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gray-800);
  cursor: pointer;
  outline: none;
  background: var(--white);
}

.view-toggle { display: flex; gap: 4px; }

.view-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition);
}

.view-btn.active, .view-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* Active filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #fff3eb;
  color: var(--orange-dark);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #ffd4b3;
}

.filter-tag .remove {
  cursor: pointer;
  opacity: 0.6;
  font-size: 14px;
  line-height: 1;
}

.filter-tag .remove:hover { opacity: 1; }

/* =============================================
   PRODUCT GRID — 4 COLUMNS
============================================= */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 !important;
  padding: 0 !important;
}

/* =============================================
   PRODUCT CARD
============================================= */
.product-card-wrapper {
  position: relative;
}

li.product,
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  list-style: none !important;
}

li.product:hover,
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--orange);
}

/* Image flip container */
.product-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.product-image-wrap .img-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-image-wrap .img-slide.primary { opacity: 1; transform: scale(1); }
.product-image-wrap .img-slide.secondary { opacity: 0; transform: scale(1.04); }

li.product:hover .product-image-wrap .img-slide.primary,
.product-card:hover .product-image-wrap .img-slide.primary { opacity: 0; }

li.product:hover .product-image-wrap .img-slide.secondary,
.product-card:hover .product-image-wrap .img-slide.secondary { opacity: 1; transform: scale(1); }

/* No second image: just zoom */
li.product:hover .product-image-wrap.single-image img,
.product-card:hover .product-image-wrap.single-image img { transform: scale(1.06); }

.product-image-wrap img { transition: transform var(--transition); }

/* Sale badge */
.onsale,
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
  line-height: 1.6;
}

.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
}

/* Quick actions */
.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
}

li.product:hover .product-actions,
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }

.action-btn {
  width: 34px;
  height: 34px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-600);
}

.action-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* Product body */
.product-body {
  padding: 14px;
}

.woocommerce-loop-category__title,
.woocommerce-loop-product__title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
  margin-bottom: 4px !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-cat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* Star rating */
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
  font-size: 12px;
}

.star-rating::before {
  content: '';
}

.woocommerce .star-rating {
  color: #f5a623;
  font-size: 12px;
  height: auto;
  line-height: 1;
  width: auto;
  overflow: visible;
  margin: 4px 0 8px;
}

.woocommerce .star-rating::before,
.woocommerce .star-rating span::before {
  color: #f5a623;
  font-size: 12px;
}

/* Price */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.price, .woocommerce-Price-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--orange) !important;
}

del .woocommerce-Price-amount {
  font-size: 12px !important;
  color: var(--gray-400) !important;
  font-weight: 400 !important;
}

ins { text-decoration: none; }

.price-discount {
  font-size: 11px;
  font-weight: 700;
  color: #28a745;
  background: #e8f5e9;
  padding: 2px 7px;
  border-radius: 20px;
}

/* Stock */
.stock {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.in-stock { color: var(--green); }
.out-of-stock { color: #dc3545; }

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.in-stock .stock-dot { background: var(--green); }
.out-of-stock .stock-dot { background: #dc3545; }

/* Add to cart button */
.add_to_cart_button,
.single_add_to_cart_button,
.button.add_to_cart_button {
  display: block !important;
  width: 100% !important;
  padding: 10px 14px !important;
  background: var(--navy) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}

.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.button.add_to_cart_button:hover {
  background: var(--orange) !important;
  color: var(--white) !important;
  transform: none !important;
}

.add_to_cart_button.loading {
  background: var(--orange) !important;
  opacity: 0.75;
}

.add_to_cart_button.added {
  background: var(--green) !important;
}

/* =============================================
   SLIDE-IN CART DRAWER
============================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--cart-width);
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 40px rgba(0,0,0,0.18);
}

.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.cart-drawer-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-count-badge {
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer-close {
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-800);
  font-size: 18px;
  transition: all var(--transition);
}

.cart-drawer-close:hover { background: var(--orange); color: var(--white); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--gray-400);
  text-align: center;
}

.cart-drawer-empty svg { opacity: 0.3; }
.cart-drawer-empty p { font-size: 15px; font-weight: 500; }

.cart-drawer-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}

.cart-drawer-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: var(--gray-100);
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.4;
}

.cart-item-variation {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.cart-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--orange);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  line-height: 1;
  color: var(--gray-800);
}

.qty-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.qty-num {
  font-size: 14px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  color: var(--navy);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color var(--transition);
  align-self: flex-start;
}

.cart-item-remove:hover { color: #dc3545; }

/* Cart footer */
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
  background: var(--white);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cart-subtotal span { font-size: 14px; color: var(--gray-600); }
.cart-subtotal strong { font-size: 20px; font-weight: 800; color: var(--navy); }

.cart-free-shipping {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-drawer-footer .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  margin-bottom: 10px;
}

.cart-view-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
}

.cart-view-link:hover { color: var(--orange); }

/* =============================================
   PRODUCT SINGLE
============================================= */
.single-product-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0;
}

.product-gallery { position: relative; }

.product-gallery-main {
  aspect-ratio: 1/1;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  cursor: zoom-in;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-gallery-main:hover img { transform: scale(1.05); }

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--orange);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info { padding-top: 8px; }

.product-info .product_title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.product-info .price {
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-info .price del {
  font-size: 18px;
  color: var(--gray-400);
  font-weight: 400;
}

/* Variable product */
.variations {
  margin-bottom: 20px;
  border-collapse: collapse;
  width: 100%;
}

.variations td, .variations th {
  padding: 8px 0;
  vertical-align: middle;
}

.variations label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.variations select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}

.variations select:focus { border-color: var(--orange); }

.woocommerce-variation-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  margin: 16px 0;
}

.woocommerce-variation-availability {
  margin-bottom: 14px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  width: fit-content;
}

.quantity input[type=number] {
  width: 60px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  padding: 8px 0;
  background: transparent;
}

.qty-control {
  background: var(--gray-100);
  border: none;
  width: 38px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray-800);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control:hover { background: var(--orange); color: var(--white); }

.qty-control.minus { border-radius: var(--radius) 0 0 var(--radius); }
.qty-control.plus { border-radius: 0 var(--radius) var(--radius) 0; }

/* =============================================
   PAGINATION
============================================= */
.woocommerce-pagination {
  margin: 32px 0 0;
  display: flex;
  justify-content: center;
}

.woocommerce-pagination ul {
  display: flex;
  gap: 6px;
  align-items: center;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  transition: all var(--transition);
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* =============================================
   FEATURED / HOME SECTIONS
============================================= */
.home-section { padding: 52px 0; }

.home-section.alt { background: var(--gray-100); }

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--orange);
  transform: translateY(-3px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: #fff3eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--orange);
}

.feature-card h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* Category cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

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

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

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,34,54,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
}

.cat-card-overlay h3 { color: var(--white); font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.cat-card-overlay span { color: rgba(255,255,255,0.75); font-size: 13px; }

/* =============================================
   TESTIMONIALS
============================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.testimonial-stars { color: #f5a623; font-size: 16px; margin-bottom: 10px; }
.testimonial-text { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.testimonial-author-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--navy); }
.testimonial-author-info span { font-size: 12px; color: var(--gray-400); }

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand .logo-text span { color: var(--orange); }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
}

.footer-socials a:hover { background: var(--orange); }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom-inner p { font-size: 13px; color: rgba(255,255,255,0.5); }

.footer-payment {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-badge {
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

/* =============================================
   WOOCOMMERCE NOTICES
============================================= */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.woocommerce-message { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.woocommerce-info { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.woocommerce-error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1200px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 992px) {
  .shop-wrapper { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .single-product-wrap { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  :root { --cart-width: 100vw; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .header-search { order: 3; flex-basis: 100%; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .top-bar .container { flex-direction: column; gap: 6px; text-align: center; }
  .main-nav ul { overflow-x: auto; }
  .hero-content h1 { font-size: 30px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 10px; }
}

/* =============================================
   UTILITIES
============================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
