/*===========================================
  FashionKart - Modern Clothing Store CSS
  Uses Site's Theme Colors via CSS Variables
  v3.0 - Theme Compatible
  ==========================================*/

/* ============ Use Site's Theme Colors ============ */
/* Primary color comes from var(--primary) set in app.blade.php */
/* Hover color comes from var(--hov-primary) */
/* Soft color comes from var(--soft-primary) */

/* ============ Global Enhancements ============ */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ Header Enhancements ============ */

/* Top Bar - Sleek Design */
.top-navbar {
  font-size: 12px;
  letter-spacing: 0.3px;
}

.top-navbar a {
  transition: all 0.15s ease;
}

.top-navbar a:hover {
  opacity: 1 !important;
  color: var(--primary) !important;
}

/* Search Box Enhancement */
.search-input-box input,
#search {
  height: 46px !important;
  border: 2px solid #dee2e6 !important;
  border-radius: 25px !important;
  font-size: 15px !important;
  padding: 0 50px 0 20px !important;
  background: #f8f9fa !important;
  transition: all 0.3s ease !important;
}

.search-input-box input:focus,
#search:focus {
  border-color: var(--primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px var(--soft-primary) !important;
  outline: none !important;
}

/* ============ Product Cards ============ */
.aiz-card-box {
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.aiz-card-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Product Image Hover Effect */
.aiz-card-box img {
  transition: transform 0.4s ease;
}

.aiz-card-box:hover img {
  transform: scale(1.03);
}

/* ============ Buttons - Use Theme Colors ============ */

/* Primary Button - Uses var(--primary) */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  border-radius: 25px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

.btn-primary:hover {
  background: var(--hov-primary) !important;
  border-color: var(--hov-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

/* Soft Primary Badge */
.badge-soft-primary {
  background: var(--soft-primary) !important;
  color: var(--primary) !important;
}

/* ============ Size Selector ============ */
.size-option {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.size-option:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.size-option.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.size-option.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ============ Color Swatches ============ */
.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary);
}

/* ============ Category Section ============ */
.category-slide {
  transition: all 0.3s ease;
  border-radius: 10px;
}

.category-slide:hover {
  background: var(--soft-primary);
}

.category-slide img {
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.category-slide:hover img {
  transform: scale(1.05);
}

/* ============ Flash Sale Section ============ */
#flash_deal {
  background: linear-gradient(135deg, var(--soft-primary) 0%, #ffffff 100%);
  padding: 20px 0;
  border-radius: 16px;
}

.flash-deals-baner {
  border-radius: 16px;
  overflow: hidden;
}

/* ============ Wishlist & Compare Icons ============ */
.wishlist-btn,
.compare-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
  cursor: pointer;
}

.wishlist-btn:hover {
  background: var(--soft-primary);
  border-color: var(--primary);
  color: var(--primary);
}

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

/* ============ Clothing-Specific: Fit Indicator ============ */
.fit-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--soft-primary);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  margin: 15px 0;
}

.fit-indicator i {
  font-size: 20px;
  color: var(--primary);
}

.fit-indicator span {
  font-weight: 600;
  font-size: 14px;
}

/* ============ Size Chart Button ============ */
.size-chart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #dee2e6;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-chart-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--soft-primary);
}

/* ============ Trust Badges ============ */
.trust-badges {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid #dee2e6;
  margin-top: 20px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6c757d;
}

.trust-badge i {
  font-size: 20px;
  color: var(--primary);
}

/* ============ Price Styling ============ */
.price-display .current-price {
  color: var(--primary);
  font-weight: 700;
}

del {
  color: #999;
  font-size: 0.9em;
}

/* ============ Discount Badge ============ */
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
}

/* ============ Form Inputs ============ */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--soft-primary) !important;
}

/* ============ Link Hover Effects ============ */
a:hover {
  color: var(--primary);
}

/* ============ Mobile Responsiveness ============ */
@media (max-width: 768px) {
  .search-input-box input,
  #search {
    height: 42px !important;
    font-size: 14px !important;
  }
  
  .size-option {
    width: 40px;
    height: 40px;
  }
  
  .color-swatch {
    width: 32px;
    height: 32px;
  }
  
  .trust-badges {
    flex-wrap: wrap;
    gap: 15px;
  }
}

/* ============ Animations ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* ============ Scrollbar Styling ============ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--hov-primary);
}

/* ============ AI Stylist & Feature Cards ============ */
.ai-stylist-widget .card-header,
.virtual-tryon-section .card-header {
  background: var(--primary) !important;
}

.size-recommendation-banner {
  border-left-color: var(--primary) !important;
}

/* ============ Body Profile & Size Features ============ */
.body-profile-card .badge-primary,
.size-fit-option input:checked + span {
  background: var(--primary) !important;
}

/* ============ Quick Size Filter ============ */
.quick-size-filter .size-filter-btn input:checked + span {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.quick-size-filter .size-filter-btn span:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============ Social Share Buttons ============ */
.social-share-btn.copy-link:hover {
  background: var(--primary);
}

/* ============ WhatsApp Integration ============ */
.whatsapp-share-btn:hover,
.whatsapp-order-btn:hover {
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ============ Recently Viewed Section ============ */
.recently-viewed-section .aiz-card-box {
  border: 1px solid #f0f0f0;
}

.recently-viewed-section .aiz-card-box:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ============ Admin Analytics Cards ============ */
.bg-gradient-1 { background: var(--primary) !important; }
.bg-gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

/* ============ Print Styles ============ */
@media print {
  .top-navbar,
  .scroll-to-top,
  .nav-cart-box {
    display: none !important;
  }
}
