/*
 Theme Name:   Storefront Child
 Description:  Storefront Child Theme
 Template:     storefront
 Version:      1.0.1
*/

/* Custom Header Styles */
.custom-top-bar {
  width: 100%;
  height: 48px;
  background-color: #000;
}

.custom-site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 9999;
}

.custom-header-container {
  max-width: 1400px; /* or inherit col-full from storefront */
  margin: 0 auto;
  padding: 24px;
}

.custom-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.custom-header-logo a {
  text-decoration: none;
  color: #000;
}

.custom-header-logo span {
  font-family: sans-serif;
}

.custom-header-search {
  flex: 1;
  display: flex;
  justify-content: center;
}

.custom-search-form {
  display: flex;
  align-items: center;
  background-color: #f7f7f7;
  border-radius: 999px;
  padding: 0 16px;
  width: 100%;
  max-width: 600px;
  height: 48px;
}

.custom-search-field {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 16px;
  color: #333;
  outline: none;
  box-shadow: none !important;
}

.custom-search-field::placeholder {
  color: #888;
}

.custom-search-submit {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-search-submit:hover {
  background: transparent;
}

.custom-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.custom-header-currency {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #000;
}

.custom-header-user a,
.custom-header-cart a,
.custom-header-search-mobile a,
.custom-header-menu-mobile a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-decoration: none;
}

.custom-header-nav {
  margin-top: 24px;
}

.custom-primary-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.custom-primary-navigation ul li {
  margin: 0;
}

.custom-primary-navigation ul li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 15px;
  font-family: sans-serif;
  transition: color 0.2s;
}

.custom-primary-navigation ul li a:hover {
  color: #555;
}

/* Override default Storefront header styles that might interfere */
.site-header {
  margin-bottom: 0 !important;
}

.site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.col-full {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.show-on-mobile {
  display: none !important;
}

@media (max-width: 900px) {
  .custom-header-container {
    padding: 16px 20px;
  }
  .custom-header-search {
    display: none;
  }
  .hide-on-mobile {
    display: none !important;
  }
  .show-on-mobile {
    display: flex !important;
  }
  .custom-header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  .custom-header-nav.nav-open {
    display: block !important;
  }
  .custom-header-nav .custom-primary-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .custom-header-actions {
    gap: 20px;
  }
}

/* Custom Footer Styles */
.custom-site-footer {
  background-color: #ffffff;
  padding: 64px 0;
}

.custom-footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.custom-footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.custom-footer-col {
  display: flex;
  flex-direction: column;
}

.custom-footer-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #000;
  font-family: sans-serif;
  border: none;
  padding-bottom: 0;
}

.custom-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.custom-footer-menu li {
  margin: 0;
}

.custom-footer-menu a {
  text-decoration: none;
  color: #4a4a4a;
  font-size: 16px;
  font-family: sans-serif;
  transition: color 0.2s;
}

.custom-footer-menu a:hover {
  color: #000;
}

@media (max-width: 768px) {
  .custom-footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Custom 404 Page */
.custom-404-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 60px 20px;
  text-align: center;
  font-family: sans-serif;
  color: #111;
}

.custom-404-content {
  max-width: 600px;
}

.custom-404-title {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 20px;
  color: #000;
}

.custom-404-subtitle {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.custom-404-desc {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.6;
}

.custom-404-btn {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
}

.custom-404-btn:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
}

/* Custom Shop Layout */
.custom-shop-layout {
  font-family: sans-serif;
  color: #111;
}

/* Top Bar */
.custom-shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  font-size: 14px;
}

.custom-shop-toggle-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}

.custom-shop-count {
  color: #666;
  font-size: 14px;
}

.custom-shop-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}

/* Main Container */
.custom-shop-main {
  display: flex;
  width: 100%;
}

/* Sidebar */
.custom-shop-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid #e5e5e5;
  padding: 24px 0;
  background: #fff;
}

.custom-filter-section {
  padding: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.custom-filter-section.collapsed {
  padding: 24px;
}

.custom-filter-section:last-child {
  border-bottom: none;
}

.custom-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.custom-filter-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.custom-filter-content {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-filter-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  user-select: none;
}

.custom-filter-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 12px;
  display: inline-block;
}

