/* ========================================
   فایل زیباسازی - نسخه سبک
   ======================================== */

* {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  box-sizing: border-box;
}

html, body {
  background: #f5f5f5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* اسلایدر */
.slider {
  width: 100%;
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.slider img.slide {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 400;
  object-fit: cover;
  border-radius: 16px;
  display: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slider img.slide.active {
  display: block;
}

/* دسته‌بندی */
.category-section {
  background: #fff;
  margin: 15px;
  padding: 25px 15px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-section .section-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
}

.category-section .gray-part {
  color: #666;
}

.category-section .blue-part {
  color: #2f430e;
  font-weight: 700;
}

.category-section .category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 10px 5px;
}

.category-section .category-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 18px 14px;
  width: calc(25% - 10px);
  min-width: 85px;
  max-width: 110px;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-section .category-card:hover {
  border-color: #2f430e;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(47, 67, 14, 0.15);
}

.category-section .category-card .icon-wrapper {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #2f430e, #4a6b1a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-section .category-card .icon-shoe {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.category-section .category-label {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
  line-height: 1.3;
  display: block;
}

/* بخش محصولات */
section[aria-label="محصولات جدید هیواد"] {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  margin: 15px;
  padding: 30px 20px !important;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

section[aria-label="محصولات جدید هیواد"]::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(47, 67, 14, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: glow 10s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
}

.section-header {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.section-header .section-title {
  color: #fff !important;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: -0.5px;
}

.section-header .section-subtitle {
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px;
  margin-top: 5px;
  line-height: 1.6;
}

.section-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
  justify-content: center;
}

.filter-pill {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.8);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-pill::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.filter-pill:hover::before {
  width: 200px;
  height: 200px;
}

.filter-pill:hover,
.filter-pill.primary {
  background: linear-gradient(135deg, #2f430e 0%, #4a6b1a 100%);
  color: #fff;
  border-color: #2f430e;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(47, 67, 14, 0.4);
}

.filter-pill.primary {
  background: linear-gradient(135deg, #2f430e 0%, #4a6b1a 100%);
  box-shadow: 0 5px 20px rgba(47, 67, 14, 0.3);
}

/* فوتر */
.footer {
  background: linear-gradient(180deg, #0a0f1e 0%, #040810 100%);
  margin-top: 40px;
  padding: 50px 0 110px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 67, 14, 0.5), transparent);
}

.footer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(47, 67, 14, 0.08) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 1;
}

.footer-section {
  position: relative;
}

.footer-section h3 {
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #2f430e, #4a6b1a);
  border-radius: 2px;
}

.footer-section p {
  color: rgba(255,255,255,0.6) !important;
  font-size: 13px;
  line-height: 1.8;
  margin: 10px 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin: 12px 0;
}

.footer-section a {
  color: rgba(255,255,255,0.6) !important;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.footer-section a::before {
  content: '←';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: #4a6b1a !important;
  padding-right: 8px;
}

.footer-section a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-section:first-child {
  grid-column: span 1;
}

.footer-section:first-child h3 {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #4a6b1a, #2f430e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.footer-section:first-child h3::after {
  display: none;
}

.footer-section:first-child p {
  color: rgba(255,255,255,0.5) !important;
  line-height: 1.9;
  margin-top: 5px;
}

.footer-section:last-child p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
  line-height: 1.7;
}

.footer-section:last-child p:last-child {
  align-items: flex-start;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 30px 20px 0;
  margin: 50px 30px 0;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4) !important;
  font-size: 12px;
  margin: 0 0 15px;
}

.footer-bottom .brand-text {
  background: linear-gradient(135deg, #4a6b1a 0%, #2f430e 50%, #6b8e23 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 32px;
  font-weight: 900;
  display: inline-block;
  margin-top: 10px;
  letter-spacing: 2px;
  position: relative;
  animation: brandGlow 3s ease-in-out infinite;
}

@keyframes brandGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 10px rgba(47, 67, 14, 0.3));
  }
  50% { 
    filter: drop-shadow(0 0 20px rgba(74, 107, 26, 0.5));
  }
}

/* دکمه‌های پایین */
.button-container {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  backdrop-filter: blur(20px);
  box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(47, 67, 14, 0.1);
}

.button-container .button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.button-container .button:hover {
  transform: translateY(-5px);
}

.button-container .button:active {
  transform: translateY(-2px);
}

