/* === base/tokens.css === */
:root {
    --cwd-color-bg-dark: #1b1c23;
    --cwd-color-bg-dark-2: #17181f;
    --cwd-color-accent-green: #16c05f;
    --cwd-color-accent-green-2: #12a551;
    --cwd-color-accent-blue: #264470;
    --cwd-color-text: #11131a;
    --cwd-color-soft: #6a7185;
    --cwd-color-border: #e8ecf3;
    --cwd-color-card: #ffffff;
    --cwd-color-card-alt: #f6f8fc;
    --cwd-color-text-on-dark: #d7d8df;
    --cwd-shadow-soft: 0 20px 50px rgba(12, 19, 35, 0.10);
    --cwd-radius-xl: 28px;
    --cwd-radius-lg: 20px;
    --cwd-radius-md: 14px;
    --cwd-radius-sm: 10px;
    --cwd-container: 1240px;
    --cwd-transition: 180ms ease;
}

/* === base/frame.css === */
body.cwd-hf-runtime {
    margin: 0;
}

.cwd-frame-slot {
    position: relative;
    z-index: 30;
}

.cwd-header,
.cwd-footer,
.cwd-header *,
.cwd-footer * {
    box-sizing: border-box;
}

.cwd-header a,
.cwd-footer a {
    color: inherit;
    text-decoration: none;
}

.cwd-header img,
.cwd-footer img {
    display: block;
    max-width: 100%;
    height: auto;
}

.cwd-container {
    width: min(calc(100% - 32px), var(--cwd-container));
    margin: 0 auto;
}

.cwd-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 700;
    transition: transform var(--cwd-transition), background var(--cwd-transition), color var(--cwd-transition), border-color var(--cwd-transition), box-shadow var(--cwd-transition);
}

.cwd-pill svg,
.cwd-icon-link svg,
.cwd-menu-toggle svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.cwd-pill:hover,
.cwd-icon-link:hover,
.cwd-menu-toggle:hover {
    transform: translateY(-1px);
}

.cwd-pill--green {
    color: #fff;
    background: linear-gradient(180deg, var(--cwd-color-accent-green) 0%, var(--cwd-color-accent-green-2) 100%);
}

.cwd-pill--dark {
    color: #fff;
    background: linear-gradient(180deg, var(--cwd-color-bg-dark) 0%, var(--cwd-color-bg-dark-2) 100%);
}

.cwd-pill--outline {
    color: var(--cwd-color-text);
    background: #fff;
    border: 1px solid var(--cwd-color-border);
}

.cwd-pill--full {
    width: 100%;
}

/* === base/transition.css === */
body.cwd-hf-only .cwd-frame-slot--header,
body.cwd-hf-only .cwd-frame-slot--footer {
    display: block;
}

body.cwd-hf-only .site-main,
body.cwd-hf-only main,
body.cwd-hf-only #content {
    min-height: 0;
}

body.cwd-hf-only .cwd-frame-slot--header {
    position: relative;
    z-index: 40;
}

body.cwd-hf-only .cwd-frame-slot--footer {
    position: relative;
    z-index: 30;
}

/* === components/header.css === */
.cwd-header {
    position: relative;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid rgba(37, 48, 80, 0.08);
}

.cwd-header .cwd-container {
    width: min(calc(100% - 36px), 1840px);
    max-width: 1840px;
    margin: 0 auto;
}

.cwd-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 70px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.cwd-header__mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
}

.cwd-header__brand {
    min-width: 0;
}

.cwd-header__logo {
    display: inline-flex;
    align-items: center;
}

.cwd-header__logo-image {
    display: block;
    width: auto;
    max-width: 112px;
    max-height: 42px;
    height: auto;
    object-fit: contain;
}

.cwd-brand-text {
    font-weight: 800;
    font-size: 22px;
}

.cwd-header__nav-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: visible;
}

.cwd-nav,
.cwd-mobile-nav {
    display: block;
    width: 100%;
}

.cwd-nav__list,
.cwd-mobile-nav__list,
.cwd-footer-links,
.cwd-footer-social {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cwd-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 3px;
    min-width: 0;
    max-width: 100%;
}

.cwd-nav__list > li {
    position: relative;
    flex: 0 0 auto;
}

