/* ============================================================
   TROCHA — Custom WordPress Theme
   Estética foro antiguo / portal urbano / retro internet
   ============================================================ */

/* --- RESET & BASE ------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #d4cdc0;
    background-color: #0a0a0a;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.008) 2px,
            rgba(255,255,255,0.008) 4px
        );
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- NOISE OVERLAY ----------------------------------------- */
.trocha-noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    animation: trocha-noise-shift 0.5s steps(4) infinite;
}

@keyframes trocha-noise-shift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-2px, 2px); }
    50%  { transform: translate(2px, -2px); }
    75%  { transform: translate(-1px, -1px); }
    100% { transform: translate(0, 0); }
}

/* --- LINKS ------------------------------------------------- */
a {
    color: #c49a3c;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #d4cdc0;
}
a:focus-visible {
    outline: 2px solid #c49a3c;
    outline-offset: 2px;
}

/* --- IMAGES ------------------------------------------------ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- CONTAINER --------------------------------------------- */
.trocha-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.trocha-container--narrow {
    max-width: 800px;
}

/* --- SECTION ----------------------------------------------- */
.trocha-section {
    padding: 5rem 0;
    border-bottom: 1px solid #2a1f15;
}
.trocha-section:last-child {
    border-bottom: none;
}

.trocha-section__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.15em;
    color: #5c3a21;
    margin-bottom: 3rem;
    text-align: center;
}

.trocha-section__action {
    text-align: center;
    margin-top: 3rem;
}

.trocha-page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    letter-spacing: 0.1em;
    color: #c49a3c;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.trocha-page-subtitle {
    text-align: center;
    color: #8a7a6a;
    margin-bottom: 3rem;
    font-size: 0.875rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.trocha-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(4px);
    border-bottom: 2px solid #2a1f15;
}

.trocha-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
}

.trocha-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #d4cdc0;
    letter-spacing: 0.2em;
    line-height: 1;
}
.trocha-logo:hover {
    color: #c49a3c;
}

.trocha-tagline {
    display: none;
}

.trocha-header__right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* --- NAV --------------------------------------------------- */
.trocha-nav__list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.trocha-nav__list li a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.125rem;
    letter-spacing: 0.1em;
    color: #8a7a6a;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.trocha-nav__list li a:hover {
    color: #c49a3c;
    border-color: #2a1f15;
}

/* --- CART -------------------------------------------------- */
.trocha-cart__link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    color: #8a7a6a;
    letter-spacing: 0.1em;
}
.trocha-cart__link:hover {
    color: #c49a3c;
}
.trocha-cart-count {
    color: #c49a3c;
}

/* --- NAV TOGGLE (mobile) ----------------------------------- */
.trocha-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.trocha-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #d4cdc0;
    transition: all 0.3s;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.trocha-marquee {
    overflow: hidden;
    background: #1a1512;
    border-bottom: 1px solid #2a1f15;
    padding: 0.5rem 0;
}
.trocha-marquee__inner {
    display: flex;
    white-space: nowrap;
    animation: trocha-marquee 30s linear infinite;
}
.trocha-marquee__inner span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: #5c3a21;
    padding: 0 2rem;
}

@keyframes trocha-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* ============================================================
   HERO
   ============================================================ */
.trocha-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #2a1f15;
    overflow: hidden;
}

.trocha-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(90,107,61,0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 20% 80%, rgba(196,154,60,0.05) 0%, transparent 50%);
}

.trocha-hero__content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.trocha-hero__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 15vw, 12rem);
    letter-spacing: 0.08em;
    color: #d4cdc0;
    line-height: 1;
    margin-bottom: 1rem;
}

.trocha-hero__sub {
    font-size: 1.25rem;
    color: #8a7a6a;
    margin-bottom: 3rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.trocha-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trocha-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.25rem;
    color: #5c3a21;
    animation: trocha-bounce 2s ease-in-out infinite;
}

@keyframes trocha-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.trocha-btn {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    padding: 0.875rem 2rem;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid #2a1f15;
    background: transparent;
    color: #d4cdc0;
    transition: all 0.25s;
    text-align: center;
}
.trocha-btn:hover {
    background: #c49a3c;
    color: #0a0a0a;
    border-color: #c49a3c;
}

.trocha-btn--primary {
    background: #2a1f15;
    color: #d4cdc0;
    border-color: #2a1f15;
}
.trocha-btn--primary:hover {
    background: #c49a3c;
    border-color: #c49a3c;
    color: #0a0a0a;
}

