/*
Theme Name: Behdad Sport - پوشاک ورزشی بهداد
Theme URI: http://localhost:8000
Author: Behdad Sportswear
Author URI: http://localhost:8000
Description: قالب مدرن، فوق‌العاده واکنش‌گرا و مطابق با پروژه فرانت‌انت React پوشاک ورزشی بهداد با هماهنگی کامل ووکامرس
Version: 2.0.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: clouds-shop
Domain Path: /languages
*/

@custom-variant dark (&:where(.dark, .dark *));
@variant dark (&:where(.dark, .dark *));

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  --digi-red: #ef394e;
  --digi-red-hover: #d82b40;
  --digi-black: #0f0f11;
}

html {
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #ffffff !important;
  color: #0f0f11;
  direction: rtl;
  scroll-behavior: smooth;
}

html.dark {
  background-color: #121214 !important;
  color: #f4f4f5 !important;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff !important;
  color: #0f0f11;
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

body.dark {
  background-color: #121214 !important;
  color: #f4f4f5 !important;
}

/* Glassmorphism & Luxury Cards for Light and Dark modes */
.glass-panel {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.dark .glass-panel {
  background: rgba(18, 18, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.04);
}

.dark .glass-card {
  background: rgba(26, 26, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 25px -4px rgba(0, 0, 0, 0.4);
}

/* Digistyle Accent Classes */
.bg-digi-red {
  background-color: #ef394e;
}
.hover\:bg-digi-red-hover:hover {
  background-color: #d82b40;
}
.text-digi-red {
  color: #ef394e;
}
.border-digi-red {
  border-color: #ef394e;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.dark ::-webkit-scrollbar-track {
  background: #121214;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #27272a;
}
::-webkit-scrollbar-thumb:hover {
  background: #ef394e;
}

/* Continuous Smooth Marquee for Category Icons */
@keyframes categoryMarquee {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.animate-category-marquee {
  display: flex;
  width: max-content;
  animation: categoryMarquee 42s linear infinite;
  will-change: transform;
}

.animate-category-marquee:hover {
  animation-play-state: paused;
}

.category-marquee-static {
  animation: none !important;
  will-change: auto !important;
  transform: none !important;
}

/* Hide scrollbar utility */
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* Clean WooCommerce notifications styling */
.woocommerce-message, .woocommerce-info {
  background-color: #f0fdf4 !important;
  border-top-color: #22c55e !important;
  color: #15803d !important;
  border-radius: 0.75rem !important;
  padding: 1rem !important;
  margin-bottom: 1.5rem !important;
}

.woocommerce-error {
  background-color: #fef2f2 !important;
  border-top-color: #ef4444 !important;
  color: #b91c1c !important;
  border-radius: 0.75rem !important;
  padding: 1rem !important;
  margin-bottom: 1.5rem !important;
}

/* Direct Light & Dark Mode Global System Overrides */
html:not(.dark), html:not(.dark) body {
  background-color: #ffffff !important;
  color: #0f0f11 !important;
  color-scheme: light !important;
}

html.dark, html.dark body {
  background-color: #121214 !important;
  color: #f4f4f5 !important;
  color-scheme: dark !important;
}

html:not(.dark) .bg-white {
  background-color: #ffffff !important;
}

html:not(.dark) .bg-stone-50,
html:not(.dark) .bg-\[\#f8f8fa\],
html:not(.dark) .bg-\[\#fcfcfd\] {
  background-color: #f8f8fa !important;
}

html:not(.dark) .bg-stone-100,
html:not(.dark) .bg-\[\#f0f0f1\] {
  background-color: #f3f4f6 !important;
}

html:not(.dark) .text-stone-900,
html:not(.dark) .text-stone-800 {
  color: #0f0f11 !important;
}

html:not(.dark) .text-stone-700,
html:not(.dark) .text-stone-600 {
  color: #4b5563 !important;
}

html:not(.dark) .border-stone-200,
html:not(.dark) .border-stone-200\/90,
html:not(.dark) .border-stone-200\/80,
html:not(.dark) .border-stone-100 {
  border-color: #e5e7eb !important;
}

html.dark .bg-white {
  background-color: #18181b !important;
}

html.dark .bg-\[\#f8f8fa\],
html.dark .bg-\[\#fcfcfd\],
html.dark .bg-stone-50 {
  background-color: #18181b !important;
}

html.dark .bg-stone-100,
html.dark .bg-\[\#f0f0f1\] {
  background-color: #27272a !important;
}

html.dark .text-stone-900, html.dark .text-stone-800 {
  color: #f4f4f5 !important;
}

html.dark .text-stone-700, html.dark .text-stone-600 {
  color: #d4d4d8 !important;
}

html.dark .border-stone-200,
html.dark .border-stone-200\/90,
html.dark .border-stone-200\/80,
html.dark .border-stone-100 {
  border-color: #27272a !important;
}

/* WooCommerce Cart, Checkout, Ordering & My Account Full Light/Dark Styling */
.woocommerce form.woocommerce-ordering select.orderby {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111827;
  border-radius: 0.75rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.dark .woocommerce form.woocommerce-ordering select.orderby,
html.dark select.orderby {
  background-color: #18181b;
  border-color: #27272a;
  color: #f4f4f5;
}

.woocommerce table.shop_table {
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 1rem !important;
  overflow: hidden;
  color: #111827 !important;
}

html.dark .woocommerce table.shop_table {
  background-color: #18181b !important;
  border-color: #27272a !important;
  color: #f4f4f5 !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: #f3f4f6 !important;
  color: inherit !important;
}

html.dark .woocommerce table.shop_table th,
html.dark .woocommerce table.shop_table td {
  border-color: #27272a !important;
}

.woocommerce-checkout #payment,
.woocommerce-cart .cart-collaterals .cart_totals {
  background-color: #f8f8fa !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 1rem !important;
  padding: 1.25rem !important;
  color: #111827 !important;
}

html.dark .woocommerce-checkout #payment,
html.dark .woocommerce-cart .cart-collaterals .cart_totals {
  background-color: #18181b !important;
  border-color: #27272a !important;
  color: #f4f4f5 !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background-color: #f9fafb !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.75rem !important;
  padding: 0.625rem 0.875rem !important;
  color: #111827 !important;
  font-size: 0.8125rem !important;
}

html.dark .woocommerce form .form-row input.input-text,
html.dark .woocommerce form .form-row textarea,
html.dark .woocommerce form .form-row select {
  background-color: #27272a !important;
  border-color: #3f3f46 !important;
  color: #f4f4f5 !important;
}

/* WooCommerce My Account Styling - High End Luxury Persian Design */
.woocommerce-account .woocommerce {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
  }
}

.woocommerce-MyAccount-navigation {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1rem;
  height: fit-content;
}

.dark .woocommerce-MyAccount-navigation {
  background: #18181b;
  border-color: #27272a;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.woocommerce-MyAccount-navigation-link a {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  border-radius: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
}

.dark .woocommerce-MyAccount-navigation-link a {
  color: #d1d5db;
}

.woocommerce-MyAccount-navigation-link a:hover {
  background-color: rgba(239, 57, 78, 0.08);
  color: #ef394e;
}

.woocommerce-MyAccount-navigation-link.is-active a {
  background-color: #ef394e;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 57, 78, 0.3);
}

.woocommerce-MyAccount-content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.dark .woocommerce-MyAccount-content {
  background: #18181b;
  border-color: #27272a;
  color: #f4f4f5;
}

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  font-size: 0.8125rem;
  color: #111827;
  outline: none;
  transition: border-color 0.2s;
}

.dark .woocommerce-MyAccount-content input[type="text"],
.dark .woocommerce-MyAccount-content input[type="email"],
.dark .woocommerce-MyAccount-content input[type="tel"],
.dark .woocommerce-MyAccount-content input[type="password"],
.dark .woocommerce-MyAccount-content select,
.dark .woocommerce-MyAccount-content textarea {
  background-color: #27272a;
  border-color: #3f3f46;
  color: #f4f4f5;
}

.woocommerce-MyAccount-content input:focus {
  border-color: #ef394e !important;
}

.woocommerce-MyAccount-content button.button,
.woocommerce-MyAccount-content input.button {
  background-color: #ef394e !important;
  color: #ffffff !important;
  border-radius: 0.875rem !important;
  padding: 0.625rem 1.25rem !important;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.woocommerce-MyAccount-content button.button:hover {
  background-color: #d82b40 !important;
  transform: translateY(-1px);
}

/* WooCommerce Reviews & Comment Form Comprehensive High-Contrast Styling */
.woocommerce-Reviews #review_form_wrapper {
  background-color: #f8f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
}

html.dark .woocommerce-Reviews #review_form_wrapper {
  background-color: #18181b;
  border-color: #27272a;
}

.woocommerce-Reviews .comment-reply-title {
  font-size: 1rem;
  font-weight: 900;
  color: #0f0f11;
  display: block;
  margin-bottom: 0.5rem;
}

html.dark .woocommerce-Reviews .comment-reply-title {
  color: #ffffff;
}

.woocommerce-Reviews .comment-notes {
  font-size: 0.75rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

html.dark .woocommerce-Reviews .comment-notes {
  color: #a1a1aa;
}

.woocommerce-Reviews label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #18181b !important;
  margin-bottom: 0.375rem;
}

html.dark .woocommerce-Reviews label {
  color: #f4f4f5 !important;
}

.woocommerce-Reviews input[type="text"],
.woocommerce-Reviews input[type="email"],
.woocommerce-Reviews input[type="number"],
.woocommerce-Reviews textarea,
.woocommerce-Reviews select {
  width: 100%;
  background-color: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.75rem !important;
  padding: 0.625rem 0.875rem !important;
  color: #030712 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  outline: none;
  transition: all 0.2s;
}

html.dark .woocommerce-Reviews input[type="text"],
html.dark .woocommerce-Reviews input[type="email"],
html.dark .woocommerce-Reviews input[type="number"],
html.dark .woocommerce-Reviews textarea,
html.dark .woocommerce-Reviews select {
  background-color: #27272a !important;
  border-color: #3f3f46 !important;
  color: #ffffff !important;
}

.woocommerce-Reviews input::placeholder,
.woocommerce-Reviews textarea::placeholder {
  color: #6b7280 !important;
}

html.dark .woocommerce-Reviews input::placeholder,
html.dark .woocommerce-Reviews textarea::placeholder {
  color: #a1a1aa !important;
}

.woocommerce-Reviews input:focus,
.woocommerce-Reviews textarea:focus,
.woocommerce-Reviews select:focus {
  border-color: #ef394e !important;
  box-shadow: 0 0 0 2px rgba(239, 57, 78, 0.2) !important;
  background-color: #ffffff !important;
}

html.dark .woocommerce-Reviews input:focus,
html.dark .woocommerce-Reviews textarea:focus,
html.dark .woocommerce-Reviews select:focus {
  background-color: #09090b !important;
}

/* Star rating element generated by WooCommerce JS */
.woocommerce p.stars a {
  position: relative;
  height: 1.25em;
  width: 1.25em;
  text-indent: -9999px;
  display: inline-block;
  text-decoration: none;
  color: #f59e0b;
}

.woocommerce p.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: WooCommerce;
  content: "\e021";
  text-indent: 0;
}

.woocommerce p.stars a:hover~a::before {
  content: "\e021";
}

.woocommerce p.stars:hover a::before {
  content: "\e020";
}

.woocommerce p.stars.selected a.active::before {
  content: "\e020";
}

.woocommerce p.stars.selected a.active~a::before {
  content: "\e021";
}

.woocommerce p.stars.selected a:not(.active)::before {
  content: "\e020";
}

.woocommerce-noreviews {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: #1f2937;
  font-weight: 700;
}

html.dark .woocommerce-noreviews {
  background-color: #18181b;
  border-color: #27272a;
  color: #f4f4f5;
}

/* Fixed Pixel Width & Compact Height Responsive Horizontal Scroll Product Cards */
.cloud-product-scroll-item {
  flex: 0 0 136px !important;
  width: 136px !important;
  min-width: 136px !important;
  max-width: 136px !important;
  height: 250px !important;
  scroll-snap-align: start;
}

.cloud-product-scroll-item > div {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

@media (min-width: 400px) {
  .cloud-product-scroll-item {
    flex: 0 0 140px !important;
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    height: 258px !important;
  }
}

@media (min-width: 480px) {
  .cloud-product-scroll-item {
    flex: 0 0 116px !important;
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    height: 222px !important;
  }
}

@media (min-width: 640px) {
  .cloud-product-scroll-item {
    flex: 0 0 118px !important;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    height: 225px !important;
  }
}

@media (min-width: 768px) {
  .cloud-product-scroll-item {
    flex: 0 0 118px !important;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    height: 225px !important;
  }
}

@media (min-width: 1024px) {
  .cloud-product-scroll-item {
    flex: 0 0 136px !important;
    width: 136px !important;
    min-width: 136px !important;
    max-width: 136px !important;
    height: 252px !important;
  }
}

@media (min-width: 1280px) {
  .cloud-product-scroll-item {
    flex: 0 0 172px !important;
    width: 172px !important;
    min-width: 172px !important;
    max-width: 172px !important;
    height: 310px !important;
  }
}