.cwd-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    color: #253050;
    font-size: clamp(16px, 0.88vw, 17px);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    border-radius: 14px;
    letter-spacing: -0.01em;
}

.cwd-nav__list a:hover,
.cwd-nav__list .current-menu-item > a,
.cwd-nav__list .current-menu-ancestor > a {
    background: #f1f4f8;
}

.cwd-nav .menu-item-has-children > a::after {
    content: '';
    width: 0;
    height: 0;
    margin-left: 8px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    opacity: 0.75;
}

.cwd-nav .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 60;
    min-width: 236px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.cwd-nav .sub-menu li {
    display: block;
}

.cwd-nav .sub-menu a {
    display: flex;
    min-height: 0;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 12px;
}

.cwd-nav .menu-item-has-children:hover > .sub-menu,
.cwd-nav .menu-item-has-children:focus-within > .sub-menu {
    display: block;
}

.cwd-header__actions,
.cwd-header__mobile-actions,
.cwd-mobile-quick-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cwd-header__actions {
    flex-wrap: nowrap;
    margin-left: auto;
}

.cwd-header__actions > *,
.cwd-header__mobile-actions > * {
    flex-shrink: 0;
}

.cwd-icon-link,
.cwd-menu-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(37, 48, 80, 0.14);
    background: #ffffff;
    color: #253050;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.cwd-icon-link svg,
.cwd-menu-toggle svg {
    width: 18px;
    height: 18px;
}

.cwd-icon-link:hover,
.cwd-menu-toggle:hover {
    background: #f6f8fb;
}

.cwd-icon-link__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.cwd-icon-link--bag {
    border-color: rgba(37, 48, 80, 0.10);
}

.cwd-cart-total {
    display: inline-flex;
    align-items: center;
    color: #253050;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.cwd-pill--whatsapp-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1.5px solid #22c55e;
    border-radius: 999px;
    background: #ffffff;
    color: #16a34a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.cwd-pill--whatsapp-outline:hover {
    background: #f3fff7;
}

.cwd-pill--whatsapp-outline svg {
    width: 18px;
    height: 18px;
}

.cwd-mobile-menu {
    border-top: 1px solid rgba(16, 24, 40, 0.08);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.cwd-mobile-nav__list {
    display: grid;
    gap: 10px;
    padding: 12px 0 0;
}

.cwd-mobile-nav__list a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f8fb;
    color: #253050;
    font-weight: 600;
}

.cwd-mobile-nav__list .menu-item-has-children {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
}

.cwd-mobile-nav__list .menu-item-has-children > a {
    grid-column: 1;
}

.cwd-mobile-submenu-toggle {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(37, 48, 80, 0.14);
    border-radius: 12px;
    background: #f7f8fb;
    color: #253050;
    cursor: pointer;
}

.cwd-mobile-submenu-toggle::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.18s ease;
}

.cwd-mobile-nav__list .menu-item-has-children.is-open > .cwd-mobile-submenu-toggle::before {
    transform: rotate(180deg);
}

.cwd-mobile-nav__list .sub-menu {
    grid-column: 1 / -1;
    display: none;
    gap: 10px;
    padding: 4px 0 0 18px;
}

.cwd-mobile-nav__list .menu-item-has-children.is-open > .sub-menu {
    display: grid;
}

.cwd-mobile-quick-links {
    display: grid;
    gap: 12px;
    padding: 18px 0 8px;
}

.cwd-cart-total--mobile {
    font-size: 14px;
}

@media (max-width: 1760px) {
    .cwd-header .cwd-container {
        width: min(calc(100% - 28px), 1760px);
    }

    .cwd-header__inner {
        gap: 15px;
    }

    .cwd-header__logo-image {
        max-width: 108px;
        max-height: 40px;
    }

    .cwd-nav__list a {
        padding: 8px 9px;
        font-size: 16px;
    }
}

@media (max-width: 1600px) {
    .cwd-header__logo-image {
        max-width: 106px;
        max-height: 40px;
    }

    .cwd-nav__list {
        gap: 4px 2px;
    }

    .cwd-nav__list a {
        padding: 8px 8px;
        font-size: 15.5px;
    }

    .cwd-pill--whatsapp-outline {
        padding: 10px 16px;
        font-size: 14px;
    }

    .cwd-cart-total {
        font-size: 15px;
    }
}

