/*
Theme Name: SwiftCart Child
Theme URI: https://example.com
Author: Your Name
Description: Child theme modern pentru SwiftCart
Template: swiftcart
Version: 1.0.0
Text Domain: swiftcart-child
*/

/* ═══════════════════════════════════════════════════════
   1. GOOGLE FONTS
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════
   2. CSS CUSTOM PROPERTIES — DESIGN TOKENS
   Overrides parent-theme :root variables with our palette.
═══════════════════════════════════════════════════════ */
:root {
  /* Brand */
  --swiftcart-base:           #4f46e5;
  --swiftcart-base-rgb:       79, 70, 229;
  --swiftcart-base-light:     #eef2ff;
  --swiftcart-base-hover:     #4338ca;
  --swiftcart-secondary:      #f97316;
  --swiftcart-secondary-rgb:  249, 115, 22;
  --swiftcart-secondary-light:#fff7ed;

  /* Neutrals — light mode only, no auto-dark (parent theme not dark-mode ready) */
  --swiftcart-body:           #f9fafb;
  --swiftcart-white:          #ffffff;
  --swiftcart-black:          #111827;
  --swiftcart-black-2:        #1f2937;
  --swiftcart-text:           #6b7280;
  --swiftcart-text-gray:      #9ca3af;
  --swiftcart-gray:           #f3f4f6;
  --swiftcart-gray-2:         #e5e7eb;
  --swiftcart-border-color:   #e5e7eb;

  /* Shape */
  --swiftcart-border-radius:  10px;
  --sc-radius-sm:             6px;
  --sc-radius-lg:             16px;
  --sc-radius-pill:           9999px;

  /* Shadows */
  --swiftcart-box-shadow:     0 1px 3px rgba(0,0,0,.07), 0 1px 2px -1px rgba(0,0,0,.07);
  --sc-shadow-md:             0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.08);
  --sc-shadow-lg:             0 10px 25px -3px rgba(0,0,0,.09), 0 4px 10px -4px rgba(0,0,0,.09);
  --sc-shadow-card:           0 2px 12px rgba(79,70,229,.08);
  --sc-shadow-card-hover:     0 8px 30px rgba(79,70,229,.16);

  /* Transitions */
  --sc-transition:            all .2s cubic-bezier(.4,0,.2,1);
  --sc-transition-slow:       all .35s cubic-bezier(.4,0,.2,1);

  /* Typography */
  --swiftcart-font:           'Inter', system-ui, -apple-system, sans-serif;
  --swiftcart-heading-font:   'Inter', system-ui, -apple-system, sans-serif;
}

/* ═══════════════════════════════════════════════════════
   3. BASE OVERRIDES
   Only override what the parent gets wrong — leave the rest.
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--swiftcart-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--swiftcart-text);
  background-color: var(--swiftcart-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--swiftcart-heading-font);
  color: var(--swiftcart-black);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

a {
  color: var(--swiftcart-base);
  text-decoration: none;
  transition: var(--sc-transition);
}

a:hover { color: var(--swiftcart-base-hover); }

:focus-visible {
  outline: 2px solid var(--swiftcart-base);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════
   4. BUTTONS
   IMPORTANT: Never use bare `button` selector here —
   it would break carousel navs, search buttons, qty
   steppers, and every other structural <button>.
   Target only actual CTA buttons via class or WC context.
═══════════════════════════════════════════════════════ */

/* — Primary CTA base — */
.btn,
.sc-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input[type="submit"],
.dp-cart-btn,
.bd-fill__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: var(--sc-radius-pill);
  background: var(--swiftcart-base);
  color: #fff !important;
  font-family: var(--swiftcart-font);
  font-weight: 600;
  font-size: .875rem;
  padding: .65rem 1.4rem;
  line-height: 1.5;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: var(--sc-transition);
  text-decoration: none;
}

.btn:hover,
.sc-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input[type="submit"]:hover,
.dp-cart-btn:hover,
.bd-fill__btn:hover {
  background: var(--swiftcart-base-hover);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--swiftcart-base-rgb), .35);
  text-decoration: none;
}

.btn:active,
.sc-btn:active,
.woocommerce a.button:active,
.woocommerce button.button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* — Gradient primary (add-to-cart, checkout) — */
.woocommerce a.button.add_to_cart_button,
.woocommerce a.button.ajax_add_to_cart,
.sc-btn--primary,
#place_order,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(135deg, var(--swiftcart-base), var(--swiftcart-base-hover));
  box-shadow: 0 2px 8px rgba(var(--swiftcart-base-rgb), .28);
}

