/* ==========================================================================
   CTVT Theme - Main Stylesheet
   ========================================================================== */

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

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Offset for sticky topbar + header */
body.admin-bar .ctvt-topbar {
    top: 32px;
}

/* Prevent FOUC on page transitions */
.ctvt-header,
.ctvt-topbar {
    will-change: transform;
}

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

button {
    cursor: pointer;
    font-family: inherit;
}

/* ---------- TOP BAR ---------- */
.ctvt-topbar {
    background: var(--wp--preset--color--primary, #000);
    color: var(--wp--preset--color--background, #fff);
    position: relative;
    overflow: hidden;
    min-height: 38px;
    z-index: 101;
}

.ctvt-topbar__inner {
    position: relative;
    width: 100%;
    height: 38px;
}

.ctvt-topbar-message {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.ctvt-topbar-message.active {
    opacity: 1;
    pointer-events: auto;
}

.ctvt-topbar-message a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctvt-topbar-message a:hover {
    text-decoration: underline;
}

.ctvt-topbar-message__icon {
    display: flex;
    flex-shrink: 0;
}

.ctvt-topbar-message__text {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
}

/* ---------- HEADER ---------- */
.ctvt-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--wp--preset--color--background, #fff);
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ctvt-header--scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ctvt-header--hidden {
    transform: translateY(-100%);
}

.ctvt-header__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 64px;
    gap: 24px;
}

/* Hamburger (mobile only) */
.ctvt-header__hamburger {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    color: var(--wp--preset--color--primary, #000);
    line-height: 0;
}

/* Logo */
.ctvt-header__logo {
    display: flex;
    justify-content: center;
}

.ctvt-header__logo a {
    display: inline-block;
}

.ctvt-header__logo img {
    max-height: 36px;
    width: auto;
}

.ctvt-logo-text {
    text-decoration: none !important;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary, #000);
}

/* Navigation (Desktop) */
.ctvt-nav {
    display: flex;
    justify-content: flex-start;
}

.ctvt-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.ctvt-nav__item {
    position: relative;
}

.ctvt-nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 20px 16px;
    text-decoration: none !important;
    color: var(--wp--preset--color--primary, #000);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    transition: opacity 0.2s ease;
}

.ctvt-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--wp--preset--color--primary, #000);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ctvt-nav__item:hover > .ctvt-nav__link::after {
    transform: scaleX(1);
}

.ctvt-nav__badge {
    font-size: 0.6rem;
    background: var(--wp--preset--color--accent, #c8a96e);
    color: #fff;
    padding: 1px 5px;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-left: 4px;
}

.ctvt-nav__arrow {
    display: flex;
    transition: transform 0.3s ease;
}

.ctvt-nav__item:hover .ctvt-nav__arrow {
    transform: rotate(180deg);
}

/* ---------- MEGA MENU ---------- */
.ctvt-megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 700px;
    background: var(--wp--preset--color--background, #fff);
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 200;
}

.ctvt-nav__item:hover > .ctvt-megamenu {
    opacity: 1;
    visibility: visible;
}

.ctvt-megamenu__inner {
    display: flex;
    gap: 0;
    padding: 0;
}

.ctvt-megamenu__list {
    list-style: none;
    margin: 0;
    padding: 32px;
    display: flex;
    gap: 40px;
    flex: 1;
}

.ctvt-megamenu__column {
    min-width: 150px;
}

.ctvt-megamenu__heading {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wp--preset--color--primary, #000);
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
}

.ctvt-megamenu__sublist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctvt-megamenu__item {
    margin-bottom: 2px;
}

.ctvt-megamenu__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    text-decoration: none !important;
    color: var(--wp--preset--color--text-light, #666);
    font-size: 0.82rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.ctvt-megamenu__link:hover {
    color: var(--wp--preset--color--primary, #000);
    padding-left: 4px;
}

.ctvt-megamenu__badge {
    font-size: 0.6rem;
    background: var(--wp--preset--color--error, #c62828);
    color: #fff;
    padding: 1px 5px;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Mega menu featured image */
.ctvt-megamenu__featured {
    width: 280px;
    flex-shrink: 0;
    background: var(--wp--preset--color--surface, #f5f5f5);
    background-size: cover;
    background-position: center;
    min-height: 280px;
    transition: background-image 0.3s ease;
}

.ctvt-megamenu__featured:empty {
    display: none;
}

.ctvt-megamenu__featured.has-image {
    display: block;
}

/* ---------- HEADER ACTIONS (icons) ---------- */
.ctvt-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.ctvt-header__action-btn {
    background: none;
    border: none;
    padding: 8px;
    color: var(--wp--preset--color--primary, #000);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.ctvt-header__action-btn:hover {
    opacity: 0.55;
}

.ctvt-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--wp--preset--color--primary, #000);
    color: var(--wp--preset--color--background, #fff);
    font-size: 0.6rem;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.ctvt-cart-count:empty,
.ctvt-cart-count[data-count="0"] {
    display: none;
}

/* ---------- SEARCH OVERLAY (Full-screen) ---------- */
.ctvt-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ctvt-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ctvt-search-overlay__inner {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 15vh;
}

.ctvt-search-overlay__form {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--wp--preset--color--primary, #000);
    padding-bottom: 12px;
}

.ctvt-search-overlay__icon {
    display: flex;
    flex-shrink: 0;
    opacity: 0.4;
}

.ctvt-search-overlay__input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1.8rem;
    font-weight: 300;
    font-family: inherit;
    color: var(--wp--preset--color--primary, #000);
    outline: none;
}

.ctvt-search-overlay__input::placeholder {
    color: var(--wp--preset--color--border, #e0e0e0);
}

.ctvt-search-overlay__close {
    background: none;
    border: none;
    padding: 6px;
    color: var(--wp--preset--color--text-light, #666);
    display: flex;
    transition: color 0.2s ease;
}

.ctvt-search-overlay__close:hover {
    color: var(--wp--preset--color--primary, #000);
}

.ctvt-search-overlay__results {
    margin-top: 32px;
}

/* Search: trending tags */
.ctvt-search-overlay__trending h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--text-light, #666);
    margin: 0 0 12px;
    font-weight: 600;
}

.ctvt-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ctvt-search-tag {
    padding: 6px 16px;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--wp--preset--color--text, #1a1a1a);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ctvt-search-tag:hover {
    background: var(--wp--preset--color--primary, #000);
    border-color: var(--wp--preset--color--primary, #000);
    color: var(--wp--preset--color--background, #fff);
}

/* Search: AJAX results */
.ctvt-search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.2s ease;
}

.ctvt-search-result-item:hover {
    padding-left: 6px;
}

.ctvt-search-result-item img {
    width: 55px;
    height: 72px;
    object-fit: cover;
    flex-shrink: 0;
}

.ctvt-search-result-item__info {
    flex: 1;
}

.ctvt-search-result-item__info h4 {
    margin: 0 0 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.ctvt-search-result-item__info span {
    font-size: 0.8rem;
    color: var(--wp--preset--color--text-light, #666);
}

.ctvt-search-view-all {
    display: block;
    text-align: center;
    padding: 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-decoration: none;
    color: var(--wp--preset--color--primary, #000);
    border-top: 1px solid var(--wp--preset--color--border, #e0e0e0);
    margin-top: 8px;
}

.ctvt-search-view-all:hover {
    text-decoration: underline;
}

/* ---------- MOBILE MENU DRAWER ---------- */
.ctvt-mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--wp--preset--color--background, #fff);
    z-index: 9998;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.ctvt-mobile-menu.active {
    left: 0;
}

.ctvt-mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
}

.ctvt-mobile-menu__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.ctvt-mobile-menu__close {
    background: none;
    border: none;
    padding: 4px;
    color: var(--wp--preset--color--primary, #000);
    display: flex;
}

/* Mobile search */
.ctvt-mobile-menu__search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
}

.ctvt-mobile-menu__search form {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    border-radius: 4px;
    padding: 0 12px;
}

.ctvt-mobile-menu__search-icon {
    display: flex;
    flex-shrink: 0;
    opacity: 0.4;
}

.ctvt-mobile-menu__search input {
    flex: 1;
    border: none;
    padding: 10px 0;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    background: none;
}

/* Mobile nav list */
.ctvt-mobile-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctvt-mobile-nav__item {
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
}

.ctvt-mobile-nav__row {
    display: flex;
    align-items: center;
}

.ctvt-mobile-nav__link {
    flex: 1;
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--wp--preset--color--primary, #000);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ctvt-mobile-nav__expand {
    background: none;
    border: none;
    border-left: 1px solid var(--wp--preset--color--border, #e0e0e0);
    padding: 14px 16px;
    color: var(--wp--preset--color--text-light, #666);
    display: flex;
    transition: transform 0.3s ease;
}

.ctvt-mobile-nav__expand.expanded {
    transform: rotate(180deg);
}

.ctvt-mobile-nav__sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--wp--preset--color--surface, #f5f5f5);
}

.ctvt-mobile-nav__sublist .ctvt-mobile-nav__link {
    padding-left: 36px;
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: none;
    color: var(--wp--preset--color--text-light, #666);
}

.ctvt-mobile-nav__sublist .ctvt-mobile-nav__link:hover {
    color: var(--wp--preset--color--primary, #000);
}

/* Mobile utils */
.ctvt-mobile-menu__utils {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--wp--preset--color--border, #e0e0e0);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ctvt-mobile-menu__util-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: var(--wp--preset--color--text-light, #666);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.ctvt-mobile-menu__util-link:hover {
    color: var(--wp--preset--color--primary, #000);
}

/* ---------- HERO BANNER ---------- */
.ctvt-hero .wp-block-cover {
    min-height: 70vh !important;
}

.ctvt-hero .wp-block-cover__inner-container {
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- SECTIONS ---------- */
.ctvt-section {
    padding: 60px 0;
}

.ctvt-section-title,
.ctvt-section h2 {
    margin-bottom: 40px;
}

/* Category Banners */
.ctvt-category-banner {
    transition: transform 0.5s ease;
}

.ctvt-category-banner:hover {
    transform: scale(1.02);
}

/* ---------- PRODUCT CARD (Loop) ---------- */
.ctvt-loop-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--wp--preset--color--surface, #f5f5f5);
}

.ctvt-loop-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.ctvt-loop-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.ctvt-loop-img-wrapper:hover .ctvt-loop-img-hover {
    opacity: 1;
}

.ctvt-loop-img-wrapper:hover img:first-child {
    opacity: 0;
}

/* Loop Pricing */
.ctvt-loop-pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.ctvt-loop-pix {
    font-size: 0.8rem;
    color: var(--wp--preset--color--pix, #32bcad);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ctvt-loop-pix svg {
    flex-shrink: 0;
}

.ctvt-loop-installments {
    font-size: 0.75rem;
    color: var(--wp--preset--color--text-light, #666);
}

/* Loop Sizes */
.ctvt-loop-sizes {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.ctvt-loop-size {
    font-size: 0.7rem;
    padding: 2px 6px;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    text-transform: uppercase;
    font-weight: 500;
}

.ctvt-loop-size--out {
    opacity: 0.35;
    text-decoration: line-through;
}

/* Product Badge */
.ctvt-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    z-index: 2;
}

/* ---------- PRODUCT PAGE (PDP) ---------- */
.ctvt-product-page {
    padding-top: 20px;
}

.ctvt-product-page .woocommerce-breadcrumb {
    margin-bottom: 16px;
}

/* Force two-column layout — override WP Blocks defaults */
.ctvt-product-layout.wp-block-columns {
    flex-wrap: nowrap !important;
    gap: 48px !important;
}

.ctvt-product-layout > .ctvt-product-gallery-col.wp-block-column {
    flex: 0 0 55% !important;
    max-width: 55% !important;
}

.ctvt-product-layout > .ctvt-product-summary-col.wp-block-column {
    flex: 0 0 calc(45% - 48px) !important;
    max-width: calc(45% - 48px) !important;
}

/* Gallery image: fill the column properly */
.ctvt-product-gallery-col .wc-block-woocommerce-product-image-gallery,
.ctvt-product-gallery-col .wp-block-woocommerce-product-image-gallery,
.ctvt-product-gallery-col .woocommerce-product-gallery {
    width: 100% !important;
}

.ctvt-product-gallery-col .woocommerce-product-gallery img,
.ctvt-product-gallery-col .wc-block-woocommerce-product-image-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Remove duplicate Add to Cart from WC classic hooks */
.ctvt-product-page .product > .cart:not(.ctvt-add-to-cart .cart),
.ctvt-product-page .entry-summary,
.ctvt-product-page .product > .woocommerce-tabs,
.ctvt-product-page .product > .related.products {
    display: none !important;
}

/* Remove classic WC template elements that bleed through in FSE */
.ctvt-product-page .product > .summary,
.ctvt-product-page > .product > .woocommerce-product-gallery {
    display: none !important;
}

.ctvt-product-title {
    margin-bottom: 8px !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ctvt-product-rating {
    margin-bottom: 12px;
}

.ctvt-product-price {
    margin-bottom: 8px !important;
}

/* PIX Price */
.ctvt-pix-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    padding: 10px 14px;
    background: rgba(50, 188, 173, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(50, 188, 173, 0.2);
}

.ctvt-pix-icon {
    display: flex;
    color: var(--wp--preset--color--pix, #32bcad);
}

.ctvt-pix-value {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--wp--preset--color--pix, #32bcad);
}

.ctvt-pix-label {
    font-size: 0.85rem;
    color: var(--wp--preset--color--text-light, #666);
}

/* Installments */
.ctvt-installments {
    margin: 6px 0 16px;
}

.ctvt-installments-summary {
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-light, #666);
}

.ctvt-installments-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--wp--preset--color--primary, #000);
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ctvt-installments-table {
    width: 100%;
    margin-top: 10px;
    font-size: 0.8rem;
    border-collapse: collapse;
}

.ctvt-installments-table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
}

.ctvt-installments-total {
    color: var(--wp--preset--color--text-light, #666);
    text-align: right;
}

/* Shipping Calculator */
.ctvt-shipping-calc {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    border-radius: 8px;
}

.ctvt-shipping-calc__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 0.95rem;
}

.ctvt-shipping-calc__form {
    display: flex;
    gap: 8px;
}

.ctvt-shipping-calc__form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.ctvt-shipping-calc__form input:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary, #000);
}

.ctvt-shipping-calc__link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--wp--preset--color--text-light, #666);
}

.ctvt-shipping-calc__results {
    margin-top: 12px;
}

.ctvt-shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
    font-size: 0.85rem;
}

.ctvt-shipping-option__service {
    font-weight: 600;
}

.ctvt-shipping-option__days {
    color: var(--wp--preset--color--text-light, #666);
}

.ctvt-shipping-option__price {
    font-weight: 700;
}

.ctvt-shipping-option__price--free {
    color: var(--wp--preset--color--success, #2e7d32);
}

/* Trust Badges */
.ctvt-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: var(--wp--preset--color--surface, #f5f5f5);
    border-radius: 8px;
}

.ctvt-trust-badge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ctvt-trust-badge__icon {
    flex-shrink: 0;
    display: flex;
    padding-top: 2px;
}

.ctvt-trust-badge__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ctvt-trust-badge__content strong {
    font-size: 0.85rem;
}

.ctvt-trust-badge__content span {
    font-size: 0.75rem;
    color: var(--wp--preset--color--text-light, #666);
}

/* Size Chart */
.ctvt-size-chart-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--wp--preset--color--primary, #000);
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    font-family: inherit;
}

.ctvt-size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ctvt-size-table th,
.ctvt-size-table td {
    padding: 10px 14px;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    text-align: center;
}

.ctvt-size-table th {
    background: var(--wp--preset--color--surface, #f5f5f5);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.ctvt-body-measure-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--wp--preset--color--primary, #000);
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    cursor: pointer;
}

/* Body Measures Modal */
.ctvt-body-measures {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ctvt-body-measure-item {
    text-align: center;
}

.ctvt-body-measure-item img {
    width: 100%;
    max-width: 160px;
    margin: 0 auto 12px;
}

.ctvt-body-measure-item h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.ctvt-body-measure-item p {
    font-size: 0.8rem;
    color: var(--wp--preset--color--text-light, #666);
    margin: 0;
}

/* Notify Me */
.ctvt-notify-me {
    margin: 16px 0;
    padding: 20px;
    border: 2px dashed var(--wp--preset--color--border, #e0e0e0);
    border-radius: 8px;
    text-align: center;
}

.ctvt-notify-me h4 {
    margin: 0 0 6px;
    color: var(--wp--preset--color--error, #c62828);
}

.ctvt-notify-me p {
    font-size: 0.85rem;
    color: var(--wp--preset--color--text-light, #666);
    margin: 0 0 12px;
}

.ctvt-notify-me__form {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.ctvt-notify-me__form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    border-radius: 4px;
    font-family: inherit;
}

/* Accordion */
.ctvt-product-accordions {
    border-top: 1px solid var(--wp--preset--color--border, #e0e0e0);
    margin-top: 24px;
}

.ctvt-accordion {
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
}

.ctvt-accordion__header {
    width: 100%;
    background: none;
    border: none;
    padding: 14px 0;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: inherit;
    gap: 12px;
}

.ctvt-accordion__title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.82rem;
}

.ctvt-accordion__chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--wp--preset--color--text-light, #666);
}

.ctvt-accordion--open .ctvt-accordion__chevron {
    transform: rotate(180deg);
}

.ctvt-accordion__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.ctvt-accordion--open .ctvt-accordion__body {
    grid-template-rows: 1fr;
}

.ctvt-accordion__body-inner {
    overflow: hidden;
    padding-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--wp--preset--color--text-light, #666);
    transition: padding-bottom 0.3s ease;
}

.ctvt-accordion--open .ctvt-accordion__body-inner {
    padding-bottom: 16px;
}

/* Product Share */
.ctvt-product-share {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--wp--preset--color--border, #e0e0e0);
    gap: 12px;
}

.ctvt-product-share a {
    color: var(--wp--preset--color--text-light, #666);
    transition: color 0.2s ease;
}

.ctvt-product-share a:hover {
    color: var(--wp--preset--color--primary, #000);
}

/* Recently Viewed */
.ctvt-recently-viewed__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* ---------- MODAL ---------- */
.ctvt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctvt-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.ctvt-modal__content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 8px;
    z-index: 1;
}

.ctvt-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
}

.ctvt-modal__header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.ctvt-modal__close {
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    color: var(--wp--preset--color--text-light, #666);
}

.ctvt-modal__body {
    padding: 24px;
}

/* ==========================================================================
   FASE 4 — CATALOG / PRODUCT LISTING
   ========================================================================== */

/* ---------- CATALOG LAYOUT ---------- */
.ctvt-catalog {
    padding: 0 24px 80px;
    max-width: 1440px;
}

.ctvt-catalog-header {
    padding: 24px 0 16px;
}

.ctvt-catalog-title {
    margin: 8px 0 4px !important;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
}

.ctvt-catalog-description {
    font-size: 0.9rem;
    color: var(--wp--preset--color--muted, #777);
    margin: 0 0 8px !important;
}

/* Breadcrumbs */
.ctvt-breadcrumbs {
    font-size: 0.75rem !important;
    color: var(--wp--preset--color--muted, #888) !important;
    margin-bottom: 8px !important;
}

.ctvt-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.ctvt-breadcrumbs a:hover {
    color: var(--wp--preset--color--primary, #000);
}

/* ---------- TOOLBAR ---------- */
.ctvt-catalog-toolbar {
    padding: 14px 0;
    margin-bottom: 16px;
    border-top: 1px solid var(--wp--preset--color--border, #e8e8e8);
    border-bottom: 1px solid var(--wp--preset--color--border, #e8e8e8);
    gap: 12px;
}

.ctvt-catalog-toolbar__left {
    gap: 12px;
}

.ctvt-catalog-toolbar__right {
    gap: 12px;
}

/* Filter toggle button */
.ctvt-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--wp--preset--color--border, #ccc);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: inherit;
    color: var(--wp--preset--color--primary, #000);
    border-radius: 2px;
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.ctvt-filter-toggle:hover,
.ctvt-filter-toggle.active {
    background: var(--wp--preset--color--primary, #000);
    color: #fff;
    border-color: var(--wp--preset--color--primary, #000);
}

.ctvt-filter-toggle__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wp--preset--color--accent, #d4a853);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    line-height: 1;
}

/* Sort select */
.ctvt-catalog-sort select,
.woocommerce-ordering select {
    appearance: none;
    background: none;
    border: 1px solid var(--wp--preset--color--border, #ccc);
    padding: 8px 32px 8px 12px;
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--wp--preset--color--primary, #000);
    border-radius: 2px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpolyline points='1 1 6 7 11 1' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

/* View toggle */
.ctvt-view-toggle {
    display: flex;
    gap: 4px;
}

.ctvt-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: none;
    border: 1px solid var(--wp--preset--color--border, #ccc);
    color: var(--wp--preset--color--muted, #aaa);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ctvt-view-btn.active,
.ctvt-view-btn:hover {
    background: var(--wp--preset--color--primary, #000);
    color: #fff;
    border-color: var(--wp--preset--color--primary, #000);
}

/* ---------- ACTIVE FILTERS BAR ---------- */
.ctvt-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--wp--preset--color--border, #eee);
}

.ctvt-active-filters__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--muted, #888);
    white-space: nowrap;
}

.ctvt-active-filters__pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ctvt-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--wp--preset--color--surface, #f5f5f5);
    border: 1px solid var(--wp--preset--color--border, #ddd);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--wp--preset--color--primary, #000);
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.15s ease;
}

.ctvt-active-filter:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.ctvt-active-filter__remove {
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.6;
}

.ctvt-active-filters__clear {
    font-size: 0.75rem;
    color: var(--wp--preset--color--muted, #888);
    text-decoration: underline;
    white-space: nowrap;
    margin-left: 4px;
}

.ctvt-active-filters__clear:hover {
    color: var(--wp--preset--color--primary, #000);
}

/* ---------- CATALOG 2-COLUMN LAYOUT ---------- */
.ctvt-catalog-layout {
    align-items: flex-start;
    gap: 32px;
}

/* ---------- FILTERS SIDEBAR ---------- */
.ctvt-filters-sidebar {
    flex: 0 0 240px;
    min-width: 0;
    position: sticky;
    top: calc(var(--ctvt-header-h, 64px) + 16px);
    max-height: calc(100vh - var(--ctvt-header-h, 64px) - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--wp--preset--color--border, #ddd) transparent;
}

.ctvt-filters-sidebar::-webkit-scrollbar {
    width: 4px;
}

.ctvt-filters-sidebar::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--border, #ddd);
    border-radius: 2px;
}

.ctvt-filters-sidebar__header {
    display: none; /* shown on mobile */
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--wp--preset--color--border, #eee);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.ctvt-filters-sidebar__title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ctvt-filters-sidebar__close {
    background: none;
    border: none;
    color: var(--wp--preset--color--muted, #888);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.ctvt-filters-sidebar__close:hover {
    background: var(--wp--preset--color--surface, #f5f5f5);
    color: #000;
}

.ctvt-filters-sidebar__footer {
    display: none; /* shown on mobile */
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--wp--preset--color--border, #eee);
    position: sticky;
    bottom: 0;
    background: #fff;
}

.ctvt-filters-clear-all {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--wp--preset--color--muted, #888);
    text-decoration: underline;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctvt-filters-apply {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.8rem;
}

/* Filter groups */
.ctvt-filter-group {
    border-bottom: 1px solid var(--wp--preset--color--border, #eee);
}

.ctvt-filter-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--primary, #000);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.ctvt-filter-group__chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.ctvt-filter-group--open .ctvt-filter-group__chevron {
    transform: rotate(180deg);
}

.ctvt-filter-group__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.ctvt-filter-group--open .ctvt-filter-group__body {
    max-height: 400px;
    padding-bottom: 14px;
}

/* ---------- PRODUCTS AREA ---------- */
.ctvt-products-area {
    flex: 1;
    min-width: 0;
}

/* ---------- PRODUCT CARD (enhanced) ---------- */

/* Override WC's default list styles */
ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* List view override */
.ctvt-products-grid--list ul.products {
    grid-template-columns: 1fr;
    gap: 16px;
}

.ctvt-product-card {
    position: relative;
    background: var(--wp--preset--color--background, #fff);
    transition: box-shadow 0.3s ease;
}

.ctvt-product-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Image wrapper */
.ctvt-loop-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--wp--preset--color--surface, #f5f5f5);
}

.ctvt-loop-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Main image: subtle zoom on hover */
.ctvt-product-card:hover .ctvt-loop-img-wrapper img:first-of-type {
    transform: scale(1.04);
}

/* Hover second image */
.ctvt-loop-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.ctvt-product-card:hover .ctvt-loop-img-hover {
    opacity: 1;
    transform: scale(1);
}

.ctvt-product-card:hover .ctvt-loop-img-wrapper img:first-of-type {
    opacity: 0;
}

/* Badges */
.ctvt-loop-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ctvt-loop-badge {
    display: inline-block;
    padding: 4px 9px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    line-height: 1.4;
}

.ctvt-badge--sale {
    background: var(--wp--preset--color--error, #e53935);
}

.ctvt-badge--new {
    background: var(--wp--preset--color--primary, #000);
}

.ctvt-badge--custom {
    background: var(--wp--preset--color--accent, #d4a853);
}

/* Hover actions overlay */
.ctvt-loop-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.ctvt-product-card:hover .ctvt-loop-actions {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.ctvt-loop-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    color: var(--wp--preset--color--primary, #000);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ctvt-loop-action:hover {
    background: var(--wp--preset--color--primary, #000);
    color: #fff;
    transform: scale(1.1);
}

.ctvt-loop-wishlist.active {
    background: var(--wp--preset--color--error, #e53935);
    color: #fff;
}

/* Product card text area */
.ctvt-product-card .woocommerce-loop-product__title,
.ctvt-loop-title {
    font-size: 0.875rem !important;
    font-weight: 500;
    margin: 12px 0 4px !important;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.ctvt-product-card .woocommerce-loop-product__title a,
.ctvt-loop-title a {
    text-decoration: none;
    color: var(--wp--preset--color--primary, #000);
}

.ctvt-product-card .woocommerce-loop-product__title a:hover,
.ctvt-loop-title a:hover {
    opacity: 0.7;
}

.ctvt-loop-price,
.ctvt-product-card .price {
    display: block;
    font-size: 0.95rem !important;
    font-weight: 700;
    color: var(--wp--preset--color--primary, #000) !important;
    margin-bottom: 4px;
}

.ctvt-product-card .price del {
    font-weight: 400;
    opacity: 0.5;
    font-size: 0.8rem;
}

.ctvt-product-card .price ins {
    text-decoration: none;
    color: var(--wp--preset--color--error, #e53935);
}

/* Loop pricing (PIX + installments) */
.ctvt-loop-pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    padding-bottom: 10px;
}

.ctvt-loop-pix {
    font-size: 0.78rem;
    color: var(--wp--preset--color--pix, #32bcad);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.ctvt-loop-pix svg {
    flex-shrink: 0;
}

.ctvt-loop-installments {
    font-size: 0.72rem;
    color: var(--wp--preset--color--muted, #888);
}

/* Size swatches */
.ctvt-loop-sizes {
    display: flex;
    gap: 3px;
    margin-top: 8px;
    flex-wrap: wrap;
    padding-bottom: 12px;
}

.ctvt-loop-size {
    font-size: 0.65rem;
    padding: 3px 7px;
    border: 1px solid var(--wp--preset--color--border, #ddd);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--wp--preset--color--primary, #000);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ctvt-loop-size:not(.ctvt-loop-size--out):hover {
    background: var(--wp--preset--color--primary, #000);
    border-color: var(--wp--preset--color--primary, #000);
    color: #fff;
}

.ctvt-loop-size--out {
    opacity: 0.3;
    text-decoration: line-through;
    pointer-events: none;
}

/* ---------- LIST VIEW ---------- */
.ctvt-products-grid--list .ctvt-product-card,
.ctvt-products-grid--list ul.products li.product {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--wp--preset--color--border, #eee);
}

.ctvt-products-grid--list .ctvt-loop-img-wrapper {
    aspect-ratio: 1 / 1.2;
    height: 200px;
    width: 200px;
}

.ctvt-products-grid--list .ctvt-loop-actions {
    flex-direction: row;
    top: auto;
    bottom: 10px;
    right: 10px;
}

/* ---------- NO RESULTS ---------- */
.ctvt-no-results {
    padding: 60px 20px;
    text-align: center;
}

.ctvt-no-results p {
    font-size: 1rem;
    color: var(--wp--preset--color--muted, #888);
    margin-bottom: 16px;
}

/* ---------- PAGINATION ---------- */
.ctvt-pagination {
    margin-top: 48px;
    gap: 4px;
}

.ctvt-pagination .page-numbers,
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--wp--preset--color--border, #ddd);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--wp--preset--color--primary, #000);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ctvt-pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers li a:hover {
    background: var(--wp--preset--color--surface, #f5f5f5);
}

.ctvt-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers li span.current {
    background: var(--wp--preset--color--primary, #000);
    color: #fff;
    border-color: var(--wp--preset--color--primary, #000);
}

.ctvt-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ---------- QUICK VIEW MODAL ---------- */
.ctvt-qv-modal .ctvt-modal__content {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    border-radius: var(--ctvt-radius-lg, 8px);
}

.ctvt-qv-modal__body {
    min-height: 300px;
}

.ctvt-qv-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* Spinner */
.ctvt-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--wp--preset--color--border, #eee);
    border-top-color: var(--wp--preset--color--primary, #000);
    border-radius: 50%;
    animation: ctvt-spin 0.7s linear infinite;
}

@keyframes ctvt-spin {
    to { transform: rotate(360deg); }
}

/* Quick View layout */
.ctvt-qv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.ctvt-qv__gallery {
    position: relative;
    background: var(--wp--preset--color--surface, #f5f5f5);
}

.ctvt-qv__main-img {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.ctvt-qv__main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.ctvt-qv__main-img .ctvt-loop-badges {
    z-index: 2;
}

.ctvt-qv__thumbs {
    display: flex;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid var(--wp--preset--color--border, #eee);
}

.ctvt-qv__thumb {
    flex-shrink: 0;
    width: 60px;
    height: 75px;
    overflow: hidden;
    background: none;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.ctvt-qv__thumb.active {
    border-color: var(--wp--preset--color--primary, #000);
}

.ctvt-qv__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ctvt-qv__info {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 80vh;
}

.ctvt-qv__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.ctvt-qv__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--wp--preset--color--muted, #888);
}

.ctvt-qv__price {
    font-size: 1.3rem;
    font-weight: 700;
}

.ctvt-qv__price .woocommerce-Price-amount {
    font-size: inherit;
}

.ctvt-qv__price del {
    font-weight: 400;
    opacity: 0.45;
    font-size: 0.9rem;
}

.ctvt-qv__price ins {
    text-decoration: none;
    color: var(--wp--preset--color--error, #e53935);
}

.ctvt-qv__pix {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--wp--preset--color--pix, #32bcad);
    font-weight: 500;
}

.ctvt-qv__installments {
    font-size: 0.8rem;
    color: var(--wp--preset--color--muted, #888);
}

.ctvt-qv__description {
    font-size: 0.875rem;
    color: var(--wp--preset--color--muted, #666);
    line-height: 1.6;
    border-top: 1px solid var(--wp--preset--color--border, #eee);
    padding-top: 12px;
}

.ctvt-qv__qty-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ctvt-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--wp--preset--color--border, #ddd);
}

.ctvt-qty-btn {
    width: 38px;
    height: 42px;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--wp--preset--color--primary, #000);
    transition: background 0.15s ease;
    font-family: inherit;
}

.ctvt-qty-btn:hover {
    background: var(--wp--preset--color--surface, #f5f5f5);
}

.ctvt-qty-input {
    width: 50px;
    height: 42px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--wp--preset--color--border, #ddd);
    border-right: 1px solid var(--wp--preset--color--border, #ddd);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}

.ctvt-qty-input::-webkit-inner-spin-button,
.ctvt-qty-input::-webkit-outer-spin-button {
    appearance: none;
}

.ctvt-qv__atc {
    flex: 1;
    padding: 12px 20px;
    font-size: 0.8rem;
}

.ctvt-qv__variable-note,
.ctvt-qv__out-of-stock {
    font-size: 0.875rem;
    color: var(--wp--preset--color--muted, #888);
    padding: 12px;
    background: var(--wp--preset--color--surface, #f5f5f5);
    border-radius: 4px;
    margin: 0;
}

.ctvt-qv__full-link {
    font-size: 0.78rem;
    color: var(--wp--preset--color--muted, #888);
    text-decoration: underline;
    margin-top: 4px;
}

.ctvt-qv__full-link:hover {
    color: var(--wp--preset--color--primary, #000);
}

/* ---------- CATALOG RESPONSIVE ---------- */
@media (max-width: 1100px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .ctvt-catalog-layout {
        flex-direction: column;
    }

    /* Sidebar mobile: off-canvas */
    .ctvt-filters-sidebar {
        position: fixed;
        inset: 0;
        z-index: 9990;
        width: 300px;
        max-width: 85vw;
        height: 100%;
        max-height: 100%;
        background: #fff;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 0;
        top: 0;
    }

    .ctvt-filters-sidebar.active {
        transform: translateX(0);
    }

    .ctvt-filters-sidebar__header,
    .ctvt-filters-sidebar__footer {
        display: flex;
    }

    .ctvt-filter-group {
        padding: 0 20px;
    }

    .ctvt-filter-group__header {
        padding: 14px 0;
    }

    .ctvt-products-area {
        width: 100%;
    }

    ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ctvt-qv {
        grid-template-columns: 1fr;
    }

    .ctvt-qv__gallery {
        max-height: 280px;
        overflow: hidden;
    }

    .ctvt-qv__info {
        padding: 24px 20px;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .ctvt-catalog {
        padding: 0 16px 60px;
    }

    ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ctvt-catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ---------- BUTTONS ---------- */
.ctvt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--wp--preset--color--primary, #000);
    color: var(--wp--preset--color--background, #fff);
    border: 2px solid var(--wp--preset--color--primary, #000);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    font-family: inherit;
}

.ctvt-btn:hover {
    background: transparent;
    color: var(--wp--preset--color--primary, #000);
}

.ctvt-btn--outline {
    background: transparent;
    color: var(--wp--preset--color--primary, #000);
}

.ctvt-btn--outline:hover {
    background: var(--wp--preset--color--primary, #000);
    color: var(--wp--preset--color--background, #fff);
}

/* ---------- MINI CART DRAWER ---------- */
.ctvt-cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 92vw;
    height: 100vh;
    background: var(--wp--preset--color--background, #fff);
    z-index: 9998;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.12);
    transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ctvt-cart-drawer.active {
    right: 0;
}

.ctvt-cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
    flex-shrink: 0;
}

.ctvt-cart-drawer__header h3 {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.ctvt-cart-drawer__close {
    background: none;
    border: none;
    padding: 4px;
    color: var(--wp--preset--color--text-light, #666);
    display: flex;
    transition: color 0.2s ease;
}

.ctvt-cart-drawer__close:hover {
    color: var(--wp--preset--color--primary, #000);
}

/* Free Shipping Bar (inside drawer) */
.ctvt-cart-drawer .ctvt-free-shipping-bar {
    margin: 0;
    padding: 12px 20px;
    background: var(--wp--preset--color--surface, #f5f5f5);
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
    border-radius: 0;
    flex-shrink: 0;
}

.ctvt-cart-drawer .ctvt-free-shipping-bar__text {
    font-size: 0.75rem;
    margin-bottom: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ctvt-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--wp--preset--color--border, #e0e0e0) transparent;
}

.ctvt-cart-drawer__body::-webkit-scrollbar {
    width: 4px;
}
.ctvt-cart-drawer__body::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--border, #e0e0e0);
    border-radius: 2px;
}

/* Mini Cart Items */
.ctvt-mini-cart-items {
    padding: 8px 0;
}

.ctvt-mini-cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
    position: relative;
    align-items: flex-start;
}

.ctvt-mini-cart-item__image {
    width: 72px;
    flex-shrink: 0;
    background: var(--wp--preset--color--surface, #f5f5f5);
}

.ctvt-mini-cart-item__image img {
    width: 100%;
    height: 93px;
    object-fit: cover;
    display: block;
}

.ctvt-mini-cart-item__info {
    flex: 1;
    padding-right: 24px;
}

.ctvt-mini-cart-item__info h4 {
    margin: 0 0 4px;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
}

.ctvt-mini-cart-item__meta {
    font-size: 0.75rem;
    color: var(--wp--preset--color--text-light, #666);
    margin-bottom: 6px;
}

.ctvt-mini-cart-item__price {
    font-size: 0.85rem;
    font-weight: 600;
}

.ctvt-mini-cart-item__qty-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.ctvt-mini-cart-item__qty-btn {
    background: none;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--wp--preset--color--primary, #000);
    transition: background 0.2s ease;
}

.ctvt-mini-cart-item__qty-btn:hover {
    background: var(--wp--preset--color--surface, #f5f5f5);
}

.ctvt-mini-cart-item__qty-val {
    font-size: 0.82rem;
    min-width: 20px;
    text-align: center;
}

.ctvt-mini-cart-item__remove {
    position: absolute;
    top: 14px;
    right: 0;
    background: none;
    border: none;
    padding: 2px;
    color: var(--wp--preset--color--text-light, #666);
    display: flex;
    transition: color 0.2s ease;
}

.ctvt-mini-cart-item__remove:hover {
    color: var(--wp--preset--color--error, #c62828);
}

.ctvt-mini-cart-empty {
    text-align: center;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ctvt-mini-cart-empty p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-light, #666);
}

/* Cart Drawer Footer */
.ctvt-mini-cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--wp--preset--color--border, #e0e0e0);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    background: var(--wp--preset--color--background, #fff);
}

.ctvt-mini-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
    margin-bottom: 2px;
}

.ctvt-mini-cart-total span {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    font-weight: 600;
}

.ctvt-mini-cart-total strong {
    font-size: 1.1rem;
}

/* Overlay */
.ctvt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ctvt-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- NEWSLETTER ---------- */
.ctvt-newsletter {
    text-align: center;
    padding: 20px 0;
}

.ctvt-newsletter__title {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.ctvt-newsletter__subtitle {
    margin: 0 0 16px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.ctvt-newsletter__form {
    display: flex;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
}

.ctvt-newsletter__form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-family: inherit;
    font-size: 0.9rem;
}

.ctvt-newsletter__form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ctvt-newsletter__form .ctvt-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    white-space: nowrap;
}

/* ---------- STORE INFO ---------- */
.ctvt-store-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.ctvt-store-info__image img {
    border-radius: 8px;
}

.ctvt-store-info__content h3 {
    margin: 0 0 16px;
    font-size: 1.5rem;
}

.ctvt-store-info__address,
.ctvt-store-info__hours {
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-light, #666);
    line-height: 1.7;
}

/* ---------- WHATSAPP FLOAT ---------- */
.ctvt-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ctvt-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ---------- JOURNAL / BLOG CARDS ---------- */
.ctvt-journal-card,
.ctvt-post-card {
    overflow: hidden;
}

.ctvt-journal-card img,
.ctvt-post-card img {
    transition: transform 0.5s ease;
}

.ctvt-journal-card:hover img,
.ctvt-post-card:hover img {
    transform: scale(1.05);
}

/* ---------- FOOTER ---------- */
.ctvt-footer {
    padding: 60px 0 30px !important;
}

.ctvt-footer h4 {
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.ctvt-footer-nav a {
    display: block;
    padding: 4px 0;
    font-size: 0.85rem;
    opacity: 0.7;
    text-decoration: none;
    color: inherit !important;
    transition: opacity 0.2s ease;
}

.ctvt-footer-nav a:hover {
    opacity: 1;
}

.ctvt-footer__divider {
    opacity: 0.15;
    margin: 40px 0 20px;
}

.ctvt-footer__bottom {
    gap: 16px;
}

/* ---------- BREADCRUMBS ---------- */
.ctvt-breadcrumbs {
    padding: 12px 0;
    margin-bottom: 8px;
}

.ctvt-breadcrumbs a {
    text-decoration: none;
    color: var(--wp--preset--color--text-light, #666);
}

/* ---------- LOADING SPINNER ---------- */
.ctvt-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--wp--preset--color--border, #e0e0e0);
    border-top-color: var(--wp--preset--color--primary, #000);
    border-radius: 50%;
    animation: ctvt-spin 0.6s linear infinite;
}

@keyframes ctvt-spin {
    to { transform: rotate(360deg); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 999px) {
    /* Header: show hamburger, hide desktop nav */
    .ctvt-header__hamburger {
        display: flex;
    }

    .ctvt-nav {
        display: none !important;
    }

    .ctvt-header__container {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        min-height: 56px;
    }

    .ctvt-header__action-btn--wishlist,
    .ctvt-header__action-btn--account {
        display: none;
    }

    /* Mega menu: hide on tablet/mobile */
    .ctvt-megamenu {
        display: none !important;
    }

    /* Product page */
    .ctvt-product-layout {
        flex-direction: column !important;
    }

    .ctvt-product-gallery-col,
    .ctvt-product-summary-col {
        flex-basis: 100% !important;
    }

    /* Catalog sidebar */
    .ctvt-filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: #fff;
        z-index: 9998;
        overflow-y: auto;
        padding: 20px;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }

    .ctvt-filters-sidebar.active {
        display: block;
    }

    .ctvt-store-info {
        grid-template-columns: 1fr;
    }

    .ctvt-recently-viewed__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ctvt-body-measures {
        grid-template-columns: 1fr;
    }

    .ctvt-hero .wp-block-cover {
        min-height: 50vh !important;
    }

    /* Search overlay: adjust for smaller screens */
    .ctvt-search-overlay__inner {
        padding-top: 10vh;
    }

    .ctvt-search-overlay__input {
        font-size: 1.3rem;
    }
}

@media (max-width: 640px) {
    .ctvt-header__container {
        padding: 0 16px;
    }

    .ctvt-recently-viewed__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctvt-cart-drawer {
        width: 100%;
        right: -100%;
    }

    .ctvt-shipping-calc__form {
        flex-direction: column;
    }

    .ctvt-notify-me__form {
        flex-direction: column;
    }

    .ctvt-newsletter__form {
        flex-direction: column;
    }

    .ctvt-section {
        padding: 40px 0;
    }

    .ctvt-topbar-message__text {
        font-size: 0.65rem;
    }

    .ctvt-search-overlay__input {
        font-size: 1rem;
    }

    .ctvt-mobile-menu {
        width: 100%;
        max-width: 100vw;
        left: -100%;
    }
}

/* ==========================================================================
   FASE 3 — HOMEPAGE
   ========================================================================== */

/* ---------- SECTION HEADER (reutilizável) ---------- */
.ctvt-section {
    padding: 64px 0;
}

.ctvt-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.ctvt-section-header__eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent, #666);
    margin-bottom: 8px;
}

.ctvt-section-header__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--wp--preset--color--primary, #000);
}

.ctvt-section-header__subtitle {
    font-size: 1rem;
    color: var(--wp--preset--color--muted, #666);
    margin: 0 0 20px;
}

.ctvt-section-header__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary, #000);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.ctvt-section-header__link:hover {
    opacity: 0.6;
}

/* ---------- HERO SLIDER ---------- */
.ctvt-hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--wp--preset--color--primary, #111);
    width: 100%;
}

.ctvt-hero-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
}

.ctvt-hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    min-height: clamp(480px, 70vh, 800px);
}

.ctvt-hero-slider__slide--active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.ctvt-hero-slider__slide--placeholder {
    background: var(--wp--preset--color--primary, #111);
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctvt-hero-slider__picture {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ctvt-hero-slider__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.ctvt-hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
    pointer-events: none;
}

.ctvt-hero-slider__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(40px, 8vw, 80px) clamp(20px, 6vw, 120px);
    min-height: inherit;
    gap: 20px;
}

.ctvt-hero-slider__content--left {
    align-items: flex-start;
    text-align: left;
    padding-left: clamp(40px, 8vw, 140px);
}

.ctvt-hero-slider__content--right {
    align-items: flex-end;
    text-align: right;
    padding-right: clamp(40px, 8vw, 140px);
}

/* Text colors */
.ctvt-hero-slider__content--light .ctvt-hero-slider__title,
.ctvt-hero-slider__content--light .ctvt-hero-slider__subtitle,
.ctvt-hero-slider__content--light .ctvt-hero-slider__eyebrow {
    color: #fff;
}

.ctvt-hero-slider__content--dark .ctvt-hero-slider__title,
.ctvt-hero-slider__content--dark .ctvt-hero-slider__subtitle,
.ctvt-hero-slider__content--dark .ctvt-hero-slider__eyebrow {
    color: #111;
}

.ctvt-hero-slider__eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.85;
}

.ctvt-hero-slider__title {
    font-size: clamp(2rem, 5.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0;
    max-width: 14ch;
}

.ctvt-hero-slider__subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    max-width: 44ch;
    opacity: 0.9;
    margin: 0;
    line-height: 1.55;
}

.ctvt-hero-slider__cta {
    margin-top: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    padding: 14px 36px;
}

.ctvt-hero-slider__cta--outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
}

.ctvt-hero-slider__cta--outline:hover {
    background: #fff;
    color: #000;
}

.ctvt-hero-slider__cta--solid {
    background: var(--wp--preset--color--primary, #000);
    color: #fff;
    border: 1.5px solid var(--wp--preset--color--primary, #000);
}

.ctvt-hero-slider__cta--solid:hover {
    opacity: 0.85;
}

/* Arrows */
.ctvt-hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ctvt-hero-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ctvt-hero-slider__arrow--prev {
    left: 24px;
}

.ctvt-hero-slider__arrow--next {
    right: 24px;
}

.ctvt-hero-slider__arrow:active {
    transform: translateY(-50%) scale(0.94);
}

/* Dots */
.ctvt-hero-slider__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.ctvt-hero-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.ctvt-hero-slider__dot.active {
    background: #fff;
    transform: scale(1.4);
}

/* ---------- COUNTDOWN BAR ---------- */
.ctvt-countdown-bar {
    background: var(--wp--preset--color--accent, #d4a853);
    color: #fff;
    padding: 14px 24px;
    text-align: center;
}

.ctvt-countdown-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ctvt-countdown-bar__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ctvt-countdown-bar__description {
    font-size: 0.8rem;
    opacity: 0.9;
}

.ctvt-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ctvt-countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.ctvt-countdown__number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.ctvt-countdown__label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-top: 2px;
}

.ctvt-countdown__separator {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.6;
    margin-bottom: 12px;
}

/* ---------- CATEGORY BANNERS GRID ---------- */
.ctvt-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 0 24px;
    max-width: 1440px;
    margin: 0 auto;
}

.ctvt-category-card {
    overflow: hidden;
    border-radius: var(--ctvt-radius, 4px);
}

.ctvt-category-card--half {
    grid-column: span 3;
}

.ctvt-category-card--third {
    grid-column: span 2;
}

.ctvt-category-card--full {
    grid-column: span 6;
}

.ctvt-category-card__inner {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    text-decoration: none;
}

.ctvt-category-card--full .ctvt-category-card__inner {
    aspect-ratio: 21 / 6;
}

.ctvt-category-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ctvt-category-card__inner:hover .ctvt-category-card__image {
    transform: scale(1.06);
}

.ctvt-category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    transition: opacity 0.3s ease;
}

.ctvt-category-card__inner:hover .ctvt-category-card__overlay {
    opacity: 0.85;
}

.ctvt-category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: #fff;
    transform: translateY(4px);
    transition: transform 0.3s ease;
}

.ctvt-category-card__inner:hover .ctvt-category-card__content {
    transform: translateY(0);
}

.ctvt-category-card__title {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.ctvt-category-card__subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0 0 10px;
}

.ctvt-category-card__link {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.ctvt-category-card__inner:hover .ctvt-category-card__link {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- HOMEPAGE PRODUCT SECTIONS ---------- */
.ctvt-featured,
.ctvt-new-arrivals {
    max-width: 1440px;
    margin: 0 auto;
    padding: 64px 24px;
}

.ctvt-journal {
    padding: 64px 24px;
    background: var(--wp--preset--color--surface, #f7f7f7);
}

.ctvt-journal .wp-block-query {
    max-width: 1200px;
    margin: 0 auto;
}

/* Journal card */
.ctvt-journal-card {
    overflow: hidden;
}

.ctvt-journal-card .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--ctvt-radius, 4px);
    transition: transform 0.4s ease;
}

.ctvt-journal-card:hover .wp-block-post-featured-image img {
    transform: scale(1.03);
}

.ctvt-journal-card .wp-block-post-date {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wp--preset--color--muted, #888);
    margin-top: 14px;
}

.ctvt-journal-card .wp-block-post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 6px 0;
}

.ctvt-journal-card .wp-block-post-title a {
    text-decoration: none;
    color: var(--wp--preset--color--primary, #000);
}

.ctvt-journal-card .wp-block-post-title a:hover {
    opacity: 0.7;
}

.ctvt-journal-card .wp-block-post-excerpt {
    font-size: 0.875rem;
    color: var(--wp--preset--color--muted, #666);
    line-height: 1.55;
}

/* Physical store section */
.ctvt-physical-store {
    padding: 64px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.ctvt-store-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.ctvt-store-info__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--ctvt-radius, 4px);
}

.ctvt-store-info__content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.ctvt-store-info__address,
.ctvt-store-info__hours {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--wp--preset--color--muted, #555);
    margin: 0 0 12px;
}

/* Newsletter section */
.ctvt-newsletter-section {
    padding: 64px 24px;
    text-align: center;
}

.ctvt-newsletter {
    max-width: 540px;
    margin: 0 auto;
}

.ctvt-newsletter__title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    margin: 0 0 10px;
    color: inherit;
}

.ctvt-newsletter__subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0 0 24px;
}

.ctvt-newsletter__form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

.ctvt-newsletter__form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--ctvt-radius, 4px);
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    font-size: 0.875rem;
    outline: none;
}

.ctvt-newsletter__form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.ctvt-newsletter__form input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.25);
}

.ctvt-newsletter__form .ctvt-btn {
    white-space: nowrap;
    background: #fff;
    color: var(--wp--preset--color--primary, #000);
    border-color: #fff;
}

.ctvt-newsletter__form .ctvt-btn:hover {
    background: transparent;
    color: #fff;
}

/* ---------- NEWSLETTER POPUP ---------- */
.ctvt-newsletter-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ctvt-newsletter-popup[hidden] {
    display: none;
}

.ctvt-newsletter-popup--visible {
    display: flex;
    animation: ctvt-popup-fade-in 0.4s ease forwards;
}

@keyframes ctvt-popup-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ctvt-newsletter-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.ctvt-newsletter-popup__box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--ctvt-radius-lg, 8px);
    overflow: hidden;
    display: flex;
    max-width: 760px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    animation: ctvt-popup-slide-up 0.4s cubic-bezier(0.34, 1.36, 0.64, 1) forwards;
}

@keyframes ctvt-popup-slide-up {
    from { transform: translateY(20px) scale(0.97); }
    to   { transform: translateY(0) scale(1); }
}

.ctvt-newsletter-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.ctvt-newsletter-popup__close:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.06);
}

.ctvt-newsletter-popup__image {
    flex: 0 0 280px;
    overflow: hidden;
}

.ctvt-newsletter-popup__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ctvt-newsletter-popup__content {
    flex: 1;
    padding: 48px 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ctvt-newsletter-popup__title {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    color: var(--wp--preset--color--primary, #000);
    line-height: 1.2;
}

.ctvt-newsletter-popup__subtitle {
    font-size: 0.9rem;
    color: var(--wp--preset--color--muted, #666);
    margin: 0 0 24px;
    line-height: 1.5;
}

.ctvt-newsletter-popup__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ctvt-newsletter-popup__input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--wp--preset--color--border, #ddd);
    border-radius: var(--ctvt-radius, 4px);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.ctvt-newsletter-popup__input:focus {
    border-color: var(--wp--preset--color--primary, #000);
}

.ctvt-newsletter-popup__submit {
    width: 100%;
}

.ctvt-newsletter-popup__success {
    text-align: center;
    padding: 20px 0;
}

.ctvt-newsletter-popup__success p {
    color: var(--wp--preset--color--muted, #555);
    margin: 0 0 16px;
    font-size: 0.9rem;
}

.ctvt-newsletter-popup__coupon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--wp--preset--color--surface, #f7f7f7);
    border: 1.5px dashed var(--wp--preset--color--border, #ddd);
    border-radius: var(--ctvt-radius, 4px);
    padding: 12px 18px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--primary, #000);
}

.ctvt-newsletter-popup__copy {
    background: var(--wp--preset--color--primary, #000);
    color: #fff;
    border: none;
    border-radius: var(--ctvt-radius, 4px);
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ctvt-newsletter-popup__copy:hover {
    opacity: 0.75;
}

.ctvt-newsletter-popup__skip {
    margin: 16px 0 0;
    text-align: center;
}

.ctvt-newsletter-popup__skip-btn {
    background: none;
    border: none;
    font-size: 0.78rem;
    color: var(--wp--preset--color--muted, #aaa);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.ctvt-newsletter-popup__skip-btn:hover {
    color: var(--wp--preset--color--primary, #000);
}

/* ---------- HOMEPAGE RESPONSIVE ---------- */
@media (max-width: 1200px) {
    .ctvt-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ctvt-category-card--half {
        grid-column: span 2;
    }

    .ctvt-category-card--third {
        grid-column: span 2;
    }

    .ctvt-category-card--full {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .ctvt-hero-slider__slide {
        min-height: clamp(380px, 75vw, 560px);
    }

    .ctvt-hero-slider__arrow {
        width: 38px;
        height: 38px;
    }

    .ctvt-hero-slider__arrow--prev { left: 12px; }
    .ctvt-hero-slider__arrow--next { right: 12px; }

    .ctvt-categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 0 16px;
    }

    .ctvt-category-card--half,
    .ctvt-category-card--third,
    .ctvt-category-card--full {
        grid-column: span 1;
    }

    .ctvt-category-card--full {
        grid-column: span 2;
    }

    .ctvt-newsletter-popup__box {
        flex-direction: column;
        max-width: 400px;
    }

    .ctvt-newsletter-popup__image {
        flex: 0 0 180px;
    }

    .ctvt-newsletter-popup__content {
        padding: 32px 28px 28px;
    }

    .ctvt-countdown-bar__inner {
        gap: 12px;
    }

    .ctvt-countdown__number {
        font-size: 1.2rem;
    }

    .ctvt-store-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ctvt-newsletter-popup__image {
        display: none;
    }

    .ctvt-categories-grid {
        grid-template-columns: 1fr;
    }

    .ctvt-category-card--half,
    .ctvt-category-card--third,
    .ctvt-category-card--full {
        grid-column: span 1;
    }

    .ctvt-newsletter__form {
        flex-direction: column;
    }
}

/* ============================================================
   FASE 5 — PRODUCT PAGE (PDP)
   ============================================================ */

/* Sticky gallery column */
.ctvt-product-gallery-col {
    position: sticky;
    top: calc(var(--ctvt-header-h, 64px) + 16px);
    align-self: flex-start;
}

/* PDP badges */
.ctvt-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.ctvt-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    border-radius: 3px;
}

.ctvt-badge--sale {
    background: var(--wp--preset--color--accent, #e53935);
}

.ctvt-badge--new {
    background: var(--wp--preset--color--primary, #000);
}

.ctvt-badge--custom {
    background: var(--wp--preset--color--accent, #e53935);
}

/* Stock urgency */
.ctvt-stock-urgency {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 16px;
    font-size: 0.82rem;
}

.ctvt-stock-urgency__bar-wrapper {
    flex: 1;
    height: 4px;
    background: var(--wp--preset--color--border, #e0e0e0);
    border-radius: 2px;
    overflow: hidden;
    max-width: 120px;
}

.ctvt-stock-urgency__bar {
    height: 100%;
    background: var(--wp--preset--color--accent, #e53935);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.ctvt-stock-urgency__text {
    color: var(--wp--preset--color--accent, #e53935);
    white-space: nowrap;
}

.ctvt-stock-urgency__text strong {
    font-weight: 700;
}

/* ATC Sentinel (invisible anchor for IntersectionObserver) */
#ctvt-atc-sentinel {
    height: 1px;
    margin: 0;
    padding: 0;
}

/* Share buttons */
.ctvt-product-share {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--wp--preset--color--border, #e0e0e0);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ctvt-product-share__label {
    font-size: 0.8rem;
    color: var(--wp--preset--color--text-light, #666);
}

.ctvt-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctvt-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    border-radius: 20px;
    font-size: 0.78rem;
    font-family: inherit;
    color: var(--wp--preset--color--text, #111);
    background: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    line-height: 1;
}

.ctvt-share-btn:hover {
    background: var(--wp--preset--color--surface, #f5f5f5);
    border-color: var(--wp--preset--color--primary, #000);
}

.ctvt-share-btn svg {
    flex-shrink: 0;
}

/* Sticky Add to Cart bar */
.ctvt-sticky-atc {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: #fff;
    border-top: 1px solid var(--wp--preset--color--border, #e0e0e0);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.ctvt-sticky-atc--visible {
    transform: translateY(0);
    pointer-events: auto;
}

.ctvt-sticky-atc__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 24px;
}

.ctvt-sticky-atc__image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.ctvt-sticky-atc__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ctvt-sticky-atc__name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ctvt-sticky-atc__price {
    font-size: 0.85rem;
    color: var(--wp--preset--color--text-light, #666);
}

.ctvt-sticky-atc__btn {
    flex-shrink: 0;
    min-width: 180px;
    text-align: center;
}

/* Size swatches (replaces WC selects) */
.ctvt-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0;
}

.ctvt-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ctvt-swatch:hover:not(.ctvt-swatch--disabled) {
    border-color: var(--wp--preset--color--primary, #000);
}

.ctvt-swatch--active {
    background: var(--wp--preset--color--primary, #000);
    border-color: var(--wp--preset--color--primary, #000);
    color: #fff;
}

.ctvt-swatch--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ---- Phase 5 responsive ---- */
@media (max-width: 960px) {
    .ctvt-product-gallery-col {
        position: static;
    }

    .ctvt-sticky-atc__image {
        display: none;
    }

    .ctvt-sticky-atc__inner {
        padding: 10px 16px;
    }

    .ctvt-sticky-atc__btn {
        min-width: 140px;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .ctvt-sticky-atc__info {
        display: none;
    }

    .ctvt-sticky-atc__btn {
        flex: 1;
    }

    .ctvt-product-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   FASE 6 — CARRINHO & CHECKOUT
   ============================================================ */

/* Checkout progress steps */
.ctvt-checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 20px;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}

.ctvt-checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ctvt-checkout-step__circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid var(--wp--preset--color--border, #ddd);
    background: #fff;
    color: var(--wp--preset--color--text-light, #aaa);
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.ctvt-checkout-step--active .ctvt-checkout-step__circle {
    background: var(--wp--preset--color--primary, #000);
    border-color: var(--wp--preset--color--primary, #000);
    color: #fff;
}

.ctvt-checkout-step--done .ctvt-checkout-step__circle {
    background: var(--wp--preset--color--success, #2e7d32);
    border-color: var(--wp--preset--color--success, #2e7d32);
    color: #fff;
}

.ctvt-checkout-step__label {
    font-size: 0.72rem;
    color: var(--wp--preset--color--text-light, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 500;
    white-space: nowrap;
}

.ctvt-checkout-step--active .ctvt-checkout-step__label,
.ctvt-checkout-step--done .ctvt-checkout-step__label {
    color: var(--wp--preset--color--text, #111);
    font-weight: 600;
}

.ctvt-checkout-step__connector {
    flex: 1;
    height: 2px;
    background: var(--wp--preset--color--border, #ddd);
    min-width: 32px;
    max-width: 80px;
    margin-bottom: 24px;
    transition: background 0.25s;
}

.ctvt-checkout-step__connector--done {
    background: var(--wp--preset--color--success, #2e7d32);
}

/* Free shipping progress bar */
.ctvt-free-shipping-bar {
    background: var(--wp--preset--color--surface, #f9f9f9);
    border: 1px solid var(--wp--preset--color--border, #e0e0e0);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.ctvt-free-shipping-bar__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.ctvt-free-shipping-bar__icon {
    color: var(--wp--preset--color--primary, #000);
    display: flex;
    flex-shrink: 0;
}

.ctvt-free-shipping-bar__track {
    height: 5px;
    background: var(--wp--preset--color--border, #e0e0e0);
    border-radius: 3px;
    overflow: hidden;
}

.ctvt-free-shipping-bar__fill {
    height: 100%;
    background: var(--wp--preset--color--success, #2e7d32);
    border-radius: 3px;
    transition: width 0.5s ease;
    max-width: 100%;
}

/* Cart / Checkout page container */
.ctvt-cart-page,
.ctvt-checkout-page {
    padding-bottom: 80px;
}

/* ============================================================
   FASE 7 — RODAPÉ & PÁGINAS INSTITUCIONAIS
   ============================================================ */

/* Footer */
.ctvt-footer {
    padding-top: 56px !important;
    padding-bottom: 0 !important;
}

.ctvt-footer__top.wp-block-columns {
    align-items: flex-start !important;
    gap: 36px !important;
    margin-bottom: 0 !important;
}

/* Brand column */
.ctvt-footer__brand.wp-block-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ctvt-footer__logo img {
    filter: brightness(0) invert(1);
    max-width: 130px;
    height: auto;
}

.ctvt-footer__tagline {
    margin: 0 !important;
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    opacity: 0.65;
}

/* Nav column headings */
.ctvt-footer__nav-title {
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    margin: 0 0 14px !important;
    opacity: 0.5;
    font-size: 0.7rem !important;
}

/* Footer navigation links */
.ctvt-footer-nav .wp-block-navigation__container,
.ctvt-footer-nav > ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ctvt-footer-nav a,
.ctvt-footer-nav .wp-block-navigation-item__content {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.88rem !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.ctvt-footer-nav a:hover {
    color: #fff !important;
}

/* Social links */
.ctvt-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ctvt-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.ctvt-social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Newsletter overrides inside dark footer */
.ctvt-footer .ctvt-newsletter {
    gap: 10px;
}

.ctvt-footer .ctvt-newsletter__title {
    color: #fff !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
}

.ctvt-footer .ctvt-newsletter__subtitle {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.82rem !important;
    margin: 0 !important;
}

.ctvt-footer .ctvt-newsletter__form {
    flex-direction: column;
    gap: 8px;
}

.ctvt-footer .ctvt-newsletter__form input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    border-radius: 4px;
}

.ctvt-footer .ctvt-newsletter__form input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

.ctvt-footer .ctvt-newsletter__form .ctvt-btn {
    background: #fff !important;
    color: var(--wp--preset--color--primary, #000) !important;
    border-color: #fff !important;
    width: 100%;
}

/* Footer divider */
.ctvt-footer__divider.wp-block-separator {
    margin: 40px 0 24px !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    opacity: 1 !important;
}

/* Footer bottom bar */
.ctvt-footer__bottom.wp-block-group {
    padding-bottom: 28px !important;
    gap: 16px;
}

/* Copyright text */
.ctvt-footer-copyright {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    align-items: center;
}

.ctvt-footer-copyright p {
    margin: 0 !important;
    font-size: 0.78rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
    line-height: 1.5 !important;
}

/* Payment icons */
.ctvt-payment-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.ctvt-payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-transform: uppercase;
    line-height: 1.6;
}

.ctvt-payment-icon--visa       { background: #1a1f71; border-color: #1a1f71; }
.ctvt-payment-icon--mastercard { background: #eb001b; border-color: #eb001b; }
.ctvt-payment-icon--elo        { background: #fff; color: #111; border-color: rgba(0,0,0,0.15); }
.ctvt-payment-icon--amex       { background: #2e77bc; border-color: #2e77bc; }
.ctvt-payment-icon--pix        { background: #32bcad; border-color: #32bcad; }
.ctvt-payment-icon--hipercard  { background: #8b0000; border-color: #8b0000; }

/* Institutional page */
.ctvt-page {
    padding-top: 0;
}

.ctvt-page__body {
    padding: 32px 24px 80px;
}

.ctvt-page-title.wp-block-post-title {
    margin: 20px 0 32px !important;
    font-size: clamp(1.6rem, 4vw, 2.4rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em;
}

.ctvt-page__hero-image.wp-block-post-featured-image {
    margin-bottom: 32px !important;
    border-radius: 8px;
    overflow: hidden;
}

.ctvt-page__hero-image.wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ctvt-page__content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--wp--preset--color--text, #222);
}

.ctvt-page__content h2,
.ctvt-page__content h3,
.ctvt-page__content h4 {
    margin-top: 40px !important;
    margin-bottom: 14px !important;
}

.ctvt-page__content p {
    margin-bottom: 18px;
}

.ctvt-page__content a {
    color: var(--wp--preset--color--primary, #000);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ctvt-page__content ul,
.ctvt-page__content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.ctvt-page__content li {
    margin-bottom: 6px;
}

/* Breadcrumbs (generic — institutional pages) */
.ctvt-breadcrumbs {
    padding: 14px 0 10px;
    font-size: 0.78rem;
    color: var(--wp--preset--color--text-light, #888);
}

.ctvt-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.ctvt-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 0;
}

.ctvt-breadcrumbs__link {
    color: var(--wp--preset--color--text-light, #888);
    text-decoration: none;
}

.ctvt-breadcrumbs__link:hover {
    color: var(--wp--preset--color--primary, #000);
}

.ctvt-breadcrumbs__sep {
    margin: 0 6px;
    opacity: 0.4;
}

.ctvt-breadcrumbs__current {
    color: var(--wp--preset--color--text, #333);
}

/* ---- Fase 6+7 responsive ---- */
@media (max-width: 900px) {
    .ctvt-footer__top.wp-block-columns {
        flex-wrap: wrap !important;
    }

    .ctvt-footer__brand.wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 12px 24px !important;
    }
}

@media (max-width: 600px) {
    .ctvt-footer {
        padding-top: 40px !important;
    }

    .ctvt-footer__top.wp-block-columns > .wp-block-column {
        flex-basis: 100% !important;
    }

    .ctvt-footer__bottom.wp-block-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }

    .ctvt-checkout-steps {
        padding: 16px 8px 12px;
    }

    .ctvt-checkout-step__label {
        font-size: 0.6rem;
    }

    .ctvt-checkout-step__connector {
        min-width: 20px;
    }

    .ctvt-checkout-step__circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* ---------- BADGE SHAPE VARIANTS ---------- */
.ctvt-badge--pill,
.ctvt-loop-badge.ctvt-badge--pill {
    border-radius: 100px;
}

.ctvt-badge--square,
.ctvt-loop-badge.ctvt-badge--square {
    border-radius: 3px;
}

.ctvt-badge--circle,
.ctvt-loop-badge.ctvt-badge--circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    text-align: center;
    line-height: 1.1;
}

/* Badge editor preview shape sync */
#ctvt-badge-preview.ctvt-badge--pill   { border-radius: 100px; }
#ctvt-badge-preview.ctvt-badge--square { border-radius: 3px; }
#ctvt-badge-preview.ctvt-badge--circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    font-size: 0.6rem;
    text-align: center;
}

/* ---------- STOCK BAR COLOR VARIANTS ---------- */
.ctvt-stock-urgency__bar--critical {
    background: var(--wp--preset--color--accent, #e53935);
}

.ctvt-stock-urgency__bar--low {
    background: #e65100;
}

.ctvt-stock-urgency__bar--medium {
    background: #f57f17;
}

/* Loop stock bar (mini — no text) */
.ctvt-loop-stock-bar {
    height: 3px;
    background: var(--wp--preset--color--border, #e2e2e2);
    border-radius: 2px;
    margin: 6px 0 4px;
    overflow: hidden;
}

.ctvt-loop-stock-bar__fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease;
    background: #f57f17;
}

.ctvt-loop-stock-bar--critical .ctvt-loop-stock-bar__fill {
    background: var(--wp--preset--color--accent, #e53935);
}

.ctvt-loop-stock-bar--low .ctvt-loop-stock-bar__fill {
    background: #e65100;
}

.ctvt-loop-stock-bar--medium .ctvt-loop-stock-bar__fill {
    background: #f57f17;
}

/* ---------- PDP SALE COUNTDOWN ---------- */
.ctvt-pdp-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    margin: 8px 0 4px;
}

.ctvt-pdp-countdown__label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e65100;
    white-space: nowrap;
}

.ctvt-pdp-countdown__label svg {
    color: #e65100;
    flex-shrink: 0;
}

.ctvt-pdp-countdown__timer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 1rem;
    color: #bf360c;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.ctvt-pdp-countdown__unit {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.ctvt-pdp-countdown__num {
    min-width: 1.6ch;
    text-align: right;
}

.ctvt-pdp-countdown__lbl {
    font-size: 0.65rem;
    font-weight: 500;
    color: #bf360c;
    opacity: 0.75;
}

.ctvt-pdp-countdown__sep {
    opacity: 0.5;
    margin: 0 1px;
}

/* ---------- MODEL REFERENCE ---------- */
.ctvt-model-ref {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    padding: 8px 12px;
    background: var(--wp--preset--color--surface, #f5f5f5);
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--wp--preset--color--text-light, #666);
}

.ctvt-model-ref__label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--ctvt-body-text, var(--wp--preset--color--text, #333));
    white-space: nowrap;
}

.ctvt-model-ref__info {
    color: var(--wp--preset--color--text-light, #666);
}

/* ---------- CSS VARIABLE OVERRIDES ---------- */
:root {
    --ctvt-primary: #1a1a1a;
    --ctvt-secondary: #c9a96e;
    --ctvt-accent: #c9a96e;
    --ctvt-topbar-bg: #1a1a1a;
    --ctvt-topbar-text: #ffffff;
    --ctvt-header-bg: #ffffff;
    --ctvt-header-text: #1a1a1a;
    --ctvt-body-bg: #ffffff;
    --ctvt-body-text: #333333;
    --ctvt-headings: #1a1a1a;
    --ctvt-section-title: #1a1a1a;
    --ctvt-price: #1a1a1a;
    --ctvt-sale-price: #c0392b;
    --ctvt-pix: #2d9f5a;
    --ctvt-btn-primary-bg: #1a1a1a;
    --ctvt-btn-primary-text: #ffffff;
    --ctvt-footer-bg: #1a1a1a;
    --ctvt-footer-text: #cccccc;
    --ctvt-footer-heading: #ffffff;
    --ctvt-footer-link: #cccccc;
    --ctvt-badge-sale: #c0392b;
    --ctvt-badge-new: #1a1a1a;
    --ctvt-banner-title: #ffffff;
    --ctvt-banner-subtitle: rgba(255,255,255,0.8);
    --ctvt-banner-btn-bg: #ffffff;
    --ctvt-banner-btn-text: #1a1a1a;
}

/* Apply CSS variables to key elements */
body { background-color: var(--ctvt-body-bg); color: var(--ctvt-body-text); }
h1, h2, h3, h4, h5, h6 { color: var(--ctvt-headings); }
.ctvt-section-title, .ctvt-section h2 { color: var(--ctvt-section-title); }

.ctvt-topbar { background: var(--ctvt-topbar-bg); color: var(--ctvt-topbar-text); }
.ctvt-header { background: var(--ctvt-header-bg); }
.ctvt-header__logo, .ctvt-header__action { color: var(--ctvt-header-text); }

.ctvt-pix-icon, .ctvt-pix-value, .ctvt-loop-pix { color: var(--ctvt-pix); }
.ctvt-pix-price { border-color: color-mix(in srgb, var(--ctvt-pix) 20%, transparent); background: color-mix(in srgb, var(--ctvt-pix) 8%, transparent); }

.ctvt-btn, button.single_add_to_cart_button, .wc-block-components-button { background: var(--ctvt-btn-primary-bg); color: var(--ctvt-btn-primary-text); }

.ctvt-badge--sale, .ctvt-loop-badge.ctvt-badge--sale { background: var(--ctvt-badge-sale); }
.ctvt-badge--new, .ctvt-loop-badge.ctvt-badge--new { background: var(--ctvt-badge-new); }

.ctvt-hero-slider__title { color: var(--ctvt-banner-title); }
.ctvt-hero-slider__subtitle { color: var(--ctvt-banner-subtitle); }
.ctvt-hero-slider__cta--solid { background: var(--ctvt-banner-btn-bg); color: var(--ctvt-banner-btn-text); }

/* Footer colors */
.ctvt-footer, .site-footer { background: var(--ctvt-footer-bg); color: var(--ctvt-footer-text); }
.ctvt-footer h3, .ctvt-footer h4, .ctvt-footer h5,
.ctvt-footer .wp-block-heading { color: var(--ctvt-footer-heading) !important; }
.ctvt-footer a,
.ctvt-footer .wp-block-navigation-item__content,
.ctvt-footer .wp-block-navigation a,
.ctvt-footer .wp-block-page-list a { color: var(--ctvt-footer-link) !important; }
.ctvt-footer p { color: var(--ctvt-footer-text); }
.ctvt-footer .ctvt-footer__nav-title { color: var(--ctvt-footer-heading) !important; opacity: 0.5; }

/* WC Block product image wrapper for injected badges */
.wc-block-components-product-image .ctvt-loop-img-wrapper {
    position: relative;
}

.wc-block-components-product-image .ctvt-loop-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* PDP summary column spacing */
.ctvt-product-summary-col > .wp-block-shortcode:empty {
    display: none;
}

.ctvt-product-summary-col > * + * {
    margin-top: 0;
}

/* ---------- RELATED PRODUCTS GRID ---------- */
.ctvt-related-products .wp-block-woocommerce-related-products .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
}

.ctvt-related-products .wp-block-post-template > li {
    margin: 0 !important;
}

.ctvt-related-products .wp-block-post-template img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

@media (max-width: 768px) {
    .ctvt-related-products .wp-block-woocommerce-related-products .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ---------- RESPONSIVE PDP ---------- */
@media (max-width: 960px) {
    .ctvt-product-layout.wp-block-columns {
        flex-wrap: wrap !important;
        gap: 24px !important;
    }

    .ctvt-product-layout > .ctvt-product-gallery-col.wp-block-column,
    .ctvt-product-layout > .ctvt-product-summary-col.wp-block-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ---------- UTILITIES ---------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
