/*
Theme Name: Didelou
Theme URI: https://didelou.gr
Author: Didelou
Author URI: https://didelou.gr
Description: A modern Greek beauty accessories & tools e-shop theme for Didelou.gr. Features a hero carousel, category grid, brands section, product catalog, cart and checkout — all with a deep-purple and warm off-white palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: didelou
Tags: e-commerce, custom-menu, translation-ready, one-column, two-columns, grid-layout
*/

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --background: 30 20% 97%;
  --foreground: 270 15% 15%;

  --card: 0 0% 100%;
  --card-foreground: 270 15% 15%;

  --popover: 0 0% 100%;
  --popover-foreground: 270 15% 15%;

  --primary: 270 40% 30%;
  --primary-foreground: 0 0% 100%;

  --secondary: 270 15% 92%;
  --secondary-foreground: 270 40% 25%;

  --muted: 30 10% 93%;
  --muted-foreground: 270 8% 45%;

  --accent: 38 70% 52%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 72% 50%;
  --destructive-foreground: 0 0% 100%;

  --border: 270 10% 88%;
  --input: 270 10% 88%;
  --ring: 270 40% 30%;

  --radius: 0.625rem;

  --nav-bg: 270 40% 22%;
  --nav-foreground: 0 0% 100%;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.min-h-screen {
  min-height: 100vh;
}

.flex-col-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.flex-1 {
  flex: 1;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* -- Top bar -- */
.header-topbar {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .header-topbar .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
  }
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .topbar-left {
    gap: 1.25rem;
  }
}

.topbar-left .phone-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .topbar-right {
    gap: 1rem;
  }
}

.topbar-right a {
  font-weight: 500;
}

.topbar-right a:hover {
  text-decoration: underline;
}

.topbar-separator {
  opacity: 0.4;
}

/* -- Main header row -- */
.header-main {
  background-color: hsl(var(--card));
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-bottom: 1px solid hsl(var(--border));
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .header-main .container {
    gap: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

.header-logo {
  flex-shrink: 0;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .header-logo img {
    height: 3.5rem;
  }
}

@media (min-width: 768px) {
  .header-logo img {
    height: 4rem;
  }
}

@media (min-width: 1024px) {
  .header-logo img {
    height: 5rem;
  }
}

/* -- Search -- */
.header-search {
  position: relative;
  flex: 1;
  max-width: 42rem;
  display: none;
}

@media (min-width: 768px) {
  .header-search {
    display: block;
  }
}

/* FiboSearch / DGWT WCAS: same layout shell as native search */
.header-search .dgwt-wcas-search-wrapp {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.header-search .dgwt-wcas-search-form {
  width: 100%;
  max-width: none;
  margin: 0;
}

.header-search .dgwt-wcas-sf-wrapp {
  position: relative;
  display: block;
}

.header-search input,
.header-search .dgwt-wcas-search-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  padding: 0.75rem 1.25rem;
  padding-right: 3.5rem;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
  min-height: 2.75rem;
  appearance: none;
  -webkit-appearance: none;
}

.header-search input:focus,
.header-search .dgwt-wcas-search-input:focus {
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.3);
}

.header-search button,
.header-search .dgwt-wcas-search-submit {
  position: absolute;
  right: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 0.5rem;
  background-color: hsl(var(--primary));
  padding: 0.625rem;
  color: hsl(var(--primary-foreground));
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.header-search .dgwt-wcas-search-submit svg,
.header-search .dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier {
  display: block;
  color: hsl(0 0% 100%) !important;
  fill: hsl(0 0% 100%) !important;
}

.header-search .dgwt-wcas-search-submit svg path,
.header-search .dgwt-wcas-search-submit svg circle,
.header-search .dgwt-wcas-search-submit svg line,
.header-search .dgwt-wcas-search-submit svg polyline,
.header-search .dgwt-wcas-search-submit svg rect,
.header-search .dgwt-wcas-search-submit svg use {
  fill: hsl(0 0% 100%) !important;
  stroke: hsl(0 0% 100%) !important;
}

.header-search button:active,
.header-search .dgwt-wcas-search-submit:active {
  transform: translateY(-50%) scale(0.95);
}

/* FiboSearch Pirx skin (plugin style.min.css) — reposition, fill, clickable */
.header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: hsl(var(--primary)) !important;
  background-color: hsl(var(--primary)) !important;
  border: 0 !important;
  border-radius: 0.5rem !important;
  padding: 0.625rem !important;
  margin: 0 !important;
  pointer-events: auto !important;
  transition: transform 0.15s ease !important;
  color: hsl(var(--primary-foreground)) !important;
}

.header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:active {
  transform: translateY(-50%) scale(0.95) !important;
}

.header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg,
.header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier {
  fill: hsl(0 0% 100%) !important;
  color: hsl(0 0% 100%) !important;
}

.header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg path,
.header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg circle,
.header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg line,
.header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg polyline,
.header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg rect,
.header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg use {
  fill: hsl(0 0% 100%) !important;
  stroke: hsl(0 0% 100%) !important;
}

/* Preloader sits left of the submit control */
.header-search .dgwt-wcas-preloader {
  right: 3.35rem !important;
}

.header-search .dgwt-wcas-voice-search:empty {
  display: none;
}

/* Mobile overlay trigger is not used in header on desktop; it duplicated a huge hit target */
@media (min-width: 768px) {
  .header-search .dgwt-wcas-enable-mobile-form {
    display: none !important;
  }
}

/* -- Header actions -- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .header-actions {
    gap: 1.5rem;
  }
}

.header-action-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.header-action-link:hover {
  color: hsl(var(--primary));
}

.header-action-link span {
  font-size: 0.75rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .header-action-link span {
    font-size: 0.875rem;
  }
}

.header-cart {
  position: relative;
}

.header-cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-cart .cart-badge {
  position: absolute;
  top: -0.375rem;
  right: -0.5rem;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 9999px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-cart .cart-badge[hidden] {
  display: none !important;
}

.mobile-menu-toggle {
  display: block;
  padding: 0.25rem;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* -- Navigation bar -- */
.header-nav {
  background: linear-gradient(
    180deg,
    hsl(var(--nav-bg)) 0%,
    hsl(270 42% 18%) 100%
  );
  border-top: 1px solid hsl(var(--accent) / 0.28);
  box-shadow:
    0 1px 0 hsl(0 0% 100% / 0.06) inset,
    0 4px 12px -2px rgba(40, 20, 60, 0.35);
}

.header-nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

@media (min-width: 768px) {
  .header-nav .container {
    min-height: 3.25rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
}

.nav-list {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.125rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .nav-list {
    display: flex;
  }
}

/* Shared rules: fallback .nav-link + WP menu (ul.nav-list or ul.menu) */
.header-nav .nav-list > li > a,
.header-nav .nav-list > li > a.nav-link,
.header-nav .menu > li > a {
  position: relative;
  display: block;
  padding: 0.625rem 0.875rem;
  color: hsl(var(--nav-foreground) / 0.82);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

@media (min-width: 1024px) {
  .header-nav .nav-list > li > a,
  .header-nav .nav-list > li > a.nav-link,
  .header-nav .menu > li > a {
    padding: 0.6875rem 1.125rem;
    font-size: 0.95rem;
  }
}

.header-nav .nav-list > li > a::after,
.header-nav .menu > li > a::after {
  content: '';
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 1px;
  background: hsl(var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
  opacity: 0.95;
}

@media (min-width: 1024px) {
  .header-nav .nav-list > li > a::after,
  .header-nav .menu > li > a::after {
    left: 0.85rem;
    right: 0.85rem;
  }
}

.header-nav .nav-list > li > a:hover,
.header-nav .nav-list > li > a.nav-link:hover,
.header-nav .menu > li > a:hover {
  color: hsl(var(--nav-foreground));
  background-color: hsl(0 0% 100% / 0.08);
}

.header-nav .nav-list > li > a:hover::after,
.header-nav .menu > li > a:hover::after {
  transform: scaleX(1);
}

.header-nav .nav-list > li > a:focus-visible,
.header-nav .menu > li > a:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

.header-nav .nav-list .current-menu-item > a,
.header-nav .nav-list .current_page_item > a,
.header-nav .nav-list .current-menu-ancestor > a,
.header-nav .menu .current-menu-item > a,
.header-nav .menu .current_page_item > a,
.header-nav .menu .current-menu-ancestor > a,
.nav-list .current-menu-item .nav-link {
  color: hsl(var(--nav-foreground));
  background-color: hsl(0 0% 100% / 0.12);
}

.header-nav .nav-list .current-menu-item > a::after,
.header-nav .nav-list .current_page_item > a::after,
.header-nav .nav-list .current-menu-ancestor > a::after,
.header-nav .menu .current-menu-item > a::after,
.header-nav .menu .current_page_item > a::after,
.header-nav .menu .current-menu-ancestor > a::after,
.nav-list .current-menu-item .nav-link::after {
  transform: scaleX(1);
}

/* WordPress alternate ul class */
.header-nav .menu {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.125rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .header-nav .menu {
    display: flex;
  }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
}

.mobile-nav.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-nav,
  .mobile-nav.is-open {
    display: none;
  }
}

.mobile-nav li a {
  display: block;
  padding: 0.75rem 1rem;
  color: hsl(var(--nav-foreground) / 0.8);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.mobile-nav li a:hover {
  color: hsl(var(--nav-foreground));
  background-color: rgba(255,255,255,0.1);
}

.mobile-nav li a:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

/* ==========================================================================
   5. Hero Carousel
   ========================================================================== */

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: hsl(var(--muted));
  height: 320px;
}

@media (min-width: 640px) {
  .hero-carousel { height: 420px; }
}
@media (min-width: 768px) {
  .hero-carousel { height: 500px; }
}
@media (min-width: 1024px) {
  .hero-carousel { height: 560px; }
}

.carousel-slide {
  position: absolute;
  inset: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  opacity: 0;
  transform: scale(1.03);
  z-index: 0;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsl(var(--foreground) / 0.5), hsl(var(--foreground) / 0.2), transparent);
}

.carousel-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.carousel-content .container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .carousel-content .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 768px) {
  .carousel-content .container {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.carousel-text {
  max-width: 32rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.carousel-slide.is-active .carousel-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 250ms;
}

.carousel-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: hsl(var(--primary-foreground));
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

@media (min-width: 640px) {
  .carousel-text h2 { font-size: 1.875rem; margin-bottom: 1rem; }
}
@media (min-width: 768px) {
  .carousel-text h2 { font-size: 3rem; }
}

.carousel-text p {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: hsl(var(--primary-foreground) / 0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

@media (min-width: 640px) {
  .carousel-text p { font-size: 1.125rem; margin-bottom: 1.5rem; }
}
@media (min-width: 768px) {
  .carousel-text p { font-size: 1.5rem; }
}

.carousel-cta {
  display: inline-block;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.3s;
}

@media (min-width: 640px) {
  .carousel-cta {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
  }
}

.carousel-cta:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
}

.carousel-cta:active {
  transform: scale(0.95);
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: hsl(var(--card) / 0.8);
  border-radius: 9999px;
  padding: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground));
}

@media (min-width: 640px) {
  .carousel-arrow {
    padding: 0.75rem;
  }
}

.carousel-arrow:hover {
  background-color: hsl(var(--card));
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow--prev {
  left: 0.5rem;
}

@media (min-width: 640px) {
  .carousel-arrow--prev { left: 1rem; }
}

.carousel-arrow--next {
  right: 0.5rem;
}

@media (min-width: 640px) {
  .carousel-arrow--next { right: 1rem; }
}

.carousel-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 640px) {
  .carousel-arrow svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.625rem;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: hsl(0 0% 100% / 0.7);
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.carousel-dot.is-active {
  background-color: hsl(270 40% 30%);
  transform: scale(1.3);
}

/* ==========================================================================
   6. Categories Section
   ========================================================================== */

.categories-section {
  padding: 4rem 0;
  background-color: hsl(var(--muted) / 0.5);
}

.categories-section h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .categories-section h2 {
    font-size: 2.25rem;
  }
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: all 0.7s ease-out;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.categories-grid.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  background-color: hsl(var(--card));
  text-align: left;
  display: block;
  transition: box-shadow 0.3s;
}

.category-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}

.category-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.category-card:hover .category-card-image img {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, hsl(var(--foreground) / 0.8), transparent);
  padding: 1.25rem;
}

