/*
 * Andrew's Ties - Modern Theme
 * Bootstrap 5 Based
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --primary-color: #108260;
  --primary-dark: #0a5a43;
  --secondary-color: #3c3736;
  --accent-color: #f92130;
  --light-bg: #f8f9fa;
  --border-color: #e9ecef;
  --text-color: #333;
  --text-muted: #6c757d;
  --white: #fff;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   Base Styles
   ============================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  height: 100%;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

main {
  flex: 1;
  overflow-x: hidden;
  overflow-y: visible;
}

.footer-modern {
  margin-top: auto;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Header / Navbar
   ============================================ */
.navbar-modern {
  background: var(--white);
  padding: 15px 0;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-modern.scrolled {
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.navbar-brand img {
  height: 50px;
  transition: var(--transition);
}

.navbar-modern.scrolled .navbar-brand img {
  height: 40px;
}

.navbar-nav .nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  padding: 10px 20px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-icons a {
  color: var(--secondary-color);
  font-size: 20px;
  transition: var(--transition);
}

.navbar-icons a:hover {
  color: var(--primary-color);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-color);
  color: var(--white);
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
.navbar-toggler {
  border: none;
  padding: 10px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 25px;
  height: 2px;
  background: var(--secondary-color);
  display: block;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--secondary-color);
  left: 0;
}

.navbar-toggler-icon::before { top: -8px; }
.navbar-toggler-icon::after { bottom: -8px; }

/* ============================================
   Hero / Tie Slide Section
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tie-slide-modern {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.tie-slide-left {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tie-slide-left .man-image {
  max-height: 80vh;
  position: relative;
  z-index: 1;
}

.tie-slide-left .tie-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 150px;
}

.tie-slide-right {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tie-slide-right .product-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.tie-slide-right .product-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.tie-slide-right .product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.tie-slide-nav {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.tie-nav-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--border-color);
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.tie-nav-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary-custom {
  background: var(--primary-color);
  color: var(--white);
  padding: 15px 40px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 0;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline-custom {
  background: transparent;
  color: var(--secondary-color);
  padding: 15px 40px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--secondary-color);
  border-radius: 0;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 50px;
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
  background: var(--white);
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 30px;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.product-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--light-bg);
  padding: 20px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .card-img-top {
  max-height: 250px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-card .card-body {
  padding: 20px;
  text-align: center;
}

.product-card .card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.product-card .card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.product-card .btn-add-cart {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.product-card .btn-add-cart:hover {
  background: var(--primary-color);
}

/* Quick view overlay */
.product-card .quick-view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .quick-view {
  opacity: 1;
}

.product-card .quick-view a {
  color: var(--white);
  font-size: 14px;
  padding: 10px 25px;
  border: 2px solid var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card .quick-view a:hover {
  background: var(--white);
  color: var(--secondary-color);
}

/* ============================================
   Categories
   ============================================ */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 30px;
}

.category-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

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

.category-card .category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
}

.category-card .category-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.category-card .category-count {
  font-size: 14px;
  opacity: 0.8;
}

/* ============================================
   Catalog Page
   ============================================ */
.catalog-header {
  padding: 120px 0 40px;
  background: var(--light-bg);
}

.catalog-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-item.active {
  color: var(--primary-color);
}

/* Filters sidebar */
.filter-sidebar {
  background: var(--white);
  padding: 25px;
  border: 1px solid var(--border-color);
}

.filter-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group h5 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.filter-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-group ul li {
  margin-bottom: 10px;
}