.woocommerce a.button.add_to_cart_button:hover,
.woocommerce a.button.ajax_add_to_cart:hover,
.sc-btn--primary:hover,
#place_order:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: linear-gradient(135deg, var(--swiftcart-base-hover), #3730a3);
  box-shadow: 0 6px 18px rgba(var(--swiftcart-base-rgb), .45);
}

/* — Outline variant — */
.btn-outline,
.sc-btn--outline {
  background: transparent;
  border: 2px solid var(--swiftcart-base);
  color: var(--swiftcart-base) !important;
}

.btn-outline:hover,
.sc-btn--outline:hover {
  background: var(--swiftcart-base);
  color: #fff !important;
  box-shadow: none;
}

/* — Disabled — */
.btn:disabled,
.sc-btn:disabled,
.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.sc-btn--disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* — Full-width helpers — */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  width: 100%;
  padding: .9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(var(--swiftcart-base-rgb), .4);
}

#place_order {
  width: 100%;
  font-size: 1rem;
  padding: .9rem 2.5rem;
  box-shadow: 0 4px 14px rgba(var(--swiftcart-base-rgb), .4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #fff !important;
}

/* — Add-to-cart loading state — */
.sc-btn-loading,
.woocommerce a.button.loading {
  opacity: .7;
  pointer-events: none;
  cursor: wait;
}

/* ═══════════════════════════════════════════════════════
   5. QUANTITY STEPPER
   Explicit reset so the broad parent `button` rule
   and our .sc-btn rule don't bleed into the stepper.
═══════════════════════════════════════════════════════ */
.quantity.sc-enhanced {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--swiftcart-border-color);
  border-radius: var(--sc-radius-pill);
  overflow: hidden;
  background: var(--swiftcart-white);
}

/* Reset parent-theme & child-theme button rules for qty btns.
   The parent theme uses a bare `button` selector with `background:transparent`
   and we use `.woocommerce button.button` for CTA buttons; both bleed onto
   these structural buttons, so we hard-reset and re-apply only what we need. */
.sc-qty-btn,
.quantity.sc-enhanced .sc-qty-btn {
  all: unset;
  box-sizing: border-box;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--swiftcart-black) !important;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--sc-transition);
  flex-shrink: 0;
  transform: none !important;
  padding: 0 !important;
  line-height: 1;
}

.sc-qty-btn:hover,
.quantity.sc-enhanced .sc-qty-btn:hover {
  background: var(--swiftcart-base-light) !important;
  color: var(--swiftcart-base) !important;
  transform: none !important;
  box-shadow: none !important;
}

.quantity.sc-enhanced input.qty {
  border: none;
  box-shadow: none;
  outline: none;
  width: 52px;
  text-align: center;
  border-radius: 0;
  padding: .5rem .25rem;
  font-weight: 700;
  background: transparent;
}

/* Standard WooCommerce qty (non-enhanced) */
.single-product .quantity input.qty {
  border: 1.5px solid var(--swiftcart-border-color);
  border-radius: var(--swiftcart-border-radius);
  padding: .6rem .75rem;
  width: 70px;
  text-align: center;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   6. FORMS & INPUTS
═══════════════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
  border: 1.5px solid var(--swiftcart-border-color);
  border-radius: var(--swiftcart-border-radius);
  padding: .65rem 1rem;
  font-family: var(--swiftcart-font);
  font-size: .9rem;
  background: var(--swiftcart-white);
  color: var(--swiftcart-black);
  transition: var(--sc-transition);
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--swiftcart-base);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
  outline: none;
}

label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--swiftcart-black);
  margin-bottom: .35rem;
  display: block;
}