.custom-filter-checkbox:hover input ~ .checkmark {
  border-color: #999;
}

.custom-filter-checkbox input:checked ~ .checkmark {
  background-color: #111;
  border-color: #111;
}

.label-text {
  flex: 1;
}

.count {
  color: #666;
}

/* Product Grid */
.custom-shop-content {
  flex: 1;
  background: #fff;
}

.custom-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-products-grid .custom-product-card {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

@media (max-width: 900px) {
  .custom-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.custom-product-inner {
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.custom-product-image-link {
  display: block;
  margin-bottom: 24px;
  text-align: center;
}

.custom-product-image-link img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Remove default Storefront WooCommerce image borders/margins */
.site-main ul.products li.product img {
  margin: 0 auto;
  box-shadow: none;
}

.custom-product-info {
  margin-top: auto;
}

.custom-product-title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.custom-product-title a {
  color: #111;
  text-decoration: none;
}

.custom-product-price {
  font-size: 15px;
  font-weight: 500;
  color: #111;
}

.custom-product-price .currency-label {
  margin-left: 4px;
}

.custom-sold-out-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: #f5f5f5;
  color: #666;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}

/* Hide default WooCommerce shop title, breadcrumbs, etc. if they appear */
.woocommerce-products-header {
  display: none;
}
.storefront-breadcrumb {
  display: none;
}
.site-main > .woocommerce {
  padding: 0;
}

@media (max-width: 992px) {
  .custom-shop-main {
    flex-direction: column;
  }
  .custom-shop-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
  }
}

/* Custom Single Product Layout */
.custom-single-product {
  display: flex;
  font-family: sans-serif;
  gap: 40px;
  padding: 40px 24px;
  max-width: 1400px;
  margin: 0 auto;
  color: #111;
}

.custom-single-gallery {
  flex: 1.5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.custom-gallery-item {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.custom-gallery-item.placeholder {
  min-height: 400px;
}

.custom-gallery-item img {
  max-width: 100%;
  height: auto;
}

.custom-single-details {
  flex: 1;
  position: sticky;
  top: 40px;
  align-self: flex-start;
}

.custom-single-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.custom-single-price {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 32px;
}

.custom-size-selector {
  margin-bottom: 24px;
}

.custom-size-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.custom-size-label {
  font-weight: 600;
}

.custom-size-chart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #444;
  font-size: 14px;
}

.custom-size-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.custom-size-btn {
  border: 1px solid #dcdcdc;
  background: #fff;
  padding: 12px 0;
  text-align: center;
  cursor: default;
  border-radius: 4px;
  font-size: 14px;
}

.custom-size-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
  font-weight: 500;
}

.custom-size-btn.disabled {
  background: #f0f0f0;
  color: #999;
}

.custom-add-to-cart-form {
  margin-bottom: 24px;
}

.custom-add-to-cart-btn {
  width: 100%;
  background: #111;
  color: #fff;
  border: none;
  padding: 18px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-add-to-cart-btn:hover {
  background: #333;
}

.custom-shipping-returns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.custom-info-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #e5e5e5;
  padding: 16px;
  border-radius: 4px;
  font-size: 14px;
  color: #111;
}

.custom-accordions {
  border-top: 1px solid #e5e5e5;
}

.custom-accordion {
  border-bottom: 1px solid #e5e5e5;
}

.custom-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
}

.custom-accordion-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.custom-accordion-content {
  display: none;
  padding-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.custom-accordion.active .custom-accordion-content {
  display: block;
}

@media (max-width: 992px) {
  .custom-single-product {
    flex-direction: column;
    padding: 24px 16px;
  }

  .custom-single-details {
    position: static;
  }
}

/* Custom FAQ Page */
.custom-faq-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  font-family: sans-serif;
  color: #111;
}

.custom-faq-hero {
  margin-bottom: 60px;
}

.custom-faq-hero h1 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 32px;
}

.custom-faq-search {
  position: relative;
  max-width: 100%;
}

.custom-faq-search input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  outline: none;
  box-shadow: none !important;
}

.custom-faq-search input:focus {
  border-color: #111;
}