@media (max-width: 1420px) {
    .cwd-header__logo-image {
        max-width: 96px;
        max-height: 38px;
    }

    .cwd-nav__list a {
        padding: 7px 6px;
        font-size: 14.5px;
    }

    .cwd-pill--whatsapp-outline span {
        display: none;
    }

    .cwd-pill--whatsapp-outline {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 50%;
    }
}

@media (max-width: 1260px) {
    .cwd-cart-total {
        display: none;
    }
}

@media (max-width: 1120px) {
    .cwd-header__inner {
        gap: 12px;
    }

    .cwd-nav__list a {
        padding: 7px 6px;
        font-size: 13px;
    }
}

@media (max-width: 980px) {
    .cwd-header--desktop {
        display: none;
    }
}

@media (min-width: 981px) {
    .cwd-header--mobile {
        display: none;
    }
}

@media (max-width: 680px) {
    .cwd-header .cwd-container {
        width: min(calc(100% - 24px), 100%);
    }

    .cwd-header__mobile-bar {
        min-height: 66px;
        gap: 12px;
    }

    .cwd-header__logo-image {
        max-width: 96px;
        max-height: 38px;
    }

    .cwd-cart-total--mobile {
        display: none;
    }
}

/* === components/footer.css === */
.cwd-footer {
    margin-top: 72px;
    background: linear-gradient(180deg, var(--cwd-color-bg-dark) 0%, var(--cwd-color-bg-dark-2) 100%);
    color: var(--cwd-color-text-on-dark);
}

.cwd-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 42px 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

.cwd-footer__logo {
    display: inline-flex;
    align-items: center;
}

.cwd-footer__logo-image {
    width: 170px;
    max-width: 100%;
    height: auto;
    display: block;
}

.cwd-footer__cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cwd-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
    padding: 30px 0 34px;
}

.cwd-footer__col h3 {
    margin: 0 0 18px;
    color: #8f92a3;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.cwd-footer-links {
    display: grid;
    gap: 12px;
}

.cwd-footer-links__link,
.cwd-footer-links__text {
    color: rgba(255,255,255,0.82);
    font-size: 16px;
    line-height: 1.45;
}

.cwd-footer-links__link:hover {
    color: #fff;
}

.cwd-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.cwd-footer-social__link,
.cwd-footer-social a {
    color: #8f92a3;
    font-size: 15px;
}

.cwd-footer-social__link:hover,
.cwd-footer-social a:hover {
    color: #fff;
}

.cwd-footer__bottom {
    padding: 22px 0 28px;
    border-top: 1px solid rgba(255,255,255,0.09);
}

.cwd-footer__copy {
    color: #8f92a3;
    font-size: 14px;
    line-height: 1.5;
}

.cwd-footer--mobile {
    padding: 28px 0 24px;
}

.cwd-footer__mobile-top {
    padding-bottom: 14px;
}

.cwd-footer__cta-group--mobile {
    margin-top: 18px;
}

.cwd-footer__accordion {
    border-top: 1px solid rgba(255,255,255,0.09);
}

.cwd-footer-accordion {
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

.cwd-footer-accordion summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 18px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.cwd-footer-accordion summary::-webkit-details-marker {
    display: none;
}

.cwd-footer-accordion summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #8f92a3;
    font-size: 22px;
    font-weight: 400;
}

.cwd-footer-accordion[open] summary::after {
    content: '−';
}

.cwd-footer-accordion__body {
    padding: 0 0 18px;
}

.cwd-footer__bottom--mobile {
    padding-bottom: 0;
    border-top: 0;
}

@media (max-width: 980px) {
    .cwd-footer--desktop {
        display: none;
    }

    .cwd-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 981px) {
    .cwd-footer--mobile {
        display: none;
    }
}

@media (max-width: 680px) {
    .cwd-footer__columns {
        grid-template-columns: 1fr;
    }

    .cwd-footer__cta-group {
        width: 100%;
    }

    .cwd-footer__top {
        flex-direction: column;
        align-items: flex-start;
    }
}

