/*
Theme Name: Camisetas Pinguino Sport
Theme URI: https://camisetaspinguino.com/
Author: Camisetas Pinguino
Description: Tema deportivo para catalogo y tienda de camisetas de futbol, compatible con WooCommerce.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: camisetas-pinguino-sport
*/

:root {
    --cp-black: #101315;
    --cp-ink: #171717;
    --cp-muted: #6c6257;
    --cp-paper: #fffaf0;
    --cp-cream: #f2e8d8;
    --cp-line: #d9ccba;
    --cp-gold: #b99459;
    --cp-blue: #1f5d99;
    --cp-shadow: 0 18px 38px rgba(16, 19, 21, .18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--cp-ink);
    background: var(--cp-paper);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

body.admin-bar .cp-header {
    top: 32px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.cp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(360px, 520px) 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 72px;
    padding: 0 clamp(16px, 3vw, 42px);
    color: var(--cp-paper);
    background: var(--cp-black);
    border-bottom: 1px solid rgba(255, 250, 240, .12);
}

.cp-header-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.cp-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 950;
    text-transform: uppercase;
}

.cp-logo {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--cp-black);
    background: var(--cp-paper);
    border: 2px solid var(--cp-gold);
    font-size: 18px;
    font-weight: 950;
}

.cp-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.cp-brand .custom-logo {
    width: 50px;
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}

.cp-brand-text {
    display: grid;
    min-width: 0;
    line-height: 1;
}

.cp-brand-text span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-brand-text small {
    margin-top: 5px;
    color: var(--cp-gold);
    font-size: 11px;
}

.cp-search {
    display: grid;
    grid-template-columns: 1fr 42px;
    width: min(280px, 36vw);
    min-width: 190px;
    background: rgba(255, 250, 240, .96);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 4px;
}

.cp-search input {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    color: var(--cp-ink);
    background: transparent;
    border: 0;
    outline: 0;
}

.cp-search button {
    display: grid;
    place-items: center;
    color: var(--cp-ink);
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(16,19,21,.12);
    cursor: pointer;
    font-size: 20px;
}

.cp-nav {
    min-width: 0;
}

.cp-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.55vw, 26px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.cp-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 72px;
    color: rgba(255, 250, 240, .82);
    border-bottom: 3px solid transparent;
    font-size: clamp(11px, .72vw, 14px);
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.cp-nav a:hover,
.cp-nav .current-menu-item > a {
    color: var(--cp-paper);
    border-bottom-color: var(--cp-gold);
}

.cp-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.cp-menu-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--cp-paper);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 19px;
    font-weight: 900;
}

.cp-menu-toggle,
.cp-mobile-nav {
    display: none;
}

.cp-promo-line {
    overflow: hidden;
    color: var(--cp-paper);
    background: #168eea;
    border-bottom: 1px solid rgba(16,19,21,.12);
}

@keyframes cp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.cp-promo-track {
    display: flex;
    width: max-content;
    gap: clamp(40px, 6vw, 100px);
    padding: 9px 0;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    animation: cp-marquee 20s linear infinite;
}

.cp-promo-line:hover .cp-promo-track {
    animation-play-state: paused;
}

.cp-promo-track span::before {
    content: "+";
    margin-right: 8px;
    color: #fff5d6;
}

/* Hero imagen lista de precios */
.cp-hero-img-wrap {
    width: 100%;
    border-bottom: 1px solid var(--cp-line);
}

.cp-hero-fullimg {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero legado (por si se reusa) */
.cp-hero {
    position: relative;
    display: grid;
    min-height: clamp(510px, 45vw, 780px);
    align-items: end;
    overflow: hidden;
    background-color: var(--cp-cream);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 1px solid var(--cp-line);
}

.cp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 250, 240, .08), transparent 45%);
    pointer-events: none;
}

.cp-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1480px, 88vw);
    margin: 0 auto;
    padding: 0 0 clamp(42px, 5vw, 78px);
}

.cp-hero .cp-kicker,
.cp-hero h1,
.cp-hero p {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.cp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-button,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    color: var(--cp-paper) !important;
    background: var(--cp-black) !important;
    border: 1px solid var(--cp-black) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 950;
    text-transform: uppercase;
}

