.tag-container {
  margin-bottom: 25px;
}

.tag-container span {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 50px;
  background-color: rgba(206, 20, 39, 0.1);
  color: var(--ana-red);
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 0 5px rgb(244, 190, 190);
  letter-spacing: 1.2px;
}

body.dark-mode .tag-container span {
  color: #ff3d4a;
  text-shadow: none;
}

.main-section {
  background: linear-gradient(rgba(255, 255, 255, 0.7),
      rgba(255, 255, 255, 0.7)),
    url("images/background-kare3.png");
  background-size: 300px;
  background-repeat: repeat;
  background-position: center center;
  position: relative;
}

.main-section h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #333333;
}

body.dark-mode .main-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("images/background-kare3.png");
  background-size: 300px;
  background-repeat: repeat;
  background-position: center center;
}

body.dark-mode .main-section h1 {
  color: var(--dark-mode-text);
}

.main-section h1 span {
  color: var(--ana-red);
}

.main-subtext {
  font-size: 18px;
  color: var(--ink-siyah);
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

body.dark-mode .main-subtext {
  color: var(--dark-mode-text);
}

.main-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.btn-primary {
  background-color: var(--ana-red);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #bb1224;
}

.btn-secondary {
  background-color: white;
  color: var(--ink-siyah);
  border: 1px solid #cccccc;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: border-color 0.3s;
}

body.dark-mode .btn-secondary {
  background-color: transparent;
  color: var(--dark-mode-text);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--ana-red);
}

body.dark-mode .btn-secondary:hover {
  border-color: var(--ana-red);
  color: var(--ana-red);
}

.products-section {
  padding: 60px 20px;
  border-top: 1px solid var(--ana-red);
  background-color: var(--ana-beyaz);
}

body.dark-mode .products-section {
  background-color: var(--dark-mode-bg);
  border-top: 0.1px solid rgba(255, 255, 255, 0.3);
}

.products-section a {
  text-decoration: none;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 50px;
  font-weight: bold;
  color: var(--pre-siyah);
  margin-bottom: 5px;
}

body.dark-mode .section-header h2 {
  color: var(--dark-mode-text);
}

.section-header p {
  color: var(--ink-siyah);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1.25px;
}

body.dark-mode .section-header p {
  color: var(--dark-mode-text);
}

.products-section {
  padding: 4rem 1.25rem;
  border-top: 1px solid var(--ana-red);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.product-card {
  background: white;
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

body.dark-mode .product-card {
  background: var(--dark-mode-header-footer-bg);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

.product-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 80%;
  height: 11.25rem;
  object-fit: contain;
  margin: 0 auto 1rem;
  border-radius: 0.5rem;
}

.price-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
  flex-wrap: wrap;
}

.category-tag {
  font-size: 0.75rem;
  color: var(--ana-red);
  border: 1px solid var(--ana-red);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.price-new {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ana-red);
}

.price-old {
  font-size: 0.875rem;
  color: var(--ink-siyah);
  text-decoration: line-through;
}

body.dark-mode .price-old {
  color: var(--dark-mode-text);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--pre-siyah);
}

body.dark-mode .product-title {
  color: var(--dark-mode-text);
}

.product-description {
  font-size: 0.875rem;
  color: var(--ana-siyah);
  line-height: 1.5;
  margin-bottom: auto;
  padding-top: 0.5rem;
}

body.dark-mode .product-description {
  color: var(--dark-mode-text);
}

.btn-detail {
  background: transparent;
  border: 1px solid #cccccc;
  color: var(--ink-siyah);
  padding: 0.5rem 1rem;
  border-radius: 0.3125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  font-weight: 600;
}

body.dark-mode .btn-detail {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--dark-mode-text);
}

.btn-detail:hover {
  border-color: var(--ana-red);
  color: var(--ana-red);
}

body.dark-mode .btn-detail:hover {
  border-color: var(--ana-red);
  color: var(--ana-red);
}