.woocommerce-ordering select {
  border-radius: var(--sc-radius-pill);
  background-color: var(--swiftcart-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.25rem;
  color: var(--swiftcart-black);
  appearance: none;
  -webkit-appearance: none;
  width: auto;
}

/* Widget-urile de filtrare produse — select-uri vizibile */
.widget select,
.woocommerce-widget-layered-nav select,
.woocommerce-widget-price-filter select,
.woocommerce .woocommerce-ordering select {
  color: var(--swiftcart-black) !important;
  background-color: var(--swiftcart-white) !important;
}

/* — Header & nav: resetează stilurile globale de form care ar putea strica
     search-bar-ul și dropdown-urile din header/Elementor header builder.
     Folosim width:auto și resetăm bordura/shadow, dar păstrăm padding și
     background vizibil ca să nu dispară inputurile în header. — */
header input[type="text"],
header input[type="search"],
header input[type="email"],
header input[type="tel"],
header input[type="number"],
header input[type="url"],
header select,
header textarea,
.sw-default-header input,
.sw-default-header select,
.sw-header-two input,
.sw-header-two select,
.swiftcart-header-builder input,
.swiftcart-header-builder select,
.sw-header-one__search input,
.sw-header-two__search input,
.sw-header-one__search select,
.sw-header-two__search select {
  width: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: .5rem .85rem;
  background: #fff;
  color: var(--swiftcart-black);
}

/* Inputurile din search-bar-ul tematic: păstrează fundalul transparent
   față de container-ul colorat al formularului */
.sw-header-one__search input,
.sw-header-two__search input {
  background: #fff;
  color: var(--swiftcart-black);
  padding: .55rem 3.5rem .55rem 1rem;
}

.sw-header-one__search input:focus,
.sw-header-two__search input:focus {
  box-shadow: none;
  outline: none;
  border: none;
}

/* Selectul de categorii din search-bar — vizibil */
.sw-header-one__search select,
.sw-header-two__search select {
  background: #f3f4f6;
  color: var(--swiftcart-black);
  padding: .45rem .75rem;
  border-right: 1px solid var(--swiftcart-border-color) !important;
  font-family: var(--swiftcart-font);
  font-size: .875rem;
}

/* ═══════════════════════════════════════════════════════
   7. HEADER
═══════════════════════════════════════════════════════ */
.sw-default-header,
.sw-header-two {
  background: var(--swiftcart-white);
  border-bottom: 1px solid var(--swiftcart-border-color);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background .2s ease, box-shadow .2s ease;
}

/* Wrapper principal header — flex corect, fără overflow */
.sw-header-two__wrapper,
.sw-header-landing .sw-header-two__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.sw-header-two__logo { flex-shrink: 0; }

.sw-header-two__right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 1;
  min-width: 0;
}

/* Butoanele de acțiune din header (cart, profil, hamburger etc.)
   Reset față de stilurile .woocommerce button.button care pot sângera */
.sw-header-two__btn,
.sw-header-one__btn,
.sw-header-two__btns .sw-header-two__btn,
.sw-header-one__btns .sw-header-one__btn,
.sw-offcanvas-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--swiftcart-black);
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: .4rem !important;
  font-size: .85rem;
  font-family: var(--swiftcart-font);
  text-align: center;
  transform: none !important;
  line-height: 1;
  transition: color .2s ease;
}

.sw-header-two__btn:hover,
.sw-header-one__btn:hover,
.sw-offcanvas-btn:hover {
  color: var(--swiftcart-base) !important;
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

.sw-header-two__btn i,
.sw-header-one__btn i {
  display: block;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1;
}

/* Cart count badge */
.sw-header-two__btn .sw-cart-count,
.sw-header-one__btn .sw-cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 18px;
  height: 18px;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--swiftcart-base);
  color: #fff;
  border-radius: 50%;
  line-height: 1;
  pointer-events: none;
}

/* Topbar */
.sw-topbar {
  background: var(--swiftcart-black);
  padding: .45rem 0;
  font-size: .8rem;
}

/* Meniu principal — menu-item (WordPress default walker) */
.sw-main-menu ul li a,
.sw-main-menu .menu-item > a,
.sw-main-menu .nav-item > a,
.main-navigation .menu-item > a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--swiftcart-black);
  transition: var(--sc-transition);
  padding: .5rem .75rem;
  border-radius: var(--sc-radius-sm);
  display: inline-block;
  text-decoration: none;
}

.sw-main-menu ul li a:hover,
.sw-main-menu .menu-item > a:hover,
.sw-main-menu .nav-item > a:hover,
.main-navigation .menu-item > a:hover {
  background: var(--swiftcart-base-light);
  color: var(--swiftcart-base);
}

.sw-main-menu ul li.current-menu-item > a,
.sw-main-menu ul li.current > a {
  color: var(--swiftcart-base);
}

.dropdown-menu,
.sub-menu {
  border: 1px solid var(--swiftcart-border-color);
  border-radius: var(--sc-radius-lg);
  box-shadow: var(--sc-shadow-lg);
  padding: .5rem;
  background: var(--swiftcart-white);
}

/* Header compact după scroll */
.sc-header-compact { padding: 4px 0; }

.sc-header-compact .site-logo img,
.sc-header-compact .custom-logo {
  max-height: 36px;
  transition: var(--sc-transition);
}