.category-card-overlay h3 {
  color: hsl(var(--primary-foreground));
  font-size: 1.25rem;
  font-weight: 700;
}

.category-card-overlay p {
  color: hsl(var(--primary-foreground) / 0.7);
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* ==========================================================================
   7. Brands Section
   ========================================================================== */

.brands-section {
  padding: 3.5rem 0;
  background-color: hsl(var(--card));
}

.brands-section h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .brands-section h2 {
    font-size: 1.875rem;
  }
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.6s ease-out;
}

.brands-grid.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
}

.brand-badge:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.3);
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

.site-footer {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-grid h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-about p {
  color: hsl(var(--primary-foreground) / 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-categories ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-categories a {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.7);
  transition: color 0.2s;
}

.footer-categories a:hover {
  color: hsl(var(--primary-foreground));
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.7);
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid hsl(var(--primary-foreground) / 0.1);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--primary-foreground) / 0.5);
}

/* ==========================================================================
   9. Product Card
   ========================================================================== */

.product-card {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}

.product-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  display: block;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.25rem;
}

.product-card-category {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.product-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title:hover {
  color: hsl(var(--primary));
}

.product-card-prices {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

.product-card-old-price {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
}

/* ==========================================================================
   10. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: transform 0.15s, box-shadow 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.95);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}

.btn-primary-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

@media (min-width: 640px) {
  .btn-primary-lg {
    padding: 1rem 2rem;
  }
}

.btn-primary-full {
  width: 100%;
}

.btn-muted {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn-muted:hover {
  background-color: hsl(var(--secondary));
}

.btn-muted.is-active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

/* ==========================================================================
   11. Shop Page
   ========================================================================== */

.shop-page {
  padding: 3rem 0;
}

.shop-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .shop-title {
    font-size: 2.25rem;
  }
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: all 0.7s ease-out;
}

.products-grid.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   11b. WooCommerce shop (matches Vite grid + cards)
   ========================================================================== */

.woocommerce-archive-shop .woocommerce {
  margin: 0;
}

.woocommerce-archive-shop ul.products.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  clear: both;
}

/*
 * WooCommerce clearfix: ::before/::after on ul.products become grid items everywhere
 * (shop, related, upsells). Kill them globally for .products-grid, not only .woocommerce-archive-shop.
 */
ul.products.products-grid::before,
ul.products.products-grid::after {
  content: none !important;
  display: none !important;
}

/* WC catalog CSS: float + width ~22% breaks CSS grid (shop, related, upsells) */
.woocommerce ul.products.products-grid li.product,
.woocommerce-page ul.products.products-grid li.product {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: none !important;
}

