/* Fresh Start - Clean E-commerce Design with Bootstrap 4 */

:root {
  --primary: #D10024;
  --black: #000000;
  --white: #FFFFFF;
  --gray: #F5F5F5;
  --light-gray: #F8F9FA;
  --border: #E0E0E0;
}

/* Screen Reader Only - Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Global Font - Arimo */
* {
  font-family: 'Arimo', sans-serif;
}

body {
  font-family: 'Arimo', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Arimo', sans-serif;
  font-weight: 500;
  letter-spacing: 0.2px;
}

p, span, div, a, li, td, th, label, input, textarea, select, button {
  font-family: 'Arimo', sans-serif;
  font-weight: 300;
}

/* Navigation */
.navbar {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: 'Arimo', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--black) !important;
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link {
  font-family: 'Arimo', sans-serif;
  color: var(--black) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}

.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  background: var(--white);
}

.hero-title {
  font-family: 'Arimo', sans-serif;
  font-size: 3.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--black);
  letter-spacing: -0.3px;
}

.hero-description {
  font-family: 'Arimo', sans-serif;
  font-size: 1rem;
  color: #333;
  max-width: 600px;
  line-height: 1.8;
  font-weight: 300;
}

/* Filter Bar */
.filter-bar {
  background: var(--white);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.filter-label {
  font-family: 'Arimo', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: block;
}

/* Search Wrapper */
.filter-search-wrapper {
  display: flex;
  flex-direction: column;
}

.filter-search-input {
  font-family: 'Arimo', sans-serif;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 300;
  height: 38px;
}

.filter-search-input:focus {
  border-color: var(--primary);
  box-shadow: none;
  outline: none;
}

.filter-search-input::placeholder {
  color: #666;
  font-style: italic;
  opacity: 1;
}

.input-group-text {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: none;
  color: #333;
  border-radius: 0;
}

.input-group-text i {
  font-size: 0.875rem;
}

/* Filter Toggle Button */
.filter-toggle-wrapper {
  position: relative;
}

.btn-filter-toggle {
  font-family: 'Arimo', sans-serif;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--black);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0;
  transition: all 0.3s ease;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-filter-toggle:hover,
.btn-filter-toggle:focus,
.btn-filter-toggle:not(:disabled):not(.disabled):active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: none;
}

.btn-filter-toggle i {
  font-size: 1rem;
}

.filter-badge {
  background-color: var(--primary) !important;
  color: var(--white);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  padding: 0;
  line-height: 1;
}

/* Filter Dropdown */
.filter-toggle-wrapper {
  position: relative;
}

.filter-toggle-wrapper .dropdown-menu {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

.filter-dropdown {
  min-width: 300px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
}

.filter-dropdown-content {
  background: var(--white);
}

.filter-dropdown-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #f8f9fa;
}

.filter-dropdown-header h6 {
  font-family: 'Arimo', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--black);
  margin: 0;
}

.filter-dropdown-body {
  padding: 1.25rem;
  position: relative;
  z-index: 1000;
}

.filter-group-inline {
  margin-bottom: 1.25rem;
}

.filter-group-inline:last-child {
  margin-bottom: 0;
}

.filter-label-small {
  font-family: 'Arimo', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: block;
}

.filter-select-inline {
  font-family: 'Arimo', sans-serif;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: var(--white);
  font-weight: 300;
  height: 38px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1000;
  position: relative;
}

.filter-select-inline:focus {
  border-color: var(--primary);
  box-shadow: none;
  outline: none;
}

.filter-select-inline:hover {
  border-color: var(--primary);
}

