/* ==========================================================================
   AREF SPORT — PREMIUM WHITE & GREEN BRAND DESIGN SYSTEM (RTL)
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --aref-white: #FFFFFF;
  --aref-bg-light: #F7F9F7;
  --aref-green: #72B83D;
  --aref-green-hover: #62a531;
  --aref-green-deep: #245B32;
  --aref-green-accent: #A5E65B;
  --aref-text: #171B18;
  --aref-text-muted: #737B75;
  --aref-border: #E8ECE8;
  --aref-shadow-sm: 0 2px 10px rgba(23, 27, 24, 0.04);
  --aref-shadow-md: 0 10px 30px rgba(23, 27, 24, 0.07);
  --aref-shadow-lg: 0 20px 45px rgba(36, 91, 50, 0.10);
  --aref-radius-sm: 10px;
  --aref-radius-md: 16px;
  --aref-radius-lg: 24px;
  --aref-transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background-color: var(--aref-white);
  color: var(--aref-text);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--aref-transition);
}

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

button, input, select, textarea {
  font-family: inherit;
}

.aref-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.aref-section {
  padding: 64px 0;
}

.aref-section-light {
  background-color: var(--aref-bg-light);
  border-top: 1px solid var(--aref-border);
  border-bottom: 1px solid var(--aref-border);
}

.aref-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.aref-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--aref-green-deep);
  background: rgba(114, 184, 61, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.aref-section-title {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: var(--aref-text);
  letter-spacing: -0.02em;
}

.aref-section-sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--aref-text-muted);
}

.aref-link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--aref-green-deep);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--aref-border);
  background: var(--aref-white);
}

.aref-link-more:hover {
  border-color: var(--aref-green);
  background: var(--aref-bg-light);
  color: var(--aref-green-deep);
}

/* Buttons */
.aref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--aref-transition);
  white-space: nowrap;
}

.aref-btn-primary {
  background: var(--aref-green);
  color: var(--aref-white);
  box-shadow: 0 6px 18px rgba(114, 184, 61, 0.25);
}

.aref-btn-primary:hover {
  background: var(--aref-green-deep);
  color: var(--aref-white);
  transform: translateY(-1px);
}

.aref-btn-deep {
  background: var(--aref-green-deep);
  color: var(--aref-white);
}

.aref-btn-deep:hover {
  background: #1b4626;
  color: var(--aref-white);
}

.aref-btn-outline {
  background: var(--aref-white);
  color: var(--aref-green-deep);
  border-color: var(--aref-green-deep);
}

.aref-btn-outline:hover {
  background: var(--aref-bg-light);
  border-color: var(--aref-green);
}

.aref-btn-soft {
  background: var(--aref-bg-light);
  color: var(--aref-text);
  border-color: var(--aref-border);
}

.aref-btn-soft:hover {
  border-color: var(--aref-green);
  color: var(--aref-green-deep);
}

.aref-btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.aref-btn-block {
  width: 100%;
}

/* ==========================================================================
   HEADER & STICKY NAVIGATION
   ========================================================================== */
.aref-topbar {
  background: var(--aref-green-deep);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  padding: 7px 0;
}

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

.aref-topbar-items {
  display: flex;
  align-items: center;
  gap: 18px;
}

.aref-topbar a:hover {
  color: var(--aref-green-accent);
}

.aref-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--aref-border);
  box-shadow: var(--aref-shadow-sm);
}

body.admin-bar .aref-header {
  top: 32px;
}

.aref-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.aref-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.aref-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--aref-green-deep), var(--aref-green));
  color: var(--aref-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(36, 91, 50, 0.2);
}

.aref-logo-text strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--aref-text);
  line-height: 1.2;
}

.aref-logo-text span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--aref-green-deep);
}

/* Prominent Search Bar */
.aref-search-wrap {
  position: relative;
  flex: 1;
  max-width: 460px;
}

.aref-search-form {
  display: flex;
  align-items: center;
  background: var(--aref-bg-light);
  border: 1.5px solid var(--aref-border);
  border-radius: 14px;
  padding: 4px 12px 4px 5px;
  transition: var(--aref-transition);
}

.aref-search-form:focus-within {
  border-color: var(--aref-green);
  background: var(--aref-white);
  box-shadow: 0 0 0 4px rgba(114, 184, 61, 0.14);
}

