/* 
* Yourcarewear - CSS стилі 
* Магазин одягу
*/

/* === Основні стилі та змінні === */
:root {
  --primary-color: #6c5ce7;
  --primary-dark: #5549c2;
  --secondary-color: #fd79a8;
  --accent-color: #00b894;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --text-color: #2d3436;
  --border-radius: 6px;
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

/* === Скидання стилів === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

ul,
ol {
  list-style: none;
}

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

a:hover {
  color: var(--primary-dark);
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* === Типографіка === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.2rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === Кнопки === */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* === Хедер та навігація === */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 15px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

nav a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover:after,
nav a.active:after {
  width: 100%;
}

nav a.active {
  color: var(--primary-color);
}

/* === Герой секція === */
.hero {
  background-color: var(--light-gray);
  background-image: linear-gradient(
      135deg,
      rgba(108, 92, 231, 0.8),
      rgba(253, 121, 168, 0.8)
    ),
    url("images/1.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 0;
  position: relative;
}

.hero-content {
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* === Секції === */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 25%;
}

/* === Особливості === */
.features {
  background-color: var(--light-color);
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  display: flex;
  justify-content: center;
}

.feature-icon svg {
  width: 50px;
  height: 50px;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

/* === Останні публікації === */
.latest-posts {
  background-color: white;
}

.latest-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.post-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  color: var(--gray-color);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
}

.read-more:after {
  content: "→";
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 10px;
}

/* === Форма підписки === */
.newsletter {
  background-color: var(--primary-color);
  color: white;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  background-color: white;
  color: var(--primary-color);
}

.newsletter-form button:hover {
  background-color: var(--light-gray);
  color: var(--primary-dark);
}

/* === Лист клієнтам === */
.customer-letter {
  background-color: var(--light-color);
}

.letter-content {
  max-width: 800px;
  margin: 0 auto;
}

.letter-content h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.letter {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.letter:before {
  content: '"';
  position: absolute;
  top: -30px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: Georgia, serif;
}

/* === Футер === */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: var(--light-gray);
  font-size: 0.9rem;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

.footer-links h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--light-gray);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
}

.footer-contact h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-contact address {
  font-style: normal;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--light-gray);
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--light-gray);
}

.footer-contact a:hover {
  color: white;
}

.footer-social h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-gray);
  font-size: 0.9rem;
}

/* === Cookie Consent === */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 9999;
  display: none;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cookie-content p {
  flex: 1;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

/* === Сторінка "Про нас" === */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-header h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.about-content {
  background-color: white;
}

.about-description {
  max-width: 800px;
  margin: 0 auto;
}

.about-description h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-description ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-description ul li {
  margin-bottom: 0.5rem;
}

.team-section {
  background-color: var(--light-color);
}

.team-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-member h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1.2rem;
}

.team-member p {
  color: var(--gray-color);
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.team-member .social-icons {
  justify-content: center;
  margin: 1rem 0;
}

.testimonials {
  background-color: white;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  position: relative;
}

.testimonial-card:before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-text p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author p {
  text-align: right;
  margin-bottom: 0;
}

.cta-section {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
}

.cta-content .btn {
  background-color: white;
  color: var(--primary-color);
}

.cta-content .btn:hover {
  background-color: var(--light-gray);
  color: var(--primary-dark);
}

/* === Сторінка блогу === */
.blog-content {
  background-color: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-details {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  display: block;
  color: var(--gray-color);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.blog-details h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.blog-details h3 a {
  color: var(--dark-color);
}

.blog-details h3 a:hover {
  color: var(--primary-color);
}

.blog-details p {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

.blog-details .read-more {
  margin-top: auto;
}

/* === Сторінка контактів === */
.contact-content {
  background-color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  padding: 2rem;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
}

.contact-info h3 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item svg {
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 0.3rem;
}

.info-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.info-item p {
  color: var(--gray-color);
  margin-bottom: 0;
}

.social-contact {
  margin-top: 2rem;
}

.social-contact h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.social-contact .social-icons a {
  background-color: white;
  color: var(--primary-color);
}

.social-contact .social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
}

.contact-form-container {
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form-container h3 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.map-section {
  background-color: var(--light-color);
}

.map-section h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* === Модальне вікно === */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-color);
}

.modal-body {
  padding: 1rem;
}

.modal-body h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.close-btn {
  margin-top: 1.5rem;
}

.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: block;
}

.checkmark-circle {
  stroke: var(--primary-color);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  stroke: var(--primary-color);
  stroke-width: 2;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

/* === Сторінка окремого поста === */
.blog-post {
  background-color: white;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.post-header {
  padding: 2rem 2rem 0;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.back-to-blog:hover {
  color: var(--primary-color);
}

.post-header h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  color: var(--gray-color);
  font-size: 0.95rem;
}

.post-featured-image {
  width: 100%;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.post-body {
  padding: 2rem;
}

.post-body h3 {
  margin-top: 2rem;
  color: var(--primary-color);
}

.post-body h4 {
  margin-top: 1.5rem;
}

.post-body ul,
.post-body ol {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-body ul li,
.post-body ol li {
  margin-bottom: 0.5rem;
}

.post-tags {
  padding: 0 2rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.post-tags span {
  font-weight: 600;
  color: var(--gray-color);
}

.post-tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--light-gray);
  color: var(--gray-color);
  border-radius: 20px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.post-tags a:hover {
  background-color: var(--primary-color);
  color: white;
}

.share-post {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-post span {
  font-weight: 600;
  color: var(--gray-color);
}

.share-post a {
  color: var(--gray-color);
}

.share-post a:hover {
  color: var(--primary-color);
}

.related-posts {
  padding: 2rem;
}

.related-posts h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.related-post {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.related-post:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.related-post img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-post h4 {
  padding: 1rem;
  font-size: 1rem;
  margin-bottom: 0;
}

.related-post h4 a {
  color: var(--dark-color);
}

.related-post h4 a:hover {
  color: var(--primary-color);
}

/* === Медіа запити === */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .features-grid,
  .posts-grid,
  .team-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .post-header h2 {
    font-size: 1.75rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .post-header,
  .post-body,
  .post-tags,
  .share-post,
  .related-posts {
    padding: 1.5rem;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}
