/*
* CoinMinerMarket - Custom Brand Styling
* Crypto Mining Theme - Dark/Metallic with Gold Accents
*/

/* ===== Color Scheme Override ===== */
:root {
  --primary-dark: #1a1d23;
  --secondary-dark: #2a2f38;
  --accent-gold: #f9bf29;
  --accent-gold-dark: #d4a024;
  --metallic-silver: #8e9aaf;
  --text-light: #e0e0e0;
  --text-muted: #a0a0a0;
  --bg-dark: #0f1215;
  --border-color: #3a3f4a;
}

/* ===== Body & Background ===== */
body {
  background-color: #f5f5f7;
  color: #333;
}

/* ===== Navigation Bar - Dark Theme ===== */
.custom-navbar {
  background: var(--primary-dark) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding-top: 15px;
  padding-bottom: 15px;
}

.custom-navbar .navbar-brand {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-gold) !important;
}

.custom-navbar .navbar-brand span {
  color: #fff !important;
  opacity: 1;
}

.custom-navbar .navbar-brand i {
  color: var(--accent-gold);
}

.custom-navbar .custom-navbar-nav li a {
  font-weight: 500;
  color: var(--text-light) !important;
  opacity: 0.8;
  text-decoration: none;
}

.custom-navbar .custom-navbar-nav li a:hover {
  opacity: 1;
  color: var(--accent-gold) !important;
}

.custom-navbar .custom-navbar-nav li a:before {
  background: var(--accent-gold);
}

.custom-navbar .custom-navbar-nav li.active a {
  color: var(--accent-gold) !important;
  opacity: 1;
}

/* Dropdown Menus */
.dropdown-menu {
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.dropdown-item {
  color: var(--text-light);
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: var(--primary-dark);
  color: var(--accent-gold);
}

.dropdown-divider {
  border-color: var(--border-color);
}

/* ===== Hero Section - Dark with Gold Accents ===== */
.hero {
  background: linear-gradient(135deg, #1a1d23 0%, #2a2f38 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="1" height="1" x="0" y="0" fill="rgba(249,191,41,0.05)"/></svg>');
  opacity: 0.3;
}

.hero h1 {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h1 span {
  color: var(--accent-gold);
}

.hero p {
  color: var(--text-light);
  opacity: 0.9;
}

.hero .trust-badges {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(249,191,41,0.2);
}

/* ===== Buttons ===== */
.btn {
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.btn.btn-secondary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  border: none;
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(249,191,41,0.3);
}

.btn.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,191,41,0.4);
  background: linear-gradient(135deg, var(--accent-gold-dark) 0%, var(--accent-gold) 100%);
}

.btn.btn-white-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #ffffff;
}

.btn.btn-white-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn.btn-primary {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

/* ===== Product Section ===== */
.product-section {
  background: #ffffff;
}

.product-section .section-title {
  color: var(--primary-dark);
  font-weight: 700;
}

.product-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-5px);
}

.product-item .product-thumbnail {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
}

.product-item h3 {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 15px !important;
}

.product-item .product-price {
  color: var(--accent-gold-dark);
  font-weight: 800 !important;
  font-size: 20px !important;
}

.product-item .product-specs {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
}

.product-item .icon-cross {
  background: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(249,191,41,0.4);
}

.product-item:hover .icon-cross {
  background: var(--accent-gold-dark);
}

.product-item:before {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Product Badges */
.badge-new, .badge-hot, .badge-used {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
  letter-spacing: 0.5px;
}

.badge-new {
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,200,83,0.3);
}