.aref-search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 6px;
  font-size: 13.5px;
  color: var(--aref-text);
  outline: none;
}

.aref-search-input::placeholder {
  color: var(--aref-text-muted);
}

.aref-search-submit {
  background: var(--aref-green);
  color: var(--aref-white);
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--aref-transition);
}

.aref-search-submit:hover {
  background: var(--aref-green-deep);
}

.aref-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  border-radius: 16px;
  box-shadow: var(--aref-shadow-lg);
  z-index: 950;
  display: none;
  max-height: 440px;
  overflow-y: auto;
}

.aref-search-dropdown.is-open {
  display: block;
}

.aref-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--aref-border);
}

.aref-search-item:last-child {
  border-bottom: none;
}

.aref-search-item:hover {
  background: var(--aref-bg-light);
}

.aref-search-item img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--aref-bg-light);
  border: 1px solid var(--aref-border);
  flex-shrink: 0;
}

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

.aref-search-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--aref-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aref-search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--aref-text-muted);
  margin-top: 2px;
}

.aref-search-item-price {
  font-weight: 700;
  color: var(--aref-green-deep);
  font-size: 12.5px;
  white-space: nowrap;
}

.aref-search-footer {
  padding: 10px 14px;
  background: var(--aref-bg-light);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--aref-green-deep);
}

/* Header Actions */
.aref-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.aref-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--aref-border);
  background: var(--aref-white);
  color: var(--aref-text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.aref-icon-btn:hover {
  border-color: var(--aref-green);
  background: var(--aref-bg-light);
  color: var(--aref-green-deep);
}

.aref-cart-btn {
  background: var(--aref-bg-light);
  border-color: rgba(114, 184, 61, 0.35);
  color: var(--aref-green-deep);
}

.aref-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--aref-green);
  color: var(--aref-white);
  font-size: 12px;
  font-weight: 800;
}

/* Desktop Secondary Nav Row */
.aref-nav-bar {
  border-top: 1px solid var(--aref-border);
  background: var(--aref-white);
}

.aref-nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aref-nav-item {
  position: relative;
}

.aref-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 11px 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--aref-text);
  border-bottom: 2px solid transparent;
}

.aref-nav-link:hover, .aref-nav-item.is-active > .aref-nav-link {
  color: var(--aref-green-deep);
  border-bottom-color: var(--aref-green);
}

.aref-nav-offer {
  color: var(--aref-green-deep);
  font-weight: 700;
}

.aref-dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 260px;
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  border-radius: 16px;
  box-shadow: var(--aref-shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--aref-transition);
  z-index: 940;
}

.aref-nav-item:hover > .aref-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aref-dropdown-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--aref-text);
}

.aref-dropdown-panel a:hover {
  background: var(--aref-bg-light);
  color: var(--aref-green-deep);
}

.aref-dropdown-badge {
  font-size: 11px;
  color: var(--aref-text-muted);
  background: var(--aref-bg-light);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Mobile Controls & Drawer */
.aref-mobile-toggle {
  display: none;
  background: var(--aref-bg-light);
  border: 1px solid var(--aref-border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.aref-mobile-search-bar {
  display: none;
  padding: 0 0 10px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.aref-hero {
  background: radial-gradient(circle at 15% 20%, rgba(165, 230, 91, 0.18), transparent 45%),
              linear-gradient(180deg, var(--aref-bg-light) 0%, var(--aref-white) 100%);
  border-bottom: 1px solid var(--aref-border);
  padding: 48px 0 56px;
}

.aref-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.aref-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--aref-green-deep);
  box-shadow: var(--aref-shadow-sm);
  margin-bottom: 18px;
}

.aref-hero-badge span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aref-green);
}

.aref-hero-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--aref-text);
  letter-spacing: -0.02em;
}

.aref-hero-title em {
  font-style: normal;
  color: var(--aref-green-deep);
  position: relative;
}

.aref-hero-desc {
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--aref-text-muted);
  max-width: 580px;
  line-height: 1.85;
}

.aref-hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.aref-hero-visual {
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  border-radius: var(--aref-radius-lg);
  padding: 24px;
  box-shadow: var(--aref-shadow-lg);
  position: relative;
}