.trocha-btn--ghost {
    border-color: #3a2a1a;
    color: #8a7a6a;
}
.trocha-btn--ghost:hover {
    border-color: #c49a3c;
    color: #c49a3c;
    background: transparent;
}

.trocha-btn--small {
    font-size: 0.9375rem;
    padding: 0.6rem 1.25rem;
}

.trocha-btn--full {
    width: 100%;
}

/* ============================================================
   COLLECTIONS GRID (Home)
   ============================================================ */
.trocha-collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.trocha-collection-card {
    background: #1a1512;
    border: 1px solid #2a1f15;
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s;
}
.trocha-collection-card:hover {
    border-color: #c49a3c;
    transform: translateY(-4px);
}

.trocha-collection-card__stamp {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #c49a3c;
    border: 1px solid #c49a3c;
    padding: 0.25rem 0.5rem;
    transform: rotate(5deg);
}

.trocha-collection-card__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    color: #d4cdc0;
}

.trocha-collection-card__desc {
    color: #8a7a6a;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.trocha-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.trocha-product-card {
    background: #1a1512;
    border: 1px solid #2a1f15;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.trocha-product-card:hover {
    border-color: #5c3a21;
    transform: translateY(-2px);
}

.trocha-product-card__stamp {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: #0a0a0a;
    background: #c49a3c;
    padding: 0.2rem 0.5rem;
}

.trocha-product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #15100c;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trocha-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.trocha-product-card:hover .trocha-product-card__image img {
    transform: scale(1.05);
}

.trocha-product-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.trocha-product-card__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: #d4cdc0;
    line-height: 1.2;
}
.trocha-product-card__title a {
    color: inherit;
}
.trocha-product-card__title a:hover {
    color: #c49a3c;
}

.trocha-product-card__price {
    font-size: 0.9375rem;
    color: #c49a3c;
}

.trocha-product-card .trocha-btn {
    margin-top: auto;
}

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.trocha-single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.trocha-single-product__gallery {
    position: sticky;
    top: 6rem;
}

.trocha-single-product__meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #5c3a21;
}

.trocha-single-product__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 0.08em;
    color: #d4cdc0;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.trocha-single-product__price {
    font-size: 1.5rem;
    color: #c49a3c;
    margin-bottom: 1.5rem;
}

.trocha-single-product__description {
    margin-bottom: 2rem;
    color: #8a7a6a;
}

/* Quantity + Add to Cart inline */
.trocha-single-product .quantity {
    display: inline-block;
    margin-bottom: 1rem;
}
.trocha-single-product .quantity input {
    font-family: 'JetBrains Mono', monospace;
    background: #0a0a0a;
    border: 1px solid #2a1f15;
    color: #d4cdc0;
    padding: 0.5rem;
    width: 4rem;
    text-align: center;
}
.trocha-single-product .quantity input:focus {
    border-color: #c49a3c;
    outline: none;
}

.trocha-single-product .single_add_to_cart_button {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    padding: 0.875rem 2.5rem;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid #c49a3c;
    background: #c49a3c;
    color: #0a0a0a;
    transition: all 0.25s;
    margin-bottom: 1rem;
}
.trocha-single-product .single_add_to_cart_button:hover {
    background: transparent;
    color: #c49a3c;
}

/* Tabs */
.trocha-single-product__tabs {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #2a1f15;
}
.trocha-single-product__tabs .woocommerce-tabs {
    border: 1px solid #2a1f15;
}
.trocha-single-product__tabs .woocommerce-tabs ul.tabs {
    display: flex;
    list-style: none;
    border-bottom: 1px solid #2a1f15;
    background: #15100c;
}
.trocha-single-product__tabs .woocommerce-tabs ul.tabs li {
    margin: 0;
}
.trocha-single-product__tabs .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: #5c3a21;
    border-right: 1px solid #2a1f15;
}
.trocha-single-product__tabs .woocommerce-tabs ul.tabs li.active a {
    color: #c49a3c;
    background: #0a0a0a;
}
.trocha-single-product__tabs .woocommerce-tabs .panel {
    padding: 1.5rem;
    color: #8a7a6a;
    font-size: 0.875rem;
}

/* ============================================================
   CART
   ============================================================ */