.filter-group ul li a {
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.filter-group ul li a:hover,
.filter-group ul li a.active {
  color: var(--primary-color);
}

/* ============================================
   Single Product Page
   ============================================ */
.product-detail {
  padding: 120px 0 60px;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery .main-image {
  background: var(--light-bg);
  padding: 40px;
  margin-bottom: 15px;
}

.product-gallery .main-image img {
  width: 100%;
}

.product-gallery .thumbnails {
  display: flex;
  gap: 10px;
}

.product-gallery .thumb {
  width: 80px;
  height: 80px;
  background: var(--light-bg);
  padding: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-gallery .thumb:hover,
.product-gallery .thumb.active {
  border-color: var(--primary-color);
}

.product-info h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-info .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.product-info .description {
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.8;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.quantity-selector label {
  font-weight: 600;
}

.quantity-selector .qty-input {
  display: flex;
  border: 1px solid var(--border-color);
}

.quantity-selector .qty-btn {
  width: 40px;
  height: 40px;
  background: var(--light-bg);
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.quantity-selector .qty-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

.quantity-selector input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

/* ============================================
   Footer
   ============================================ */
.footer-modern {
  background: var(--secondary-color);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 20px;
}

.footer-about {
  color: rgba(255,255,255,0.7);
  margin-bottom: 25px;
  line-height: 1.8;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: rgba(255,255,255,0.7);
}

.footer-contact li i {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
}

.footer-bottom {
  margin-top: 40px;
  padding: 25px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  margin: 0;
  font-size: 14px;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    padding: 20px;
    margin-top: 15px;
    box-shadow: var(--shadow);
  }

  .navbar-nav .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .hero-section {
    padding-top: 100px;
  }

  .tie-slide-modern {
    flex-direction: column;
    min-height: auto;
    padding: 40px 0;
  }

  .tie-slide-left {
    margin-bottom: 30px;
  }

  .tie-slide-right {
    padding: 20px;
    text-align: center;
  }

  .tie-slide-right .product-title {
    font-size: 2rem;
  }

  .tie-slide-nav {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .product-card .card-img-wrapper {
    padding: 15px;
  }

  .catalog-header {
    padding: 100px 0 30px;
  }

  .catalog-header h1 {
    font-size: 1.8rem;
  }

  .filter-sidebar {
    margin-bottom: 30px;
  }

  .product-detail {
    padding: 100px 0 40px;
  }

  .product-info h1 {
    font-size: 1.5rem;
  }

  .footer-modern {
    padding: 40px 0 0;
  }
}

/* ============================================
   Utilities
   ============================================ */
.bg-light-custom { background: var(--light-bg); }
.text-primary-custom { color: var(--primary-color); }
.text-accent { color: var(--accent-color); }

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Hero Tie Slide Section (Homepage)
   ============================================ */
.hero-tie-slide {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
  position: relative;
  overflow: hidden;
}

.hero-tie-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(16,130,96,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.tie-collection-showcase {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  max-width: 1400px;
  width: 100%;
  align-items: center;
}

.tie-collection-showcase .tie-item {
  position: relative;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.tie-collection-showcase .tie-item a {
  display: block;
  text-decoration: none;
}

.tie-collection-showcase .tie-item img {
  max-height: 400px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
  transition: var(--transition);
}

.tie-collection-showcase .tie-item:hover img {
  transform: scale(1.08) translateY(-10px);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

.tie-collection-showcase .tie-item .tie-name {
  display: block;
  color: rgba(0,0,0,0.5);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.tie-collection-showcase .tie-item:hover .tie-name {
  opacity: 1;
  transform: translateY(0);
  color: var(--secondary-color);
}

.tie-collection-showcase .tie-center {
  grid-column: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tie-collection-showcase .brand-tagline {
  text-align: center;
  padding: 40px;
}

.tie-collection-showcase .brand-tagline h1 {
  color: var(--secondary-color);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tie-collection-showcase .brand-tagline p {
  color: rgba(0,0,0,0.5);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.tie-collection-showcase .brand-tagline .btn {
  border-radius: 0;
  padding: 15px 35px;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
  background: var(--white);
}

.feature-box {
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  border-radius: 50%;
  transition: var(--transition);
}

.feature-box:hover .feature-icon {
  background: var(--primary-color);
}

.feature-icon i {
  font-size: 32px;
  color: var(--primary-color);
  transition: var(--transition);
}

.feature-box:hover .feature-icon i {
  color: var(--white);
}

.feature-box h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.feature-box p {
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1rem;
}

/* ============================================
   Categories Section
   ============================================ */
.categories-section {
  background: var(--white);
}

.category-card {
  display: block;
  position: relative;
  height: 280px;
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
  border-radius: 8px;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Category card with product images */
.category-card .category-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.category-card .category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-card .category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.category-card .category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  color: var(--white);
  z-index: 2;
}

.category-card .category-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.category-card .category-content span {
  font-size: 14px;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.category-card:hover .category-content span {
  opacity: 1;
}

/* ============================================
   Custom Order Section
   ============================================ */
.custom-order-section {
  background: var(--light-bg);
}

.custom-order-image {
  text-align: center;
}

.custom-order-image img {
  max-height: 500px;
  width: auto;
}

.custom-order-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.custom-order-content .lead {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.custom-order-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 25px;
}

.custom-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.custom-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.custom-features li i {
  color: var(--primary-color);
  font-size: 18px;
}

.placeholder-image {
  width: 100%;
  height: 400px;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image i {
  font-size: 80px;
  color: var(--text-muted);
}

/* ============================================
   About Teaser Section
   ============================================ */
.about-teaser {
  background: var(--light-bg);
}

.about-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.about-content .lead {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 25px;
}

/* ============================================
   Homepage Responsive
   ============================================ */
@media (max-width: 1200px) {
  .tie-collection-showcase {
    grid-template-columns: repeat(4, 1fr);
  }

  .tie-collection-showcase .tie-center {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 30px;
  }

  .tie-collection-showcase .tie-item img {
    max-height: 300px;
  }
}

@media (max-width: 767.98px) {
  .hero-tie-slide {
    padding: 100px 15px 40px;
    min-height: auto;
    height: auto;
  }

  .tie-collection-showcase {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .tie-collection-showcase .tie-item img {
    max-height: 180px;
  }

  .tie-collection-showcase .brand-tagline h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .tie-collection-showcase .brand-tagline p {
    font-size: 12px;
  }

  .tie-collection-showcase .brand-tagline .btn {
    padding: 12px 25px;
    font-size: 12px;
  }

  .feature-box {
    padding: 30px 15px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .custom-order-content h2,
  .about-content h2 {
    font-size: 1.6rem;
  }

  .category-card {
    height: 180px;
  }

  .category-card .category-content {
    padding: 20px;
  }

  .category-card .category-content h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .tie-collection-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .tie-collection-showcase .tie-item img {
    max-height: 150px;
  }
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail-section {
  padding-top: 40px;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery .main-image {
  background: var(--light-bg);
  padding: 40px;
  margin-bottom: 15px;
  text-align: center;
}

.product-gallery .main-image img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  object-fit: contain;
}

.product-gallery .thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-gallery .thumb {
  width: 80px;
  height: 80px;
  background: var(--light-bg);
  padding: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-gallery .thumb:hover,
.product-gallery .thumb.active {
  border-color: var(--primary-color);
}

.product-gallery .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.product-info .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.product-info .description {
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.8;
}

/* Product Specs */
.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
}

.specs-list li i {
  color: var(--primary-color);
  font-size: 16px;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.quantity-selector label {
  font-weight: 600;
  color: var(--secondary-color);
}

.qty-input {
  display: flex;
  border: 1px solid var(--border-color);
}

.qty-btn {
  width: 45px;
  height: 45px;
  background: var(--light-bg);
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

.qty-input input {
  width: 60px;
  height: 45px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  font-size: 16px;
  font-weight: 600;
}

.qty-input input:focus {
  outline: none;
}

/* Product Actions */
.product-actions .btn {
  width: 100%;
  padding: 18px 30px;
}

/* Delivery Info */
.delivery-info {
  padding: 20px;
  background: var(--light-bg);
  border-radius: 0;
}

.delivery-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.delivery-item:last-child {
  border-bottom: none;
}

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

.delivery-item span {
  color: var(--text-color);
  font-size: 14px;
}

/* Product Page Responsive */
@media (max-width: 991.98px) {
  .product-gallery {
    position: relative;
    top: 0;
  }

  .product-gallery .main-image {
    padding: 20px;
  }

  .product-gallery .main-image img {
    max-height: 400px;
  }
}

@media (max-width: 767.98px) {
  .product-info h1 {
    font-size: 1.5rem;
  }

  .product-info .price {
    font-size: 1.5rem;
  }

  .product-gallery .thumb {
    width: 60px;
    height: 60px;
  }

  .qty-btn {
    width: 40px;
    height: 40px;
  }

  .qty-input input {
    width: 50px;
    height: 40px;
  }
}

/* ============================================
   News Page Styles
   ============================================ */
.news-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
}

.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.news-card .news-image {
  overflow: hidden;
}

.news-card .news-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-card .news-content {
  padding: 25px;
}

.news-card .news-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.news-card .news-title a {
  color: var(--secondary-color);
}

.news-card .news-title a:hover {
  color: var(--primary-color);
}

.news-card .news-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.news-card .news-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-card .news-link:hover {
  color: var(--primary-dark);
}

/* News Article */
.news-article .news-intro {
  padding: 20px;
  background: var(--light-bg);
  border-left: 4px solid var(--primary-color);
  margin-bottom: 30px;
}

.news-article .news-body {
  line-height: 1.8;
  color: var(--text-color);
}

.news-article .news-body p {
  margin-bottom: 20px;
}

.news-article .news-body img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

/* ============================================
   Static Page Styles
   ============================================ */
.page-content .page-text {
  line-height: 1.8;
  color: var(--text-color);
}

.page-content .page-text p {
  margin-bottom: 20px;
}

.page-content .page-text img {
  max-width: 100%;
  height: auto;
}

.page-content .page-text h2,
.page-content .page-text h3,
.page-content .page-text h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-sidebar {
  margin-bottom: 30px;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.gallery-item img {
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   Basket/Cart Styles
   ============================================ */
.basket-section {
  min-height: 50vh;
}

.basket-table {
  background: var(--white);
}

.basket-table thead th {
  background: var(--light-bg);
  padding: 15px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.basket-table tbody td {
  padding: 20px 15px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

.basket-table .product-thumb {
  width: 80px;
  height: 80px;
  background: var(--light-bg);
  padding: 5px;
}

.basket-table .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.basket-table .product-name a {
  color: var(--secondary-color);
  font-weight: 600;
}

.basket-table .product-name a:hover {
  color: var(--primary-color);
}

.basket-table .btn-remove {
  color: var(--text-muted);
  font-size: 18px;
}

.basket-table .btn-remove:hover {
  color: var(--accent-color);
}

/* Cart Summary */
.basket-summary {
  background: var(--light-bg);
  padding: 30px;
}

.basket-summary .summary-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--secondary-color);
}

.basket-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
}

.basket-summary .total-row {
  font-size: 1.2rem;
  font-weight: 700;
}

.basket-summary .total-price {
  color: var(--primary-color);
}

.basket-summary hr {
  margin: 15px 0;
  border-color: var(--border-color);
}

.basket-summary .summary-actions {
  margin-top: 25px;
}

/* Basket Responsive */
@media (max-width: 767.98px) {
  .basket-table thead {
    display: none;
  }

  .basket-table tbody tr {
    display: block;
    padding: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
  }

  .basket-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border: none;
  }

  .basket-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
  }

  .basket-table .product-cell {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .basket-summary {
    margin-top: 30px;
  }
}

/* ============================================
   Maketie / Custom Order Page
   ============================================ */
.maketie-content h2 {
  color: var(--secondary-color);
  font-weight: 700;
}

.maketie-content .lead {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.maketie-content p {
  color: var(--text-muted);
  line-height: 1.8;
}

.material-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
}

.material-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.material-card .material-image {
  overflow: hidden;
  background: var(--light-bg);
  padding: 15px;
  text-align: center;
}

.material-card .material-image img {
  max-height: 150px;
  width: auto;
  transition: var(--transition);
}

.material-card:hover .material-image img {
  transform: scale(1.05);
}

.material-card .material-info {
  padding: 20px;
}

.material-card .material-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.material-card .material-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.material-card .material-input .form-control {
  border-radius: 0;
  border: 1px solid var(--border-color);
  padding: 10px 15px;
}

.material-card .material-input .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

.contact-info-box {
  background: var(--light-bg);
  padding: 30px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list li i {
  font-size: 20px;
  color: var(--primary-color);
}

.maketie-note {
  border-left: 4px solid var(--primary-color);
}

.maketie-note h5 {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

/* ============================================
   Search Page
   ============================================ */
.search-section {
  min-height: 50vh;
}

.search-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.search-form-large .form-control {
  border-radius: 0;
  border: 2px solid var(--border-color);
  padding: 15px 20px;
  font-size: 16px;
}

.search-form-large .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

.search-form-large .btn {
  border-radius: 0;
  padding: 15px 30px;
}

/* News Images Full Width */
.news-images .news-image-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Search Modal
   ============================================ */
#searchModal {
  z-index: 9999;
}

#searchModal .modal-content {
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#searchModal .modal-header {
  padding: 20px 20px 10px;
}

#searchModal .modal-body {
  padding: 10px 20px 30px;
}

#searchModal .form-control {
  border-radius: 4px;
  border: 2px solid var(--border-color);
  flex: 1;
}

#searchModal .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

#searchModal .btn-primary-custom {
  border-radius: 4px;
  padding: 12px 25px;
  white-space: nowrap;
  cursor: pointer;
}

#searchModal .btn-primary-custom i {
  margin-right: 5px;
}

/* Fix click issues - ensure all interactive elements are clickable */
body,
main,
.container,
.navbar,
.navbar-icons,
.navbar-icons a,
section,
.btn,
a,
button,
input,
.modal {
  pointer-events: auto !important;
}

/* Ensure modal backdrop doesn't persist */
.modal-backdrop {
  pointer-events: auto;
}

.modal:not(.show) {
  pointer-events: none;
}

/* ========================================
   CHECKOUT PAGE
   ======================================== */

.checkout-section {
  padding: 60px 0;
}

.checkout-form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.checkout-form-wrapper h3 {
  color: var(--secondary-color);
  font-weight: 600;
}

.checkout-form-wrapper .form-label {
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.checkout-form-wrapper .form-control {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.checkout-form-wrapper .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Order Summary */
.order-summary {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 100px;
}

.order-summary .summary-title {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
}

.order-items {
  max-height: 300px;
  overflow-y: auto;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.order-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.order-item-details {
  flex: 1;
}

.order-item-name {
  font-weight: 500;
  color: var(--secondary-color);
  font-size: 14px;
  margin-bottom: 4px;
}

.order-item-qty {
  font-size: 13px;
  color: var(--text-muted);
}

.order-item-price {
  font-weight: 600;
  color: var(--secondary-color);
  white-space: nowrap;
}

/* Success Page */
.success-message {
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Payment Method Section */
.payment-method-section h5 {
  color: var(--secondary-color);
  font-weight: 600;
}

.payment-option {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-option:hover,
.payment-option.selected {
  border-color: var(--primary-color);
  background: rgba(139, 69, 19, 0.05);
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-option label {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  margin: 0;
}

.payment-option label i {
  font-size: 28px;
  color: var(--primary-color);
}

.payment-option label span {
  display: flex;
  flex-direction: column;
}

.payment-option label strong {
  color: var(--secondary-color);
  font-size: 16px;
}

.payment-option label small {
  color: var(--text-muted);
  font-size: 13px;
}

.payment-icons img {
  margin: 0 5px;
  opacity: 0.7;
}

/* Checkout Responsive */
@media (max-width: 991px) {
  .checkout-form-wrapper {
    padding: 25px;
    margin-bottom: 30px;
  }

  .checkout-actions {
    flex-direction: column;
    gap: 15px;
  }

  .checkout-actions .btn {
    width: 100%;
  }

  .order-summary {
    position: static;
  }
}