.cp-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    color: var(--cp-paper) !important;
    background: #2a2d2f !important;
}

.cp-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 250, 240, .92);
    border-bottom: 1px solid var(--cp-line);
}

.cp-strip-item {
    padding: 18px 20px;
    text-align: center;
    border-right: 1px solid var(--cp-line);
}

.cp-strip-item:last-child {
    border-right: 0;
}

.cp-strip-item strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
}

.cp-strip-item span {
    display: block;
    margin-top: 4px;
    color: var(--cp-muted);
    font-size: 13px;
}

.cp-section,
.woocommerce-tabs,
.related.products,
.upsells.products {
    width: min(1440px, 92vw);
    margin: 0 auto;
    padding: clamp(34px, 4vw, 62px) 0;
}

.cp-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.cp-section h2,
.woocommerce-products-header__title {
    margin: 0;
    font-size: clamp(28px, 4vw, 54px);
    line-height: .95;
    font-weight: 950;
    text-transform: uppercase;
}

.related.products h2,
.upsells.products h2 {
    margin: 0 0 18px;
    font-size: clamp(18px, 2vw, 28px);
    line-height: .95;
    font-weight: 950;
    text-transform: uppercase;
}

.cp-section-head a {
    font-size: 13px;
    font-weight: 950;
    text-decoration: underline;
    text-transform: uppercase;
}

.cp-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.cp-category-card {
    position: relative;
    display: grid;
    min-height: 252px;
    align-items: end;
    overflow: hidden;
    padding: 20px;
    color: var(--cp-paper);
    background-color: #171717;
    background-image: url("assets/images/hero-retro-camisetas.png");
    background-size: 185%;
    background-position: 55% 46%;
    border-radius: 8px;
    box-shadow: var(--cp-shadow);
}

.cp-category-card:nth-child(2) {
    background-position: 44% 46%;
}

.cp-category-card:nth-child(3) {
    background-position: 62% 46%;
}

.cp-category-card:nth-child(4) {
    background-position: 78% 44%;
}

.cp-category-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.cp-category-photo:hover img {
    transform: scale(1.04);
}

.cp-category-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.06) 0 36%, rgba(0,0,0,.84));
}

.cp-category-card span {
    position: relative;
    z-index: 2;
    font-size: clamp(20px, 2.4vw, 34px);
    font-weight: 950;
    line-height: .95;
    text-transform: uppercase;
}

.cp-content {
    width: min(1180px, 90vw);
    margin: 0 auto;
    padding: 48px 0;
}

.cp-terms-section {
    margin-bottom: 36px;
}

.cp-terms-section h2 {
    margin: 0 0 14px;
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 950;
    text-transform: uppercase;
    border-bottom: 2px solid var(--cp-line);
    padding-bottom: 8px;
}

.cp-terms-section p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--cp-ink);
}

.cp-page-title {
    padding: clamp(18px, 2.5vw, 32px) clamp(18px, 4vw, 56px);
    color: var(--cp-paper);
    background:
        linear-gradient(90deg, rgba(0,0,0,.94), rgba(0,0,0,.74)),
        var(--cp-black);
}

.cp-shop-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
    align-items: end;
    gap: 12px;
    margin: 0 0 28px;
    padding: 16px;
    background: #f8f1e6;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
}

.cp-shop-filters label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.cp-shop-filters span {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.cp-shop-filters input,
.cp-shop-filters select {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    color: var(--cp-ink);
    background: #fff;
    border: 1px solid var(--cp-line);
    border-radius: 4px;
}

.cp-shop-filters button,
.cp-shop-filters a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: var(--cp-paper);
    background: var(--cp-black);
    border: 1px solid var(--cp-black);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.cp-shop-filters a {
    color: var(--cp-ink);
    background: transparent;
    border-color: var(--cp-line);
}

.cp-page-title-light {
    color: var(--cp-ink);
    background:
        linear-gradient(90deg, rgba(242,232,216,.96), rgba(242,232,216,.82)),
        var(--cp-cream);
}

.cp-page-title + .cp-section {
    padding-top: 20px;
}

.woocommerce-products-header,
.page-description {
    display: none;
}

.woocommerce div.product::after {
    content: '';
    display: table;
    clear: both;
}

.woocommerce-tabs,
.related.products,
.upsells.products {
    clear: both;
    display: block;
}

.cp-footer {
    color: var(--cp-paper);
    background: var(--cp-black);
}

.cp-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    width: min(1440px, 92vw);
    margin: 0 auto;
    padding: 34px 0;
}