.btn-all-products {
  background: white;
  color: var(--pre-siyah);
  border: 1px solid #cccccc;
  padding: 0.75rem 1.875rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: block;
  margin: 2rem auto;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

body.dark-mode .btn-all-products {
  background: transparent;
  color: var(--dark-mode-text);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-all-products:hover {
  border-color: var(--ana-red);
  color: var(--ana-red);
}

.empty-state,
.error-message {
  text-align: center;
  padding: 2rem;
  color: var(--ink-siyah);
  background: white;
  border-radius: 0.5rem;
  margin: 2rem auto;
  max-width: 500px;
}

body.dark-mode .empty-state,
body.dark-mode .error-message {
  background: var(--dark-mode-header-footer-bg);
  color: var(--dark-mode-text);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.error-message {
  background: #fff0f0;
  color: #d32f2f;
  border: 1px solid #ffcccc;
}

body.dark-mode .error-message {
  background: #440000;
  color: #ffcccc;
  border: 1px solid #880000;
}

.call-to-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 350px;
  background-color: #c20222;
  margin-bottom: 100px;
  color: white;
  letter-spacing: 0.5px;
}

body.dark-mode .call-to-action {
  background-color: var(--cre-red);
}

.call-to-action h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 5px;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.action-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding: 0 15px;
  box-sizing: border-box;
  max-width: 100%;
}

.action-buttons a {
  text-decoration: none;
}

.btn-action-primary {
  width: 100%;
  max-width: 343px;
  height: 55.2px;
  background-color: white;
  color: var(--ana-red);
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body.dark-mode .btn-action-primary {
  background-color: var(--dark-mode-text);
  color: var(--ana-red);
}

.btn-action-primary:hover {
  background-color: #eeeeee;
}

body.dark-mode .btn-action-primary:hover {
  background-color: #eeeeee;
}

.btn-action-primary img {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

.btn-action-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body.dark-mode .btn-action-secondary {
  background-color: transparent;
  color: var(--dark-mode-text);
  border: 2px solid var(--dark-mode-text);
}

.btn-action-secondary:hover {
  background-color: white;
  color: var(--ana-red);
  border-color: white;
}

body.dark-mode .btn-action-secondary:hover {
  background-color: var(--dark-mode-text);
  color: var(--ana-red);
  border-color: var(--dark-mode-text);
}

.whyus {
  border-top: 0.1px solid var(--ana-red);
  width: 100%;
  height: 450px;
  margin-bottom: 100px;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

body.dark-mode .whyus {
  border-top: 0.1px solid rgba(255, 255, 255, 0.3);
}

.whyus h1 {
  font-size: 50px;
  font-weight: bold;
  color: var(--pre-siyah);
  margin-bottom: 20px;
}

body.dark-mode .whyus h1 {
  color: var(--dark-mode-text);
}

.whyus-boxs {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 0;
  align-items: flex-start;
}

.whyus-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  width: 300px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

body.dark-mode .whyus-box {
  background-color: var(--dark-mode-header-footer-bg);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.08);
}

.whyus-box:hover {
  transform: translateY(-5px);
}

.whyus-icon-container {
  width: 80px;
  height: 80px;
  background-color: #f0f0f0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
}

body.dark-mode .whyus-icon-container {
  background-color: var(--dark-mode-bg);
}

.whyus-icon-container:hover {
  background-color: var(--ana-red);
}

body.dark-mode .whyus-icon-container:hover {
  background-color: var(--cre-red);
}

.whyus-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.whyus-box h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--pre-siyah);
  margin-bottom: 10px;
}

body.dark-mode .whyus-box h2 {
  color: var(--dark-mode-text);
}

.whyus-box p {
  font-size: 16px;
  color: var(--ink-siyah);
  line-height: 1.5;
}

body.dark-mode .whyus-box p {
  color: var(--dark-mode-text);
}

@media (max-width: 768px) {
  .main-section {
    padding-top: 50px;
    padding-bottom: 80px;
    width: 100%;
    overflow: hidden;
  }

  .main-section h1 {
    font-size: 36px;
    padding: 0 10px;
    line-height: 1.2;
    word-wrap: break-word;
  }

  .main-subtext {
    font-size: 18px;
    padding: 0 15px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
  }

  .main-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .products-section {
    padding: 30px 10px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .product-list {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .whyus {
    height: auto;
    width: 100%;
    padding: 40px 0;
    margin-bottom: 50px;
  }

  .whyus h1 {
    font-size: 32px;
  }

  .whyus-boxs {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px 15px;
    box-sizing: border-box;
  }

  .whyus-box {
    width: 100%;
    max-width: 350px;
  }

  .call-to-action {
    padding: 40px 15px;
    height: auto;
    min-height: auto;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .call-to-action h2 {
    font-size: 28px;
  }

  .action-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .btn-action-primary,
  .btn-action-secondary {
    width: 100%;
    max-width: 343px;
    box-sizing: border-box;
  }
}