/* Framez Shop Styles */

:root {
  --primary-color: #b6724c;
  --secondary-color: #b6724c;
  --dark-bg: #2C2C2C;
  --card-bg: #212121;
  --text-primary: #ffffff;
  --text-secondary: #D1D1D1;
  --app-bar: #141414;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
}

/* Navbar adjustments */
.navbar {
  background: rgba(0, 0, 0, 0.9) !important;
  border-bottom: 1px solid #222 !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  font-weight: 500;
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover {
  color: var(--primary-color);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 70%;
}

.navbar .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Hero Section */
.shop-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #8a5a3a 100%);
  margin-bottom: 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* Search Box */
.search-box {
  position: relative;
}

.search-box input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 45px 12px 20px;
  border-radius: 25px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(182, 114, 76, 0.25);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.filter-chip.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* Products Section */
.products-section {
  background-color: var(--dark-bg);
  min-height: 60vh;
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(182, 114, 76, 0.3);
}

.product-image {
  position: relative;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.out-of-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.product-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  min-height: 2.6rem;
  line-height: 1.3;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.view-product-btn {
  margin-top: auto;
}

/* Modals */
.modal-content {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.btn-close {
  filter: invert(1);
}

/* Cart Items */
.cart-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.cart-item img {
  border-radius: 8px;
}

.cart-item input[type="number"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.cart-item input[type="number"]:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  color: white;
}

/* Footer */
.footer-section {
  background: var(--card-bg);
  color: var(--text-secondary);
  margin-top: 4rem;
}

.footer-brand img {
  margin-bottom: 1rem;
}

.footer-section h5 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(182, 114, 76, 0.4);
}

.newsletter-form .input-group {
  margin-top: 1rem;
}

.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 16px;
  border-radius: 8px 0 0 8px;
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  color: white;
  box-shadow: none;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
  border-radius: 0 8px 8px 0;
  padding: 12px 24px;
}

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .filter-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 10px;
  }

  .filter-chip {
    white-space: nowrap;
  }
}

/* Loading & Empty States */
#loading-state,
#error-state,
#empty-state {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-border {
  color: var(--primary-color) !important;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  color: white;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form Controls */
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(182, 114, 76, 0.25);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-select option {
  background: var(--card-bg);
  color: white;
}

/* Country Selector - Enhanced Multi-Currency Feature */
.country-selector {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--card-bg);
  border-radius: 30px;
  padding: 10px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(182, 114, 76, 0.3);
}

.country-selector:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 30px rgba(182, 114, 76, 0.4);
}

.country-selector i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.country-selector select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  padding: 5px;
  font-family: 'Poppins', sans-serif;
}

.country-selector select option {
  background: var(--dark-bg);
  color: var(--text-primary);
}

/* Enhanced Product Card Animations */
.product-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover .product-image img {
  transform: scale(1.08);
  transition: transform 0.5s ease;
}

.product-image img {
  transition: transform 0.3s ease;
}

/* Loading Spinner Enhancement */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
}

/* Badge Styles */
.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

.badge-sale {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4757;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

/* Modal Enhancements */
.modal-content {
  border-radius: 15px;
}

.modal-header .modal-title {
  font-weight: 600;
}

/* Responsive Country Selector */
@media (max-width: 768px) {
  .country-selector {
    bottom: 80px;
    right: 10px;
    padding: 8px 15px;
  }
  
  .country-selector span {
    display: none;
  }
}

/* Price Display Enhancement */
.product-price,
.modal-body h5 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
  .product-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .product-card:nth-child(1) { animation-delay: 0.1s; }
  .product-card:nth-child(2) { animation-delay: 0.2s; }
  .product-card:nth-child(3) { animation-delay: 0.3s; }
  .product-card:nth-child(4) { animation-delay: 0.4s; }
  .product-card:nth-child(n+5) { animation-delay: 0.5s; }
}

/* Tooltip Enhancement for Country Selector */
.country-selector::before {
  content: 'Change Currency';
  position: absolute;
  bottom: 100%;
  right: 0;
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 5px;
}

.country-selector:hover::before {
  opacity: 1;
}