.custom-faq-search svg {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.custom-faq-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 40px;
  padding-top: 60px;
  border-top: 2px solid #111;
}

.custom-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 80px;
}

.custom-faq-category {
  margin-bottom: 40px;
}

.custom-faq-category h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-faq-category h3 span {
  color: #888;
  font-weight: 500;
}

.custom-faq-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.custom-faq-category li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  color: #111;
  cursor: pointer;
}

.custom-faq-category li:hover {
  text-decoration: underline;
}

.custom-faq-category li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #555;
}

.custom-faq-fab {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 64px;
  height: 64px;
  background-color: #000;
  color: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  transition: transform 0.2s;
}

.custom-faq-fab:hover {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .custom-faq-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Custom Contact Page */
.custom-contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  font-family: sans-serif;
  color: #111;
}

.custom-contact-hero {
  margin-bottom: 60px;
  max-width: 600px;
}

.custom-contact-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.custom-contact-hero p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.custom-contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
}

.custom-contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.custom-contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.custom-contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-contact-form label {
  font-weight: 600;
  font-size: 14px;
}

.custom-contact-form input,
.custom-contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  box-shadow: none !important;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
  border-color: #111;
}

.custom-contact-submit {
  background: #111;
  color: #fff;
  border: none;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}

.custom-contact-submit:hover {
  background: #333;
}

.custom-contact-info-box {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 8px;
}

.custom-contact-info-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  color: #111;
  margin-top: 2px;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-weight: 600;
  font-size: 14px;
  color: #555;
}

.info-details a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
}

.info-details a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .custom-contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .custom-contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* Custom Hero Section */
.custom-hero-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 0 !important;
  height: 600px;
  background: #111;
  overflow: hidden;
  margin-bottom: 60px;
}

.hero-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.custom-hero-images {
  position: absolute;
  top: -5%;
  left: -10%;
  width: 120%;
  height: 110%;
  display: flex;
}

.hero-image-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  transform: skewX(-10deg);
  border-right: 4px solid #111;
}

.hero-image-item:first-child {
  border-left: 4px solid #111;
}

.hero-image-item img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 150%;
  height: 100%;
  object-fit: cover;
  transform: skewX(10deg) translateX(-50%);
}

.custom-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  pointer-events: none;
  max-width: 800px;
  padding: 20px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 16px 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  pointer-events: auto;
  transition: transform 0.2s;
}

.hero-btn:hover {
  transform: scale(1.05);
  background: #f0f0f0;
}

.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
  transition: background 0.3s;
  backdrop-filter: blur(4px);
}

.hero-slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}

@media (max-width: 900px) {
  .custom-hero-section {
    height: 700px;
    margin-bottom: 60px;
  }

  .hero-slide {
    align-items: flex-end;
    padding-bottom: 60px;
  }

  .custom-hero-images {
    flex-direction: row;
    width: 100%;
    left: 0;
    top: 0;
    height: 100%;
  }

  .hero-image-item {
    transform: none;
    border-right: 2px solid #111;
    border-bottom: none;
    width: auto;
  }

  .hero-image-item.item-5 {
    border-right: none;
  }

  .hero-image-item:last-child {
    border-right: none;
  }

  .hero-image-item:first-child {
    border-top: none;
    border-left: none;
  }

  .hero-image-item img {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: none;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-slider-btn {
    top: 40%;
  }
}

/* Custom Product Filters */
.storefront-child-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  align-items: center;
}

.storefront-child-filters select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  flex: 1 1 200px;
}