/* Sort Wrapper */
.filter-sort-wrapper {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.filter-select-sort {
  font-family: 'Arimo', sans-serif;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: var(--white);
  font-weight: 300;
  height: 38px;
  width: 100%;
}

.filter-select-sort:focus {
  border-color: var(--primary);
  box-shadow: none;
  outline: none;
}

/* Legacy filter styles for backward compatibility */
.filter-group {
  margin-right: 2rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.filter-select {
  font-family: 'Arimo', sans-serif;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: var(--white);
  min-width: 150px;
  width: 100%;
  font-weight: 300;
  height: 38px;
  line-height: 1.5;
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: none;
  outline: none;
}

/* Products Grid */
.products-grid {
  padding: 3rem 0;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1.5rem;
}

.product-image-wrapper {
  position: relative;
  background: var(--light-gray);
  padding: 2rem;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.product-image {
  width: 100%;
  max-width: 100%;
  height: 280px;
  object-fit: contain;
  transition: transform 0.3s ease;
  background: var(--white);
}

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

.product-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.product-brand-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--white);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  z-index: 2;
}

.product-name {
  font-family: 'Arimo', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.75rem;
  text-decoration: none;
  display: block;
  line-height: 1.6;
  transition: color 0.2s ease;
  margin-top: 0;
  letter-spacing: 0.1px;
}

.product-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-name:hover a,
.product-name a:hover {
  color: var(--primary);
  text-decoration: none;
}

.product-material {
  font-family: 'Arimo', sans-serif;
  font-size: 0.875rem;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-weight: 300;
}

.product-price {
  font-family: 'Arimo', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.2px;
}

.text-decoration-line-through {
  text-decoration: line-through !important;
}

/* Footer */
.footer {
  font-family: 'Arimo', sans-serif;
  background: var(--black);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  font-family: 'Arimo', sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
}

.footer p,
.footer a,
.footer li {
  font-family: 'Arimo', sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
}

.footer a {
  color: #CCCCCC;
  text-decoration: none;
}

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

/* Utilities */
.text-primary-custom {
  color: var(--primary) !important;
}

.bg-primary-custom {
  background-color: var(--primary) !important;
}

.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-width: 2px;
}

.btn-primary-custom:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(209, 0, 36, 0.3);
}

.btn-primary-custom:focus,
.btn-primary-custom:active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 0.2rem rgba(209, 0, 36, 0.25);
}

/* Badge Styles */
.badge {
  font-family: 'Arimo', sans-serif;
  border-radius: 0;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-danger {
  background-color: var(--primary) !important;
}

/* Override Bootstrap's default blue primary button with logo color */
.btn.btn-primary,
button.btn-primary,
a.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--white) !important;
}

.btn.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover,
.btn.btn-primary:focus,
button.btn-primary:focus,
a.btn-primary:focus,
.btn.btn-primary:active,
button.btn-primary:active,
a.btn-primary:active,
.btn.btn-primary.active,
button.btn-primary.active,
a.btn-primary.active {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--white) !important;
  opacity: 0.9;
}

/* Override Bootstrap's default blue primary badge with logo color */
.badge.badge-primary,
span.badge-primary {
  background-color: var(--primary) !important;
  color: var(--white) !important;
}

/* Product Actions Container */
.product-actions {
  gap: 0.5rem;
}

.product-actions .btn {
  font-family: 'Arimo', sans-serif;
  padding: 0.4rem 0.75rem;
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  border-width: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* WhatsApp Button - Primary CTA */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
  border-color: #25D366;
  color: var(--white);
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.25);
  border-radius: 6px;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20BA5A 0%, #1DA851 100%);
  border-color: #20BA5A;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.3), 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
  font-size: 0.85rem;
  vertical-align: middle;
}

/* Add to Cart Button - Simple */
.btn-cart {
  background-color: var(--white);
  border: 1px solid var(--border);
  color: var(--black);
  box-shadow: none;
  min-width: 100px;
  border-radius: 0;
  font-family: 'Arimo', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: none;
}

.btn-cart:hover {
  background-color: var(--white);
  border-color: var(--border);
  color: var(--black);
  transform: none;
  box-shadow: none;
}

.btn-cart:active {
  background-color: var(--white);
  border-color: var(--border);
  color: var(--black);
  transform: none;
  box-shadow: none;
}

.btn-cart:focus {
  background-color: var(--white);
  border-color: var(--border);
  color: var(--black);
  box-shadow: none;
  outline: 1px solid var(--border);
  outline-offset: 2px;
}

.btn-cart i {
  font-size: 0.8rem;
  vertical-align: middle;
}

/* Return Policy & Content Pages */
section h1 {
  font-family: 'Arimo', sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 2rem;
  letter-spacing: -0.3px;
}

section h2 {
  font-family: 'Arimo', sans-serif;
  font-weight: 500;
  letter-spacing: -0.2px;
}

section h3 {
  font-family: 'Arimo', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 1rem;
  letter-spacing: 0.1px;
}