/* Search wrapper — inputul nu se expandează la 100% în header */
.sw-header-two__search,
.sw-header-one__search {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 600px;
}

/* Categorii/dropdown lângă search — nu iau width:100% */
.sw-header-two__search .nice-select,
.sw-header-one__search .nice-select,
.sw-header-two__search select,
.sw-header-one__search select {
  width: auto !important;
  flex-shrink: 0;
}

/* Formularul din search wrapper — row inline, fără suprapuneri */
.sw-header-two__search form,
.sw-header-one__search form {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  border-radius: var(--swiftcart-border-radius);
  overflow: hidden;
  border: 1.5px solid var(--swiftcart-border-color);
  background: var(--swiftcart-white);
}

.sw-header-two__search form input[type="search"],
.sw-header-two__search form input[type="text"],
.sw-header-one__search form input[type="search"],
.sw-header-one__search form input[type="text"] {
  flex: 1;
  min-width: 0;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: .55rem 1rem !important;
  color: var(--swiftcart-black);
  font-family: var(--swiftcart-font);
}

.sw-header-two__search form button,
.sw-header-one__search form button {
  all: unset;
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1rem;
  background: var(--swiftcart-base);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s ease;
}

.sw-header-two__search form button:hover,
.sw-header-one__search form button:hover {
  background: var(--swiftcart-base-hover);
}

/* Butoanele header (cart, account etc.) — inline, fără suprapuneri */
.sw-header-two__btns,
.sw-header-one__btns {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: .5rem !important;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   7b. BREADCRUMB — override tema-părinte
   Bara de breadcrumb primește clasa .base-bg (fundal brand-color)
   dar textul curent este și el brand-color → invisible. Corectăm
   fundalul la gri-pal și asigurăm contrastul textului.
═══════════════════════════════════════════════════════ */
.sw-breadcrumb__area,
.sw-breadcrumb__area.base-bg {
  background: var(--swiftcart-gray) !important;
  border-bottom: 1px solid var(--swiftcart-border-color);
}

.sw-breadcrumb__list {
  color: var(--swiftcart-text) !important;
  font-family: var(--swiftcart-font);
  font-size: .875rem;
}

.sw-breadcrumb__list a {
  color: var(--swiftcart-black-2) !important;
  font-weight: 500;
}

.sw-breadcrumb__list a:hover {
  color: var(--swiftcart-base) !important;
}

.sw-breadcrumb__list .current,
.sw-breadcrumb__list span[typeof] {
  color: var(--swiftcart-base) !important;
}

/* ═══════════════════════════════════════════════════════
   7c. NICE-SELECT — forțăm text vizibil
   Elementul .nice-select moștenește color:gray din body;
   forțăm negru pentru a fi lizibil pe fundalul alb.
═══════════════════════════════════════════════════════ */
.nice-select {
  color: var(--swiftcart-black) !important;
  font-family: var(--swiftcart-font) !important;
  border-color: var(--swiftcart-border-color) !important;
  border-radius: var(--swiftcart-border-radius) !important;
}

.nice-select .current {
  color: var(--swiftcart-black) !important;
}

.nice-select .list {
  background: var(--swiftcart-white) !important;
  border: 1px solid var(--swiftcart-border-color) !important;
  border-radius: var(--swiftcart-border-radius) !important;
  box-shadow: var(--sc-shadow-lg) !important;
  z-index: 1050 !important;
}

.nice-select .option {
  color: var(--swiftcart-black) !important;
  font-family: var(--swiftcart-font) !important;
  font-size: .875rem !important;
  line-height: 2.2 !important;
  min-height: unset !important;
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected {
  background: var(--swiftcart-base-light) !important;
  color: var(--swiftcart-base) !important;
  font-weight: 600 !important;
}

/* ═══════════════════════════════════════════════════════
   8. PRODUCT CARDS
═══════════════════════════════════════════════════════ */
.swiftcart-product-main,
.sc-card,
ul.products li.product {
  background: var(--swiftcart-white);
  border: 1px solid var(--swiftcart-border-color);
  border-radius: var(--sc-radius-lg);
  overflow: hidden;
  transition: var(--sc-transition-slow);
  box-shadow: var(--sc-shadow-card);
  position: relative;
}

.swiftcart-product-main:hover,
.sc-card:hover,
ul.products li.product:hover {
  box-shadow: var(--sc-shadow-card-hover);
  transform: translateY(-4px);
  border-color: transparent;
}

.sc-card__image {
  position: relative;
  overflow: hidden;
  background: var(--swiftcart-gray);
  aspect-ratio: 1/1;
}

.sc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--sc-transition-slow);
}

