/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f0f2f5;
}

/* Desktop Message */
.desktop-message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  text-align: center;
  padding: 50px 20px;
  font-size: 18px;
  z-index: 9999;
}

@media (min-width: 481px) {
  .desktop-message {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Container */
.container {
  max-width: 480px;
  margin: 0 auto;
  background-color: white;
  min-height: 100vh;
  position: relative;
}

/* Header */
.normal-header {
  background-color: #007bff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.normal-header nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Ad Containers */
.ad-container {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  border-radius: 8px;
}

.ad-top,
.ad-below-header {
  margin: 0;
  border-radius: 0;
}

/* Page Sections */
.page-section {
  display: none;
  padding: 20px;
  min-height: calc(100vh - 60px);
}

.page-section.active {
  display: block;
}

/* Typography */
h1 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

h2 {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #007bff;
}

.section-description {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}

/* Shoe Grid */
.shoe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.shoe-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shoe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.shoe-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.product-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.prices {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 12px;
}

.selling-price {
  color: #e74c3c;
  font-weight: bold;
  font-size: 16px;
}

/* Product Detail */
.product-detail-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-detail-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.detail-price {
  font-size: 20px;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 15px;
  text-align: center;
}

.size-options {
  margin-bottom: 20px;
}

.size-options label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.size-options select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.more-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.more-details p {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}

/* Cart Summary */
.cart-summary-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

.cart-details {
  margin-bottom: 20px;
}

.cart-details p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.total-price {
  font-weight: bold;
  font-size: 18px;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 10px;
}

.total-price-text {
  text-align: right;
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.cart-item-summary-line {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

.cart-item-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.cart-item-summary-line div {
  flex: 1;
}

.cart-item-summary-line p {
  margin-bottom: 5px;
  font-size: 14px;
}

.product-description-text {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

/* Buttons */
.button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

.proceed-to-checkout-button {
  background-color: #4caf50;
  color: white;
}

.proceed-to-checkout-button:hover {
  background-color: #45a049;
}

.add-to-cart-detail-button {
  background-color: #007bff;
  color: white;
}

.add-to-cart-detail-button:hover {
  background-color: #0056b3;
}

.back-to-products-button {
  background-color: #6c757d;
  color: white;
  margin-bottom: 20px;
}

.back-to-products-button:hover {
  background-color: #5a6268;
}

.blue-button {
  background-color: #007bff;
  color: white;
}

.blue-button:hover {
  background-color: #0056b3;
}

.confirm-order-button {
  background-color: #28a745;
  color: white;
}

.confirm-order-button:hover {
  background-color: #218838;
}

.page-button {
  background-color: #007bff;
  color: white;
}

.page-button:hover {
  background-color: #0056b3;
}

/* Checkout Styles */
.checkout-steps {
  margin-top: 20px;
}

.checkout-step {
  display: none;
}

.checkout-step.active {
  display: block;
}

.checkout-step-summary {
  margin-bottom: 20px;
}

.checkout-step label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;
}

.checkout-step input,
.checkout-step textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}

.checkout-step input:focus,
.checkout-step textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.checkout-step textarea {
  resize: vertical;
  min-height: 100px;
}

.next-step-button {
  margin-bottom: 20px;
}

/* Checkout Description Styles */
.checkout-description {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.checkout-description .more-details {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.checkout-description .more-details h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
}

/* Description Product Image Styling */
.description-product-image {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px 0;
}

.description-image {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

/* Product Description Styling */
.product-description {
  margin-top: 0;
}

.product-description h4 {
  color: #333;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.feature-title {
  color: #007bff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 15px;
}

.product-description p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Review Section */
.review-section {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.customer-details-card h4 {
  color: #333;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
}

.customer-details-card p {
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.customer-details-card strong {
  color: #333;
  font-weight: 600;
}

.customer-details-card span {
  color: #666;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* Thank You Section */
#thank-you-section {
  text-align: center;
  padding: 40px 20px;
}

#thank-you-section h2 {
  color: #28a745;
  margin-bottom: 20px;
}

#thank-you-section p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 480px) {
  .container {
    max-width: 100%;
  }

  .shoe-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .shoe-card {
    padding: 10px;
  }

  .shoe-card img {
    height: 100px;
  }

  .product-name {
    font-size: 12px;
  }

  .selling-price {
    font-size: 14px;
  }

  .original-price {
    font-size: 11px;
  }

  .cart-summary-card,
  .product-detail-card {
    padding: 15px;
  }

  .description-image {
    max-width: 150px;
  }

  .checkout-step input,
  .checkout-step textarea {
    padding: 10px;
    font-size: 14px;
  }

  .button {
    padding: 12px;
    font-size: 14px;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkout-step.active {
  animation: fadeIn 0.3s ease-in-out;
}

/* Focus States */
.button:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Error States */
.error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  margin-bottom: 10px;
}

/* Success States */
.success {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25) !important;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* Footer Styles */
.site-footer {
  background-color: #1a1a1a;
  color: #ffffff;
  margin-top: 50px;
}

/* Footer Ad Styles */
.footer-ad-top {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 20px;
  text-align: center;
  margin: 0;
  border-radius: 0;
}

.footer-ad-bottom {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 20px;
  text-align: center;
  margin: 0;
  border-radius: 0;
}

.footer-content {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px 20px;
}

.footer-brand {
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.logo-icon {
  font-size: 24px;
  color: #4ade80;
}

.brand-name {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 2px;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #4ade80;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #22c55e;
}

.footer-widget {
  color: #4ade80;
  font-size: 16px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-widget:hover {
  color: #22c55e;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #333;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: #4ade80;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px;
  text-align: center;
}

.copyright {
  margin-bottom: 15px;
}

.copyright p {
  font-size: 14px;
  color: #cccccc;
  margin: 0;
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-icon {
  display: inline-block;
  width: 40px;
  height: 25px;
  background-color: #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 480px) {
  .footer-content {
    padding: 30px 15px 15px;
  }

  .brand-name {
    font-size: 20px;
  }

  .footer-title {
    font-size: 16px;
  }

  .footer-links a {
    font-size: 14px;
  }

  .social-link {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .payment-icon {
    width: 35px;
    height: 22px;
    font-size: 14px;
  }

  .footer-ad-top,
  .footer-ad-bottom {
    padding: 15px;
  }
}