/*
Theme Name: TCGMX
Theme URI: https://tcgmx.com.mx
Author: TCGMX
Description: Build on Twenty Twenty-Four
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.0
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tcgmx
Tags: tcg
*/
body {
    background-image: 
        linear-gradient(90deg, #f9f9f9 0%, #f0f0f0 100%),
        url('https://tcgmx.com.mx/wp-content/uploads/2025/06/cartas-logos.png');
    background-repeat: repeat;
    background-size: auto;
    background-blend-mode: soft-light; /* blends gradient & image */
}
.centrar {
    text-align: center;
}

#card-preview {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
    max-height: 300px;
    border: 1px solid #ccc;
}
.tcgmx-hero {
    background: linear-gradient(to bottom, #0f0f0f, #1a1a1a);
    color: #e0f7ff;
    padding: 15px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

.tcgmx-hero h1 {
   font-size: 2.2em;
    margin-bottom: 20px;
    color: #66ccff;
    text-shadow: 0 0 10px #00ccff;
}

.tcgmx-hero p {
    font-size: 1.2em;
    margin: 0 auto 20px auto;
    max-width: 700px;
}

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

.tcgmx-benefits li {
    margin: 10px 0;
    font-weight: 500;
}

.tcgmx-buttons {
    margin-top: 30px;
}

.tcgmx-buttons .btn-primary,
.tcgmx-buttons .btn-secondary {
    text-decoration: none;
    padding: 12px 24px;
    margin: 0 10px;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}

.btn-primary {
    background: #00ccff;
    color: #000;
    box-shadow: 0 0 15px #00ccff;
}

.btn-primary:hover {
    background: #00aacc;
    color: #fff;
}

.btn-secondary {
    background: #222;
    border: 1px solid #00ccff;
    color: #00ccff;
}

.btn-secondary:hover {
    background: #00ccff;
    color: #000;
}

@media (max-width: 600px) {
    .wp-block-spacer{
        display: none;
    }
    .tcgmx-buttons .btn-primary,
    .tcgmx-buttons .btn-secondary {
        display: block;
        margin: 10px auto;
    }
      .vendor-toolbar {
        font-size: 13px;
        padding: 6px 8px;
    }
      .vendor-link {
        padding: 5px 10px;
    }
}
.vendor-toolbar {
  background-color: #0d1b2a;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.vendor-toolbar .vendor-label {
  font-weight: bold;
  white-space: nowrap;
}

.vendor-link {
  background-color: #0077cc;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.3s ease;
}

.vendor-link:hover {
  background-color: #005fa3;
}
#wcfm-header{
    display: none;
}
.form-inline {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.form-inline label {
    min-width: 120px;
    font-weight: bold;
}
.form-inline select,
.form-inline input {
    flex: 1;
    width: 50%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Main layout styling */
.card-sidebar-layout {
    display: flex;
    flex-wrap: nowrap;
    max-width: fit-content;
}

/* Sidebar */
.card-sidebar-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.sidebar-left {
    width: 250px;
}

/* Product area */
.products-right {
    flex: 1;
}
.card-toggle-button{
    display: none;
}
.selected-category-label{
    display: none;
    padding: 8px;
}
.custom-card-thumb {
    width: 200px;
    height: auto;
    border-radius: 10px;
}
.card-category-list li {
    margin-bottom: 10px;
    list-style: none;
}
.card-product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.card-product-list li {
    background-color: lightgrey;
    padding: 5px;
    margin: 5px;
    border-radius: 10px;
    max-width: min-content;
    list-style: none;
    text-align: center;
}
.card-sidebar-search {
    margin: auto;
    display: flex;
    align-items: center;
}

.card-sidebar-search input[type="search"] {
    flex: 1;
    padding: 6px;
    font-size: 14px;
}

.card-sidebar-search button {
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
}
.card-pagination{
    text-align: center;
}
.card-page-btn.active {
    background-color: #0073aa;
    color: #fff;
    font-weight: bold;
    border: 1px solid #005fa3;
}
.carousel-wrapper {
    max-width: 100%;
    margin: 0 auto;
}
/* Responsive: collapse sidebar on small screens */
@media (max-width: 768px) {
    .selected-category-label{
        display: inline;
    }
    .card-sidebar-layout{
        display: block;
    }
    .sidebar-left {
        width: 100%;
        display: none;
        margin-bottom: 20px;
    }

    .sidebar-left.active {
        display: block;
    }
    .card-product-list{
        padding: 0;
    }

    .card-toggle-button {
        display: inline-block;
        margin-bottom: 10px;
        background-color: #0073aa;
        color: white;
        padding: 8px 16px;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }
    .custom-card-thumb {
        width: 130px;
        height: auto;
    }
}