/*
Theme Name: wood-decor-storefront
Theme URI:
Description: Алекс Топиари — Арт-объекты, Топиари и Скульптуры из стеклопластика. Дочерняя тема Storefront.
Author: Antigravity
Author URI:
Template: storefront
Version: 2.0.0
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Background */
  --bg-light: #FAFAF8;
  --bg-white: #FFFFFF;
  --bg-dark: #141410;
  --bg-section-alt: #F4F2EE;

  /* Brand Colors */
  --gold: #C9A84C;
  --gold-hover: #A88A36;
  --gold-light: #F0E4C0;
  --green-dark: #1E3D1A;
  --green-mid: #2D5A27;
  --green-light: #4A7C40;

  /* Text */
  --text-dark: #1A1A1A;
  --text-body: #3A3A3A;
  --text-muted: #6B7280;
  --text-on-dark: #F5F5F0;

  /* Border / UI */
  --border: #E5E0D8;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --card-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-label: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.15;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green-mid);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--gold);
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Title */
.at-section-label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.at-section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 20px;
  line-height: 1.1;
}

.at-section-title.light {
  color: var(--text-on-dark);
}

.at-section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
  margin: 0;
}

.at-section-desc.light {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.at-btn,
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--gold) !important;
  color: var(--bg-dark) !important;
  font-family: var(--font-label) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 14px 32px !important;
  border-radius: 4px !important;
  border: none !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25) !important;
}

.at-btn:hover,
.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background-color: var(--gold-hover) !important;
  color: var(--bg-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35) !important;
}

.at-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  border: 2px solid var(--gold) !important;
  color: var(--gold) !important;
  font-family: var(--font-label) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 12px 30px !important;
  border-radius: 4px !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: none !important;
}

.at-btn-outline:hover {
  background: var(--gold) !important;
  color: var(--bg-dark) !important;
  transform: translateY(-2px);
}

.at-btn-outline.light {
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #fff !important;
}

.at-btn-outline.light:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #fff !important;
}

.at-btn-whatsapp {
  background: #25D366 !important;
  color: #fff !important;
  display: block;
  text-align: center;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

.at-btn-whatsapp:hover {
  background: #1da851 !important;
  color: #fff !important;
}

.at-btn-one-click {
  background: transparent !important;
  border: 2px solid var(--green-mid) !important;
  color: var(--green-mid) !important;
  box-shadow: none !important;
}

.at-btn-one-click:hover {
  background: var(--green-mid) !important;
  color: #fff !important;
}

/* ============================================================
   HEADER
   ============================================================ */
/* Top bar */
.at-topbar {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-family: var(--font-label);
  padding: 8px 0;
  position: relative;
  z-index: 1002;
}

.at-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.at-topbar-promo {
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.at-topbar-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
}

.at-topbar-contacts a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.at-topbar-contacts a:hover {
  color: var(--gold);
}

.at-topbar-messenger {
  display: flex;
  gap: 12px;
}

.at-topbar-messenger a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.2s;
}

.at-topbar-messenger a:hover {
  transform: scale(1.15);
}

.at-tg-btn {
  background: #0088cc;
}

.at-wa-btn {
  background: #25D366;
}

/* Site Header */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1001;
  padding: 0;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.at-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1240px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.site-branding {
  width: auto !important;
  float: none !important;
  flex-shrink: 0;
}

.site-branding img {
  max-height: 40px;
  width: auto;
  display: block;
}

/* Desktop Navigation */
.main-navigation {
  flex: 1 1 auto;
  min-width: 0;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: nowrap;
}

.main-navigation ul li a {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item>a,
.main-navigation ul li.current_page_item>a {
  color: var(--gold);
  background: var(--gold-light);
}

/* Sub-menu */
.main-navigation ul li {
  position: relative;
}

.main-navigation ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: var(--card-shadow-lg);
  padding: 8px 0;
  border-top: 3px solid var(--gold);
  flex-direction: column;
  gap: 0;
  z-index: 100;
}

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

.main-navigation ul li ul li a {
  padding: 10px 20px;
  border-radius: 0;
  display: block;
  font-size: 13px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-search {
  position: relative;
  flex-shrink: 0;
}

.header-search input {
  background: var(--bg-section-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px 8px 36px;
  font-size: 13px;
  width: 180px;
  transition: width 0.3s, border-color 0.3s;
  font-family: var(--font-body);
}

.header-search input:focus {
  outline: none;
  border-color: var(--gold);
  width: 240px;
}

.header-search::before {
  content: '🔍';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

#live-search-results,
.live-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 340px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow-lg);
  z-index: 200;
  overflow: hidden;
  margin-top: 6px;
  display: none;
}

#live-search-results.active,
.live-search-results.active {
  display: block;
}

.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

.header-cart:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cart-icon {
  font-size: 18px;
}

.cart-count {
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  box-shadow: none !important;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.2s;
}
.menu-toggle:hover span {
  background: var(--gold);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-overlay.open {
  transform: translateX(0);
}

.mobile-menu-content {
  padding: 40px 32px;
  flex: 1;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  box-shadow: none !important;
  transform: none !important;
  padding: 0;
}

.mobile-menu-overlay #mobile-primary-menu {
  list-style: none;
  padding: 0;
  margin: 48px 0 32px;
}

.mobile-menu-overlay #mobile-primary-menu li a {
  font-family: var(--font-display);
  font-size: 28px;
  color: #fff;
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu-overlay #mobile-primary-menu li a:hover {
  color: var(--gold);
  padding-left: 12px;
}