.sc-card:hover .sc-card__img { transform: scale(1.04); }

.sc-card__body { padding: .85rem 1rem .5rem; }

.sc-card__title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--swiftcart-black);
  line-height: 1.4;
  margin-bottom: .3rem;
}

.sc-card__title a { color: inherit; }
.sc-card__title a:hover { color: var(--swiftcart-base); }

.sc-card__price  { margin-top: .35rem; }
.sc-card__rating { margin-bottom: .25rem; }
.sc-card__footer { padding: 0 1rem 1rem; }

ul.products li.product .price,
.sc-card__price .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--swiftcart-base);
}

ul.products li.product .price del,
.sc-card__price .price del {
  color: var(--swiftcart-text-gray);
  font-weight: 400;
  font-size: .85rem;
}

/* Sale badge */
.woocommerce ul.products li.product .onsale,
.onsale,
.sc-badge {
  background: var(--swiftcart-secondary);
  color: #fff;
  border-radius: var(--sc-radius-pill);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  position: absolute;
  top: .75rem;
  left: .75rem;
  line-height: 1.6;
  z-index: 2;
}

/* Star rating */
.star-rating span::before,
.wc-block-grid__product-rating .star-rating span::before {
  color: #f59e0b;
}

/* Hover action icons */
.sc-card__actions {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--sc-transition);
}

.sc-card:hover .sc-card__actions {
  opacity: 1;
  transform: translateX(0);
}

/* Reset button rules for icon action buttons.
   Same reasoning as .sc-qty-btn above: parent and child button rules
   both target these elements unintentionally. */
.sc-card__actions a,
.sc-card__actions button {
  all: unset;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  background: var(--swiftcart-white) !important;
  box-shadow: var(--sc-shadow-md) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .85rem;
  color: var(--swiftcart-text) !important;
  transition: var(--sc-transition);
  transform: none !important;
}

.sc-card__actions a:hover,
.sc-card__actions button:hover {
  background: var(--swiftcart-base) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: var(--sc-shadow-md) !important;
}

/* Add-to-cart full-width in card footer */
ul.products li.product .button,
.sc-card__footer .button,
.sc-card__footer .sc-btn {
  margin: 0;
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   9. SHOP / ARCHIVE PAGE
═══════════════════════════════════════════════════════ */
.sw-shop-top {
  border-radius: var(--sc-radius-lg);
  background: var(--swiftcart-white);
  border: 1px solid var(--swiftcart-border-color);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

/* Grid produse — direct pe ul.products.
   Template-ul archive wrappează fiecare produs în <div class="col sc-product-col">
   care devine grid-item direct în ul.products (grid container).
   Produsul efectiv (.sc-card / .swiftcart-product-main) este copilul acelui col. */
ul.products {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Fiecare col (sau li.product) — nu depășește linia de grid */
ul.products > *,
ul.products > .col,
ul.products > .sc-product-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Cardul de produs ocupă toată înălțimea coloanei grid */
ul.products > * > .swiftcart-product-main,
ul.products > * > .sc-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

ul.products > * > .sc-card .sc-card__footer {
  margin-top: auto;
}

@media (min-width: 768px) {
  ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .sc-no-sidebar ul.products,
  .no-sidebar ul.products { grid-template-columns: repeat(4, 1fr); }
}

/* Pagination */
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sc-radius-sm);
  border: 1.5px solid var(--swiftcart-border-color);
  color: var(--swiftcart-text);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--sc-transition);
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
  background: var(--swiftcart-base);
  border-color: var(--swiftcart-base);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════
   10. SINGLE PRODUCT PAGE
═══════════════════════════════════════════════════════ */
.single-product .product,
.sc-single-product-wrap {
  background: var(--swiftcart-white);
  border-radius: var(--sc-radius-lg);
  padding: 2rem;
  box-shadow: var(--sc-shadow-card);
  border: 1px solid var(--swiftcart-border-color);
}

.sc-gallery,
.product-single-gallery-main,
.woocommerce-product-gallery {
  border-radius: var(--sc-radius-lg);
  overflow: hidden;
}

@media (min-width: 992px) {
  .sc-gallery,
  .product-single-gallery-main {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

.product_title,
.entry-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.single-product .price,
.sc-product-summary .price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--swiftcart-base);
}

/* Trust badges */
.sc-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding: .85rem 0;
  border-top: 1px solid var(--swiftcart-border-color);
  margin-top: .75rem;
}

