/* UrbanStyle Demo CSS - Modern E-commerce */

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

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  cursor: default;
}

/* ========== NAVIGATION ========== */
.urban-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1px;
}
.logo span {
  color: #0d6efd;
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #0d6efd;
}

.nav-tools {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-tools i {
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-tools i:hover {
  color: #0d6efd;
}

.cart-icon {
  position: relative;
  cursor: pointer;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #0d6efd;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== HERO SECTION ========== */
.urban-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 5%;
  gap: 3rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-badge {
  display: inline-block;
  background: #0d6efd10;
  color: #0d6efd;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-content h1 span {
  color: #0d6efd;
}
.hero-content p {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: #0d6efd;
  transform: translateY(-2px);
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ========== PRODUCTS SECTION ========== */
.products-section {
  padding: 5rem 5%;
  background: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-header p {
  color: #666;
}

/* ========== CATEGORY FILTERS ========== */
.category-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid #e0e0e0;
  padding: 8px 24px;
  border-radius: 50px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #666;
}

.filter-btn:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.filter-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.filter-btn.active:hover {
  background: #0d6efd;
  border-color: #0d6efd;
}

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

.product-card {
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
}

.product-card:nth-child(1) {
  animation-delay: 0.05s;
}
.product-card:nth-child(2) {
  animation-delay: 0.1s;
}
.product-card:nth-child(3) {
  animation-delay: 0.15s;
}
.product-card:nth-child(4) {
  animation-delay: 0.2s;
}
.product-card:nth-child(5) {
  animation-delay: 0.25s;
}
.product-card:nth-child(6) {
  animation-delay: 0.3s;
}
.product-card:nth-child(7) {
  animation-delay: 0.35s;
}
.product-card:nth-child(8) {
  animation-delay: 0.4s;
}

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

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.product-info {
  padding: 1rem;
}
.product-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.product-price {
  color: #0d6efd;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.add-to-cart {
  background: transparent;
  border: 1px solid #ddd;
  padding: 0.5rem;
  width: 100%;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.add-to-cart:hover {
  background: #1a1a1a;
  color: white;
  border-color: #1a1a1a;
}

/* ========== CART SIDEBAR (GLASSMORPHISM) ========== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  height: 100vh;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
}
.cart-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.close-cart {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #aaa;
  cursor: pointer;
  transition: transform 0.2s;
}
.close-cart:hover {
  transform: rotate(90deg);
  color: #fff;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-items .empty-cart {
  text-align: center;
  color: #888;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item .item-info {
  flex: 1;
}
.cart-item .item-name {
  font-weight: 500;
  color: #fff;
  font-size: 0.95rem;
}
.cart-item .item-price {
  color: #aaa;
  font-size: 0.85rem;
}
.cart-item .item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item .item-actions button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}
.cart-item .item-actions button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.cart-item .item-actions .qty {
  color: #fff;
  min-width: 20px;
  text-align: center;
}

/* 🆕 "Išbandyti" mygtukas krepšelio prekėje */
.tryon-cart-btn {
  background: transparent;
  border: 1px solid #0d6efd;
  color: #0d6efd;
  padding: 2px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.tryon-cart-btn:hover {
  background: #0d6efd;
  color: #fff;
}

/* 🆕 AI TRY-ON mygtukas krepšelio apačioje */
.btn-tryon-cart {
  width: 100%;
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.btn-tryon-cart:hover {
  background: #0b5ed7;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.btn-checkout {
  width: 100%;
  background: #fff;
  color: #000;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.btn-checkout:hover {
  background: #ddd;
  transform: scale(1.02);
}

/* ========== AI TRY-ON MODAL ========== */
.tryon-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tryon-modal-content {
  background: #fff;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.tryon-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.tryon-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}
.close-tryon-modal {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
}
.close-tryon-modal:hover {
  color: #333;
}

.tryon-selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
  min-height: 50px;
}
.tryon-selected-items .selected-item-tag {
  background: #0d6efd;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.tryon-result-container {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 1rem;
}
.tryon-result-container img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
}
.tryon-loading {
  font-size: 1.2rem;
  color: #666;
}

.tryon-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn-generate-tryon {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-generate-tryon:hover {
  background: #0b5ed7;
  transform: scale(1.02);
}
.btn-reset-tryon {
  background: transparent;
  border: 1px solid #ddd;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-reset-tryon:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ========== FOOTER ========== */
.urban-footer {
  background: #1a1a1a;
  color: #888;
  padding: 2rem 5%;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-disclaimer {
  font-size: 0.7rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: center;
}
.footer-disclaimer p {
  margin: 0;
}

.footer-copyright {
  text-align: center;
  font-size: 0.7rem;
  border-top: 1px solid #333;
  padding-top: 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .urban-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
}
