/* ============================================
   ГРАНДШИНА — Stores Block
   Store locations with 2GIS map
   ============================================ */

/* ============================================
   Stores Block
   ============================================ */

.stores-block {
  --stores-bg: #ffffff;
  --stores-padding-y: 60px;
  --stores-padding-x: 30px;
  --stores-max-width: 1200px;
  --stores-card-bg: #ffffff;
  --stores-card-border: #e8e8e8;
  --stores-card-radius: 12px;
  --stores-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --stores-card-shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.1);
  --stores-card-padding: 25px;
  --stores-card-gap: 20px;
  --stores-icon-color: #e94560;
  --stores-title-size: 32px;
  --stores-title-weight: 700;
  --stores-title-color: #1a1a2e;
  --stores-address-size: 15px;
  --stores-address-color: #555555;
  --stores-hours-size: 14px;
  --stores-hours-color: #666666;
  --stores-phone-size: 16px;
  --stores-phone-weight: 600;
  --stores-phone-color: #e94560;
  --stores-transition: 0.3s ease;

  background-color: var(--stores-bg);
  padding: var(--stores-padding-y) 0;
}

.stores-container {
  max-width: var(--stores-max-width);
  margin: 0 auto;
  padding: 0 var(--stores-padding-x);
}

/* Section Header */
.stores-header {
  text-align: center;
  margin-bottom: 40px;
}

.stores-title {
  font-size: var(--stores-title-size);
  font-weight: var(--stores-title-weight);
  color: var(--stores-title-color);
  margin: 0 0 10px 0;
}

.stores-subtitle {
  font-size: 16px;
  color: #666666;
  margin: 0;
}

/* Stores Layout */
.stores-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Map Container */
.stores-map {
  flex: 0 0 55%;
  min-width: 0;
}

.stores-map__wrapper {
  background-color: var(--stores-card-bg);
  border-radius: var(--stores-card-radius);
  overflow: hidden;
  box-shadow: var(--stores-card-shadow);
  height: 500px;
  position: relative;
}

.stores-map__widget {
  width: 100%;
  height: 100%;
  border: none;
}

.stores-map__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4f8 0%, #e0e8f0 100%);
  color: #999999;
  font-size: 16px;
  text-align: center;
  padding: 40px;
}

/* Stores List */
.stores-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--stores-card-gap);
}

/* Store Card */
.store-card {
  background-color: var(--stores-card-bg);
  border: 1px solid var(--stores-card-border);
  border-radius: var(--stores-card-radius);
  padding: var(--stores-card-padding);
  box-shadow: var(--stores-card-shadow);
  transition: all var(--stores-transition);
}

.store-card:hover {
  box-shadow: var(--stores-card-shadow-hover);
  transform: translateY(-3px);
  border-color: transparent;
}

/* Store Header: Icon + Name */
.store-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.store-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stores-icon-color);
  flex-shrink: 0;
}

.store-card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-card__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--stores-title-color);
  margin: 0;
  flex: 1;
}

/* Store Info Rows */
.store-card__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.store-info-row__icon {
  width: 18px;
  height: 18px;
  color: var(--stores-icon-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.store-info-row__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-info-row__content {
  flex: 1;
  min-width: 0;
}

.store-info-row__label {
  font-size: 12px;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 2px 0;
}

.store-info-row__value {
  font-size: var(--stores-address-size);
  color: var(--stores-address-color);
  margin: 0;
  line-height: 1.5;
}

.store-info-row__value a {
  color: var(--stores-phone-color);
  text-decoration: none;
  font-weight: var(--stores-phone-weight);
  transition: color var(--stores-transition);
}

.store-info-row__value a:hover {
  color: #d63a52;
  text-decoration: underline;
}

/* Store Badge (Main branch) */
.store-card__badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, #e94560 0%, #d63a52 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  margin-left: 10px;
}

/* ============================================
   Tablet Styles (768px – 1024px)
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --stores-padding-x: 20px;
    --stores-card-padding: 20px;
    --stores-title-size: 28px;
  }

  .stores-layout {
    gap: 20px;
  }

  .stores-map__wrapper {
    height: 400px;
  }
}

/* ============================================
   Mobile Styles (<768px)
   ============================================ */

@media (max-width: 768px) {
  :root {
    --stores-padding-y: 40px;
    --stores-padding-x: 15px;
    --stores-card-padding: 18px;
    --stores-card-gap: 15px;
    --stores-title-size: 24px;
    --stores-address-size: 14px;
    --stores-phone-size: 15px;
  }

  .stores-layout {
    flex-direction: column;
  }

  .stores-map {
    flex: none;
    width: 100%;
  }

  .stores-list {
    width: 100%;
  }

  .stores-map__wrapper {
    height: 300px;
  }
}

/* ============================================
   Small Mobile (<480px)
   ============================================ */

@media (max-width: 480px) {
  :root {
    --stores-padding-y: 30px;
    --stores-card-padding: 15px;
    --stores-title-size: 22px;
  }

  .stores-map__wrapper {
    height: 250px;
  }

  .store-card__header {
    flex-wrap: wrap;
  }

  .store-card__name {
    font-size: 16px;
  }
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .store-card {
    transition: none;
  }

  .store-card:hover {
    transform: none;
  }
}