.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.mobile-menu-contact a {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 500;
}

.mobile-menu-contact a:hover {
  color: var(--gold);
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(201, 168, 76, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================================
   PROMO TOP BAR (dismissible)
   ============================================================ */
.promo-topbar {
  background: linear-gradient(90deg, var(--green-dark), var(--green-mid));
  color: #fff;
  text-align: center;
  padding: 10px 50px 10px 16px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 1002;
  letter-spacing: 0.3px;
}

.promo-topbar strong {
  color: var(--gold);
}

.promo-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  opacity: 0.7;
  line-height: 1;
  color: #fff;
}

.promo-close:hover {
  opacity: 1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.at-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.at-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/wood-images/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.35;
  transition: opacity 0.6s;
}

.at-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg,
      rgba(20, 20, 16, 0.85) 0%,
      rgba(30, 61, 26, 0.6) 50%,
      rgba(20, 20, 16, 0.75) 100%);
}

.at-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 120px 24px 100px;
  margin: 0 auto 0 calc((100vw - 1240px) / 2 + 24px);
}

@media (max-width: 1300px) {
  .at-hero-inner {
    margin-left: 24px;
  }
}

@media (max-width: 768px) {
  .at-hero {
    min-height: 70vh;
    align-items: flex-end;
  }
  .at-hero-inner {
    margin: 0;
    padding: 60px 20px 80px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .at-hero h1 {
    font-size: clamp(28px, 8vw, 48px);
  }
  .at-hero-desc {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .at-hero-stats {
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
  }
  .at-hero-stat-num {
    font-size: 30px;
  }
  .at-hero-badge {
    font-size: 10px;
    padding: 6px 14px;
  }
  .at-hero-scroll {
    display: none;
  }
}

.at-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.at-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -1px;
}

.at-hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.at-hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0 0 40px;
  max-width: 600px;
}

.at-hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.at-hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.at-hero-stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.at-hero-stat-label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-top: 6px;
}

/* Scroll indicator */
.at-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 2;
}

.at-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.8), transparent);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.at-services {
  padding: 100px 0;
  background: var(--bg-white);
}

.at-services-head {
  text-align: center;
  margin-bottom: 60px;
}

.at-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.at-service-card {
  background: var(--bg-white);
  padding: 44px 36px;
  transition: background 0.25s ease;
  cursor: default;
}

.at-service-card:hover {
  background: var(--bg-section-alt);
}

.at-service-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 26px;
  transition: background 0.25s, transform 0.25s;
}

.at-service-card:hover .at-service-icon {
  background: var(--gold);
  transform: scale(1.05);
}

.at-service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.at-service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

.at-service-link {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}

.at-service-card:hover .at-service-link {
  color: var(--gold);
  gap: 10px;
}

/* ============================================================
   DIRECTIONS BANNERS (Art Objects + Commercial)
   ============================================================ */
.at-directions {
  padding: 0 0 100px;
  background: var(--bg-white);
}

.at-directions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.at-direction-banner {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  text-decoration: none;
}

.at-direction-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.at-direction-banner:hover img {
  transform: scale(1.05);
}

.at-direction-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 20, 16, 0.85) 0%, rgba(20, 20, 16, 0.2) 60%, transparent 100%);
  transition: background 0.3s;
}

.at-direction-banner:hover .at-direction-overlay {
  background: linear-gradient(0deg, rgba(20, 20, 16, 0.9) 0%, rgba(20, 20, 16, 0.3) 70%, transparent 100%);
}

.at-direction-content {
  position: relative;
  z-index: 2;
  padding: 48px 40px;
  width: 100%;
}

.at-direction-tag {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.at-direction-content h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.1;
}

.at-direction-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 400px;
}

.at-direction-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 168, 76, 0.4);
  padding-bottom: 4px;
  transition: gap 0.2s, border-color 0.2s;
}

.at-direction-banner:hover .at-direction-arrow {
  gap: 14px;
  border-color: var(--gold);
}

/* ============================================================
   WHERE WE WORK (Application Spheres)
   ============================================================ */
.at-spheres {
  padding: 100px 0;
  background: var(--bg-section-alt);
}

.at-spheres-head {
  text-align: center;
  margin-bottom: 60px;
}

.at-spheres-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.at-sphere-item {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: default;
}

.at-sphere-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
  border-color: var(--gold);
}

.at-sphere-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
  filter: grayscale(0.2);
  transition: transform 0.3s;
}

.at-sphere-item:hover .at-sphere-icon {
  transform: scale(1.15);
}

.at-sphere-item h4 {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

/* ============================================================
   ADVANTAGES
   ============================================================ */
.at-advantages {
  padding: 100px 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.at-advantages::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 90, 39, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.at-advantages-head {
  margin-bottom: 60px;
}

.at-advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.at-advantage-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 48px 40px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: background 0.25s;
}

.at-advantage-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.at-advantage-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.15);
  line-height: 0.8;
  flex-shrink: 0;
  width: 60px;
  text-align: right;
  transition: color 0.3s;
}