.aref-hero-img-stage {
  aspect-ratio: 4 / 3;
  background: var(--aref-bg-light);
  border-radius: var(--aref-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

.aref-hero-img-stage img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.aref-hero-visual:hover .aref-hero-img-stage img {
  transform: scale(1.03);
}

.aref-hero-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--aref-border);
  font-size: 13px;
}

/* ==========================================================================
   CATEGORIES, BRANDS, ADVANTAGES & PRODUCT GRIDS
   ========================================================================== */
.aref-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.aref-cat-card {
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  border-radius: var(--aref-radius-md);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--aref-shadow-sm);
}

.aref-cat-card:hover {
  border-color: var(--aref-green);
  box-shadow: var(--aref-shadow-md);
  transform: translateY(-3px);
}

.aref-cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--aref-bg-light);
  border: 1px solid var(--aref-border);
  color: var(--aref-green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aref-cat-card:hover .aref-cat-icon {
  background: var(--aref-green);
  color: var(--aref-white);
  border-color: var(--aref-green);
}

.aref-cat-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--aref-text);
}

.aref-cat-count {
  font-size: 12px;
  color: var(--aref-text-muted);
}

/* Products Grid & Product Card */
.aref-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.aref-card {
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  border-radius: var(--aref-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--aref-transition);
  box-shadow: var(--aref-shadow-sm);
}

.aref-card:hover {
  border-color: rgba(114, 184, 61, 0.65);
  box-shadow: var(--aref-shadow-md);
  transform: translateY(-4px);
}

.aref-card-media {
  position: relative;
  background: var(--aref-white);
  padding: 18px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--aref-border);
}

.aref-card-media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.aref-card:hover .aref-card-media img {
  transform: scale(1.04);
}

.aref-card-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.aref-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.aref-badge-stock-in {
  background: rgba(114, 184, 61, 0.14);
  color: var(--aref-green-deep);
}

.aref-badge-stock-out {
  background: #FEF2F2;
  color: #B91C1C;
}

.aref-badge-sale {
  background: var(--aref-green-deep);
  color: var(--aref-white);
}

.aref-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.aref-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--aref-text-muted);
  margin-bottom: 6px;
}

.aref-card-brand {
  font-weight: 700;
  color: var(--aref-green-deep);
}

.aref-card-title {
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--aref-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 45px;
}

.aref-card-title a:hover {
  color: var(--aref-green-deep);
}

.aref-card-price-box {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--aref-border);
  margin-bottom: 12px;
}

.aref-price-old {
  font-size: 12px;
  color: var(--aref-text-muted);
  text-decoration: line-through;
  display: block;
}

.aref-price-current {
  font-size: 16px;
  font-weight: 800;
  color: var(--aref-green-deep);
}

.aref-price-inquiry {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--aref-text-muted);
}

.aref-card-actions {
  display: flex;
  gap: 8px;
}

.aref-card-actions .aref-btn {
  flex: 1;
  padding: 9px 10px;
  font-size: 12.5px;
}

.aref-card-actions .aref-btn-icon {
  flex: 0 0 auto;
  padding: 9px 11px;
}

/* Brands Grid */
.aref-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}

.aref-brand-card {
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  border-radius: var(--aref-radius-md);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--aref-shadow-sm);
}

.aref-brand-card:hover {
  border-color: var(--aref-green);
  transform: translateY(-2px);
}

.aref-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--aref-text);
  margin-bottom: 4px;
}

.aref-brand-count {
  font-size: 12px;
  color: var(--aref-green-deep);
  font-weight: 600;
}

/* Advantages & Trust Grid */
.aref-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.aref-feature-card {
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  border-radius: var(--aref-radius-md);
  padding: 24px 20px;
}

.aref-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(114, 184, 61, 0.14);
  color: var(--aref-green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.aref-feature-card h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--aref-text);
}

.aref-feature-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--aref-text-muted);
  line-height: 1.7;
}

/* Gym Owner Consultation Banner */
.aref-consult-banner {
  background: linear-gradient(135deg, var(--aref-green-deep) 0%, #194423 100%);
  border-radius: var(--aref-radius-lg);
  padding: 40px;
  color: var(--aref-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--aref-shadow-lg);
}

.aref-consult-banner h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
}

.aref-consult-banner p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
}

.aref-consult-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