/* Sale badge: remove WC min-size + circle + olive (#958e09); use theme purple pill */
.woocommerce span.onsale,
.woocommerce-page span.onsale {
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.2 !important;
  padding: 0.35rem 0.75rem !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 9999px !important;
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-align: center;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (min-width: 640px) {
  .woocommerce-archive-shop ul.products.products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .woocommerce-archive-shop ul.products.products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .woocommerce-archive-shop ul.products.products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.woocommerce-archive-shop ul.products.products-grid li.product {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  padding: 0;
}

.woocommerce-archive-shop .product-card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
}

.woocommerce-archive-shop .product-card-image-wrap .product-card-image {
  aspect-ratio: unset;
  height: 100%;
  border-radius: 0;
}

/* Sale pill: WC .onsale uses high min-width, left/top, and grey/green backgrounds — override in loop cards */
.woocommerce-archive-shop ul.products li.product .product-card-image-wrap span.onsale {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  left: auto !important;
  z-index: 2;
  margin: 0 !important;
  padding: 0.35rem 0.75rem !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
  border-radius: 9999px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.woocommerce-archive-shop .wc-price-wrap .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

/* WC sometimes outputs amounts without a .price wrapper — still color primary */
.woocommerce-archive-shop .wc-price-wrap .woocommerce-Price-amount,
.woocommerce-archive-shop .wc-price-wrap .amount {
  color: hsl(var(--primary));
  font-weight: 800;
}

.woocommerce-archive-shop .wc-price-wrap .price del {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  opacity: 1;
}

.woocommerce-archive-shop .wc-price-wrap .price del .woocommerce-Price-amount {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.woocommerce-archive-shop .wc-price-wrap .price ins {
  text-decoration: none;
  font-weight: 800;
  color: hsl(var(--primary));
}

.woocommerce-archive-shop .wc-price-wrap .price ins .woocommerce-Price-amount {
  color: hsl(var(--primary));
}

/* Loop card CTA: WooCommerce .button + theme .btn — WC stylesheet often wins without explicit overrides */
.woocommerce-archive-shop .product-card-body a.button.wc-loop-add-to-cart,
.woocommerce-archive-shop .product-card-body a.add_to_cart_button,
.woocommerce-archive-shop .product-card-body a.button.product_type_variable,
.woocommerce-archive-shop .product-card-body a.button.product_type_external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.15s ease;
}

.woocommerce-archive-shop .product-card-body a.button.wc-loop-add-to-cart:hover,
.woocommerce-archive-shop .product-card-body a.add_to_cart_button:hover,
.woocommerce-archive-shop .product-card-body a.button.product_type_variable:hover,
.woocommerce-archive-shop .product-card-body a.button.product_type_external:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  color: hsl(var(--primary-foreground)) !important;
}

.woocommerce-archive-shop .product-card-body a.button.wc-loop-add-to-cart:active,
.woocommerce-archive-shop .product-card-body a.add_to_cart_button:active {
  transform: scale(0.98);
}

.woocommerce-archive-shop .product-card-body a.added_to_cart {
  display: none;
}

.woocommerce-archive-shop nav.woocommerce-pagination {
  margin-top: 2.5rem;
  clear: both;
}

.woocommerce-archive-shop nav.woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-archive-shop nav.woocommerce-pagination ul li {
  margin: 0;
}

.woocommerce-archive-shop nav.woocommerce-pagination a,
.woocommerce-archive-shop nav.woocommerce-pagination span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.woocommerce-archive-shop nav.woocommerce-pagination a:hover {
  background-color: hsl(var(--secondary));
}

.woocommerce-archive-shop nav.woocommerce-pagination span.current {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* ==========================================================================
   12. Product Detail Page
   ========================================================================== */

.product-detail {
  padding: 2.5rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

@media (min-width: 640px) {
  .breadcrumb {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

.breadcrumb a {
  white-space: nowrap;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: hsl(var(--primary));
}

.breadcrumb .current {
  color: hsl(var(--foreground));
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 640px) {
  .product-detail-grid {
    margin-bottom: 4rem;
  }
}

.product-detail-image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.product-detail-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

@media (min-width: 640px) {
  .product-detail-image img {
    aspect-ratio: 1/1;
  }
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-detail-category {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-detail-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .product-detail-name { font-size: 1.875rem; margin-bottom: 1rem; }
}
@media (min-width: 768px) {
  .product-detail-name { font-size: 2.25rem; }
}

.product-detail-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .product-detail-pricing {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
}

.product-detail-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

@media (min-width: 640px) {
  .product-detail-price { font-size: 1.875rem; }
}

.product-detail-old-price {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
}

.product-detail-discount {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.product-detail-description {
  font-size: 1rem;
  color: hsl(var(--foreground) / 0.8);
  margin-bottom: 1rem;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .product-detail-description {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .product-stock {
    margin-bottom: 2rem;
    font-size: 1rem;
  }
}

.product-stock svg {
  width: 1.25rem;
  height: 1.25rem;
}

.product-stock.in-stock {
  color: hsl(var(--primary));
}

.product-stock.in-stock span {
  font-weight: 600;
}

.product-stock.out-of-stock {
  color: hsl(var(--destructive));
}

.product-stock.out-of-stock span {
  font-weight: 600;
}

/* Related products */
.related-products h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.related-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .related-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-product-card {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
  display: block;
}

.related-product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}

.related-product-card .card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.related-product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-product-card:hover .card-image img {
  transform: scale(1.05);
}

.related-product-card .card-body {
  padding: 1rem;
}

.related-product-card .card-body h3 {
  font-weight: 700;
  color: hsl(var(--foreground));
  font-size: 1rem;
}

.related-product-card .card-body .price {
  color: hsl(var(--primary));
  font-weight: 800;
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

/* ==========================================================================
   12b. WooCommerce single product (classic — align with Vite ProductPage)
   ========================================================================== */

body.single-product .woocommerce-single-product {
  padding: 2.5rem 0;
}

body.single-product .woocommerce-single-product .breadcrumb.woocommerce-breadcrumb {
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  body.single-product .woocommerce-single-product .breadcrumb.woocommerce-breadcrumb {
    margin-bottom: 2rem;
  }
}

body.single-product .woocommerce-single-product .breadcrumb-delimiter {
  opacity: 0.65;
  padding: 0 0.15rem;
}

body.single-product .woocommerce-notices-wrapper {
  margin-bottom: 1rem;
}

/* Gallery + summary side by side; tabs / upsells / related full width (flex, not grid on .product) */
body.single-product .woocommerce-single-product div.product.type-product {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 2.5rem;
  margin-bottom: 0;
}

body.single-product .woocommerce-single-product div.product .woocommerce-product-gallery {
  flex: 1 1 calc(50% - 1.25rem);
  min-width: min(100%, 18rem);
  float: none !important;
  max-width: none !important;
  margin: 0 !important;
}

body.single-product .woocommerce-single-product div.product .summary.entry-summary {
  flex: 1 1 calc(50% - 1.25rem);
  min-width: min(100%, 18rem);
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body.single-product .woocommerce-single-product div.product .woocommerce-tabs,
body.single-product .woocommerce-single-product div.product section.up-sells.products,
body.single-product .woocommerce-single-product div.product section.related.products {
  flex: 1 1 100%;
  width: 100%;
}

body.single-product .woocommerce-product-gallery {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body.single-product .summary .product-summary-brand {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

body.single-product .summary .product_title.entry-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  color: hsl(var(--foreground));
}

@media (min-width: 640px) {
  body.single-product .summary .product_title.entry-title {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 768px) {
  body.single-product .summary .product_title.entry-title {
    font-size: 2.25rem;
  }
}

body.single-product .summary .woocommerce-product-rating:empty {
  display: none;
}

body.single-product .summary .woocommerce-product-rating {
  margin: 0 0 0.75rem;
}

body.single-product .summary p.price,
body.single-product .summary span.price {
  font-size: 1.375rem;
  font-weight: 700;
  color: hsl(var(--primary)) !important;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

@media (min-width: 640px) {
  body.single-product .summary p.price,
  body.single-product .summary span.price {
    font-size: 1.625rem;
  }
}

body.single-product .summary p.price del,
body.single-product .summary span.price del {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  font-size: 1rem;
}

body.single-product .summary p.price ins,
body.single-product .summary span.price ins {
  text-decoration: none;
  color: hsl(var(--primary));
}

body.single-product .product-summary-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  line-height: 1.3;
}

body.single-product .product-summary-stock--instock {
  color: hsl(var(--primary));
}

body.single-product .product-summary-stock__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 0.7rem;
  line-height: 1;
  flex-shrink: 0;
}

body.single-product .product-summary-stock--out {
  color: hsl(var(--destructive));
}

body.single-product .product-summary-stock--out .product-summary-stock__icon {
  background: hsl(var(--destructive) / 0.12);
  color: hsl(var(--destructive));
}

/* Cart row: quantity + primary CTA + icon actions (simple products) */
body.single-product form.cart {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
}

body.single-product form.cart.variations_form,
body.single-product form.cart.grouped_form {
  flex-direction: column;
  align-items: stretch;
}

body.single-product form.cart.variations_form .woocommerce-variation-add-to-cart {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

body.single-product form.cart .quantity {
  margin: 0 !important;
}

body.single-product form.cart .quantity .qty {
  width: 4.25rem;
  min-height: 2.75rem;
  max-width: none;
  padding: 0.5rem 0.65rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

body.single-product form.cart:not(.variations_form):not(.grouped_form) .single_add_to_cart_button {
  flex: 1 1 10rem;
  width: auto !important;
  min-width: 0;
}

body.single-product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  flex: 1 1 10rem;
  width: auto !important;
  min-width: 0;
}

body.single-product button.single_add_to_cart_button,
body.single-product .single_add_to_cart_button.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem !important;
  min-height: 2.75rem;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  border-radius: 0.85rem !important;
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border: none !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.15s ease;
}

body.single-product button.single_add_to_cart_button::before,
body.single-product .single_add_to_cart_button.button.alt::before {
  content: '';
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.single-product button.single_add_to_cart_button:hover,
body.single-product .single_add_to_cart_button.button.alt:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  color: hsl(var(--primary-foreground)) !important;
}

body.single-product .didelou-summary-icon-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin: 0;
}

body.single-product .didelou-summary-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

body.single-product .didelou-summary-icon-btn:hover {
  border-color: hsl(var(--primary) / 0.45);
  background: hsl(var(--muted) / 0.45);
  color: hsl(var(--primary));
}

body.single-product .didelou-summary-icon-btn.didelou-product-share--copied {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

body.single-product .didelou-summary-action-svg {
  display: block;
}

/* Trust strip */
body.single-product .product-summary-trust {
  margin: 0 0 1.5rem;
  padding: 1rem 1rem 1.15rem;
  background: hsl(var(--muted) / 0.55);
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.6);
}

body.single-product .product-summary-trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 0.75rem;
}

@media (min-width: 480px) {
  body.single-product .product-summary-trust__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

body.single-product .product-summary-trust__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-align: left;
}

body.single-product .product-summary-trust__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.15rem;
  color: hsl(var(--primary));
}

body.single-product .didelou-trust-svg {
  display: block;
}

body.single-product .product-summary-trust__title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  line-height: 1.25;
}

body.single-product .product-summary-trust__sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  line-height: 1.35;
}

/* Meta + SKU */
body.single-product .summary .product_meta {
  margin-top: 0;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

body.single-product .summary .product_meta > span {
  display: block;
  margin-bottom: 0.65rem;
}

body.single-product .summary .product_meta > span:last-child {
  margin-bottom: 0;
}

body.single-product .summary .product_meta .sku_wrapper,
body.single-product .summary .product_meta span.sku {
  font-weight: 500;
}

body.single-product .summary .product_meta a {
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: none;
}

body.single-product .summary .product_meta a:hover {
  text-decoration: underline;
}

body.single-product .summary .product_meta .posted_in,
body.single-product .summary .product_meta .tagged_as {
  margin-top: 0.25rem;
}

/* Product tabs: segmented control + card panel */
body.single-product .woocommerce-tabs.wc-tabs-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 2.5rem;
  margin-bottom: 0;
  background: transparent;
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.35rem;
  margin: 0 !important;
  padding: 0.4rem !important;
  list-style: none !important;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--muted));
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.6);
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after {
  display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
}

body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
  content: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  text-decoration: none !important;
  background: transparent;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

body.single-product .woocommerce-tabs ul.tabs li:not(.active) a:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--card) / 0.55);
  border-color: hsl(var(--border) / 0.7);
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: hsl(var(--primary));
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  box-shadow:
    0 1px 3px hsl(var(--foreground) / 0.06),
    0 0 0 1px hsl(var(--primary) / 0.12);
}

