/**
 * YesitosShop — Estilos principales
 * Adaptados del template Modaz con estética minimalista para moda.
 * @package YesitosShop
 */

/* ─── Variables CSS ─── */
:root {
    --yshop-color-primary: #333333;
    --yshop-color-secondary: #1c63b8;
    --yshop-color-accent: #f63440;
    --yshop-color-body-bg: #ffffff;
    --yshop-color-text: #6e6e6e;
    --yshop-color-text-dark: #333333;
    --yshop-color-text-light: #999999;
    --yshop-color-border: #ebebeb;
    --yshop-color-border-light: #f5f5f5;
    --yshop-color-header-bg: #ffffff;
    --yshop-color-footer-bg: #252525;
    --yshop-color-topbar-bg: #252525;
    --yshop-font-primary: 'Poppins', sans-serif;
    --yshop-font-body: 'Poppins', sans-serif;
    --yshop-container-width: 1200px;
    --yshop-transition: all 0.3s ease-in-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--yshop-font-body);
    font-size: 14px;
    line-height: 1.85;
    font-weight: 300;
    color: var(--yshop-color-text);
    background-color: var(--yshop-color-body-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--yshop-color-text-dark);
    text-decoration: none;
    transition: var(--yshop-transition);
}

a:hover,
a:focus {
    color: var(--yshop-color-accent);
    text-decoration: none;
    outline: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--yshop-font-primary);
    font-weight: 500;
    color: var(--yshop-color-text-dark);
    line-height: 1.3;
    margin: 0 0 15px;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

h6 {
    font-size: 14px;
}

/* ─── Botones ─── */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.yshop-btn {
    display: inline-block;
    font-family: var(--yshop-font-primary);
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 30px;
    background-color: var(--yshop-color-primary);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--yshop-transition);
    text-align: center;
}

button:hover,
input[type="submit"]:hover,
.yshop-btn:hover {
    background-color: var(--yshop-color-accent);
    color: #fff;
}

.yshop-btn--outline {
    background: transparent;
    border: 1px solid var(--yshop-color-primary);
    color: var(--yshop-color-primary);
}

.yshop-btn--outline:hover {
    background-color: var(--yshop-color-primary);
    color: #fff;
}

.yshop-btn--accent {
    background-color: var(--yshop-color-accent);
}

.yshop-btn--accent:hover {
    background-color: var(--yshop-color-primary);
}

/* ─── Formularios ─── */
select,
textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"] {
    font-family: var(--yshop-font-body);
    background-color: #fff;
    height: 50px;
    width: 100%;
    padding: 0 17px;
    font-size: 14px;
    color: var(--yshop-color-text);
    border: 1px solid var(--yshop-color-border);
    transition: var(--yshop-transition);
    outline: none;
}

textarea {
    height: 150px;
    padding: 15px 17px;
    line-height: 1.6;
    resize: vertical;
}

select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus {
    border-color: var(--yshop-color-accent);
    box-shadow: none;
}

::placeholder {
    color: #b3b7c8;
    opacity: 1;
}

/* ─── Layout ─── */
.yshop-container {
    max-width: var(--yshop-container-width);
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.yshop-container--fluid {
    max-width: 93%;
    margin: 0 auto;
    padding: 0 15px;
}

.yshop-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.yshop-col {
    padding: 0 15px;
    width: 100%;
}

.yshop-section {
    padding: 60px 0;
}

/* ─── Top Bar ─── */
.yshop-topbar {
    background-color: var(--yshop-color-topbar-bg);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.yshop-topbar a {
    color: #fff;
}

.yshop-topbar a:hover {
    color: var(--yshop-color-accent);
}

.yshop-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yshop-topbar__nav {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ─── Header ─── */
.yshop-header {
    background-color: var(--yshop-color-header-bg);
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid var(--yshop-color-border-light);
}

.yshop-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.yshop-header-sticky .yshop-header--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--yshop-color-header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    animation: yshopSlideDown .35s ease;
}

@keyframes yshopSlideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.yshop-logo img {
    max-height: 40px;
    width: auto;
}

.yshop-logo__text {
    font-family: var(--yshop-font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--yshop-color-text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ─── Nav ─── */
.yshop-nav {
    display: flex;
    align-items: center;
}

.yshop-nav__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.yshop-nav__menu>li {
    position: relative;
}

.yshop-nav__menu>li>a {
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--yshop-color-text-dark);
    padding: 10px 18px;
}

.yshop-nav__menu>li>a:hover,
.yshop-nav__menu>li.current-menu-item>a {
    color: var(--yshop-color-accent);
}

.yshop-nav__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    list-style: none;
    margin: 0;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--yshop-transition);
    z-index: 9999;
}

.yshop-nav__menu>li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yshop-nav__menu .sub-menu li a {
    display: block;
    font-size: 13px;
    color: var(--yshop-color-text);
    padding: 6px 25px;
}

.yshop-nav__menu .sub-menu li a:hover {
    color: var(--yshop-color-accent);
    padding-left: 30px;
}

.yshop-nav__menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* ─── Header extras ─── */
.yshop-header-extras {
    display: flex;
    align-items: center;
    gap: 20px;
}

.yshop-header-extras__item {
    position: relative;
    cursor: pointer;
}

.yshop-header-extras__item>a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 18px;
    color: var(--yshop-color-text-dark);
}

.yshop-header-extras__item>a:hover {
    color: var(--yshop-color-accent);
}