.aref-consult-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aref-consult-form-box {
  background: var(--aref-white);
  color: var(--aref-text);
  border-radius: var(--aref-radius-md);
  padding: 26px;
}

/* Form Elements */
.aref-field {
  margin-bottom: 14px;
}

.aref-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--aref-text);
}

.aref-input, .aref-textarea, .aref-select {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--aref-border);
  background: var(--aref-white);
  color: var(--aref-text);
  font-size: 14px;
  transition: var(--aref-transition);
}

.aref-input:focus, .aref-textarea:focus, .aref-select:focus {
  outline: none;
  border-color: var(--aref-green);
  box-shadow: 0 0 0 3px rgba(114, 184, 61, 0.14);
}

.aref-form-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: none;
}

.aref-form-msg.is-success {
  display: block;
  background: rgba(114, 184, 61, 0.14);
  color: var(--aref-green-deep);
  border: 1px solid rgba(114, 184, 61, 0.35);
}

.aref-form-msg.is-error {
  display: block;
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* ==========================================================================
   SHOP ARCHIVE & SIDEBAR FILTERS
   ========================================================================== */
.aref-shop-header {
  background: var(--aref-bg-light);
  border-bottom: 1px solid var(--aref-border);
  padding: 28px 0;
}

.aref-breadcrumb {
  font-size: 12.5px;
  color: var(--aref-text-muted);
  margin-bottom: 8px;
}

.aref-breadcrumb a:hover {
  color: var(--aref-green-deep);
}

.aref-shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 36px 0 64px;
  align-items: start;
}

.aref-sidebar-card {
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  border-radius: var(--aref-radius-md);
  padding: 20px;
  position: sticky;
  top: 135px;
}

.aref-filter-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--aref-border);
}

.aref-filter-group:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.aref-filter-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--aref-text);
}

.aref-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow-y: auto;
}

.aref-filter-list a, .aref-filter-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--aref-text);
  padding: 5px 8px;
  border-radius: 8px;
}

.aref-filter-list a:hover, .aref-filter-list a.is-selected {
  background: var(--aref-bg-light);
  color: var(--aref-green-deep);
  font-weight: 700;
}

.aref-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--aref-bg-light);
  border: 1px solid var(--aref-border);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 22px;
}

/* ==========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================== */
.aref-single-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  margin-top: 24px;
  align-items: start;
}

.aref-gallery-box {
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  border-radius: var(--aref-radius-lg);
  padding: 20px;
}

.aref-gallery-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--aref-white);
  border-radius: var(--aref-radius-md);
  overflow: hidden;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aref-gallery-stage img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease-out;
}

.aref-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.aref-gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 2px solid var(--aref-border);
  padding: 4px;
  background: var(--aref-white);
  cursor: pointer;
  flex-shrink: 0;
}

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

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

.aref-product-summary {
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  border-radius: var(--aref-radius-lg);
  padding: 28px;
}

.aref-product-title {
  margin: 10px 0 8px;
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 800;
  line-height: 1.4;
}

.aref-product-price-card {
  background: var(--aref-bg-light);
  border: 1px solid var(--aref-border);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 18px 0;
}

.aref-single-price-main {
  font-size: 24px;
  font-weight: 800;
  color: var(--aref-green-deep);
}

.aref-cheque-note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--aref-text-muted);
}

.aref-hybrid-actions {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.aref-single-add-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.aref-single-add-row .quantity input.qty {
  width: 72px;
  height: 46px;
  border: 1.5px solid var(--aref-border);
  border-radius: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.aref-info-boxes {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--aref-border);
}

.aref-info-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--aref-bg-light);
  font-size: 13px;
  color: var(--aref-text);
}

.aref-info-line svg {
  color: var(--aref-green-deep);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Product Tabs & Specs Table */
.aref-product-details-tabs {
  margin-top: 40px;
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  border-radius: var(--aref-radius-lg);
  overflow: hidden;
}

.aref-tabs-nav {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  background: var(--aref-bg-light);
  border-bottom: 1px solid var(--aref-border);
  overflow-x: auto;
}

.aref-tab-btn {
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--aref-text-muted);
  cursor: pointer;
}

.aref-tab-btn.is-active {
  background: var(--aref-white);
  color: var(--aref-green-deep);
  border-color: var(--aref-border);
  box-shadow: var(--aref-shadow-sm);
}