body.single-product .woocommerce-tabs ul.tabs li.active a:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

@media (min-width: 640px) {
  body.single-product .woocommerce-tabs ul.tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
  }

  body.single-product .woocommerce-tabs ul.tabs li {
    flex: 0 1 auto;
  }

  body.single-product .woocommerce-tabs ul.tabs li a {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    min-width: 10rem;
  }
}

@media (max-width: 639px) {
  body.single-product .woocommerce-tabs ul.tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  body.single-product .woocommerce-tabs ul.tabs li {
    flex: 1 0 auto;
  }

  body.single-product .woocommerce-tabs ul.tabs li a {
    white-space: nowrap;
    min-width: max(44vw, 9rem);
  }
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
  margin: 0 !important;
  padding: 1.25rem clamp(1.25rem, 4vw, 2rem) 2.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
  box-shadow: 0 1px 2px hsl(var(--foreground) / 0.04);
  color: hsl(var(--foreground) / 0.92);
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel p,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel li,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel td {
  font-style: normal;
  line-height: 1.75;
}

body.single-product .woocommerce-tabs #tab-description.woocommerce-Tabs-panel p:last-child {
  margin-bottom: 0;
}

/* Reviews tab: empty state, form layout, inputs */
body.single-product #tab-reviews.woocommerce-Tabs-panel--reviews #reviews.woocommerce-Reviews {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

body.single-product #tab-reviews .woocommerce-Reviews-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
  letter-spacing: -0.02em;
}

body.single-product #tab-reviews #comments {
  margin: 0;
}

body.single-product #tab-reviews .woocommerce-noreviews {
  margin: 0;
  padding: 1rem 1.15rem;
  max-width: 40rem;
  background: hsl(var(--muted) / 0.45);
  border: 1px solid hsl(var(--border));
  border-radius: 0.65rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.65;
}

body.single-product #tab-reviews #review_form_wrapper {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
}

body.single-product #tab-reviews #respond.comment-respond {
  margin: 0;
}

body.single-product #tab-reviews #respond .comment-reply-title {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

body.single-product #tab-reviews #respond .comment-notes,
body.single-product #tab-reviews #respond .required-field-message {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1rem;
  line-height: 1.55;
}

body.single-product #tab-reviews .comment-form {
  margin: 0;
}

body.single-product #tab-reviews .comment-form > p {
  margin: 0 0 1rem;
}

body.single-product #tab-reviews .comment-form > p.form-submit {
  margin-bottom: 0;
  margin-top: 0.25rem;
}

body.single-product #tab-reviews .comment-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.35rem;
}

body.single-product #tab-reviews .comment-form .comment-form-rating label {
  margin-bottom: 0.5rem;
}

body.single-product #tab-reviews .comment-form input[type='text'],
body.single-product #tab-reviews .comment-form input[type='email'],
body.single-product #tab-reviews .comment-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

body.single-product #tab-reviews .comment-form textarea {
  min-height: 8rem;
  resize: vertical;
}

body.single-product #tab-reviews .comment-form input[type='text']:focus,
body.single-product #tab-reviews .comment-form input[type='email']:focus,
body.single-product #tab-reviews .comment-form textarea:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

body.single-product #tab-reviews .comment-form p.stars {
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

body.single-product #tab-reviews .comment-form p.stars span {
  display: inline-block;
}

body.single-product #tab-reviews .comment-form p.stars a {
  display: inline-block;
  margin-right: 0.1rem;
  outline-offset: 2px;
}

body.single-product #tab-reviews .must-log-in,
body.single-product #tab-reviews .woocommerce-verification-required {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1rem;
}

body.single-product #tab-reviews .comment-form .comment-form-cookies-consent label {
  display: inline;
  font-weight: 500;
  font-size: 0.875rem;
  margin-left: 0.35rem;
}

