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

body {
  font-family: 'Cinzel', 'Times New Roman', serif;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/body.jpg');
  background-size: cover;
  background-attachment: fixed;
  color: #FFD700;
  min-height: 100vh;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(10, 5, 20, 0.9)), url('/images/reviews-bg.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid #FFD700;
  backdrop-filter: blur(8px);
  position: relative;
}

.logo {
  flex: 1;
}

.logo img {
  height: 60px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.logo span {
  color: #FFD700;
  font-size: 1.8rem;
  font-weight: bold;
}

/* Navigation */
nav {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.home-btn {
  color: #FFD700 !important;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
  cursor: pointer;
}

.home-btn:hover {
  color: #E8A2B4 !important;
  text-shadow: 0 0 10px #E8A2B4;
}

/* Categories Dropdown */
.categories-dropdown {
  position: relative;
  display: inline-block;
}

.categories-btn {
  color: #FFD700 !important;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.categories-btn:hover {
  color: #E8A2B4 !important;
  text-shadow: 0 0 10px #E8A2B4;
}

.categories-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #FFD700;
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 150px;
  z-index: 100;
  margin-top: 0.5rem;
}

.categories-dropdown:hover .categories-list {
  display: block;
}

.categories-list a {
  display: block;
  padding: 0.7rem 1.5rem;
  color: #FFD700 !important;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.categories-list a:hover {
  background: rgba(232, 162, 180, 0.2);
  color: #E8A2B4 !important;
}

.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.icon-btn {
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s;
  background: none;
  border: none;
  color: #FFD700;
}

.icon-btn:hover {
  color: #E8A2B4;
  transform: scale(1.1);
}

.cart-btn {
  position: relative;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #E8A2B4;
  color: black;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

select {
  background: transparent;
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-family: inherit;
  cursor: pointer;
}

select option {
  background: #1a1a2e;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 2rem;
  border-bottom: 3px solid #FFD700;
}

.hero h1 {
  font-size: 4rem;
  color: #FFD700;
  text-shadow: 3px 3px 0 #1a1a2e, 0 0 30px #E8A2B4;
  margin-bottom: 1rem;
  letter-spacing: 4px;
}

.hero p {
  font-size: 1.3rem;
  color: #E8A2B4;
  margin-bottom: 2rem;
  max-width: 600px;
}

.shop-btn {
  background: #FFD700;
  color: #0a0a1a;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.shop-btn:hover {
  background: #E8A2B4;
  box-shadow: 0 0 30px #E8A2B4;
  transform: scale(1.05);
}

/* Products Section */
.products-section {
  padding: 4rem 2rem;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/body.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  backdrop-filter: blur(3px);
}

.products-section h2 {
  text-align: center;
  color: #FFD700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px #E8A2B4;
}

.active-category {
  text-align: center;
  color: #E8A2B4;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #FFD700;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
  border-color: #E8A2B4;
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #FFD700;
}

.product-card h3 {
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.product-card .price {
  color: #E8A2B4;
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.variant-group {
  margin: 1rem 0;
  padding: 0.8rem;
  background: rgba(26, 26, 46, 0.5);
  border-radius: 8px;
}

.variant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0;
  padding: 0.3rem;
  border-bottom: 1px dashed #FFD700;
}

.variant-item label {
  color: #FFD700;
}

.variant-item select, .variant-item input {
  background: #1a1a2e;
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 0.3rem;
  border-radius: 4px;
  width: 120px;
}

.variant-item input {
  width: 80px;
  text-align: center;
}

.add-variant-btn {
  background: transparent;
  color: #E8A2B4;
  border: 1px dashed #E8A2B4;
  padding: 0.4rem;
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: all 0.3s;
}

.add-variant-btn:hover {
  background: rgba(232, 162, 180, 0.2);
  border-style: solid;
}

.remove-variant {
  color: #ff6b6b;
  cursor: pointer;
  margin-left: 0.5rem;
  font-weight: bold;
}

.add-to-cart {
  background: #FFD700;
  color: #0a0a1a;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 1rem;
  transition: all 0.3s;
  width: 100%;
}

.add-to-cart:hover {
  background: #E8A2B4;
}

/* Footer */
footer {
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(10, 5, 20, 0.9)), url('/images/footer-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 3rem 2rem 1rem;
  border-top: 3px solid #FFD700;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-section h3 {
  color: #FFD700;
  margin-bottom: 1rem;
  border-bottom: 1px solid #E8A2B4;
  padding-bottom: 0.5rem;
}

.footer-section p, .footer-section a {
  color: #E8A2B4;
  text-decoration: none;
  line-height: 2;
  display: block;
}

.footer-section a:hover {
  color: #FFD700;
}

.delivery-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.delivery-icons span {
  background: #1a1a2e;
  padding: 0.5rem 1rem;
  border: 1px solid #FFD700;
  border-radius: 20px;
  color: #FFD700;
}

.copyright {
  text-align: center;
  color: #E8A2B4;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #FFD700;
}

/* Cart Modal */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  border-left: 2px solid #FFD700;
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 1000;
}

.cart-modal.active {
  display: block;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #FFD700;
}

.cart-header h2 {
  color: #FFD700;
}

.close-cart {
  color: #E8A2B4;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

.cart-items {
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #333;
  color: #E8A2B4;
}

.cart-total {
  color: #FFD700;
  font-size: 1.3rem;
  text-align: right;
  margin: 1rem 0;
}

.checkout-btn {
  background: #FFD700;
  color: #0a0a1a;
  border: none;
  padding: 1rem;
  width: 100%;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.checkout-btn:hover {
  background: #E8A2B4;
}
/* ========== MOBILE RESPONSIVE ========== */

/* Tablets (768px and below) */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .logo {
    text-align: center;
  }

  nav {
    gap: 1.5rem;
  }

  .home-btn, .categories-btn {
    font-size: 1rem;
  }

  .header-right {
    gap: 1rem;
  }

  .icon-btn {
    font-size: 1.3rem;
  }

  select {
    padding: 0.2rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .shop-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }

  .products-section {
    padding: 2rem 1rem;
  }

  .products-section h2 {
    font-size: 1.8rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-card {
    padding: 1rem;
  }

  .product-card img {
    height: 180px;
  }

  .product-card h3 {
    font-size: 1rem;
  }

  .product-card .price {
    font-size: 1.2rem;
  }

  .variant-item {
    flex-wrap: wrap;
  }

  .variant-item label {
    width: 100%;
    margin-bottom: 0.2rem;
  }

  .variant-item select, .variant-item input {
    width: 100%;
  }

  .add-variant-btn {
    font-size: 0.8rem;
    padding: 0.3rem;
  }

  .add-to-cart {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* Cart Modal - Full width on mobile */
  .cart-modal {
    width: 100%;
  }

  footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-section h3 {
    text-align: center;
  }

  .delivery-icons {
    justify-content: center;
  }

  .copyright {
    font-size: 0.8rem;
  }
}

/* Mobile Phones (480px and below) */
@media screen and (max-width: 480px) {
  header {
    padding: 0.8rem;
  }

  .logo img {
    height: 45px;
  }

  nav {
    gap: 1rem;
  }

  .home-btn, .categories-btn {
    font-size: 0.9rem;
  }

  .header-right {
    gap: 0.8rem;
  }

  .icon-btn {
    font-size: 1.2rem;
  }

  #language-select {
    font-size: 0.8rem;
    padding: 0.2rem;
  }

  .hero {
    min-height: 50vh;
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .shop-btn {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card {
    max-width: 350px;
    margin: 0 auto;
  }

  .product-card img {
    height: 220px;
  }

  .categories-list {
    min-width: 130px;
  }

  .categories-list a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .cart-header h2 {
    font-size: 1.2rem;
  }

  .cart-item {
    font-size: 0.9rem;
  }

  .cart-total {
    font-size: 1.1rem;
  }

  .checkout-btn {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .active-category {
    font-size: 1rem;
  }
}

/* Very Small Phones (360px and below) */
@media screen and (max-width: 360px) {
  nav {
    gap: 0.5rem;
  }

  .home-btn, .categories-btn {
    font-size: 0.8rem;
  }

  .icon-btn {
    font-size: 1rem;
  }

  #language-select {
    font-size: 0.7rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.8rem;
  }

  .product-card img {
    height: 180px;
  }
}

/* Fix for dropdown on mobile */
@media screen and (max-width: 768px) {
  .categories-dropdown:hover .categories-list {
    display: block;
  }

  .categories-list {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Touch-friendly buttons */
button, .icon-btn, .add-to-cart, .shop-btn, .checkout-btn {
  min-height: 44px;
  touch-action: manipulation;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
  width: 100%;
}

/* Make images responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for select elements on mobile */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFD700' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.8rem !important;
}
/* Search Modal */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1001;
  padding: 2rem;
  overflow-y: auto;
}

.search-modal.active {
  display: block;
}

.search-header {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

#search-input {
  flex: 1;
  padding: 1rem;
  font-size: 1.2rem;
  background: #1a1a2e;
  border: 2px solid #FFD700;
  border-radius: 50px;
  color: #FFD700;
  font-family: inherit;
}

#search-input::placeholder {
  color: #E8A2B4;
  opacity: 0.7;
}

.close-search {
  background: none;
  border: none;
  color: #FFD700;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0 1rem;
}

.close-search:hover {
  color: #E8A2B4;
}

.search-results {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.search-result-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #FFD700;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.search-result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
  border-color: #E8A2B4;
}

.search-result-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.search-result-card h3 {
  color: #FFD700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.search-result-card .price {
  color: #E8A2B4;
  font-weight: bold;
}

.no-results {
  text-align: center;
  color: #E8A2B4;
  font-size: 1.2rem;
  grid-column: 1 / -1;
  padding: 3rem;
}