.at-advantage-item:hover .at-advantage-num {
  color: rgba(201, 168, 76, 0.3);
}

.at-advantage-body {}

.at-advantage-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
}

.at-advantage-body p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin: 0;
}

/* Materials comparison */
.at-materials {
  padding: 100px 0;
  background: var(--bg-white);
}

.at-materials-head {
  text-align: center;
  margin-bottom: 60px;
}

.at-materials-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.at-materials-table th {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 20px;
  border-bottom: 2px solid var(--border);
  text-align: left;
}

.at-materials-table th:first-child {
  color: var(--text-dark);
}

.at-materials-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  vertical-align: middle;
}

.at-materials-table tr:hover td {
  background: var(--bg-section-alt);
}

.at-materials-table .at-mat-highlight {
  background: rgba(201, 168, 76, 0.06);
}

.at-mat-check {
  color: var(--green-mid);
  font-size: 18px;
}

.at-mat-cross {
  color: #e55;
  font-size: 18px;
}

.at-mat-partial {
  color: var(--gold);
  font-size: 18px;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.at-process {
  padding: 100px 0;
  background: var(--bg-section-alt);
}

.at-process-head {
  text-align: center;
  margin-bottom: 64px;
}

.at-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.at-process-step {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.at-process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-lg);
}

.at-process-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.at-process-step h4 {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.at-process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.at-process-connector {
  display: none;
  /* shown via JS on desktop */
}

/* ============================================================
   WOOCOMMERCE PRODUCT CATALOG
   ============================================================ */
.at-catalog {
  padding: 100px 0;
  background: var(--bg-white);
}

.at-catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

/* WooCommerce Products Grid */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-lg);
  border-color: var(--gold);
}

.woocommerce ul.products li.product a img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  display: block;
  transition: transform 0.4s ease;
}

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

.woocommerce ul.products li.product>a {
  overflow: hidden;
  display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 16px 20px 4px;
  margin: 0;
}

.woocommerce ul.products li.product .price {
  color: var(--gold);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 16px;
  padding: 0 20px 12px;
  margin: 0 0 auto;
  display: block;
}

.woocommerce ul.products li.product .button {
  margin: 0 20px 20px;
  display: block;
  text-align: center;
  width: calc(100% - 40px);
}

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

@media (max-width: 767px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Single Product */
.woocommerce div.product {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 0;
}

.woocommerce div.product div.images {
  width: 48% !important;
  float: none !important;
}

.woocommerce div.product div.summary {
  width: calc(52% - 48px) !important;
  float: none !important;
}

@media (max-width: 767px) {

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    width: 100% !important;
  }
}

.woocommerce div.product .product_title {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 16px;
}

.woocommerce div.product p.price {
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 22px;
  font-weight: 700;
}

/* Product Trust Block */
.product-trust-block {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-section-alt);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-body);
}

.trust-icon {
  font-size: 20px;
}

/* Hide sidebar on static pages, but keep it on product archives/shop */
body:not(.archive):not(.tax-product_cat):not(.tax-product_tag).right-sidebar .content-area {
  width: 100%;
  float: none;
}

body:not(.archive):not(.tax-product_cat):not(.tax-product_tag) .widget-area {
  display: none !important;
}

/* ============================================================
   PORTFOLIO (Masonry-style grid)
   ============================================================ */
.at-portfolio {
  padding: 100px 0;
  background: var(--bg-dark);
}

.at-portfolio-head {
  margin-bottom: 48px;
}

.at-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 3px;
  border-radius: 8px;
  overflow: hidden;
}

.at-portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.at-portfolio-item.tall {
  grid-row: span 2;
  aspect-ratio: unset;
}

.at-portfolio-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.at-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.at-portfolio-item:hover img {
  transform: scale(1.06);
}

.at-portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 20, 16, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.at-portfolio-item:hover .at-portfolio-item-overlay {
  opacity: 1;
}

.at-portfolio-item-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.at-faq {
  padding: 100px 0;
  background: var(--bg-white);
}

.at-faq-head {
  text-align: center;
  margin-bottom: 60px;
}

.at-faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.at-faq-item {
  border-bottom: 1px solid var(--border);
}

.at-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s;
  list-style: none;
  user-select: none;
}

.at-faq-question:hover {
  color: var(--green-mid);
}

.at-faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--text-muted);
  transition: all 0.3s;
  font-style: normal;
}

.at-faq-item.open .at-faq-toggle {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: rotate(45deg);
}

.at-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
}

.at-faq-answer-inner {
  padding: 0 0 24px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.at-faq-item.open .at-faq-answer {
  max-height: 400px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.at-cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  position: relative;
  overflow: hidden;
}

.at-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.08);
  pointer-events: none;
}

.at-cta-inner {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.at-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: #fff;
  margin: 0 0 20px;
}

.at-cta-inner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  margin: 0 0 40px;
  line-height: 1.65;
}

.at-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.at-footer-main {
  padding: 80px 0 60px;
}

.at-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
}

.at-footer-logo {
  max-height: 64px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.9;
  filter: brightness(1.1);
}

.at-footer-about {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 24px;
}

.at-footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.at-footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
  text-decoration: none;
}

.at-footer-social a:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  transform: translateY(-2px);
}

.at-footer-col h4 {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
}