.badge-hot {
  background: linear-gradient(135deg, #ff6f00 0%, #ff9100 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,111,0,0.3);
}

.badge-used {
  background: linear-gradient(135deg, #546e7a 0%, #78909c 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(84,110,122,0.3);
}

/* ===== Why Choose Section ===== */
.why-choose-section {
  background: #f8f9fa;
}

.why-choose-section .section-title {
  color: var(--primary-dark);
  font-weight: 700;
}

.feature .icon i {
  color: var(--accent-gold);
  background: rgba(249,191,41,0.1);
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border-radius: 12px;
  display: inline-block;
}

.feature .icon:before {
  background: rgba(249,191,41,0.2);
  width: 40px;
  height: 40px;
}

.feature h3 {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 16px;
}

/* ===== Footer ===== */
.footer-section {
  background: var(--primary-dark);
  color: var(--text-light);
}

.footer-section a {
  color: var(--text-light);
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.footer-section .footer-logo {
  color: var(--accent-gold) !important;
  font-size: 28px;
}

.footer-section .footer-logo span {
  color: #fff !important;
}

.footer-section .subscription-form h3 {
  color: var(--text-light);
}

.footer-section .subscription-form h3 i {
  color: var(--accent-gold);
}

.footer-section .form-control {
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
  color: var(--text-light);
}

.footer-section .form-control:focus {
  background: var(--secondary-dark);
  border-color: var(--accent-gold);
  color: var(--text-light);
}

.footer-section .form-control::placeholder {
  color: var(--text-muted);
}

.footer-section h4 {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 16px;
}

.footer-section .custom-social li a {
  background: var(--secondary-dark);
  color: var(--accent-gold);
  border: 1px solid var(--border-color);
}

.footer-section .custom-social li a:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-gold);
}

.footer-section .contact-info {
  background: rgba(255,255,255,0.03);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.footer-section .contact-info i {
  color: var(--accent-gold);
}

.footer-section .trust-badges {
  background: rgba(255,255,255,0.03);
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid rgba(249,191,41,0.2);
}

.footer-section .trust-badges i {
  color: var(--accent-gold);
}

.footer-section .copyright {
  border-color: var(--border-color) !important;
}

.footer-section .copyright a {
  color: var(--accent-gold);
}

/* ===== Cart Icon Badge ===== */
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 18px;
  text-align: center;
}

/* ===== Accessibility & Performance ===== */
img {
  max-width: 100%;
  height: auto;
}

/* Note: 'loading' is an HTML attribute, not a CSS property */
/* Use <img loading="lazy"> in HTML instead */

/* Focus states for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .custom-navbar .navbar-brand {
    font-size: 24px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .product-item h3 {
    font-size: 14px !important;
  }
  
  .product-item .product-price {
    font-size: 18px !important;
  }
}

/* ===== Product Image Gallery ===== */
.product-image-gallery .main-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f9fa;
}

.product-image-gallery .main-image img {
  transition: transform 0.3s ease, opacity 0.15s ease;
  cursor: zoom-in;
}

.product-image-gallery .main-image img:hover {
  transform: scale(1.05);
}

/* Gallery Navigation Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
}

.product-image-gallery:hover .gallery-arrow {
  opacity: 1;
}

.gallery-arrow:hover {
  background: var(--accent-gold);
  transform: translateY(-50%) scale(1.1);
}

.gallery-arrow-left {
  left: 15px;
}

.gallery-arrow-right {
  right: 15px;
}

/* Image Counter */
.image-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
  margin-top: 15px;
}

.thumbnail-image {
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
  height: 80px;
  object-fit: cover;
}

.thumbnail-image:hover {
  opacity: 1;
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(249, 191, 41, 0.3);
}

.thumbnail-image.active {
  opacity: 1;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--accent-gold);
}

/* Responsive thumbnails */
@media (max-width: 768px) {
  .thumbnail-image {
    height: 60px;
  }
}

/* ===== Cryptocurrency Category Cards ===== */
.crypto-category-card {
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
}

.crypto-category-card:hover {
  text-decoration: none;
  color: inherit;
}

.crypto-category-card .card {
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.crypto-category-card:hover .card {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.crypto-category-card .crypto-icon {
  transition: transform 0.3s ease;
}

.crypto-category-card:hover .crypto-icon {
  transform: scale(1.1);
}

.crypto-category-card .card-title {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.crypto-category-card .text-muted {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hover-lift {
  transition: all 0.3s ease;
}

.bg-light {
  background-color: #f8f9fa !important;
}

/* Responsive Grid for Categories */
@media (max-width: 768px) {
  .crypto-category-card .card-body {
    padding: 1.5rem 1rem !important;
  }
  
  .crypto-category-card .crypto-icon i {
    font-size: 2rem !important;
  }
  
  .crypto-category-card .card-title {
    font-size: 0.95rem;
  }
}

/* ===== Manufacturer Cards ===== */
.manufacturer-card {
  display: block;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 1rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.manufacturer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

.manufacturer-card .manufacturer-logo {
  transition: transform 0.3s ease;
}

.manufacturer-card:hover .manufacturer-logo {
  transform: scale(1.15);
}

.manufacturer-card h6 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--primary-dark);
}

.manufacturer-card small {
  font-size: 0.75rem;
  display: block;
}

/* Responsive Manufacturers */
@media (max-width: 768px) {
  .manufacturer-card {
    padding: 1rem 0.5rem !important;
  }
  
  .manufacturer-card .manufacturer-logo i {
    font-size: 2rem !important;
  }
  
  .manufacturer-card h6 {
    font-size: 0.9rem;
  }
}

/* ===== Loading Performance ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