.sc-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--swiftcart-text);
}

.sc-trust-badge svg {
  color: var(--swiftcart-base);
  flex-shrink: 0;
}

/* Product tabs */
.woocommerce-tabs .tabs {
  border-bottom: 2px solid var(--swiftcart-border-color);
}

.woocommerce-tabs .tabs li a {
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem 1.25rem;
  color: var(--swiftcart-text);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--sc-transition);
}

.woocommerce-tabs .tabs li.active a {
  color: var(--swiftcart-base);
  border-bottom-color: var(--swiftcart-base);
}

/* ═══════════════════════════════════════════════════════
   11. CART PAGE
═══════════════════════════════════════════════════════ */
.woocommerce-cart .shop_table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--sc-radius-lg);
  border: 1px solid var(--swiftcart-border-color);
  background: var(--swiftcart-white);
  overflow: hidden;
  width: 100%;
}

.woocommerce-cart .shop_table th {
  background: var(--swiftcart-gray);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .85rem 1.25rem;
  color: var(--swiftcart-black);
}

.woocommerce-cart .shop_table td {
  border-top: 1px solid var(--swiftcart-border-color);
  padding: 1.1rem 1.25rem;
  vertical-align: middle;
}

.cart_totals {
  background: var(--swiftcart-white);
  border-radius: var(--sc-radius-lg);
  border: 1px solid var(--swiftcart-border-color);
  box-shadow: var(--sc-shadow-card);
  padding: 1.5rem;
}

/* Free shipping progress bar */
.sc-free-shipping-bar {
  background: var(--swiftcart-base-light);
  border-radius: var(--sc-radius-lg);
  padding: .85rem 1.1rem;
  margin-bottom: 1.25rem;
}

.sc-free-shipping-bar__text {
  font-size: .875rem;
  color: var(--swiftcart-text);
  margin-bottom: .5rem;
}

.sc-free-shipping-bar__track {
  background: var(--swiftcart-gray-2);
  border-radius: var(--sc-radius-pill);
  height: 6px;
  overflow: hidden;
}

.sc-free-shipping-bar__fill {
  background: linear-gradient(90deg, var(--swiftcart-base), var(--swiftcart-base-hover));
  height: 100%;
  border-radius: var(--sc-radius-pill);
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

.sc-free-shipping-bar--achieved { background: #ecfdf5; }
.sc-free-shipping-bar--achieved .sc-free-shipping-bar__text {
  color: #065f46;
  font-weight: 600;
}

/* Mobile cart — rows as cards */
@media (max-width: 767px) {
  .woocommerce-cart .shop_table thead { display: none; }

  .woocommerce-cart .shop_table tr {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
    border-bottom: 1px solid var(--swiftcart-border-color);
  }

  .woocommerce-cart .shop_table td {
    border: none;
    padding: .25rem .5rem;
  }

  .woocommerce-cart .shop_table td.product-thumbnail { width: 80px; }
  .woocommerce-cart .shop_table td.product-name { flex: 1; }
}

/* ═══════════════════════════════════════════════════════
   12. CHECKOUT
═══════════════════════════════════════════════════════ */
.woocommerce-checkout #payment {
  border-radius: var(--sc-radius-lg);
  border: 1px solid var(--swiftcart-border-color);
  background: var(--swiftcart-white);
  overflow: hidden;
}

/* Checkout progress steps */
.sc-checkout-progress {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.sc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.sc-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--swiftcart-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--swiftcart-text);
  background: var(--swiftcart-white);
}

.sc-step--active .sc-step__num {
  border-color: var(--swiftcart-base);
  background: var(--swiftcart-base);
  color: #fff;
}

.sc-step--done .sc-step__num {
  border-color: #059669;
  background: #059669;
  color: #fff;
}

.sc-step__label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--swiftcart-text-gray);
  white-space: nowrap;
}

.sc-step--active .sc-step__label { color: var(--swiftcart-base); }

.sc-step__line {
  flex: 1;
  height: 2px;
  background: var(--swiftcart-border-color);
  margin: 0 .5rem;
  margin-top: -0.85rem;
}

/* Secure payment message */
.sc-secure-msg {
  font-size: .78rem;
  color: var(--swiftcart-text-gray);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: .75rem;
}

