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

body {
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: #2c2c2c;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* barbie ahh scrollbar  */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f5e6e8;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #E18298;
  border-radius: 10px;
  transition: all 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: #c9677d;
}

::-webkit-scrollbar-corner {
  background: #f5e6e8;
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #E18298 #f5e6e8;
}

/* Star that follows scrollbar position */
.scroll-star-container {
  position: fixed;
  right: 15px;
  top: 50%;
  width: 45px;
  height: 45px;
  background: rgba(247, 197, 208, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(225, 130, 152, 0.3);
  backdrop-filter: blur(5px);
}

.scroll-star-container.show {
  opacity: 1;
  visibility: visible;
  animation: bounceIn 0.5s ease;
}

.scroll-star-container:hover {
  transform: scale(1.1);
  background: #c9677d;
  box-shadow: 0 6px 20px rgba(225, 130, 152, 0.4);
}

.scroll-star-container img {
  width: 40px;
  height: 40px;
  animation: rotate 3s linear infinite;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

h1, h2, h3, .logo, .product-title {
  font-family: 'Cormorant Garamond', serif;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 212, 190, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: #796C8C;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo i {
  color: #E18298;
  font-size: 1.5rem;
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 450px;
}

.search-bar {
  position: relative;
  width: 100%;
}

.search-bar i.fa-search {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #E6D4BE;
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}

.search-bar input {
  width: 100%;
  padding: 14px 45px 14px 45px;
  border: 2px solid #E6D4BE;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: white;
  color: #2c2c2c;
}

.search-bar input:focus {
  outline: none;
  border-color: #E18298;
  box-shadow: 0 0 0 4px rgba(225, 130, 152, 0.1);
}

.search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #E6D4BE;
  cursor: pointer;
  font-size: 1rem;
  padding: 5px;
  transition: color 0.3s;
}

.search-clear:hover {
  color: #E18298;
}

/* Navigation */
nav {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-link {
  color: #2c2c2c;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: #E18298;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: #E18298;
}

.admin-btn {
  background: #679F9E;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-btn:hover {
  background: #7DADDB;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(103, 159, 158, 0.3);
}

.admin-active {
  background: #E18298;
}

.admin-active:hover {
  background: #796C8C;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #796C8C 0%, #679F9E 50%, #7DADDB 100%);
  margin-bottom: 40px;
  border-radius: 0 0 30px 30px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Text Carousel */
.hero-carousel {
  margin: 30px auto;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 60px;
  padding: 0;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  height: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item {
  position: absolute;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: rotateCarousel 12s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.carousel-item:nth-child(1) { 
  animation-delay: 0s;
  opacity: 1;
}
.carousel-item:nth-child(2) { animation-delay: 4s; }
.carousel-item:nth-child(3) { animation-delay: 8s; }

@keyframes rotateCarousel {
  0% {
    opacity: 0;
    transform: translateY(-40%);
  }
  8% {
    opacity: 1;
    transform: translateY(-50%);
  }
  25% {
    opacity: 1;
    transform: translateY(-50%);
  }
  33% {
    opacity: 0;
    transform: translateY(-60%);
  }
  100% {
    opacity: 0;
    transform: translateY(-60%);
  }
}

.carousel-item i {
  font-size: 1.5rem;
  color: #E18298;
  flex-shrink: 0;
}

.carousel-item span {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  letter-spacing: 0.5px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

.hero-stat-number {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
}

.hero-stat-label {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Styles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #796C8C;
  margin-bottom: 48px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #E18298;
  border-radius: 2px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  padding: 40px 0;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
}

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

.product-card.new::before {
  content: 'NEW';
  position: absolute;
  top: 20px;
  right: 20px;
  background: #E18298;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #f5f5f5;
  transition: transform 0.4s;
}

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

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c2c2c;
}

.product-category {
  color: #679F9E;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #E18298;
  margin: 12px 0;
}

.product-desc {
  color: #8a8a8a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.order-btn {
  background: #679F9E;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 12px;
  width: 100%;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.order-btn:hover {
  background: #7DADDB;
  transform: translateY(-2px);
}

/* Product Detail Page */
.product-detail {
  padding: 40px 0;
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: white;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.product-detail-image-container {
  width: 100%;
}

.product-detail-image {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.product-detail-info h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #796C8C;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: #E18298;
  margin: 20px 0;
}

.product-detail-desc {
  color: #6b6b6b;
  line-height: 1.6;
  margin: 20px 0;
}

/* Image Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: #E18298;
  color: white;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: #E18298;
  width: 20px;
  border-radius: 4px;
}

/* Comments Section */
.comments-section {
  background: #faf8f5;
  border-radius: 24px;
  padding: 32px;
  margin-top: 32px;
}

.comments-section h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: #796C8C;
}

.comment-card {
  border-bottom: 1px solid #E6D4BE;
  padding: 20px 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.comment-name {
  font-weight: 600;
  color: #2c2c2c;
}

.comment-rating {
  color: #ffc107;
  letter-spacing: 2px;
}

.comment-text {
  color: #6b6b6b;
  line-height: 1.5;
  margin-top: 8px;
}

.comment-date {
  font-size: 0.8rem;
  color: #E6D4BE;
  margin-top: 8px;
}

.add-comment {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #E6D4BE;
}

.add-comment h4 {
  margin-bottom: 16px;
  color: #796C8C;
}

.add-comment input, .add-comment textarea, .add-comment select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #E6D4BE;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.3s;
}

.add-comment input:focus, .add-comment textarea:focus, .add-comment select:focus {
  outline: none;
  border-color: #E18298;
  box-shadow: 0 0 0 3px rgba(225, 130, 152, 0.1);
}

.add-comment button {
  background: #679F9E;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.add-comment button:hover {
  background: #7DADDB;
  transform: translateY(-2px);
}

.delete-product {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  font-weight: 500;
  transition: all 0.3s;
}

.delete-product:hover {
  background: #c82333;
  transform: translateY(-2px);
}

/* Search Results */
.search-results-header {
  background: linear-gradient(135deg, #796C8C 0%, #679F9E 50%, #7DADDB 100%);
  padding: 40px 0;
  text-align: center;
  color: white;
  margin-bottom: 40px;
  border-radius: 0 0 30px 30px;
}

.search-results-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.search-results-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.clear-search-btn {
  margin-top: 15px;
  padding: 8px 20px;
  background: white;
  color: #796C8C;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.clear-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-highlight {
  background: rgba(225, 130, 152, 0.3);
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
  color: #E18298;
}

.rate-limit-message {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 32px;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  position: relative;
}

.close, .close-order {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #8a8a8a;
  transition: color 0.3s;
}

.close:hover, .close-order:hover {
  color: #E18298;
}

.modal-content input, .modal-content select, .modal-content textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #E6D4BE;
  border-radius: 8px;
  font-family: inherit;
}

.modal-content button {
  background: #679F9E;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 500;
  transition: all 0.3s;
}

.modal-content button:hover {
  background: #7DADDB;
  transform: translateY(-2px);
}

.order-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #8a8a8a;
  text-align: center;
}

/* Contact Page */
.contact-page {
  min-height: 100vh;
  padding-top: 80px;
}

.contact-hero {
  background: linear-gradient(135deg, #796C8C 0%, #679F9E 50%, #7DADDB 100%);
  padding: 60px 0;
  text-align: center;
  color: white;
  margin-bottom: 60px;
}

.contact-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: 'Cormorant Garamond', serif;
}

.contact-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
  font-size: 1.8rem;
  color: #796C8C;
  margin-bottom: 20px;
  font-family: 'Cormorant Garamond', serif;
}

.contact-info > p {
  color: #6b6b6b;
  line-height: 1.8;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px;
  background: #faf8f5;
  border-radius: 12px;
  transition: all 0.3s;
}

.info-item:hover {
  transform: translateX(5px);
  background: #f5ede3;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(225, 130, 152, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #E18298;
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #796C8C;
  margin-bottom: 8px;
}

.info-content p {
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: #2c2c2c;
}

.social-links-contact {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(225, 130, 152, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E18298;
  text-decoration: none;
  transition: all 0.3s;
}

.social-link:hover {
  background: #E18298;
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
  font-size: 1.8rem;
  color: #796C8C;
  margin-bottom: 20px;
  font-family: 'Cormorant Garamond', serif;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c2c2c;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #E6D4BE;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #E18298;
  box-shadow: 0 0 0 3px rgba(225, 130, 152, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.submit-contact-btn {
  background: #679F9E;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  width: 100%;
}

.submit-contact-btn:hover {
  background: #7DADDB;
  transform: translateY(-2px);
}

.contact-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.contact-success.show {
  display: block;
}

.success-icon {
  font-size: 3rem;
  color: #679F9E;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background: #2c2c2c;
  color: #E6D4BE;
  text-align: center;
  padding: 32px 0;
  margin-top: 60px;
}

.social-links {
  margin-top: 16px;
}

.social-links a {
  color: #E6D4BE;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: all 0.3s;
  display: inline-block;
}

.social-links a:hover {
  color: #E18298;
  transform: translateY(-3px);
}

.loading {
  text-align: center;
  padding: 60px;
  color: #679F9E;
}

.empty-state {
  text-align: center;
  padding: 60px;
  color: #E6D4BE;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .product-detail-container {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-direction: column;
  }
  
  .search-wrapper {
    max-width: 100%;
    width: 100%;
    order: 3;
  }
  
  nav {
    order: 2;
    width: 100%;
    justify-content: center;
  }
  
  .logo {
    order: 1;
  }
  
  .hero-carousel {
    margin: 20px auto;
  }
  
  .carousel-wrapper {
    height: 70px;
  }
  
  .carousel-item span {
    font-size: 0.85rem;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .hero-stat-number {
    font-size: 1.5rem;
  }
  
  .contact-hero h1 {
    font-size: 2rem;
  }
}