.button-container .button svg {
  transition: all 0.3s ease;
}

.button-container .button:hover svg {
  color: #2f430e;
  filter: drop-shadow(0 2px 8px rgba(47, 67, 14, 0.3));
}

.button-container .button span {
  font-weight: 600;
  color: #334155;
  transition: color 0.3s;
}

.button-container .button:hover span {
  color: #2f430e;
}

.button-container .button.active {
  background: linear-gradient(180deg, rgba(47, 67, 14, 0.1), rgba(74, 107, 26, 0.05));
}

.button-container .button.active svg {
  color: #2f430e;
  filter: drop-shadow(0 2px 8px rgba(47, 67, 14, 0.3));
}

.button-container .button.active span {
  color: #2f430e;
  font-weight: 700;
}

/* تبلت */
@media (max-width: 768px) {
  .category-section .category-card {
    width: calc(20% - 10px);
    min-width: 75px;
    max-width: 95px;
  }
}

/* موبایل */
@media (max-width: 600px) {
  .slider {
    padding: 10px;
  }
  
  .slider img.slide {
    aspect-ratio: 1200 / 400;
    border-radius: 12px;
  }
  
  .category-section {
    padding: 20px 10px;
    margin: 10px;
  }
  
  .category-section .category-card {
    width: calc(25% - 8px);
    min-width: 70px;
    max-width: 90px;
    padding: 14px 10px;
  }
  
  .category-section .category-card .icon-wrapper {
    width: 42px;
    height: 42px;
  }
  
  .category-section .category-card .icon-shoe {
    width: 24px;
    height: 24px;
  }
  
  .category-section .category-label {
    font-size: 10px;
    font-weight: 700;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 20px;
  }
  
  .footer-section:first-child {
    grid-column: span 2;
    text-align: center;
  }
  
  .footer-section h3::after {
    right: 50%;
    transform: translateX(50%);
  }
  
  .footer-section:first-child h3::after {
    display: none;
  }
  
  .footer {
    padding: 40px 0 100px;
  }
  
  .footer-bottom {
    margin: 40px 20px 0;
  }
}

@media (max-width: 400px) {
  .category-section .category-card {
    width: calc(25% - 6px);
    min-width: 65px;
    max-width: 75px;
    padding: 12px 8px;
  }
  
  .category-section .category-card .icon-wrapper {
    width: 38px;
    height: 38px;
  }
  
  .category-section .category-card .icon-shoe {
    width: 20px;
    height: 20px;
  }
  
  .category-section .category-label {
    font-size: 9px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }
  
  .footer-section:first-child {
    grid-column: span 1;
  }
  
  .footer-section h3::after {
    right: 50%;
    transform: translateX(50%);
  }
  
  .footer {
    padding: 35px 0 100px;
  }
  
  .footer-bottom .brand-text {
    font-size: 28px;
  }
}

/* افکت‌های اضافی */
.products-grid {
  position: relative;
  z-index: 1;
}

/* استایل دکمه‌های منو */
.menu-quick-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-action-btn {
  width: 100%;
  padding: 12px 16px;
  background: rgba(47, 67, 14, 0.1);
  border: 1px solid rgba(47, 67, 14, 0.2);
  border-radius: 8px;
  color: #2f430e;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-action-btn:hover {
  background: rgba(47, 67, 14, 0.2);
  border-color: #2f430e;
  transform: translateX(-3px);
}

.empty-state {
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 60px 20px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
}

.empty-state a {
  color: #2f430e;
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.2s;
}

.empty-state a:hover {
  color: #4a6b1a;
}

/* Social Links in Footer */
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: flex-start;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-social a:hover {
  background: linear-gradient(135deg, #2f430e, #4a6b1a);
  border-color: #2f430e;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(47, 67, 14, 0.4);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: rgba(255,255,255,0.6);
  transition: fill 0.3s;
}

.footer-social a:hover svg {
  fill: #fff;
}

/* افکت Shine */
.footer-section h3 {
  position: relative;
  overflow: hidden;
}

.footer-section h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50%, 100% { left: 200%; }
}

/* Responsive adjustments */
@media (min-width: 1200px) {
  .footer-content {
    padding: 0 50px;
  }
}

/* تنظیمات تبلت */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  
  .footer-section:first-child {
    grid-column: span 2;
  }
}