body.single-product #tab-reviews .comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

body.single-product #tab-reviews .comment-form .comment-form-cookies-consent input[type='checkbox'] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

body.single-product #tab-reviews #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

body.single-product #tab-reviews #respond input#submit:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

body.single-product #tab-reviews #respond input#submit:active {
  transform: scale(0.98);
}

@media (min-width: 640px) {
  body.single-product #tab-reviews .comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
  }

  body.single-product #tab-reviews .comment-form > p.comment-form-rating,
  body.single-product #tab-reviews .comment-form > p.comment-form-comment,
  body.single-product #tab-reviews .comment-form > p.comment-notes,
  body.single-product #tab-reviews .comment-form > p.required-field-message,
  body.single-product #tab-reviews .comment-form > p.form-submit,
  body.single-product #tab-reviews .comment-form > p.comment-form-cookies-consent {
    grid-column: 1 / -1;
  }
}

/* Existing reviews list (when present) */
body.single-product #tab-reviews ol.commentlist {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

body.single-product #tab-reviews ol.commentlist li {
  margin: 0 0 0.85rem;
}

body.single-product #tab-reviews ol.commentlist li:last-child {
  margin-bottom: 0;
}

body.single-product #tab-reviews ol.commentlist .comment_container {
  padding: 1rem 1.1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.65rem;
  background: hsl(var(--muted) / 0.25);
}

body.single-product #tab-reviews ol.commentlist .star-rating {
  float: none;
  margin: 0 0 0.5rem;
}

body.single-product #tab-reviews ol.commentlist .meta {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.35rem;
}

body.single-product #tab-reviews ol.commentlist .description {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsl(var(--foreground) / 0.92);
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel > *:first-child {
  margin-top: 0;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel > *:last-child {
  margin-bottom: 0;
  padding: 15px !important;
}

/* FAQ accordion (under product meta in summary) */
body.single-product .summary .product-page-accordion {
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
  width: 100%;
}

body.single-product .product-page-accordion__heading {
  font-size: 1.125rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin: 0 0 0.85rem;
}

body.single-product .product-page-accordion__list {
  border: 1px solid hsl(var(--border));
  border-radius: 0.85rem;
  overflow: hidden;
  background: hsl(var(--card));
}

body.single-product .product-page-accordion__item {
  border-bottom: 1px solid hsl(var(--border));
}

body.single-product .product-page-accordion__item:last-child {
  border-bottom: none;
}

body.single-product .product-page-accordion__summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  background: hsl(var(--card));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.single-product .product-page-accordion__summary::-webkit-details-marker {
  display: none;
}

body.single-product .product-page-accordion__summary::after {
  content: '+';
  font-size: 1.15rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  line-height: 1;
  flex-shrink: 0;
}

body.single-product .product-page-accordion__item[open] .product-page-accordion__summary::after {
  content: '\2212';
}

body.single-product .product-page-accordion__item[open] .product-page-accordion__summary {
  background: hsl(var(--muted) / 0.35);
}

body.single-product .product-page-accordion__content {
  padding: 0 1.15rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

body.single-product .product-page-accordion__content > *:first-child {
  margin-top: 0;
}

body.single-product .product-page-accordion__content a {
  color: hsl(var(--primary));
  font-weight: 600;
}

body.single-product section.up-sells.products > h2,
body.single-product section.related.products > h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  color: hsl(var(--foreground));
}

body.single-product section.up-sells.products {
  margin-top: 1rem;
}

body.single-product .woocommerce-product-gallery span.onsale {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  right: auto;
  margin: 0 !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 9999px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
}

body.single-product .woocommerce-product-gallery {
  position: relative;
}

/* Related / upsells: purple CTA like shop archive */
body.single-product ul.products.products-grid .product-card-body a.button,
body.single-product ul.products .product-card-body a.add_to_cart_button {
  border-radius: 9999px !important;
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  font-weight: 700 !important;
  border: none !important;
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0.625rem 1.25rem !important;
}

/* ==========================================================================
   13. Cart Page
   ========================================================================== */

.cart-page {
  padding: 1.5rem 0;
}

@media (min-width: 640px) {
  .cart-page { padding: 2.5rem 0; }
}

.cart-page .container {
  max-width: 56rem;
}

.cart-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cart-title { font-size: 1.875rem; margin-bottom: 2rem; }
}
@media (min-width: 768px) {
  .cart-title { font-size: 2.25rem; }
}

.cart-empty {
  text-align: center;
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .cart-empty { padding: 5rem 0; }
}

.cart-empty svg {
  width: 3.5rem;
  height: 3.5rem;
  color: hsl(var(--muted-foreground));
  margin: 0 auto 1rem;
}

@media (min-width: 640px) {
  .cart-empty svg {
    width: 4rem;
    height: 4rem;
  }
}

.cart-empty p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cart-empty p { font-size: 1.25rem; }
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .cart-items {
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
}

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@media (min-width: 640px) {
  .cart-item {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
  }
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .cart-item-info { gap: 1.25rem; }
}

.cart-item-image {
  flex-shrink: 0;
}

.cart-item-image img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

@media (min-width: 640px) {
  .cart-item-image img {
    width: 6rem;
    height: 6rem;
  }
}

.cart-item-text {
  flex: 1;
  min-width: 0;
}

.cart-item-text h3 {
  font-weight: 700;
  color: hsl(var(--foreground));
  font-size: 1rem;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .cart-item-text h3 { font-size: 1.125rem; }
}

.cart-item-text h3:hover {
  color: hsl(var(--primary));
}

.cart-item-text .category {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .cart-item-text .category { font-size: 1rem; }
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cart-item-controls {
    justify-content: flex-end;
    gap: 1rem;
  }
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .quantity-controls { gap: 0.5rem; }
}

.quantity-btn {
  background-color: hsl(var(--muted));
  border-radius: 0.5rem;
  padding: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

@media (min-width: 640px) {
  .quantity-btn { padding: 0.5rem; }
}

.quantity-btn:active {
  transform: scale(0.9);
}

.quantity-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

@media (min-width: 640px) {
  .quantity-btn svg {
    width: 1rem;
    height: 1rem;
  }
}

.quantity-value {
  width: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .quantity-value {
    width: 2.5rem;
    font-size: 1.125rem;
  }
}

.cart-item-price {
  font-weight: 800;
  color: hsl(var(--primary));
  font-size: 1.125rem;
}

@media (min-width: 640px) {
  .cart-item-price { font-size: 1.25rem; }
}

.cart-item-remove {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
  padding: 0.375rem;
  display: flex;
}

@media (min-width: 640px) {
  .cart-item-remove { padding: 0.5rem; }
}

.cart-item-remove:hover {
  color: hsl(var(--destructive));
}

.cart-item-remove svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .cart-item-remove svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Cart summary */
.cart-summary {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

@media (min-width: 640px) {
  .cart-summary { padding: 2rem; }
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .cart-summary-row {
    margin-bottom: 1rem;
    font-size: 1.125rem;
  }
}

.cart-summary-row .label {
  color: hsl(var(--muted-foreground));
}

.cart-summary-row .value {
  font-weight: 700;
}

.cart-summary-total {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .cart-summary-total { margin-bottom: 1.5rem; }
}

.cart-summary-total .label {
  font-size: 1.125rem;
  font-weight: 800;
}

@media (min-width: 640px) {
  .cart-summary-total .label { font-size: 1.25rem; }
}

.cart-summary-total .value {
  font-size: 1.25rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

@media (min-width: 640px) {
  .cart-summary-total .value { font-size: 1.5rem; }
}

/* ==========================================================================
   14. Checkout Page
   ========================================================================== */

.checkout-page {
  padding: 1.5rem 0;
}

@media (min-width: 640px) {
  .checkout-page { padding: 2.5rem 0; }
}

.checkout-page .container {
  max-width: 64rem;
}

.checkout-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .checkout-title { font-size: 1.875rem; margin-bottom: 2rem; }
}
@media (min-width: 768px) {
  .checkout-title { font-size: 2.25rem; }
}

.checkout-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .checkout-grid {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
}

.checkout-card {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.checkout-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.checkout-form-grid .full-width {
  grid-column: span 2;
}

.checkout-form-grid label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.checkout-form-grid input {
  width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: hsl(var(--background));
  outline: none;
  transition: box-shadow 0.2s;
}

.checkout-form-grid input:focus {
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.3);
}

/* Payment methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: hsl(var(--muted));
  padding: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.payment-method:hover {
  background-color: hsl(var(--secondary));
}

.payment-method input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: hsl(var(--primary));
}

.payment-method span {
  font-size: 1rem;
  font-weight: 500;
}

/* Order summary sidebar */
.order-summary {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  height: fit-content;
  position: sticky;
  top: 9rem;
}

.order-summary h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.order-summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.order-summary-item .name {
  color: hsl(var(--muted-foreground));
}

.order-summary-item .price {
  font-weight: 600;
}

.order-summary-totals {
  border-top: 1px solid hsl(var(--border));
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.order-summary-row .label {
  color: hsl(var(--muted-foreground));
}

.order-summary-row .value {
  font-weight: 600;
}

.order-summary-grand-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 800;
  padding-top: 0.5rem;
}

.order-summary-grand-total .value {
  color: hsl(var(--primary));
}

/* Checkout success */
.checkout-success {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  text-align: center;
}

.checkout-success .success-icon {
  width: 5rem;
  height: 5rem;
  background-color: hsl(var(--secondary));
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.checkout-success .success-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--primary));
}