.storefront-child-filters button,
.storefront-child-filters a.reset {
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.storefront-child-filters a.reset {
  background: #ccc;
  color: #333;
}

/* Custom Single Product Match Styling */
.single-product.term-billets-match .site-main {
  max-width: 100%;
}

/* Most Demanded Matches Section */
.most-demanded-matches-section {
  background: #0d0e12;
  color: #fff;
  padding: 80px 40px;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  margin-top: -40px; /* Overlap hero slightly if needed or just start underneath */
  position: relative;
  z-index: 10;
}

.mdm-container {
  max-width: 1400px;
  margin: 0 auto;
}

.mdm-header {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 60px;
}

.mdm-title {
  font-family: Impact, sans-serif;
  font-size: 80px;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  color: #fff;
}

.mdm-description-area {
  flex: 1;
  max-width: 600px;
}

.mdm-desc {
  font-size: 20px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.mdm-disclaimer {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 30px;
  font-style: italic;
}

.mdm-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.mdm-btn-primary {
  background-color: #38bdf8 !important;
  color: #000 !important;
  font-weight: bold;
  padding: 15px 30px !important;
  border-radius: 30px !important;
  border: none;
  text-decoration: none;
}

.mdm-btn-link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.mdm-btn-link:hover {
  color: #ef4444;
}

.mdm-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.mdm-tab {
  color: #9ca3af;
  text-decoration: none;
  padding-bottom: 10px;
  position: relative;
}

.mdm-tab.active {
  color: #fff;
  font-weight: bold;
}

.mdm-tab.active::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ef4444;
}

.mdm-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.mdm-card {
  flex: 0 0 calc(33.333% - 14px);
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  position: relative;
  padding: 20px;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.mdm-card:hover {
  transform: translateY(-5px);
  color: white;
}

.mdm-card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  color: #ef4444;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mdm-card-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mdm-team {
  text-align: center;
  flex: 1;
}

.mdm-team img {
  height: 30px;
  width: auto;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.mdm-team h3 {
  margin: 0;
  font-size: 24px;
  font-family: Impact, sans-serif;
  color: white;
  letter-spacing: 1px;
}

.mdm-vs {
  font-size: 16px;
  font-weight: bold;
  color: white;
  font-style: italic;
}

@media (max-width: 1024px) {
  .mdm-header {
    flex-direction: column;
    gap: 30px;
  }
  .mdm-title {
    font-size: 60px;
    br {
      display: none;
    }
  }
}

@media (max-width: 768px) {
  .mdm-card {
    flex: 0 0 85%;
  }
  .most-demanded-matches-section {
    padding: 40px 20px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
  }
}

.match-hero-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 60px 20px;
  margin-bottom: 0;
  margin-top: 0;
}

.match-back-btn {
  position: absolute;
  top: 20px;
  left: 40px;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.match-back-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.match-hero-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.match-teams-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.team-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.team-flag {
  width: 60px;
  height: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.match-teams-display .team-name {
  color: white;
  font-size: 48px;
  font-weight: 800;
  margin: 0;
  font-family: Impact, sans-serif;
  letter-spacing: 2px;
}

.match-teams-display .vs-badge {
  font-size: 24px;
  font-weight: bold;
  font-style: italic;
  opacity: 0.8;
}

.match-group {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.8;
}

.match-meta-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 16px;
}

.match-meta-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Purchase Section Layout */
.match-purchase-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: transparent;
}

.match-hospitality-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: #f1f3f6;
  padding: 10px;
  border-radius: 40px;
  margin-bottom: 40px;
  transform: translateY(-50px);
  z-index: 10;
  position: relative;
}

.hospitality-tab {
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
}

.hospitality-tab.active {
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #000;
}

.hospitality-tab .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.pitchside {
  background: #38bdf8;
}
.dot.vip {
  background: #0f766e;
}
.dot.trophy {
  background: #991b1b;
}
.dot.champions {
  background: #ea580c;
}
.dot.pavilion {
  background: #f59e0b;
}

.compare-btn {
  margin-left: auto;
  margin-right: 10px;
  border: 1px solid #333;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.match-purchase-layout {
  display: flex;
  gap: 60px;
  margin-top: -20px; /* Offset tabs transform */
}

@media (max-width: 768px) {
  .match-purchase-layout {
    flex-direction: column;
  }
}

.match-purchase-left {
  flex: 1;
}