.trocha-cart-form {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.trocha-cart-table {
    border-top: 1px solid #2a1f15;
}

.trocha-cart-row {
    display: grid;
    grid-template-columns: 80px 1fr 80px 80px 40px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #2a1f15;
    font-size: 0.875rem;
}

.trocha-cart-row__image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.trocha-cart-row__name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #d4cdc0;
}

.trocha-cart-row__quantity input {
    font-family: 'JetBrains Mono', monospace;
    background: #0a0a0a;
    border: 1px solid #2a1f15;
    color: #d4cdc0;
    padding: 0.35rem;
    width: 3.5rem;
    text-align: center;
}

.trocha-cart-row__price {
    color: #c49a3c;
}

.trocha-remove {
    color: #5c3a21;
    font-size: 1.25rem;
}
.trocha-remove:hover {
    color: #8b3a3a;
}

.trocha-cart-totals {
    background: #1a1512;
    border: 1px solid #2a1f15;
    padding: 1.5rem;
}

.trocha-cart-totals__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #c49a3c;
}

.trocha-cart-totals .shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.trocha-cart-totals .shop_table th,
.trocha-cart-totals .shop_table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid #2a1f15;
    font-size: 0.875rem;
}
.trocha-cart-totals .shop_table th {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.08em;
    color: #5c3a21;
    text-align: left;
}
.trocha-cart-totals .shop_table td {
    text-align: right;
    color: #d4cdc0;
}
.trocha-cart-totals .shop_table .order-total td {
    color: #c49a3c;
    font-size: 1rem;
}

.trocha-cart-totals .wc-proceed-to-checkout {
    margin-top: 1rem;
}
.trocha-cart-totals .wc-proceed-to-checkout .checkout-button {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    padding: 0.875rem;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    border: 2px solid #c49a3c;
    background: #c49a3c;
    color: #0a0a0a;
    transition: all 0.25s;
}
.trocha-cart-totals .wc-proceed-to-checkout .checkout-button:hover {
    background: transparent;
    color: #c49a3c;
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.trocha-checkout-form .form-row {
    margin-bottom: 1rem;
}
.trocha-checkout-form label {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9375rem;
    letter-spacing: 0.08em;
    color: #8a7a6a;
    margin-bottom: 0.25rem;
}
.trocha-checkout-form input,
.trocha-checkout-form select,
.trocha-checkout-form textarea {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    background: #0a0a0a;
    border: 1px solid #2a1f15;
    color: #d4cdc0;
    padding: 0.625rem 0.75rem;
    width: 100%;
    transition: border-color 0.2s;
}
.trocha-checkout-form input:focus,
.trocha-checkout-form select:focus,
.trocha-checkout-form textarea:focus {
    border-color: #c49a3c;
    outline: none;
}

.trocha-checkout-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.trocha-order-review {
    background: #1a1512;
    border: 1px solid #2a1f15;
    padding: 1.5rem;
}

.trocha-order-review__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #c49a3c;
}

.trocha-order-review .shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.trocha-order-review .shop_table th,
.trocha-order-review .shop_table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid #2a1f15;
    font-size: 0.875rem;
}
.trocha-order-review .shop_table th {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.08em;
    color: #5c3a21;
    text-align: left;
}
.trocha-order-review .shop_table td {
    text-align: right;
    color: #d4cdc0;
}

.trocha-order-review #payment {
    background: transparent;
    border: 1px solid #2a1f15;
}
.trocha-order-review #payment .payment_methods {
    list-style: none;
    padding: 1rem;
    border-bottom: 1px solid #2a1f15;
}
.trocha-order-review #payment .payment_methods li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
}
.trocha-order-review #payment .payment_box {
    background: #0a0a0a;
    border: 1px solid #2a1f15;
    padding: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #8a7a6a;
}
.trocha-order-review #place_order {
    display: block;
    width: 100%;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.375rem;
    letter-spacing: 0.12em;
    padding: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid #c49a3c;
    background: #c49a3c;
    color: #0a0a0a;
    transition: all 0.25s;
}
.trocha-order-review #place_order:hover {
    background: transparent;
    color: #c49a3c;
}

/* ============================================================
   ABOUT
   ============================================================ */
.trocha-about-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.trocha-about-header__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    color: #d4cdc0;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.trocha-about-header__stamp {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    color: #c49a3c;
    border: 2px solid #c49a3c;
    padding: 0.5rem 1rem;
    transform: rotate(-3deg);
}

.trocha-about-content {
    color: #b0a498;
    line-height: 1.8;
}

.trocha-about-content p {
    margin-bottom: 1.5rem;
}