.at-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.at-footer-col ul li {
  margin-bottom: 10px;
}

.at-footer-col ul li a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.at-footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.at-footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.at-footer-contact-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.at-footer-contact-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.at-footer-contact-text a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  display: block;
  transition: color 0.2s;
}

.at-footer-contact-text a:hover {
  color: var(--gold);
}

.at-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px 0;
}

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

.at-footer-legal {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
}

.at-footer-legal a {
  color: rgba(255, 255, 255, 0.45);
  margin-left: 16px;
  transition: color 0.2s;
}

.at-footer-legal a:hover {
  color: var(--gold);
}

.at-footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   FLOATING WIDGETS & MODALS
   ============================================================ */
/* Floating contact buttons */
.floating-widgets {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 990;
}

.floating-widget {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none !important;
}

.floating-widget:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.widget-wa {
  background: #25D366;
}

.widget-tg {
  background: #0088cc;
}

/* 1-Click Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: #fff;
  padding: 48px 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.popup-content h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 8px;
}

.popup-content>p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  cursor: pointer;
  font-size: 28px;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}

.popup-close:hover {
  color: var(--text-dark);
}

.popup-content input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.popup-content input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Off-canvas Cart */
.offcanvas-cart {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.offcanvas-cart.active {
  right: 0;
}

.offcanvas-cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offcanvas-cart-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
}

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

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: none;
  backdrop-filter: blur(2px);
}

.cart-overlay.active {
  display: block;
}

/* Live Search Results */
.live-search-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  transition: background 0.2s;
}

.live-search-item:hover {
  background: var(--bg-section-alt);
}

.live-search-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 14px;
}

.live-search-item-title {
  font-weight: 600;
  font-size: 14px;
}

.live-search-item-price {
  color: var(--gold);
  font-size: 13px;
  font-family: var(--font-label);
  font-weight: 700;
}

/* Product Badges */
.wd-badges-wrapper {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 9;
}

.wd-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wd-badge-sale {
  background: #e74c3c;
}

.wd-badge-hit {
  background: var(--gold);
  color: var(--bg-dark);
}

.wd-badge-new {
  background: var(--green-mid);
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 9999;
  flex-wrap: wrap;
}

#cookie-banner p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

#cookie-banner p a {
  color: var(--gold);
}

#cookie-accept {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 24px !important;
  white-space: nowrap;
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--gold);
  padding: 16px;
  text-align: center;
  z-index: 998;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.mobile-sticky-cta a {
  color: var(--bg-dark);
  font-family: var(--font-label);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Animations on Scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* WooCommerce account */
.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 25%;
  float: left;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg-section-alt);
  border-radius: 8px;
  overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid var(--border);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 14px 20px;
  color: var(--text-dark);
  transition: background 0.3s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