.yshop-cart-count {
    position: absolute;
    top: -2px;
    right: -6px;
    background-color: var(--yshop-color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
}

/* ─── Search overlay ─── */
.yshop-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--yshop-transition);
}

.yshop-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.yshop-search-overlay__form {
    width: 60%;
    max-width: 700px;
}

.yshop-search-overlay__input {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #fff !important;
    color: #fff !important;
    font-size: 36px !important;
    font-weight: 300 !important;
    text-align: center;
    height: auto !important;
    padding: 20px 0 !important;
}

.yshop-search-overlay__close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.yshop-search-overlay__close:hover {
    color: var(--yshop-color-accent);
    background: none;
}

/* ─── Mini cart dropdown ─── */
.yshop-minicart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--yshop-transition);
    z-index: 9999;
}

.yshop-header-extras__item:hover .yshop-minicart {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yshop-minicart__empty {
    text-align: center;
    padding: 20px 0;
    color: var(--yshop-color-text-light);
}

.yshop-minicart__total {
    display: flex;
    justify-content: space-between;
    font-family: var(--yshop-font-primary);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 15px 0;
    border-top: 1px solid var(--yshop-color-border);
}

.yshop-minicart__buttons {
    display: flex;
    gap: 10px;
}

.yshop-minicart__buttons a {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.yshop-minicart__btn-cart {
    border: 1px solid var(--yshop-color-secondary);
    color: var(--yshop-color-text-dark);
    background: transparent;
}

.yshop-minicart__btn-cart:hover {
    background: var(--yshop-color-secondary);
    color: #fff;
}

.yshop-minicart__btn-checkout {
    background: var(--yshop-color-primary);
    color: #fff;
}

.yshop-minicart__btn-checkout:hover {
    background: var(--yshop-color-accent);
    color: #fff;
}

/* ─── Mobile toggle ─── */
.yshop-mobile-toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.yshop-mobile-toggle span,
.yshop-mobile-toggle::before,
.yshop-mobile-toggle::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--yshop-color-text-dark);
    position: absolute;
    left: 0;
    transition: var(--yshop-transition);
}

.yshop-mobile-toggle::before {
    top: 0;
}

.yshop-mobile-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.yshop-mobile-toggle::after {
    bottom: 0;
}

.yshop-mobile-toggle.active::before {
    transform: rotate(45deg);
    top: 11px;
}

.yshop-mobile-toggle.active span {
    opacity: 0;
}

.yshop-mobile-toggle.active::after {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* ─── Page Title ─── */
.yshop-page-title {
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    text-align: center;
    position: relative;
}

.yshop-page-title::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .1);
}

.yshop-page-title__content {
    position: relative;
    z-index: 1;
}

.yshop-page-title__heading {
    font-size: 32px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

/* ─── Breadcrumbs ─── */
.yshop-breadcrumb {
    font-size: 13px;
    color: var(--yshop-color-text-light);
}

.yshop-breadcrumb__list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.yshop-breadcrumb__item a {
    color: var(--yshop-color-text);
}

.yshop-breadcrumb__item a:hover {
    color: var(--yshop-color-accent);
}

.yshop-breadcrumb__sep {
    color: var(--yshop-color-text-light);
    font-size: 11px;
}

/* ─── Newsletter ─── */
.yshop-newsletter {
    background: var(--yshop-color-border-light);
    padding: 40px 0;
}

.yshop-newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.yshop-newsletter__title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

.yshop-newsletter__form {
    display: flex;
    flex: 1;
    max-width: 500px;
}

.yshop-newsletter__input {
    flex: 1;
    border-right: none !important;
    height: 48px !important;
}

.yshop-newsletter__btn {
    padding: 0 30px;
    white-space: nowrap;
    height: 48px;
}

.yshop-newsletter__social {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.yshop-newsletter__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--yshop-color-text-dark);
    color: #fff;
    font-size: 14px;
}

.yshop-newsletter__social a:hover {
    background: var(--yshop-color-accent);
}

/* ─── Footer ─── */
.yshop-footer {
    background-color: var(--yshop-color-footer-bg);
    color: #bbb;
    padding: 60px 0 40px;
}

.yshop-footer a {
    color: #bbb;
}

.yshop-footer a:hover {
    color: #fff;
}

.yshop-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.yshop-footer-widget__title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.yshop-footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yshop-footer-widget ul li {
    padding: 5px 0;
}

.yshop-footer-widget ul li a {
    font-size: 14px;
}

.yshop-footer-bottom {
    background-color: #1a1a1a;
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.yshop-footer-bottom a {
    color: #bbb;
}

.yshop-footer-bottom a:hover {
    color: #fff;
}

/* ─── Go to top ─── */
.yshop-go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--yshop-color-primary);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--yshop-transition);
    z-index: 999;
    border: none;
    padding: 0;
}

.yshop-go-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yshop-go-top:hover {
    background: var(--yshop-color-accent);
    color: #fff;
}

/* ─── Utilidades ─── */
.yshop-text-center {
    text-align: center;
}

.yshop-clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* ─── Preloader ─── */
.yshop-preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s ease;
}

.yshop-preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

.yshop-preloader__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--yshop-color-border);
    border-top-color: var(--yshop-color-accent);
    border-radius: 50%;
    animation: yshopSpin .8s linear infinite;
}

@keyframes yshopSpin {
    to {
        transform: rotate(360deg);
    }
}