.aref-tab-panel {
  display: none;
  padding: 28px;
}

.aref-tab-panel.is-active {
  display: block;
}

.aref-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.aref-specs-table th, .aref-specs-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--aref-border);
  text-align: right;
  font-size: 14px;
}

.aref-specs-table th {
  width: 240px;
  background: var(--aref-bg-light);
  font-weight: 700;
  color: var(--aref-text);
}

/* ==========================================================================
   WOOCOMMERCE CART, CHECKOUT & MY ACCOUNT RTL OVERRIDES
   ========================================================================== */
.aref-page-wrap {
  padding: 36px 0 64px;
}

.aref-page-card {
  background: var(--aref-white);
  border: 1px solid var(--aref-border);
  border-radius: var(--aref-radius-lg);
  padding: 30px;
  box-shadow: var(--aref-shadow-sm);
}

.woocommerce form.checkout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.woocommerce form.checkout .woocommerce-NoticeGroup-checkout {
  grid-column: 1 / -1;
}

.woocommerce form.checkout #customer_details {
  grid-column: 1;
  grid-row: span 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100% !important;
  float: none !important;
}

.woocommerce form.checkout #customer_details .col-1,
.woocommerce form.checkout #customer_details .col-2 {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.woocommerce form.checkout #order_review_heading {
  grid-column: 2;
  margin: 0 0 12px !important;
}

.woocommerce form.checkout #order_review {
  grid-column: 2;
  width: 100% !important;
  float: none !important;
}

.woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.woocommerce form .form-row,
.woocommerce form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce form .form-row-wide {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-billing-fields__field-wrapper .form-row-wide {
  grid-column: 1 / -1;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--aref-border);
  background: var(--aref-white);
  color: var(--aref-text);
  font-size: 14px;
}

.woocommerce-checkout-review-order {
  background: var(--aref-bg-light);
  border: 1px solid var(--aref-border);
  border-radius: var(--aref-radius-md);
  padding: 22px;
}

.woocommerce #place_order,
.woocommerce .button.alt,
.woocommerce button.button.alt {
  background: var(--aref-green) !important;
  color: var(--aref-white) !important;
  border-radius: 12px !important;
  padding: 13px 24px !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  border: none !important;
  width: 100%;
  cursor: pointer;
}

.woocommerce #place_order:hover,
.woocommerce .button.alt:hover {
  background: var(--aref-green-deep) !important;
}

/* My Account Navigation & Logged-out Login/Register Layout */
.woocommerce-account.logged-in .woocommerce {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

.woocommerce-account .woocommerce .u-columns.col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
}

.woocommerce-account .woocommerce .u-columns .col-1,
.woocommerce-account .woocommerce .u-columns .col-2 {
  width: 100% !important;
  float: none !important;
  background: var(--aref-bg-light);
  border: 1px solid var(--aref-border);
  border-radius: var(--aref-radius-md);
  padding: 26px;
}

.woocommerce-account form.login button,
.woocommerce-account form.register button {
  background: var(--aref-green) !important;
  color: var(--aref-white) !important;
  border-radius: 12px !important;
  padding: 11px 22px !important;
  font-weight: 800 !important;
  border: none !important;
  cursor: pointer;
}

.woocommerce-account form.login button:hover,
.woocommerce-account form.register button:hover {
  background: var(--aref-green-deep) !important;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--aref-border);
  border-radius: 16px;
  overflow: hidden;
}

.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--aref-border);
  font-size: 14px;
  font-weight: 600;
}

.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--aref-green-deep);
  color: var(--aref-white);
}

/* ==========================================================================
   MODALS & DRAWERS (CONSULTATION / INSTALLMENT / MINI-CART / MOBILE)
   ========================================================================== */
.aref-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 27, 24, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.aref-modal-backdrop.is-open {
  display: flex;
}

.aref-modal {
  background: var(--aref-white);
  border-radius: var(--aref-radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 28px;
  box-shadow: var(--aref-shadow-lg);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.aref-modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--aref-border);
  background: var(--aref-bg-light);
  cursor: pointer;
  font-size: 18px;
}

.aref-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 27, 24, 0.45);
  z-index: 1900;
  display: none;
}