section p {
  font-family: 'Arimo', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 300;
}

section ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

section ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: #333;
}

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

section a:hover {
  text-decoration: underline;
}

.btn-outline-secondary {
  border: 2px solid var(--border);
  color: var(--black);
  background: var(--white);
  border-radius: 6px;
  padding: 0.625rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: var(--gray);
  border-color: var(--border);
  color: var(--black);
  transform: translateY(-1px);
}

.btn-outline-danger {
  border: 2px solid #dc3545;
  color: #dc3545;
  background: var(--white);
  border-radius: 0;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  font-family: 'Arimo', sans-serif;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: var(--white);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline-danger:focus,
.btn-outline-danger:active {
  background-color: #dc3545;
  border-color: #dc3545;
  color: var(--white);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Product Detail Page Styles */
.product-image-gallery {
  position: relative;
}

.main-product-image img {
  transition: opacity 0.3s ease;
}

.product-thumbnails .thumbnail-item {
  transition: all 0.2s ease;
}

.product-thumbnails .thumbnail-item:hover {
  transform: scale(1.05);
}

.product-details-content h1 {
  font-family: 'Arimo', sans-serif;
  font-weight: 500;
}

.product-details-content p,
.product-details-content div {
  font-family: 'Arimo', sans-serif;
  font-weight: 300;
}

.product-price-section h2 {
  font-family: 'Arimo', sans-serif;
  font-weight: 500;
}

.breadcrumb {
  font-family: 'Arimo', sans-serif;
  font-weight: 300;
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #333;
}

.delivery-info h4 {
  font-family: 'Arimo', sans-serif;
  font-weight: 500;
}

.delivery-info p {
  font-family: 'Arimo', sans-serif;
  font-weight: 300;
}

.product-description-section h3 {
  font-family: 'Arimo', sans-serif;
  font-weight: 500;
}

.product-description-content {
  font-family: 'Arimo', sans-serif;
  font-weight: 300;
}

.product-meta p {
  font-family: 'Arimo', sans-serif;
  font-weight: 300;
}

.product-meta span {
  font-family: 'Arimo', sans-serif;
  font-weight: 500;
}

.badge-success {
  background-color: #28a745 !important;
  color: var(--white);
  font-family: 'Arimo', sans-serif;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .filter-group {
    margin-right: 1rem;
    margin-bottom: 1rem;
    width: 100%;
  }

  .filter-group-sort {
    margin-left: 0;
    margin-right: 0;
  }

  .product-image {
    height: 250px;
  }

  .filter-bar .row {
    flex-direction: column;
  }

  .filter-bar .row > div {
    width: 100%;
    margin-bottom: 1rem;
  }

  .filter-bar .row > div:last-child {
    margin-bottom: 0;
  }

  .filter-search-wrapper,
  .filter-sort-wrapper {
    width: 100%;
  }

  .filter-sort-wrapper {
    text-align: left;
  }

  .filter-toggle-wrapper {
    width: 100%;
    text-align: center;
  }

  .btn-filter-toggle {
    width: 100%;
  }

  .filter-dropdown {
    min-width: 100%;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }

  .filter-select {
    width: 100%;
  }

  section h1 {
    font-size: 2rem;
  }

  section h3 {
    font-size: 1.25rem;
  }
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  animation: pulse 2s infinite;
}

.floating-whatsapp-btn:hover {
  background: linear-gradient(135deg, #20BA5A 0%, #1DA851 100%);
  color: var(--white);
  text-decoration: none;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp-btn:active {
  transform: scale(0.95);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

@media (max-width: 768px) {
  .floating-whatsapp-btn {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
  }
}

/* Pagination Styles */
.pagination {
  font-family: 'Arimo', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li {
  margin: 0 0.25rem;
}

.pagination .page-link {
  font-family: 'Arimo', sans-serif;
  font-weight: 500;
  color: var(--black);
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
  display: inline-block;
}

.pagination .page-link:hover {
  color: var(--white);
  background-color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.pagination .page-item.active .page-link {
  color: var(--white);
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
}

.pagination .page-item.disabled .page-link {
  color: #999;
  background-color: #f5f5f5;
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
  color: #999;
  background-color: #f5f5f5;
  border-color: var(--border);
}