.checkout-success h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.checkout-success p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

/* ==========================================================================
   15. 404 Page
   ========================================================================== */

.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.page-404 h1 {
  font-size: 6rem;
  font-weight: 800;
  color: hsl(var(--muted-foreground));
  line-height: 1;
  margin-bottom: 1rem;
}

.page-404 h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.page-404 p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

/* ==========================================================================
   16. Generic Page
   ========================================================================== */

.page-content {
  padding: 3rem 0;
}

.page-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.page-content .entry-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ==========================================================================
   16b. WooCommerce Cart / Checkout (Blocks in generic page template)
   ========================================================================== */

body.woocommerce-cart .page-content,
body.woocommerce-checkout .page-content {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

body.woocommerce-cart .page-content .container,
body.woocommerce-checkout .page-content .container {
  max-width: 1200px;
}

/* Classic shortcode cart (form + table + collaterals) — not Cart block */
body.woocommerce-cart .page-content .entry-content > .woocommerce {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.woocommerce-cart .page-content .entry-content > .woocommerce > .woocommerce-notices-wrapper {
  margin-bottom: 1.25rem;
}

body.woocommerce-cart form.woocommerce-cart-form {
  margin: 0 0 2rem;
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px hsl(var(--foreground) / 0.06);
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart thead {
  background: hsl(var(--muted) / 0.5);
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart thead th {
  padding: 0.75rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid hsl(var(--border));
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart thead .product-remove {
  width: 3rem;
  text-align: center;
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart thead .product-thumbnail {
  width: 5.5rem;
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody td {
  padding: 1rem 1rem;
  vertical-align: middle;
  border-color: hsl(var(--border));
  font-size: 0.9375rem;
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart tbody tr:not(:first-child) td {
  border-top: 1px solid hsl(var(--border));
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart .product-thumbnail img {
  width: 4.5rem;
  height: auto;
  max-width: 4.5rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border) / 0.6);
  object-fit: cover;
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart .product-name a {
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart .product-name a:hover {
  color: hsl(var(--primary));
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart .product-price,
body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart .product-subtotal {
  font-weight: 700;
  color: hsl(var(--foreground));
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart .product-subtotal .woocommerce-Price-amount {
  color: hsl(var(--primary));
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart .product-remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  border-radius: 0.45rem;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart .product-remove a.remove:hover {
  color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.08);
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
  background: hsl(var(--card));
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart .quantity .qty {
  width: 3.25rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: hsl(var(--foreground));
  appearance: textfield;
  -moz-appearance: textfield;
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart .quantity .qty::-webkit-outer-spin-button,
body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions {
  padding: 1.1rem 1rem 1.25rem;
  background: hsl(var(--muted) / 0.35);
  border-top: 1px solid hsl(var(--border));
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions .coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions .coupon .input-text {
  min-width: min(100%, 12rem);
  padding: 0.6rem 0.85rem;
  font-size: 0.9375rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions .coupon .input-text:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions .button[name='apply_coupon'] {
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions .button[name='apply_coupon']:hover {
  background: hsl(var(--muted));
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions > .button[name='update_cart'] {
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px hsl(var(--foreground) / 0.08);
  transition: box-shadow 0.2s ease, transform 0.12s ease;
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions > .button[name='update_cart']:hover {
  box-shadow: 0 4px 12px hsl(var(--foreground) / 0.12);
}

body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions > .button[name='update_cart']:active {
  transform: scale(0.98);
}

@media (min-width: 769px) {
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions {
    display: table-cell;
    padding: 1.15rem 1.25rem 1.35rem;
  }

  body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions .coupon {
    float: left;
    margin-right: 1rem;
  }

  body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions > .button[name='update_cart'] {
    float: right;
  }

  body.woocommerce-cart form.woocommerce-cart-form table.shop_table.cart td.actions::after {
    content: '';
    display: table;
    clear: both;
  }
}

body.woocommerce-cart .cart-collaterals {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  body.woocommerce-cart .cart-collaterals {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(22rem, 100%);
    gap: 2rem 2.5rem;
    align-items: start;
  }

  body.woocommerce-cart .cart-collaterals .cross-sells {
    grid-column: 1;
    grid-row: 1;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    grid-column: 2;
    grid-row: 1;
  }
}

body.woocommerce-cart .cart-collaterals .cross-sells > h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

body.woocommerce-cart .cart-collaterals .cross-sells ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1rem;
  margin: 0;
}

body.woocommerce-cart .cart-collaterals .cross-sells ul.products li.product {
  margin: 0;
  padding: 0.85rem;
  width: auto !important;
  float: none !important;
  clear: none !important;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.65rem;
  box-shadow: 0 1px 2px hsl(var(--foreground) / 0.04);
}

body.woocommerce-cart .cart-collaterals .cross-sells ul.products li.product img {
  border-radius: 0.45rem;
  margin-bottom: 0.65rem;
}

body.woocommerce-cart .cart-collaterals .cross-sells ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

body.woocommerce-cart .cart-collaterals .cross-sells ul.products li.product .price {
  font-weight: 800;
  color: hsl(var(--primary));
  font-size: 0.9375rem;
}

body.woocommerce-cart .cart-collaterals .cross-sells ul.products li.product .button {
  margin-top: 0.65rem;
  width: 100%;
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 0.45rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
}

body.woocommerce-cart .cart_totals {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem 1.5rem;
  width: 100% !important;
  box-shadow: 0 1px 3px hsl(var(--foreground) / 0.06);
}

body.woocommerce-cart .cart_totals > h2 {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
}

body.woocommerce-cart .cart_totals table.shop_table {
  margin: 0;
  border: none;
  border-radius: 0;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
  padding: 0.55rem 0;
  border: none;
  border-bottom: 1px solid hsl(var(--border) / 0.55);
  font-size: 0.9375rem;
  vertical-align: middle;
}

body.woocommerce-cart .cart_totals table.shop_table th {
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
body.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
  border-bottom: none;
  padding-top: 0.85rem;
  font-weight: 800;
  font-size: 1.0625rem;
  color: hsl(var(--foreground));
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total td .woocommerce-Price-amount {
  color: hsl(var(--primary));
  font-size: 1.125rem;
}

body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
  padding: 1.25rem 0 0;
  margin: 0;
}

body.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button.button.alt {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 0.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition:
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

body.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button.button.alt:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12);
}

body.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button.button.alt:active {
  transform: scale(0.99);
}

/* Responsive cart rows (WooCommerce shop_table_responsive) */
@media (max-width: 768px) {
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive.cart tbody tr {
    padding: 0.25rem 0;
  }

  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive.cart tbody td {
    padding: 0.65rem 1rem !important;
  }

  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive.cart td.actions {
    display: block;
    width: 100%;
    padding: 1rem !important;
  }

  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive.cart td.actions .coupon {
    float: none;
    width: 100%;
    margin-bottom: 0.75rem;
  }

  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive.cart td.actions .coupon .input-text {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive.cart td.actions > .button[name='update_cart'] {
    float: none;
    width: 100%;
  }

  body.woocommerce-cart .cart-collaterals {
    gap: 2rem;
  }
}

body.woocommerce-cart .page-content .entry-content > .wp-block-woocommerce-cart {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

/* —— Cart block layout (restore WC side-by-side: main + totals) —— */
body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
}

@media (min-width: 782px) {
  body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart.is-large {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart.is-large > .wc-block-components-main {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
  }

  body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart.is-large > .wc-block-components-sidebar {
    flex: 0 0 18rem;
    width: 18rem;
    max-width: 100%;
    align-self: flex-start;
  }
}

body.woocommerce-cart .wc-block-components-main.wc-block-cart__main {
  width: 100%;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  min-width: 0;
}

body.woocommerce-cart .wc-block-cart-items.wp-block-woocommerce-cart-line-items-block {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.woocommerce-cart .wc-block-components-product-metadata {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.35rem;
  line-height: 1.45;
}

@media (min-width: 782px) {
  body.woocommerce-cart .wc-block-components-main.wc-block-cart__main {
    padding: 1.5rem 1.75rem;
  }
}

body.woocommerce-cart table.wc-block-cart-items {
  border: 0;
}

body.woocommerce-cart .wc-block-cart-items__header th {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.65rem 0.35rem;
}

body.woocommerce-cart .wc-block-cart-items__row td {
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.15rem 0.35rem;
  vertical-align: middle;
}

body.woocommerce-cart .wc-block-cart-items__row:last-child td {
  border-bottom: none;
}

body.woocommerce-cart .wc-block-cart-item__image img {
  border-radius: 0.5rem;
}

body.woocommerce-cart a.wc-block-components-product-name {
  font-weight: 700;
  font-size: 1rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}

body.woocommerce-cart a.wc-block-components-product-name:hover {
  color: hsl(var(--primary));
}

body.woocommerce-cart .wc-block-cart-item__prices .wc-block-formatted-money-amount,
body.woocommerce-cart .wc-block-cart-item__total .wc-block-formatted-money-amount {
  font-weight: 800;
  color: hsl(var(--primary));
}

body.woocommerce-cart .wc-block-components-quantity-selector {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--card));
}

body.woocommerce-cart .wc-block-components-quantity-selector__input {
  border: none;
  background: transparent;
  font-weight: 600;
  color: hsl(var(--foreground));
}

body.woocommerce-cart .wc-block-components-quantity-selector__button {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border: none;
  min-width: 2.25rem;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button:not(:disabled):hover {
  background: hsl(var(--secondary));
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
  color: hsl(var(--muted-foreground));
  margin-inline-start: 0.5rem;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  color: hsl(var(--destructive));
}

/* Totals sidebar */
body.woocommerce-cart .wc-block-cart__sidebar {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.woocommerce-cart .wc-block-cart__totals-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

body.woocommerce-cart .wc-block-components-totals-item__label {
  color: hsl(var(--muted-foreground));
  font-weight: 600;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  font-size: 1.375rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

body.woocommerce-cart .wc-block-components-panel__button {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* Primary CTA — checkout */
body.woocommerce-cart .wc-block-cart__submit-button.wc-block-components-button,
body.woocommerce-cart a.wc-block-cart__submit-button {
  width: 100%;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.15s ease;
  margin-top: 0.75rem;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  color: hsl(var(--primary-foreground)) !important;
}

body.woocommerce-cart .wc-block-cart__submit-button:active {
  transform: scale(0.99);
}

/* Cart main: line items + cross-sells fill the main column */
body.woocommerce-cart .wc-block-components-main.wc-block-cart__main table.wc-block-cart-items,
body.woocommerce-cart .wc-block-components-main.wc-block-cart__main .wp-block-woocommerce-product-collection {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/*
 * Cross-sells: WC uses .columns-3 + auto-fill + 33.333% so a third empty track stays open with 2 products.
 * auto-fit collapses empty tracks so 2 items share the row evenly; still caps at ~3+ when more products exist.
 */
body.woocommerce-cart .wc-block-components-main ul.wc-block-product-template__responsive.columns-3,
body.woocommerce-cart .wc-block-components-main ul.wc-block-product-template__responsive.columns-4,
body.woocommerce-cart .wc-block-components-main ul.wc-block-product-template__responsive.columns-5,
body.woocommerce-cart .wc-block-components-main ul.wc-block-product-template__responsive.columns-6 {
  width: 100%;
  max-width: 100%;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.25rem), 1fr)) !important;
}

@media (min-width: 480px) {
  body.woocommerce-cart .wc-block-components-main ul.wc-block-product-template__responsive.columns-3,
  body.woocommerce-cart .wc-block-components-main ul.wc-block-product-template__responsive.columns-4,
  body.woocommerce-cart .wc-block-components-main ul.wc-block-product-template__responsive.columns-5,
  body.woocommerce-cart .wc-block-components-main ul.wc-block-product-template__responsive.columns-6 {
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)) !important;
  }
}

/* “You may also like” / cross-sells */
body.woocommerce-cart .wp-block-woocommerce-product-collection h2.wp-block-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

body.woocommerce-cart .wc-block-product-template .wp-block-post-title a {
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
}

body.woocommerce-cart .wc-block-product-template .wp-block-post-title a:hover {
  color: hsl(var(--primary));
}

body.woocommerce-cart .wc-block-product-template .woocommerce-Price-amount {
  color: hsl(var(--primary));
  font-weight: 800;
}

body.woocommerce-cart .wc-block-product-template a.wc-block-components-product-button__button,
body.woocommerce-cart .wc-block-product-template a.wp-block-button__link.wc-block-components-product-button__button {
  border-radius: 9999px !important;
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 0.5rem 1.25rem !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body.woocommerce-cart .wc-block-product-template a.wc-block-components-product-button__button:hover {
  filter: brightness(1.05);
  color: hsl(var(--primary-foreground)) !important;
}

/* WooCommerce Blocks: sale badge uses theme primary (purple) */
.wc-block-components-product-sale-badge {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border-radius: 9999px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  padding: 0.25rem 0.6rem !important;
  border: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.wc-block-components-product-sale-badge__text {
  color: hsl(var(--primary-foreground)) !important;
  background: transparent !important;
}

/* ==========================================================================
   Checkout (WooCommerce Blocks) — layout + panels + fields (match cart block)
   ========================================================================== */

body.woocommerce-checkout .page-content .entry-content > .wp-block-woocommerce-checkout {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.woocommerce-checkout .page-content .entry-content > .woocommerce > .woocommerce-notices-wrapper {
  margin-bottom: 1.25rem;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
}

@media (min-width: 782px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large > .wc-block-components-main {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
  }

  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large > .wc-block-components-sidebar {
    flex: 0 0 min(22rem, 34vw);
    width: min(22rem, 34vw);
    max-width: 100%;
    align-self: flex-start;
  }
}

body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout > .wc-block-components-main,
body.woocommerce-checkout .wc-block-checkout__main {
  width: 100%;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem;
  box-shadow: 0 1px 3px hsl(var(--foreground) / 0.06);
  min-width: 0;
}

@media (min-width: 640px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout > .wc-block-components-main,
  body.woocommerce-checkout .wc-block-checkout__main {
    padding: 1.5rem 1.65rem;
  }
}

body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout > .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  width: 100%;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem;
  box-shadow: 0 1px 3px hsl(var(--foreground) / 0.06);
  min-width: 0;
}

@media (min-width: 640px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout > .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    padding: 1.5rem 1.35rem;
  }
}

body.woocommerce-checkout .wc-block-components-title.wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-checkout-step__title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid hsl(var(--border));
  letter-spacing: -0.02em;
}

body.woocommerce-checkout .wc-block-components-checkout-step {
  margin-bottom: 1.75rem;
  padding-bottom: 0.25rem;
  border: none;
  background: transparent;
}

body.woocommerce-checkout .wc-block-components-checkout-step:last-of-type {
  margin-bottom: 0;
}

body.woocommerce-checkout .wc-block-components-checkout-step__description,
body.woocommerce-checkout .wc-block-components-checkout-step__content > p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1rem;
  line-height: 1.55;
}

body.woocommerce-checkout .wc-block-components-text-input input[type='email'],
body.woocommerce-checkout .wc-block-components-text-input input[type='tel'],
body.woocommerce-checkout .wc-block-components-text-input input[type='text'],
body.woocommerce-checkout .wc-block-components-text-input input[type='number'],
body.woocommerce-checkout .wc-block-components-text-input input[type='password'] {
  min-height: 2.65rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.9375rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

body.woocommerce-checkout .wc-block-components-select .wc-block-components-select__container {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--card));
  min-height: 2.65rem;
}

body.woocommerce-checkout .wc-block-components-select select {
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  border: none;
  background: transparent;
}

body.woocommerce-checkout .wc-block-components-text-area textarea {
  min-height: 5.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  resize: vertical;
}

body.woocommerce-checkout .wc-block-components-text-area textarea:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-checkbox-list .wc-block-components-checkbox-list__item {
  padding: 0.35rem 0;
}

body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-select {
  margin-bottom: 0.75rem;
}

body.woocommerce-checkout .wc-block-components-panel__button {
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.35);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

body.woocommerce-checkout .wc-block-components-panel__button:hover {
  background: hsl(var(--muted) / 0.55);
  border-color: hsl(var(--border));
}

body.woocommerce-checkout .wc-block-components-panel__content {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid hsl(var(--border) / 0.7);
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  letter-spacing: -0.02em;
}

body.woocommerce-checkout .wc-block-components-order-summary-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.55);
}

body.woocommerce-checkout .wc-block-components-order-summary-item:last-child {
  border-bottom: none;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image img,
body.woocommerce-checkout .wc-block-components-order-summary-item__image > img {
  border-radius: 0.45rem;
  border: 1px solid hsl(var(--border) / 0.5);
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
  background: hsl(var(--muted));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
  box-shadow: 0 0 0 2px hsl(var(--card));
  font-weight: 700;
  font-size: 0.6875rem;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices,
body.woocommerce-checkout .wc-block-components-product-metadata {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

body.woocommerce-checkout .wc-block-components-order-summary-item__total-price .wc-block-formatted-money-amount {
  font-weight: 800;
  color: hsl(var(--primary));
}

body.woocommerce-checkout .wc-block-components-totals-item {
  padding: 0.4rem 0;
  font-size: 0.9375rem;
}

body.woocommerce-checkout .wc-block-components-totals-item__label {
  color: hsl(var(--muted-foreground));
  font-weight: 600;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid hsl(var(--border));
}

body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

body.woocommerce-checkout .wc-block-components-totals-coupon {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option {
  padding: 0.85rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  background: hsl(var(--muted) / 0.2);
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option-checked,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.woocommerce-checkout .wc-block-components-radio-control__option-layout-checked {
  border-color: hsl(var(--primary) / 0.35);
  background: hsl(var(--primary) / 0.06);
}

body.woocommerce-checkout .wc-block-checkout__terms {
  padding: 1rem 0 0;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

body.woocommerce-checkout .wc-block-checkout__terms a {
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.woocommerce-checkout .wc-block-checkout__actions_row {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
}

/* Checkout block: place order / primary actions */
body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-button,
body.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  padding: 0.85rem 1.5rem !important;
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition:
    box-shadow 0.2s ease,
    filter 0.2s ease,
    transform 0.12s ease;
}

body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-button:hover,
body.woocommerce-checkout #place_order:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12);
  color: hsl(var(--primary-foreground)) !important;
}

body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-button:active,
body.woocommerce-checkout #place_order:active {
  transform: scale(0.99);
}

body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
  border-radius: var(--radius);
}

/* Classic shortcode checkout (form.checkout) */
/* Override WooCommerce core .col2-set .col-1 / .col-2 (float + 48% width) */
body.woocommerce-checkout .woocommerce .col2-set .col-1,
body.woocommerce-checkout .woocommerce-page .col2-set .col-1,
body.woocommerce-checkout .woocommerce .col2-set .col-2,
body.woocommerce-checkout .woocommerce-page .col2-set .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.woocommerce-checkout .page-content .entry-content form.checkout.woocommerce-checkout {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.woocommerce-checkout form.checkout.woocommerce-checkout {
  display: flex;
  flex-direction: column;
  gap: 0rem 2rem;
}

body.woocommerce-checkout form.checkout.woocommerce-checkout .didelou-checkout-order-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

@media (min-width: 900px) {
  body.woocommerce-checkout form.checkout.woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(22rem, 100%);
    grid-template-rows: auto;
    gap: 0 1.5rem;
    align-items: start;
  }

  body.woocommerce-checkout form.checkout.woocommerce-checkout #customer_details {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  body.woocommerce-checkout form.checkout.woocommerce-checkout .didelou-checkout-order-column {
    grid-column: 2;
    grid-row: 1;
    gap: 0.35rem;
  }
}

body.woocommerce-checkout form.checkout.woocommerce-checkout #customer_details,
body.woocommerce-checkout form.checkout.woocommerce-checkout #order_review {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 3px hsl(var(--foreground) / 0.06);
}

body.woocommerce-checkout form.checkout.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout form.checkout.woocommerce-checkout .woocommerce-shipping-fields > h3,
body.woocommerce-checkout form.checkout.woocommerce-checkout #order_review_heading {
  font-size: 1.0625rem;
  font-weight: 800;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

body.woocommerce-checkout form.checkout.woocommerce-checkout .didelou-checkout-order-column #order_review_heading {
  margin-bottom: 0.35rem;
}

body.woocommerce-checkout form.checkout.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout form.checkout.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout form.checkout.woocommerce-checkout .form-row select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.9375rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

body.woocommerce-checkout form.checkout.woocommerce-checkout .form-row textarea {
  min-height: 5rem;
  resize: vertical;
}

body.woocommerce-checkout form.checkout.woocommerce-checkout .form-row input.input-text:focus,
body.woocommerce-checkout form.checkout.woocommerce-checkout .form-row textarea:focus,
body.woocommerce-checkout form.checkout.woocommerce-checkout .form-row select:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

body.woocommerce-checkout form.checkout.woocommerce-checkout #payment {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
  background: transparent;
}

body.woocommerce-checkout form.checkout.woocommerce-checkout #payment ul.payment_methods {
  border: none;
  padding: 0;
}

body.woocommerce-checkout form.checkout.woocommerce-checkout #payment div.payment_box {
  background: hsl(var(--muted) / 0.35);
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
}

body.woocommerce-checkout form.checkout.woocommerce-checkout #place_order {
  width: 100%;
  margin-top: 1rem;
}

/* ==========================================================================
   17. SVG Icons (inline)
   ========================================================================== */

.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

/* ==========================================================================
   18. Utility Helpers
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }

.hidden { display: none; }

@media (min-width: 768px) {
  .md-hidden { display: none; }
}
