/* Base Styles */
:root {
  --primary-color: #ff6b81;
  --secondary-color: #ff4757;
  --dark-color: #2f3542;
  --light-color: #f1f2f6;
  --gray-color: #a4b0be;
  --white-color: #ffffff;
  --black-color: #000000;
  --success-color: #2ed573;
  --warning-color: #ffa502;
  --danger-color: #ff4757;
  --info-color: #1e90ff;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-color);
  background-color: var(--white-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
.header {
  background-color: var(--white-color);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.logo img {
  max-height: 50px;
}

.navbar-nav {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.nav-item {
  margin-left: 20px;
}

.nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--primary-color);
}

/* Search Bar */
.search-bar {
  background-color: var(--dark-color);
  padding: 15px 0;
}

.search-bar .form-control {
  border-radius: 0;
  border: none;
  height: 45px;
}

.search-bar .btn {
  border-radius: 0;
  height: 45px;
  background-color: var(--primary-color);
  border: none;
  min-width: 100px;
}

.search-bar .btn:hover {
  background-color: var(--secondary-color);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 15px 0;
  background-color: var(--light-color);
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '>';
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  color: var(--gray-color);
  font-size: 16px;
}

/* Dress Cards */
.dress-card {
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  background-color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.dress-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.dress-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.dress-info {
  padding: 20px;
}

.dress-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.dress-info h3 a:hover {
  color: var(--primary-color);
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.meta {
  display: flex;
  justify-content: space-between;
  color: var(--gray-color);
  font-size: 14px;
}

.meta i {
  margin-right: 5px;
}

/* Category Cards */
.category-card {
  text-align: center;
  margin-bottom: 30px;
  transition: var(--transition);
}

.category-card a {
  display: block;
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.category-placeholder {
  width: 100%;
  height: 200px;
  background-color: var(--light-color);
  border-radius: 5px;
  margin-bottom: 15px;
}

.category-card h3 {
  font-size: 18px;
  font-weight: 600;
}

/* Dress Detail Page */
.dress-detail {
  padding: 50px 0;
}

.dress-image {
  margin-bottom: 30px;
}

.dress-image img {
  border-radius: 5px;
}

.dress-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.dress-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.dress-meta .price {
  font-size: 24px;
  margin-right: 20px;
}

.dress-meta .views,
.dress-meta .likes {
  margin-right: 15px;
  color: var(--gray-color);
}

.dress-attributes {
  margin-bottom: 30px;
}

.attribute {
  display: flex;
  margin-bottom: 10px;
}

.attribute .label {
  font-weight: 600;
  width: 100px;
}

.dress-description {
  margin-bottom: 30px;
}

.dress-description h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.description-content {
  line-height: 1.8;
}

.dress-tags {
  margin-bottom: 30px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags-list .tag {
  background-color: var(--light-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
}

.tags-list .tag:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.dress-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.btn-like, .btn-share {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-like {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
}

.btn-like:hover {
  background-color: var(--secondary-color);
}

.btn-share {
  background-color: var(--dark-color);
  color: var(--white-color);
  border: none;
}

.btn-share:hover {
  background-color: #1e272e;
}

.related-dresses {
  margin-top: 50px;
}

.related-dresses h2 {
  font-size: 28px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.related-dresses h2::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  background-color: var(--light-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  transition: var(--transition);
}

.tag-cloud a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination ul {
  display: flex;
  list-style: none;
}

.pagination li {
  margin: 0 5px;
}

.pagination li a,
.pagination li span {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--gray-color);
  color: var(--dark-color);
  border-radius: 3px;
  transition: var(--transition);
}

.pagination li a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

.pagination li.active span {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 50px 0 0;
}

.footer h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}

.footer p {
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white-color);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alert Messages */
.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .section-header h2 {
    font-size: 30px;
  }
  
  .dress-info h3 {
    font-size: 16px;
  }
  
  .price {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .logo {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .navbar-nav {
    justify-content: center;
  }
  
  .nav-item {
    margin: 0 10px;
  }
  
  .section-header h2 {
    font-size: 26px;
  }
  
  .dress-title {
    font-size: 26px;
  }
  
  .footer .col-md-4 {
    margin-bottom: 30px;
  }
}

@media (max-width: 575px) {
  .nav-item {
    margin: 0 5px;
  }
  
  .nav-link {
    font-size: 12px;
  }
  
  .section-header h2 {
    font-size: 22px;
  }
  
  .dress-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dress-meta .price {
    margin-bottom: 10px;
  }
  
  .dress-actions {
    flex-direction: column;
  }
  
  .btn-like, .btn-share {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-30 {
  margin-top: 30px;
}

.mb-30 {
  margin-bottom: 30px;
}

.py-50 {
  padding-top: 50px;
  padding-bottom: 50px;
}

.bg-light {
  background-color: var(--light-color);
}

.rounded {
  border-radius: 5px;
}

.shadow {
  box-shadow: var(--box-shadow);
}