/* Reset & Base Variables */
:root {
  --primary-color: #D6336C;
  /* A warm pink/magenta indicative of fashion/sewing */
  --primary-hover: #A61E4D;
  --bg-color: #FFF0F5;
  /* Lavender blush for a delicate touch */
  --text-main: #343A40;
  --text-muted: #868E96;
  --card-bg: #ffffff;
  --border-color: #F8B4D9;
  --success: #2B8A3E;
  --error: #C92A2A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  background-image: radial-gradient(#F8B4D9 1px, transparent 1px);
  background-size: 40px 40px;
  /* Subtle dotted pattern evoking sewing patterns/stitches */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(214, 51, 108, 0.1);
  border-bottom: 2px dashed #F8B4D9;
  /* Stitched border effect */
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  text-decoration: none;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
  text-align: center;
  border-bottom: 2px dashed #F8B4D9;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 25px;
  font-weight: 800;
  color: #495057;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 35px auto;
}

.btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 16px 36px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 15px rgba(214, 51, 108, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
  box-shadow: 0 8px 20px rgba(214, 51, 108, 0.4);
}

/* Catalog Section */
.catalog {
  padding: 80px 0;
  background: white;
}

.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--primary-color);
}

.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid #f1f3f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px -5px rgba(214, 51, 108, 0.15);
}

.product-link {
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
}

.product-image-wrapper {
  height: 280px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.product-card:hover .product-image-wrapper img {
  transform: scale(1.08);
}

.no-image {
  color: var(--text-muted);
  font-weight: 500;
}

.product-details-inner {
  padding: 20px;
  text-align: center;
}

.product-name {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #495057;
  font-weight: 600;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
}

/* Big order button */
.product-bottom {
  padding: 0 20px 25px 20px;
}

.btn-order-large {
  width: 100%;
  background: #FFF0F5;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

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

.empty-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 20px;
}

/* Footer */
.footer {
  background: #343A40;
  color: #ced4da;
  text-align: center;
  padding: 40px 0;
  border-top: 4px solid var(--primary-color);
}

.footer-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-contact a {
  color: #f8b4d9;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Product Detail Page Specific */
.product-detail-section {
  padding: 60px 0;
  background: white;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #f1f3f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.thumbnails {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.thumb-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumb-img:hover,
.thumb-img.active {
  border-color: var(--primary-color);
}

.detail-info h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #343A40;
}

.detail-price {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 30px;
}

.detail-description {
  color: #495057;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.detail-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  width: 90%;
  max-width: 480px;
  border-radius: 20px;
  padding: 35px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-top: 8px solid var(--primary-color);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-title {
  margin-bottom: 10px;
  font-size: 1.8rem;
  color: var(--primary-color);
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.modal-subtitle {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #495057;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(214, 51, 108, 0.2);
}

.form-submit {
  margin-top: 30px;
}

.form-submit .btn-primary {
  width: 100%;
  text-align: center;
}

.order-status {
  text-align: center;
  margin-top: 15px;
  font-weight: 500;
  font-size: 1rem;
}

.order-status.success {
  color: var(--success);
}

.order-status.error {
  color: var(--error);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .nav-links {
    display: none;
  }
}