.sc-secure-msg svg { color: #059669; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   13. MY ACCOUNT
═══════════════════════════════════════════════════════ */
.woocommerce-MyAccount-navigation {
  background: var(--swiftcart-white);
  border-radius: var(--sc-radius-lg);
  border: 1px solid var(--swiftcart-border-color);
  overflow: hidden;
}

.woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--swiftcart-border-color);
  font-size: .9rem;
  font-weight: 500;
  color: var(--swiftcart-text);
  transition: var(--sc-transition);
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--swiftcart-base-light);
  color: var(--swiftcart-base);
}

.sc-account-nav__avatar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--swiftcart-border-color);
}

.sc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--swiftcart-base-light);
  color: var(--swiftcart-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.sc-account-nav__user strong {
  display: block;
  font-size: .875rem;
  color: var(--swiftcart-black);
}

.sc-account-nav__user span {
  font-size: .78rem;
  color: var(--swiftcart-text-gray);
}

.sc-account-nav__logout {
  border-top: 1px solid var(--swiftcart-border-color);
  margin-top: .25rem;
}

.sc-account-nav__logout a { color: #dc2626; }
.sc-account-nav__logout a:hover { background: #fef2f2; color: #dc2626; }

/* Order status badges */
.sc-order-status {
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: var(--sc-radius-pill);
  display: inline-block;
}

.sc-status--processing { background: #fffbeb; color: #92400e; }
.sc-status--completed  { background: #ecfdf5; color: #065f46; }
.sc-status--cancelled,
.sc-status--failed     { background: #fef2f2; color: #991b1b; }
.sc-status--on-hold,
.sc-status--pending    { background: var(--swiftcart-gray); color: var(--swiftcart-text); }
.sc-status--refunded   { background: var(--swiftcart-base-light); color: #3730a3; }

/* ═══════════════════════════════════════════════════════
   14. WIDGETS & SIDEBAR
═══════════════════════════════════════════════════════ */
.widget {
  background: var(--swiftcart-white);
  border: 1px solid var(--swiftcart-border-color);
  border-radius: var(--sc-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--swiftcart-box-shadow);
}

.widget-title,
.widgettitle {
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--swiftcart-base);
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--swiftcart-black);
}

/* ═══════════════════════════════════════════════════════
   15. WOOCOMMERCE NOTICES
═══════════════════════════════════════════════════════ */
.woocommerce-message {
  border-radius: var(--sc-radius-lg);
  background: #ecfdf5;
  color: #065f46;
  border: none;
  padding: 1rem 1.25rem 1rem 3.5rem;
}

.woocommerce-error {
  border-radius: var(--sc-radius-lg);
  background: #fef2f2;
  color: #991b1b;
  border: none;
  padding: 1rem 1.25rem 1rem 3.5rem;
}

.woocommerce-info {
  border-radius: var(--sc-radius-lg);
  background: var(--swiftcart-base-light);
  color: #3730a3;
  border: none;
  padding: 1rem 1.25rem 1rem 3.5rem;
}

/* ═══════════════════════════════════════════════════════
   16. FOOTER
═══════════════════════════════════════════════════════ */
.default-footer {
  background: var(--swiftcart-black);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

.default-footer p {
  font-size: .85rem;
  opacity: .7;
  color: #fff;
  margin: 0;
}

.footer-widget-area,
.sw-footer-widget-area {
  background: var(--swiftcart-black-2);
  color: rgba(255,255,255,.7);
}

/* ═══════════════════════════════════════════════════════
   17. TOAST NOTIFICATION
═══════════════════════════════════════════════════════ */
.sc-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.sc-toast {
  background: var(--swiftcart-white);
  border: 1px solid var(--swiftcart-border-color);
  border-radius: var(--sc-radius-lg);
  padding: .85rem 1rem;
  box-shadow: var(--sc-shadow-lg);
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 280px;
  max-width: 340px;
  animation: sc-toast-in .25s cubic-bezier(.4,0,.2,1);
}

.sc-toast.removing {
  animation: sc-toast-out .25s cubic-bezier(.4,0,.2,1) forwards;
}

.sc-toast-img {
  width: 44px;
  height: 44px;
  border-radius: var(--sc-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.sc-toast-text  { flex: 1; font-size: .85rem; }

.sc-toast-title {
  font-weight: 600;
  color: var(--swiftcart-black);
  font-size: .875rem;
}

.sc-toast-link {
  color: var(--swiftcart-base);
  font-size: .8rem;
}

@keyframes sc-toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes sc-toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(16px); }
}

/* ═══════════════════════════════════════════════════════
   18. GLOBAL ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes sc-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

@keyframes sc-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sc-animate-in {
  animation: sc-fade-up .4s cubic-bezier(.4,0,.2,1) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════
   20. BREADCRUMB OVERRIDES
   The parent theme's `.sw-breadcrumb__area` overrides
   `.base-bg` with a near-white `#f5f5f5`. We restore a
   proper branded look and guarantee text visibility.
═══════════════════════════════════════════════════════ */
.sw-breadcrumb__area {
  background: linear-gradient(
    135deg,
    var(--swiftcart-base)       0%,
    var(--swiftcart-base-hover) 100%
  ) !important;
  height: auto !important;
  padding: .9rem 0 !important;
}

.sw-breadcrumb__list,
.sw-breadcrumb__list span,
.sw-breadcrumb__list .current {
  color: rgba(255, 255, 255, .88) !important;
}

.sw-breadcrumb__list a {
  color: #fff !important;
  font-weight: 500;
  text-decoration: none;
}

.sw-breadcrumb__list a:hover {
  color: rgba(255, 255, 255, .7) !important;
  text-decoration: underline;
}

/* The pseudo-element separator added by swiftcart-custom.css */
.sw-breadcrumb__list span:not(:last-of-type)::after {
  color: rgba(255, 255, 255, .6) !important;
}

/* ═══════════════════════════════════════════════════════
   21. HEADER — BUTTON / SEARCH BAR OVERLAP FIX
   Ensure MY CART, ACCOUNT etc. do not float over the
   search bar when the header uses the default or
   Elementor builder layout.
═══════════════════════════════════════════════════════ */

/* Sticky header — ensure it creates its own stacking context */
.sw-default-header,
.sw-header-two,
.swiftcart-header-builder {
  position: sticky !important;
  top: 0;
  z-index: 1000;
}

/* All direct flex children of the header wrapper must stay
   in flow and not absolutely-position themselves */
.sw-header-two__wrapper > *,
.sw-header-landing .sw-header-two__wrapper > * {
  position: relative;
  z-index: 1;
}

/* Search bar — grows to fill available space, never hidden */
.sw-header-two__search,
.sw-header-one__search {
  flex: 1 1 auto !important;
  min-width: 160px;
  max-width: 560px;
  position: relative !important;
  z-index: 2;
}

/* Action buttons container (cart / account / wishlist) —
   does NOT grow; stays to the right of the search bar */
.sw-header-two__btns,
.sw-header-one__btns {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .25rem;
  position: relative;
  z-index: 2;
}

/* Prevent individual header buttons from leaking out of their
   container via absolute positioning at the wrapper level */
.sw-header-two__btn,
.sw-header-one__btn {
  position: relative !important;
}

/* ═══════════════════════════════════════════════════════
   22. PRODUCT CARD — BUTTON AREA IMPROVEMENTS
   Separates the footer visually from the card body,
   ensures the CTA button is always full-width and
   properly styled, and tidies up the action-icons overlay.
═══════════════════════════════════════════════════════ */

/* Card body — always fills remaining space so footer sticks
   to the bottom regardless of title / description length */
.sc-card__body {
  flex: 1;
  padding: 1rem 1rem .6rem;
}

/* Card footer — clear visual separator + consistent spacing */
.sc-card__footer {
  padding: .75rem 1rem 1rem;
  border-top: 1px solid var(--swiftcart-border-color);
  background: var(--swiftcart-white);
  margin-top: 0;          /* footer is already pinned via flex */
}

/* Add-to-cart / view-product button inside footer */
.sc-card__footer .button,
.sc-card__footer .sc-btn,
ul.products li.product .sc-card__footer .button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  border-radius: var(--sc-radius-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Price row — align price + badge on one line */
.sc-card__price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .3rem;
  margin-bottom: .5rem;
}

/* Slightly larger hover shadow for action-icon buttons */
.sc-card__actions a:hover,
.sc-card__actions button:hover {
  box-shadow: 0 4px 16px rgba(var(--swiftcart-base-rgb), .25) !important;
}

/* ═══════════════════════════════════════════════════════
   19. RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .sc-card__body { padding: .65rem .75rem .4rem; }

  .single-product .product,
  .sc-single-product-wrap { padding: 1.25rem; }
}

@media (max-width: 767px) {
  body { font-size: 14px; }

  .btn,
  .sc-btn,
  .woocommerce a.button,
  .woocommerce button.button {
    padding: .55rem 1.1rem;
    font-size: .825rem;
  }

  :root { --sc-radius-lg: 12px; }
}