.trocha-lead {
    font-size: 1.25rem;
    color: #c49a3c;
    border-left: 3px solid #c49a3c;
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.trocha-about-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    color: #d4cdc0;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.trocha-separator {
    text-align: center;
    color: #5c3a21;
    font-size: 1.25rem;
    letter-spacing: 0.5em;
    margin: 3rem 0;
}

.trocha-signoff {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #2a1f15;
    font-size: 1.125rem;
    color: #c49a3c;
}

/* ============================================================
   COLLECTIONS PAGE
   ============================================================ */
.trocha-collections-full {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.trocha-collection-full__header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
    background: #1a1512;
    border-left: 4px solid;
    padding: 2rem;
}

.trocha-collection-full__seal {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 0.15em;
    color: #d4cdc0;
    text-align: center;
    line-height: 1.2;
}

.trocha-collection-full__info h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    color: #d4cdc0;
    margin-bottom: 0.5rem;
}

.trocha-collection-full__info p {
    color: #8a7a6a;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

/* ============================================================
   BLOCKQUOTE
   ============================================================ */
.trocha-blockquote {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid #2a1f15;
    background: #15100c;
}
.trocha-blockquote p {
    font-size: 1.5rem;
    font-style: italic;
    color: #d4cdc0;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.trocha-blockquote cite {
    font-size: 0.875rem;
    color: #5c3a21;
    font-style: normal;
}

/* ============================================================
   404
   ============================================================ */
.trocha-section--404 {
    text-align: center;
    padding: 8rem 0;
}

.trocha-404__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 8rem);
    color: #5c3a21;
    margin-bottom: 1.5rem;
}

.trocha-404__text {
    color: #8a7a6a;
    margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.trocha-footer {
    background: #0a0a0a;
    border-top: 2px solid #1a1512;
    padding: 3rem 0 2rem;
}

.trocha-footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.trocha-footer__logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.15em;
    color: #5c3a21;
    display: block;
    margin-bottom: 0.5rem;
}

.trocha-footer__text {
    color: #5c3a21;
    font-size: 0.875rem;
}

.trocha-footer__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.12em;
    color: #c49a3c;
    margin-bottom: 1rem;
}