.woocommerce-account .woocommerce-MyAccount-content {
  width: 70%;
  float: right;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .at-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .at-advantages-grid {
    grid-template-columns: 1fr;
  }

  .at-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .at-spheres-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .at-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .at-directions-grid {
    grid-template-columns: 1fr;
  }

  .at-direction-banner {
    min-height: 380px;
  }

  .at-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .at-portfolio-item.tall,
  .at-portfolio-item.wide {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  .at-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .at-materials-table {
    font-size: 13px;
  }

  .at-materials-table th,
  .at-materials-table td {
    padding: 12px;
  }
}

/* ============================================================
   HEADER RESPONSIVE
   ============================================================ */
/* Medium screens: compact nav items */
@media (max-width: 1200px) {
  .main-navigation ul li a {
    padding: 6px 8px;
    font-size: 11px;
    letter-spacing: 0.4px;
  }
  
  .header-search input {
    width: 140px;
  }
  
  .header-search input:focus {
    width: 180px;
  }
}

/* Tablet: hamburger menu, but keep cart */
@media (max-width: 1024px) {
  .main-navigation {
    display: none !important;
  }

  .menu-toggle {
    display: flex !important;
  }

  .header-search {
    display: none;
  }

  .at-header-inner {
    padding: 10px 16px;
    gap: 12px;
  }

  .site-branding img {
    max-height: 32px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-cart {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Hide topbar promo text on tablet, keep contacts */
  .at-topbar-promo {
    display: none;
  }

  .at-topbar-inner {
    padding: 6px 16px;
    font-size: 12px;
  }

  .at-topbar-contacts {
    gap: 10px;
    font-size: 12px;
  }

  .header-cart {
    padding: 6px 10px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .at-topbar {
    display: none !important;
  }

  .at-services-grid {
    grid-template-columns: 1fr;
  }

  .at-spheres-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .at-process-grid {
    grid-template-columns: 1fr;
  }

  .at-hero-stats {
    gap: 24px;
  }

  .mobile-sticky-cta {
    display: block;
  }

  body {
    padding-bottom: 60px;
  }

  .at-footer-grid {
    grid-template-columns: 1fr;
  }

  .at-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .at-header-inner {
    padding: 12px 16px;
  }

  /* Show cart on mobile */
  .header-cart {
    display: flex !important;
    padding: 6px 10px;
    font-size: 11px;
  }

  .cart-icon {
    font-size: 20px;
  }

  /* Hero section mobile */
  .at-hero-section,
  section[style*="min-height:520px"],
  section[style*="min-height: 520px"] {
    min-height: 360px !important;
    padding-bottom: 48px !important;
  }

  /* Topbar — show only phone */
  .at-topbar {
    display: none !important;
  }

  /* Sections — reduce padding on mobile */
  section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  /* Two-column grids → single column on mobile */
  section > .container > div[style*="grid-template-columns:1fr 1fr"],
  section .container > div[style*="grid-template-columns: 1fr 1fr"],
  section > .container > div[style*="grid-template-columns:1.1fr 0.9fr"],
  section .container > div[style*="grid-template-columns: 1.1fr 0.9fr"],
  section > .container > div[style*="grid-template-columns:0.9fr 1.1fr"],
  section .container > div[style*="grid-template-columns: 0.9fr 1.1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* 3-column grids → single column on mobile */
  section > .container > div[style*="grid-template-columns:repeat(3,1fr)"],
  section .container > div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* 4-column event/stat grids → 2-column on mobile */
  section > .container > div[style*="grid-template-columns:repeat(4,1fr)"],
  section .container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Contacts page: contact info + form → single column */
  .page-template-page-contacts-php .container > div[style*="grid-template-columns:1fr 1fr"],
  .page-template-page-contacts-php .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* About page: stat card wraps below text */
  .page-template-page-about-php .container > div[style*="grid-template-columns:1.1fr 0.9fr"],
  .page-template-page-about-php .container > div[style*="grid-template-columns: 1.1fr 0.9fr"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Portfolio grid → 2 cols on mobile */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Portfolio filter buttons wrap nicely */
  .portfolio-filter-btn {
    padding: 8px 14px !important;
    font-size: 11px !important;
  }

  /* WooCommerce archive: disable two-column sidebar on mobile */
  .archive.post-type-archive-product #content .col-full,
  .tax-product_cat #content .col-full {
    display: block !important;
    padding: 0 16px !important;
  }

  /* Widget sidebar on mobile: show above products as collapsed accordion */
  #secondary {
    width: 100% !important;
    float: none !important;
    margin-bottom: 24px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .at-hero-btns {
    flex-direction: column;
  }

  .at-spheres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .at-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }

  .at-cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .at-cta-btns a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Contacts page messenger buttons stack vertically */
  .page-template-page-contacts-php .container div[style*="display:flex;gap:12px"],
  .page-template-page-contacts-php .container div[style*="display: flex; gap"] {
    flex-direction: column !important;
  }

  /* Product cards 1 column on tiny screens */
  ul.products {
    grid-template-columns: 1fr !important;
  }

  .wd-featured-grid {
    grid-template-columns: 1fr !important;
  }

  /* Stat numbers smaller */
  .at-stat-number,
  div[style*="font-size:44px"] {
    font-size: 36px !important;
  }

  /* Hero text sizing */
  h1[style*="clamp"] {
    font-size: clamp(30px, 8vw, 48px) !important;
  }

  /* Yandex map full height on mobile */
  .page-template-page-contacts-php section[style*="height:450px"] {
    height: 320px !important;
  }
}

/* ============================================================
   FRONT-PAGE PRODUCT GRID (manual WC cards)
   ============================================================ */
.wd-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.wd-product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.wd-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-lg);
  border-color: var(--gold);
}

.wd-product-card .wd-product-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

@media (max-width: 1100px) {
  .wd-featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .wd-featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ============================================================
   PROCESS GRID — 2nd row (2-col offset on wide screens)
   ============================================================ */
@media (min-width: 1100px) {
  .at-process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   ART PAGE / COMMERCIAL PAGE specific responsive
   ============================================================ */
@media (max-width: 860px) {

  section>.container>div[style*="grid-template-columns:1fr 1fr"],
  section .container div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  section>div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  section>.container>div[style*="grid-template-columns:repeat(4,1fr)"],
  section .container div[style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   SINGLE PRODUCT PAGE CUSTOM LAYOUT
   ============================================================ */
.wd-product-single {
  max-width: 1240px;
  padding: 0 24px;
}

.wd-single-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-bottom: 80px;
}

.wd-single-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wd-single-main-image {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.wd-single-img {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
}

.wd-single-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wd-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.wd-thumb.active,
.wd-thumb:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.wd-single-summary {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.wd-product-single .woocommerce-breadcrumb,
.storefront-breadcrumb {
  margin: 0 0 20px 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  font-family: var(--font-label);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.wd-product-single .woocommerce-breadcrumb a {
  color: var(--text-muted);
}

.wd-product-single .woocommerce-breadcrumb a:hover {
  color: var(--gold);
}

.wd-single-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.wd-single-price {
  font-family: var(--font-label);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.wd-single-desc-short {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
}

.wd-single-attrs {
  width: 100%;
  border-collapse: collapse;
}

.wd-single-attrs tr {
  border-bottom: 1px solid var(--border);
}

.wd-single-attrs tr:last-child {
  border-bottom: none;
}

.wd-single-attrs td {
  padding: 14px 0;
  font-size: 15px;
}

.wd-attr-label {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 45%;
}

.wd-attr-value {
  color: var(--text-body);
}

.wd-single-cart {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.wd-single-cart form.cart {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.wd-single-cart .quantity {
  margin: 0;
}

.wd-single-cart .quantity input.qty {
  width: 68px;
  height: 52px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-white);
  padding: 0;
  text-align: center;
}

.wd-single-cart button.single_add_to_cart_button {
  height: 52px;
  padding: 0 40px !important;
  margin: 0 !important;
}

.wd-single-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: var(--bg-section-alt);
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid var(--gold);
}

.wd-trust-item {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-trust-item a {
  color: var(--text-dark);
}

.wd-trust-item a:hover {
  color: var(--gold);
}

.wd-single-tabs {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.wd-single-tabs .woocommerce-tabs ul.tabs {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  gap: 32px;
  margin: 0 0 30px 0;
  border-bottom: 2px solid var(--border);
}

.wd-single-tabs .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 16px 0;
  margin: 0;
}

.wd-single-tabs .woocommerce-tabs ul.tabs li::after,
.wd-single-tabs .woocommerce-tabs ul.tabs li::before {
  display: none;
}

.wd-single-tabs .woocommerce-tabs ul.tabs li a {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0;
}

.wd-single-tabs .woocommerce-tabs ul.tabs li.active {
  border-bottom: 3px solid var(--gold);
}

.wd-single-tabs .woocommerce-tabs ul.tabs li.active a {
  color: var(--text-dark);
}

.wd-single-tabs .woocommerce-tabs .woocommerce-Tabs-panel {
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Related Products */
.wd-single-tabs~section.related.products {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.wd-single-tabs~section.related.products h2 {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 36px;
  text-align: center;
}

@media (max-width: 991px) {
  .wd-single-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wd-single-img {
    max-height: 400px;
  }
}

/* ============================================================
   WOOCOMMERCE PRODUCTS GRID FIX (CSS Grid)
   ============================================================ */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px !important;
  margin: 0 0 40px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

ul.products::before,
ul.products::after {
  display: none !important;
  content: none !important;
}

ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 0 0 20px 0 !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-lg);
  border-color: var(--gold);
}

ul.products li.product .woocommerce-loop-product__link {
  display: block;
  text-decoration: none;
  color: var(--text-dark);
}

ul.products li.product img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: 16px !important;
  transition: transform 0.4s ease;
}

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

ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  margin: 0 20px 8px 20px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

ul.products li.product .price {
  font-family: var(--font-label) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--gold) !important;
  margin: 0 20px 16px 20px !important;
}

ul.products li.product .button {
  display: block !important;
  margin: 0 20px !important;
  text-align: center;
  font-size: 12px !important;
  padding: 10px 16px !important;
}

@media (max-width: 991px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 480px) {
  ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ============================================================
   REMOVE SITE-HEADER MARGIN-BOTTOM
   ============================================================ */
.home.blog .site-header, 
.home.page:not(.page-template-template-homepage) .site-header, 
.home.post-type-archive-product .site-header,
.post-type-archive-product .site-header,
.single-product .site-header {
  margin-bottom: 0 !important;
}

/* ============================================================
   WOOCOMMERCE ARCHIVE LAYOUT & SIDEBAR FILTERS
   ============================================================ */
@media (min-width: 992px) {
  .archive.post-type-archive-product #content .col-full,
  .tax-product_cat #content .col-full,
  .tax-product_tag #content .col-full {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 40px !important;
    align-items: start !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
  }
  .archive.post-type-archive-product .woocommerce-breadcrumb,
  .tax-product_cat .woocommerce-breadcrumb,
  .tax-product_tag .woocommerce-breadcrumb {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }
  .archive.post-type-archive-product .content-area,
  .tax-product_cat .content-area,
  .tax-product_tag .content-area {
    width: 100% !important;
    float: none !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
  .archive.post-type-archive-product .widget-area,
  .tax-product_cat .widget-area,
  .tax-product_tag .widget-area {
    width: 100% !important;
    float: none !important;
    display: block !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
}

.archive.post-type-archive-product .widget-area,
.tax-product_cat .widget-area,
.tax-product_tag .widget-area {
  background: var(--bg-white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  padding: 36px 28px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 30px !important;
}

.widget-area .widget {
  margin-bottom: 40px !important;
}
.widget-area .widget:last-child {
  margin-bottom: 0 !important;
}
.widget-area .widget .widget-title {
  font-family: var(--font-label) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: var(--text-dark) !important;
  margin: 0 0 24px 0 !important;
  padding: 0 0 12px 0 !important;
  border-bottom: 2px solid var(--gold) !important;
  display: inline-block !important;
}

/* Category & Attribute Filters Lists */
.widget_product_categories ul,
.widget_layered_nav ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.widget_product_categories ul li,
.widget_layered_nav ul li {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--border) !important;
  font-family: var(--font-label) !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
.widget_product_categories ul li::before,
.widget_layered_nav ul li::before {
  content: none !important;
  display: none !important;
}
.widget_product_categories ul li:last-child,
.widget_layered_nav ul li:last-child {
  border-bottom: none !important;
}
.widget_product_categories ul li a,
.widget_layered_nav ul li a {
  color: var(--text-body) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.widget_product_categories ul li a:hover,
.widget_layered_nav ul li a:hover {
  color: var(--gold) !important;
}
.widget_product_categories ul li .count,
.widget_layered_nav ul li .count {
  background: var(--gold-light) !important;
  color: var(--bg-dark) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-family: var(--font-label) !important;
}

/* Price Filter Widget */
.widget_price_filter .price_slider_wrapper {
  padding-top: 10px !important;
}
.widget_price_filter .ui-slider {
  position: relative !important;
  text-align: left !important;
  background: var(--border) !important;
  height: 8px !important;
  border-radius: 10px !important;
  margin-bottom: 28px !important;
}
.widget_price_filter .ui-slider .ui-slider-range {
  position: absolute !important;
  z-index: 1 !important;
  display: block !important;
  border: 0 !important;
  background: var(--gold) !important;
  border-radius: 10px !important;
  height: 100% !important;
}
.widget_price_filter .ui-slider .ui-slider-handle {
  position: absolute !important;
  z-index: 2 !important;
  width: 20px !important;
  height: 20px !important;
  cursor: pointer !important;
  outline: none !important;
  background: var(--bg-white) !important;
  border: 4px solid var(--gold) !important;
  border-radius: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  transition: transform 0.2s, background 0.2s !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}
.widget_price_filter .ui-slider .ui-slider-handle:hover {
  transform: translate(-50%, -50%) scale(1.15) !important;
  background: var(--gold-light) !important;
}
.widget_price_filter .price_slider_amount {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 16px !important;
}
.widget_price_filter .price_slider_amount .price_label {
  font-family: var(--font-label) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-body) !important;
  text-align: center !important;
}
.widget_price_filter .price_slider_amount .button {
  background-color: var(--gold) !important;
  color: var(--bg-dark) !important;
  font-family: var(--font-label) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  padding: 12px 18px !important;
  height: auto !important;
  line-height: 1 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}
.widget_price_filter .price_slider_amount .button:hover {
  background-color: var(--gold-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.2) !important;
}

/* ============================================================
   WIDGETS SELECT DROPDOWNS CUSTOM PREMIUM STYLING
   ============================================================ */
.widget-area select {
  width: 100% !important;
  background-color: var(--bg-white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-family: var(--font-label) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-body) !important;
  outline: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 16px !important;
  transition: all 0.2s ease !important;
  margin-bottom: 12px !important;
}

.widget-area select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.1) !important;
}

/* Fix option styling inside select in some browsers */
.widget-area select option {
  background: var(--bg-white) !important;
  color: var(--text-body) !important;
  padding: 10px !important;
}

/* Full Width Background Fix for Custom Templates */
.page-template-page-contacts-php #content .col-full,
.page-template-page-portfolio-php #content .col-full,
.page-template-page-about-php #content .col-full,
.page-template-page-art-objects-php #content .col-full,
.page-template-page-commercial-php #content .col-full {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Mobile Usability & Overlay Optimization */
@media (max-width: 768px) {
  .mobile-menu-overlay {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
  }
  .mobile-menu-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 30px 24px !important;
    box-sizing: border-box !important;
  }
  .mobile-menu-close {
    right: 24px !important;
    top: 24px !important;
  }
  
  /* Mobile live search styling */
  .mobile-menu-overlay .live-search-results {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: var(--card-shadow-lg) !important;
    z-index: 99999 !important;
    margin-top: 4px !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    width: 100% !important;
  }
  
  .mobile-menu-overlay .live-search-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--border) !important;
    text-decoration: none !important;
    color: var(--text-dark) !important;
  }
  
  .mobile-menu-overlay .live-search-item img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
  }
  
  .mobile-menu-overlay .live-search-item-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
  }
  
  .mobile-menu-overlay .live-search-item-price {
    font-size: 13px !important;
    color: var(--gold) !important;
    margin-top: 2px !important;
  }

  /* Shift floating widgets above mobile sticky CTA bar */
  .floating-widgets {
    bottom: 80px !important;
    right: 16px !important;
    gap: 8px !important;
  }

  .floating-widget {
    width: 46px !important;
    height: 46px !important;
    font-size: 20px !important;
  }

  /* Product card image height on mobile */
  .wd-product-card .wd-product-img img,
  ul.products li.product a img {
    height: 200px !important;
    object-fit: cover !important;
  }

  /* Popup modal fit screen on mobile */
  .popup-content {
    padding: 32px 24px !important;
    width: 95% !important;
    border-radius: 12px !important;
  }

  /* Section label spacing */
  .at-section-label {
    font-size: 9px !important;
    letter-spacing: 2px !important;
  }
  .at-section-title {
    font-size: clamp(22px, 6vw, 36px) !important;
  }

  /* Services grid: 1 column on mobile */
  .at-services-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   INNER PAGE — UNIVERSAL MOBILE GRID COLLAPSE
   Targets ALL multi-column grids inside .container on custom
   page templates at 768px and below.
   ============================================================ */
@media (max-width: 768px) {
  /* Page hero sections — reduce height and padding */
  section[style*="min-height:450px"],
  section[style*="min-height: 450px"],
  section[style*="min-height:520px"],
  section[style*="min-height: 520px"] {
    min-height: 320px !important;
    padding-top: 60px !important;
    padding-bottom: 48px !important;
  }

  /* Hero h1 inside inner pages */
  section h1[style*="clamp"] {
    font-size: clamp(26px, 7vw, 44px) !important;
    line-height: 1.1 !important;
  }

  /* Hero desc text */
  section p[style*="max-width:640px"],
  section p[style*="max-width: 640px"],
  section p[style*="max-width:550px"],
  section p[style*="max-width:500px"] {
    max-width: 100% !important;
    font-size: 15px !important;
  }

  /* All grid containers in .container collapse to 1 col */
  .container > div[style*="display:grid"],
  .container > div[style*="display: grid"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* But keep 2-col for tiny grids like highlights/stat-pairs */
  .container > div[style*="display:grid"] > div[style*="display:grid"],
  .container > div[style*="display: grid"] > div[style*="display: grid"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  /* Section inner padding reduction */
  section[style*="padding:100px"],
  section[style*="padding: 100px"],
  section[style*="padding:80px"],
  section[style*="padding: 80px"] {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* CTA button rows inside hero stack vertically */
  section > div.container > div[style*="display:flex;gap:14px"],
  section > div.container > div[style*="display:flex;gap:16px"],
  section > div[style*="display:flex;gap:14px"],
  section > div[style*="display:flex;gap:16px"] {
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Fix full-width section backgrounds not clipping on mobile */
  .page-template-page-about-php section,
  .page-template-page-commercial-php section,
  .page-template-page-art-objects-php section,
  .page-template-page-portfolio-php section,
  .page-template-page-contacts-php section {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
  }

  /* Contact info items — wrap long emails/phones */
  div[style*="overflow-wrap"],
  .container a[href^="mailto"],
  .container a[href^="tel"] {
    word-break: break-all !important;
    overflow-wrap: break-word !important;
  }
}

/* ============================================================
   SVG SOCIAL ICONS
   ============================================================ */
.at-svg-icon {
  vertical-align: middle;
  flex-shrink: 0;
}

/* Topbar messenger icons */
.at-topbar-messenger .at-svg-icon {
  display: block;
}

/* Footer social icons */
.at-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
.at-footer-social a:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

/* Floating widgets icons */
.floating-widget .at-svg-icon {
  display: block;
}

/* ============================================================
   WOOCOMMERCE CART & MINI-CART FIXES
   ============================================================ */

/* Restore cart table layout */
.woocommerce-cart table.shop_table {
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  padding: 16px 12px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.woocommerce-cart table.shop_table .product-thumbnail {
  width: 100px;
}
.woocommerce-cart table.shop_table .product-thumbnail img {
  max-width: 80px;
  height: auto;
}
.woocommerce-cart table.shop_table .product-name a {
  font-weight: 600;
  color: var(--text-dark);
}
.woocommerce-cart table.shop_table .product-price,
.woocommerce-cart table.shop_table .product-subtotal {
  font-weight: 600;
  white-space: nowrap;
}

/* Quantity buttons */
.woocommerce-cart .quantity .qty {
  width: 60px;
  text-align: center;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Cart totals box */
.woocommerce-cart .cart_totals {
  background: var(--bg-section-alt);
  padding: 24px;
  border-radius: 8px;
}
.woocommerce-cart .cart_totals h2 {
  font-size: 20px;
  margin-bottom: 16px;
}
.woocommerce-cart .cart_totals table {
  width: 100%;
  border-collapse: collapse;
}
.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
  padding: 8px 0;
}
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-size: 18px;
  font-weight: 700;
  border-top: 2px solid var(--border);
  padding-top: 12px;
}

/* Proceed to checkout button */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--gold-hover);
}

/* Coupon form */
.woocommerce-cart .coupon {
  display: flex;
  gap: 8px;
}
.woocommerce-cart .coupon input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.woocommerce-cart .coupon button {
  padding: 10px 20px;
  white-space: nowrap;
}

/* Remove button */
.woocommerce-cart .remove {
  color: #d00 !important;
  font-size: 20px;
  text-decoration: none;
}
.woocommerce-cart .remove:hover {
  color: #f00 !important;
}

/* Mini-cart popup */
.widget_shopping_cart_content {
  padding: 0;
}
.widget_shopping_cart_content .woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget_shopping_cart_content .woocommerce-mini-cart li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.widget_shopping_cart_content .woocommerce-mini-cart img {
  width: 50px;
  height: auto;
  border-radius: 4px;
}
.widget_shopping_cart_content .woocommerce-mini-cart__total {
  padding: 12px 0;
  font-weight: 700;
  text-align: right;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
  display: flex;
  gap: 8px;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
}

/* Add-to-cart notice */
.woocommerce-message {
  background: var(--green-light);
  color: #fff;
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.woocommerce-message a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* Hidden checkout fields (address - filled with defaults) */
.wd-hidden-field {
  display: none !important;
}

/* Hide billing address rows — keep only name, phone, email */
.woocommerce-billing-fields .form-row:not(.form-row-first):not(.form-row-last):not(.form-row-wide) {
  display: none;
}
.woocommerce-billing-fields .form-row-wide#billing_company_field,
.woocommerce-billing-fields .form-row-wide#billing_country_field,
.woocommerce-billing-fields .form-row-wide#billing_address_1_field,
.woocommerce-billing-fields .form-row-wide#billing_address_2_field,
.woocommerce-billing-fields .form-row-wide#billing_city_field,
.woocommerce-billing-fields .form-row-wide#billing_state_field,
.woocommerce-billing-fields .form-row-wide#billing_postcode_field {
  display: none !important;
}