.cp-footer h3 {
    margin: 0 0 14px;
    font-size: 13px;
    text-transform: uppercase;
}

.cp-footer p,
.cp-footer a {
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.6;
}

.cp-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cp-faq {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.cp-faq-item {
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.cp-faq-item summary {
    padding: 8px 0;
    color: rgba(255,255,255,.8);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cp-faq-item summary::after {
    content: '+';
    font-size: 16px;
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform .2s;
}

.cp-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.cp-faq-item summary::-webkit-details-marker {
    display: none;
}

.cp-faq-item p {
    padding: 0 0 10px;
    color: rgba(255,255,255,.55);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.cp-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.cp-social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    text-decoration: none;
    transition: color .18s;
}

.cp-social-link:hover {
    color: #fff;
}

.cp-social-link svg {
    flex-shrink: 0;
}

.cp-bottom {
    padding: 16px clamp(18px, 4vw, 56px);
    color: rgba(255,255,255,.64);
    background: #1d1d1d;
    font-size: 12px;
}

.woocommerce .woocommerce-ordering select,
.woocommerce .woocommerce-result-count {
    min-height: 44px;
    margin-bottom: 12px;
}

.woocommerce ul.products {
    clear: both;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin-bottom: 18px;
    overflow: hidden;
    background: #f7f2e9;
    border: 1px solid #e1d7c8;
    border-radius: 8px;
}

.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1.12;
    margin: 0;
    object-fit: cover;
    background: #e9e1d5;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 48px;
    padding: 14px 14px 0;
    color: var(--cp-ink);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.woocommerce ul.products li.product .price {
    padding: 0 14px 12px;
    color: var(--cp-ink);
    font-size: 15px;
    font-weight: 900;
}

.woocommerce ul.products li.product .button {
    display: none !important;
}

.woocommerce span.onsale {
    top: 10px;
    left: 10px;
    right: auto;
    min-width: 0;
    min-height: 0;
    padding: 8px 10px;
    color: var(--cp-black);
    background: var(--cp-gold);
    border-radius: 4px;
    line-height: 1;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.woocommerce div.product {
    width: min(1320px, 92vw);
    margin: 48px auto;
}

.woocommerce div.product .product_title {
    font-size: clamp(34px, 5vw, 72px);
    line-height: .95;
    font-weight: 950;
    text-transform: uppercase;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--cp-ink);
    font-size: 26px;
    font-weight: 950;
}

.woocommerce div.product form.cart,
.woocommerce div.product .cart {
    display: none !important;
}

.woocommerce .woocommerce-product-rating,
.woocommerce .star-rating,
.woocommerce #reviews,
.woocommerce #review_form_wrapper,
.woocommerce .woocommerce-Reviews,
.woocommerce div.product .woocommerce-tabs ul.tabs li.reviews_tab {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding-top: 0;
}

.woocommerce div.product div.images a {
    cursor: default;
    pointer-events: none;
}

.woocommerce div.product div.images .flex-control-thumbs a,
.woocommerce div.product div.images .flex-control-thumbs img {
    pointer-events: auto;
    cursor: pointer;
}

.woocommerce .quantity .qty {
    min-height: 48px;
    border: 1px solid var(--cp-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border-radius: 0;
}

@media (max-width: 1180px) {
    .cp-header {
        grid-template-columns: 1fr auto;
    }

    .cp-nav {
        display: none;
    }

    .cp-menu-toggle {
        display: grid;
    }

    .cp-actions {
        grid-column: 2;
    }

    .cp-search {
        width: min(260px, 32vw);
        min-width: 170px;
    }

    .cp-mobile-nav {
        display: none;
        grid-column: 1 / -1;
        padding: 12px 0 18px;
        border-top: 1px solid rgba(255,255,255,.12);
    }

    .cp-mobile-nav.is-open {
        display: grid;
    }

    .cp-mobile-nav ul {
        display: grid;
        gap: 12px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .cp-mobile-nav a {
        color: var(--cp-paper);
        font-weight: 950;
        text-transform: uppercase;
    }

    .cp-strip,
    .cp-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-shop-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    body.admin-bar .cp-header {
        top: 46px;
    }

    .cp-promo-track {
        gap: 12px;
        font-size: 10px;
        justify-content: start;
        overflow-x: auto;
    }

    .cp-header {
        min-height: 70px;
        padding: 0 14px;
    }

    .cp-header-main {
        gap: 10px;
    }

    .cp-brand .custom-logo,
    .cp-logo {
        width: 40px;
        max-width: 40px;
        height: 40px;
    }

    .cp-brand-text span {
        max-width: 84px;
    }

    .cp-brand-text small {
        display: none;
    }

    .cp-search {
        display: none;
    }

    .cp-search input {
        min-height: 36px;
    }

    .cp-hero {
        min-height: 360px;
        background-position: 60% center;
    }

    .cp-hero-inner {
        width: min(92vw, 520px);
        padding-bottom: 22px;
    }

    .cp-button,
    .button,
    .wp-block-button__link,
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button {
        min-height: 44px;
        padding: 0 18px;
        font-size: 12px;
    }

    .cp-strip,
    .cp-category-grid,
    .cp-footer-inner,
    .cp-shop-filters {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 50px;
        padding: 10px 10px 0;
        font-size: 11px;
        line-height: 1.12;
    }

    .woocommerce ul.products li.product .price {
        padding: 0 10px 10px;
        font-size: 13px;
    }

    .woocommerce ul.products li.product a img {
        aspect-ratio: 1 / 1.05;
    }

    .woocommerce div.product {
        margin: 24px auto;
    }

    .woocommerce div.product .product_title {
        font-size: clamp(26px, 10vw, 40px);
        line-height: 1;
    }

    .related.products,
    .upsells.products {
        padding-top: 24px;
    }

    .cp-strip-item {
        border-right: 0;
        border-bottom: 1px solid var(--cp-line);
    }

    .cp-section-head {
        align-items: start;
        flex-direction: column;
    }

    .cp-category-card {
        min-height: 220px;
    }

}

/* =====================
   PAGINA CONTACTO
   ===================== */
.cp-contact-page {
    padding-bottom: 80px;
}

.cp-contact-hero {
    text-align: center;
    padding: clamp(48px, 6vw, 88px) 20px 40px;
    background: var(--cp-cream);
    border-bottom: 1px solid var(--cp-line);
}

.cp-contact-logo {
    margin-bottom: 20px;
}

.cp-contact-logo img {
    display: block;
    margin: 0 auto;
    width: auto;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
}

.cp-contact-brand {
    font-size: 28px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 16px;
}

.cp-contact-title {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 950;
    text-transform: uppercase;
    line-height: .95;
    margin: 0 0 20px;
    color: var(--cp-ink);
}

.cp-contact-sub {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--cp-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.cp-contact-channels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: min(800px, 90vw);
    margin: 48px auto 0;
}

.cp-contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 24px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform .18s, box-shadow .18s;
    border: 2px solid transparent;
}

.cp-contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0,0,0,.12);
}

.cp-contact-wsp {
    background: #25d366;
    color: #fff;
    border-color: #1ebe5d;
}

.cp-contact-ig {
    background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
    color: #fff;
}

.cp-contact-card-icon {
    flex-shrink: 0;
}

.cp-contact-card-body {
    flex: 1;
}

.cp-contact-card-body strong {
    display: block;
    font-size: 20px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.cp-contact-card-body span {
    display: block;
    font-size: 13px;
    opacity: .85;
    margin-top: 3px;
}

.cp-contact-card-arrow {
    font-size: 24px;
    opacity: .7;
}

.cp-contact-note {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: var(--cp-muted);
}

@media (max-width: 600px) {
    .cp-contact-channels {
        grid-template-columns: 1fr;
    }
    .cp-contact-card {
        padding: 22px 18px;
    }
}