.trocha-footer__list {
    list-style: none;
}
.trocha-footer__list li {
    margin-bottom: 0.5rem;
}
.trocha-footer__list a {
    color: #5c3a21;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}
.trocha-footer__list a:hover {
    color: #c49a3c;
}

.trocha-footer__micro {
    color: #2a1f15;
    font-size: 0.75rem;
    line-height: 1.6;
}

/* ============================================================
   GLITCH EFFECT
   ============================================================ */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glitch::before {
    color: #8b3a3a;
    z-index: -1;
    animation: trocha-glitch-1 3s infinite linear alternate-reverse;
}

.glitch::after {
    color: #5a6b3d;
    z-index: -1;
    animation: trocha-glitch-2 3s infinite linear alternate-reverse;
}

@keyframes trocha-glitch-1 {
    0%   { transform: translate(0); }
    20%  { transform: translate(-2px, 1px); }
    40%  { transform: translate(2px, -1px); }
    60%  { transform: translate(-1px, 2px); }
    80%  { transform: translate(1px, -2px); }
    100% { transform: translate(0); }
}

@keyframes trocha-glitch-2 {
    0%   { transform: translate(0); }
    20%  { transform: translate(2px, -1px); }
    40%  { transform: translate(-2px, 1px); }
    60%  { transform: translate(1px, -2px); }
    80%  { transform: translate(-1px, 2px); }
    100% { transform: translate(0); }
}

/* ============================================================
   WOOCOMMERCE MESSAGES
   ============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #1a1512 !important;
    border: 1px solid #2a1f15 !important;
    color: #d4cdc0 !important;
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.875rem !important;
    border-top: 3px solid #c49a3c !important;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    color: #c49a3c !important;
}
.woocommerce-error {
    border-top-color: #8b3a3a !important;
}
.woocommerce-error::before {
    color: #8b3a3a !important;
}

.woocommerce-message a,
.woocommerce-info a {
    color: #c49a3c !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.woocommerce-pagination,
.trocha-pagination {
    margin-top: 3rem;
    text-align: center;
}
.woocommerce-pagination ul.page-numbers,
.trocha-pagination .page-numbers {
    display: inline-flex;
    gap: 0.25rem;
    list-style: none;
}
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span,
.trocha-pagination a, .trocha-pagination span {
    display: block;
    padding: 0.5rem 0.75rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    border: 1px solid #2a1f15;
    color: #8a7a6a;
    transition: all 0.2s;
}
.woocommerce-pagination ul.page-numbers li a:hover,
.trocha-pagination a:hover {
    border-color: #c49a3c;
    color: #c49a3c;
}
.woocommerce-pagination ul.page-numbers li span.current,
.trocha-pagination .current {
    border-color: #c49a3c;
    background: #c49a3c;
    color: #0a0a0a;
}

/* ============================================================
   FILTERS / ORDERING
   ============================================================ */
.woocommerce-ordering {
    margin-bottom: 2rem;
}
.woocommerce-ordering select {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    background: #0a0a0a;
    border: 1px solid #2a1f15;
    color: #d4cdc0;
    padding: 0.5rem 1.5rem 0.5rem 0.75rem;
    cursor: pointer;
}

.woocommerce-result-count {
    font-size: 0.8125rem;
    color: #5c3a21;
    margin-bottom: 0.5rem;
}

/* ============================================================
   CURSOR (desktop only)
   ============================================================ */
.trocha-cursor {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #c49a3c;
    border-radius: 50%;
    position: fixed;
    top: -10px;
    left: -10px;
    z-index: 9998;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

@media (hover: hover) and (pointer: fine) {
    .trocha-cursor {
        display: block;
    }
    body {
        cursor: none;
    }
    a, button, .trocha-btn, .trocha-product-card, .trocha-collection-card {
        cursor: none;
    }
    a:hover ~ .trocha-cursor,
    button:hover ~ .trocha-cursor {
        width: 30px;
        height: 30px;
        border-color: #d4cdc0;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .trocha-single-product {
        grid-template-columns: 1fr;
    }
    .trocha-single-product__gallery {
        position: static;
    }
    .trocha-cart-form {
        grid-template-columns: 1fr;
    }
    .trocha-checkout-fields {
        grid-template-columns: 1fr;
    }
    .trocha-nav__list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid #2a1f15;
        padding: 1rem;
    }
    .trocha-nav__list.active {
        display: flex;
    }
    .trocha-nav-toggle {
        display: flex;
    }
    .trocha-hero__title {
        font-size: clamp(3rem, 12vw, 6rem);
    }
}

@media (max-width: 768px) {
    .trocha-section {
        padding: 3rem 0;
    }
    .trocha-page-title {
        font-size: 2.5rem;
    }
    .trocha-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .trocha-collection-full__header {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    .trocha-cart-row {
        grid-template-columns: 60px 1fr;
        gap: 0.75rem;
    }
    .trocha-cart-row__quantity,
    .trocha-cart-row__price,
    .trocha-cart-row__remove {
        grid-column: 2;
    }
}

@media (max-width: 480px) {
    .trocha-products-grid {
        grid-template-columns: 1fr;
    }
    .trocha-hero__actions {
        flex-direction: column;
    }
    .trocha-btn {
        width: 100%;
    }
}

/* ============================================================
   ELEMENTOR SUPPORT
   ============================================================ */
.trocha-elementor-content {
    padding: 0;
}

.trocha-elementor-content .elementor-section {
    margin-left: auto;
    margin-right: auto;
}

.trocha-elementor-content .elementor-element {
    color: #d4cdc0;
    font-family: 'JetBrains Mono', monospace;
}

.trocha-elementor-content h1,
.trocha-elementor-content h2,
.trocha-elementor-content h3,
.trocha-elementor-content .elementor-heading-title {
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 0.08em;
    color: #d4cdc0 !important;
}

.trocha-elementor-content p,
.trocha-elementor-content .elementor-text-editor {
    color: #8a7a6a;
    line-height: 1.8;
}

.trocha-elementor-content a {
    color: #c49a3c;
}

.trocha-elementor-content a:hover {
    color: #d4cdc0;
}

.trocha-elementor-content .elementor-button {
    background: #2a1f15 !important;
    border: 2px solid #2a1f15 !important;
    color: #d4cdc0 !important;
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 0 !important;
    transition: all 0.25s;
}

.trocha-elementor-content .elementor-button:hover {
    background: #c49a3c !important;
    border-color: #c49a3c !important;
    color: #0a0a0a !important;
}

.elementor-editor-active .trocha-hero,
.elementor-editor-active .trocha-noise,
.elementor-editor-active .trocha-cursor {
    display: none;
}