.match-purchase-left h1.hospitality-title {
  font-size: 56px;
  font-weight: 900;
  font-family: Impact, sans-serif;
  line-height: 1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hospitality-desc {
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 16px;
}

.hospitality-options-form {
  margin-bottom: 20px;
}

.seating-section-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.seating-section-wrap select {
  padding: 14px;
  border-radius: 30px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: #fff;
  cursor: pointer;
}

.selected-product-summary {
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.match-purchase-right {
  flex: 1;
}

.seating-map-title {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  font-family: Impact, sans-serif;
  margin-bottom: 20px;
}

.seating-map-container {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.map-placeholder {
  width: 300px;
  height: 200px;
  border: 10px solid #eee;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #fff;
}

.map-placeholder::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 100px;
  border: 6px solid #eee;
  border-radius: 50px;
}

.map-placeholder span {
  z-index: 2;
  font-weight: bold;
  color: #999;
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
}

/* Adjust standard Add to cart button */
.add-to-cart-wrapper .button,
.add-to-cart-wrapper button[type="submit"] {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border-radius: 30px;
  background-color: #f1f1f1;
  color: #999;
  text-align: center;
  border: none;
  cursor: not-allowed;
}

/* When not disabled */
.add-to-cart-wrapper .button:not(.disabled) {
  background-color: #000;
  color: #fff;
  cursor: pointer;
}

.add-to-cart-wrapper .quantity {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 5px 15px;
  width: fit-content;
}

.add-to-cart-wrapper .quantity input {
  border: none;
  text-align: center;
  width: 50px;
}

/* Ticket List Archive Layout */
.custom-tickets-layout {
  padding: 40px 0;
}

/* Filters Row */
.custom-tickets-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.custom-tickets-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-dropdown button {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.filter-dropdown button:hover {
  border-color: #aaa;
}

.custom-tickets-view-toggles {
  display: flex;
  gap: 15px;
}

.custom-tickets-view-toggles button {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.custom-tickets-view-toggles button.active {
  color: #00877a; /* teal matching screenshot */
}

/* Meta Row */
.custom-tickets-meta-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
}

.hide-unavailable-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}

.sort-by {
  font-weight: 500;
  color: #00877a;
  cursor: pointer;
}

/* Tickets List */
.custom-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-ticket-row {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px 24px 16px 0; /* Left padding is handled by the color bar & inner elements */
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.ticket-status-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 25px; /* thick color block */
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  z-index: 1;
}

/* Color codes */
.bg-gray { background-color: #bcc6ce; }
.bg-blue-light { background-color: #8da4d0; }
.bg-red { background-color: #d14747; }
.bg-yellow { background-color: #d8ea62; }
.bg-blue { background-color: #1a6fb0; }

.ticket-col-match {
  flex: 2;
  display: flex;
  align-items: center;
  padding-left: 10px; /* Overlaps status bar slightly or sits next to it */
  position: relative;
  z-index: 2;
}

.ticket-match-num {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  margin-right: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ticket-group-name {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.ticket-teams {
  font-size: 16px;
  font-weight: bold;
  color: #111;
  display: flex;
  align-items: center;
}

.ticket-teams span.vs {
  font-weight: normal;
  color: #888;
  margin: 0 8px;
  font-size: 14px;
}

.ticket-flag {
  font-size: 20px;
  margin-right: 8px;
  line-height: 1;
}

.ticket-col-date,
.ticket-col-location {
  flex: 1.5;
  display: flex;
  flex-direction: column;
}

.ticket-date-main,
.ticket-loc-main {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-bottom: 2px;
}

.ticket-date-sub,
.ticket-loc-sub {
  font-size: 14px;
  color: #777;
}

.ticket-col-price {
  flex: 1.5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  gap: 15px;
}

.ticket-unavailable-msg {
  font-size: 13px;
  color: #888;
  max-width: 150px;
  line-height: 1.3;
}

.ticket-price-wrap {
  text-align: right;
  line-height: 1.2;
}

.starting-at {
  font-size: 12px;
  color: #666;
}

.price-val {
  font-size: 16px;
  font-weight: bold;
  color: #111;
}

.usd-pp {
  font-size: 12px;
  color: #666;
}

.ticket-action-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.2s;
  color: #333;
  text-decoration: none;
}

.ticket-action-btn:hover {
  border-color: #333;
}

@media (max-width: 900px) {
  .custom-ticket-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px 16px 40px;
    gap: 12px;
  }
  .ticket-col-match, .ticket-col-date, .ticket-col-location, .ticket-col-price {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }
  .ticket-col-price {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .ticket-price-wrap {
    text-align: left;
  }
}