.aref-drawer-backdrop.is-open {
  display: block;
}

.aref-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 380px;
  background: var(--aref-white);
  z-index: 1950;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--aref-shadow-lg);
}

.aref-drawer.aref-drawer-right {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

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

.aref-drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--aref-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.aref-footer {
  background: var(--aref-bg-light);
  border-top: 1px solid var(--aref-border);
  padding: 54px 0 24px;
}

.aref-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--aref-border);
}

.aref-footer h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--aref-text);
}

.aref-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--aref-text-muted);
}

.aref-footer-links a:hover {
  color: var(--aref-green-deep);
}

.aref-footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--aref-text-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .aref-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .aref-cats-grid, .aref-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .aref-shop-layout {
    grid-template-columns: 240px 1fr;
  }
  .aref-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .aref-topbar, .aref-nav-bar, .aref-header-main .aref-search-wrap, .aref-account-label {
    display: none;
  }
  .aref-mobile-toggle, .aref-mobile-search-bar {
    display: flex;
  }
  .aref-mobile-search-bar .aref-search-wrap {
    max-width: none;
    width: 100%;
  }
  .aref-hero-grid,
  .aref-consult-banner,
  .aref-single-grid,
  .aref-shop-layout,
  .woocommerce form.checkout,
  .woocommerce-account.logged-in .woocommerce,
  .woocommerce-account .woocommerce .u-columns.col2-set {
    grid-template-columns: 1fr;
  }
  .woocommerce form.checkout #customer_details,
  .woocommerce form.checkout #order_review_heading,
  .woocommerce form.checkout #order_review {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .aref-shop-sidebar {
    display: none;
  }
  .aref-shop-sidebar.is-mobile-open {
    display: block;
  }
  .aref-products-grid, .aref-products-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .aref-contact-grid {
    grid-template-columns: 1fr;
  }
}

.aref-contact-grid {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--aref-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

/* WooCommerce Cart, Notices, Pagination & Buy Now Polish */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 14px;
  padding: 14px 20px !important;
  margin-bottom: 20px;
  border: 1px solid var(--aref-border);
  background: var(--aref-bg-light);
  color: var(--aref-text);
  list-style: none;
  font-size: 14px;
  border-top-width: 3px;
  position: relative;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  display: none !important;
}
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link) {
  background: var(--aref-green) !important;
  color: var(--aref-white) !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: none !important;
}
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover {
  background: var(--aref-green-deep) !important;
}
.woocommerce-message {
  border-top-color: var(--aref-green);
}
.woocommerce-info {
  border-top-color: var(--aref-green-deep);
}
.woocommerce-error {
  border-top-color: #B91C1C;
  background: #FEF2F2;
}
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--aref-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--aref-white);
  margin-bottom: 24px;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--aref-border);
  text-align: right;
  vertical-align: middle;
}
.woocommerce table.shop_table th {
  background: var(--aref-bg-light);
  font-weight: 800;
}
.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--aref-border);
  background: var(--aref-white);
  font-weight: 700;
  font-size: 13.5px;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--aref-green-deep);
  color: var(--aref-white);
  border-color: var(--aref-green-deep);
}
.woocommerce form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
}
.woocommerce form.cart table.variations {
  width: 100%;
  margin-bottom: 10px;
  border-collapse: collapse;
}
.woocommerce form.cart table.variations th,
.woocommerce form.cart table.variations td {
  padding: 6px 0;
  text-align: right;
  vertical-align: middle;
}
.woocommerce form.cart table.variations th.label {
  width: 110px;
  font-size: 13.5px;
  font-weight: 700;
}
.woocommerce form.cart table.variations select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--aref-border);
  background: var(--aref-white);
  font-size: 13.5px;
}
.woocommerce form.cart .single_variation_wrap {
  width: 100%;
}
.woocommerce form.cart .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
}
.woocommerce form.cart .single_add_to_cart_button {
  width: auto !important;
  flex: 1 1 auto;
}
.aref-buy-now-btn {
  flex: 1 1 auto;
}

@media (max-width: 540px) {
  .aref-products-grid, .aref-products-grid-3, .aref-cats-grid, .aref-features-grid, .aref-footer-grid, .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
  .aref-section {
    padding: 42px 0;
  }
  .aref-consult-banner {
    padding: 24px;
  }
}
