/*
Theme Name: Tarmaras Treasures
Theme URI: https://example.com/
Author: Tarmaras Treasures
Author URI: https://example.com/
Description: A WooCommerce theme for the Tarmaras Treasures store.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tarmarastreasures
Tags: custom-logo, e-commerce, accessibility-ready, blog, featured-images
*/

/* Header navigation */
.tt-brand-logo {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(82, 0, 227, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tt-brand-logo:hover {
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 0 12px 30px rgba(82, 0, 227, .18);
}

.tt-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tt-nav-item {
    height: 100%;
}

.tt-nav-link {
    position: relative;
    display: inline-flex;
    height: 100%;
    align-items: center;
    gap: 4px;
    padding: 0 18px;
    color: #312a3c;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.tt-nav-link::after {
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, #5200e3, #d700af);
    content: "";
    opacity: 0;
    transform: scaleX(.4);
    transition: opacity .2s ease, transform .2s ease;
}

.tt-nav-link:hover,
.tt-nav-item.is-open > .tt-nav-link {
    color: #5200e3;
}

.tt-nav-link:hover::after,
.tt-nav-item.is-open > .tt-nav-link::after {
    opacity: 1;
    transform: scaleX(1);
}

.tt-nav-link .material-symbols-outlined {
    font-size: 19px;
    transition: transform .2s ease;
}

.tt-nav-item.is-open > .tt-nav-link .material-symbols-outlined {
    transform: rotate(180deg);
}

.tt-nav-item--sale > .tt-nav-link {
    color: #b4165c;
}

.tt-mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    visibility: hidden;
    overflow: hidden;
    border-top: 1px solid #eee8f5;
    border-bottom: 1px solid #ded4e9;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 24px 45px rgba(34, 12, 57, .14);
    opacity: 0;
    transform: translateY(-8px);
    transition: visibility .2s, opacity .2s ease, transform .2s ease;
}

.tt-nav-item.is-open > .tt-mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.tt-mega-inner {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 40px 34px;
}

.tt-mega-intro {
    position: relative;
    overflow: hidden;
    min-height: 235px;
    padding: 28px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(145deg, #31105c 0%, #5200e3 60%, #007077 130%);
}

.tt-mega-intro::after {
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 150px;
    height: 150px;
    border: 24px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
}

.tt-mega-intro--sale {
    background: linear-gradient(145deg, #641040 0%, #bd176a 62%, #ff9c46 140%);
}

.tt-mega-kicker {
    display: block;
    margin-bottom: 10px;
    color: #8df8e5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.tt-mega-intro--sale .tt-mega-kicker {
    color: #ffe09c;
}

.tt-mega-intro h2 {
    margin: 0 0 10px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.05;
}

.tt-mega-intro p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.55;
}

.tt-mega-intro a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.tt-product-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.tt-menu-product {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #19151f;
}

.tt-menu-product__image {
    display: flex;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 3px;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f6f0fb, #effbfc);
}

.tt-menu-product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.tt-menu-product:hover .tt-menu-product__image img {
    transform: scale(1.06);
}

.tt-menu-product__name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt-menu-product__price {
    color: #8f237e;
    font-size: 13px;
    font-weight: 800;
}

.tt-menu-product__price del {
    margin-right: 4px;
    color: #817888;
    font-weight: 500;
}

.tt-mega-empty {
    grid-column: 1 / -1;
    display: flex;
    min-height: 235px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cfc4dc;
    border-radius: 22px;
    color: #665c70;
    text-align: center;
    background: #faf8fc;
}

.tt-mega-empty .material-symbols-outlined {
    margin-bottom: 8px;
    color: #bd176a;
    font-size: 30px;
}

.tt-mega-empty p {
    max-width: 380px;
    margin: 6px 0 0;
    font-size: 13px;
}

.tt-category-menu-grid.tt-mega-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tt-menu-category {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid #eee8f3;
    border-radius: 18px;
    color: #211a28;
    background: #fff;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.tt-menu-category:hover {
    border-color: #cfc0ed;
    background: #faf7ff;
    transform: translateY(-2px);
}

.tt-menu-category img,
.tt-menu-category--all > .material-symbols-outlined:first-child,
.tt-menu-category--fallback > .material-symbols-outlined:first-child {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    background: #f2ebfa;
}

.tt-menu-category--all > .material-symbols-outlined:first-child,
.tt-menu-category--fallback > .material-symbols-outlined:first-child {
    display: grid;
    place-items: center;
    color: #5200e3;
    font-size: 27px;
}

.tt-menu-category strong,
.tt-menu-category small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt-menu-category strong {
    font-size: 14px;
}

.tt-menu-category small {
    margin-top: 3px;
    color: #7b7183;
    font-size: 11px;
}

.tt-menu-category > .material-symbols-outlined:last-child {
    color: #8e8199;
    font-size: 20px;
    transition: transform .2s ease;
}

.tt-menu-category:hover > .material-symbols-outlined:last-child {
    color: #5200e3;
    transform: translateX(3px);
}

.tt-header-icon {
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #3d3050;
    transition: color .2s ease, background .2s ease;
}

.tt-header-icon:hover {
    color: #5200e3;
    background: #f3edfa;
}

.tt-cart-count {
    position: absolute;
    top: 1px;
    right: 0;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #d70075;
    font-size: 9px;
    font-weight: 800;
}

.tt-cart-drawer {
    position: fixed;
    z-index: 100;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
    transition: visibility .32s;
}

.tt-cart-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.tt-cart-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(19, 6, 33, .48);
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: opacity .3s ease;
}

.tt-cart-drawer.is-open .tt-cart-overlay {
    opacity: 1;
}

.tt-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(460px, 100%);
    height: 100%;
    flex-direction: column;
    color: #211a28;
    background: #fff;
    box-shadow: -20px 0 60px rgba(26, 9, 42, .2);
    transform: translateX(102%);
    transition: transform .32s cubic-bezier(.22, .8, .24, 1);
}

.tt-cart-drawer.is-open .tt-cart-panel {
    transform: translateX(0);
}

.tt-cart-panel__header {
    display: flex;
    min-height: 94px;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #ebe4f1;
}

.tt-cart-panel__header > div > span {
    display: block;
    margin-bottom: 3px;
    color: #a9207f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.tt-cart-panel__header h2 {
    margin: 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 28px;
    font-weight: 750;
    line-height: 1;
}

.tt-cart-close {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid #dfd5e8;
    border-radius: 50%;
    color: #3d3050;
    background: #fff;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.tt-cart-close:hover {
    border-color: #a998ba;
    color: #5200e3;
    transform: rotate(5deg);
}

.tt-cart-panel__content {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
}

.tt-cart-items {
    display: grid;
    gap: 0;
    padding: 8px 24px 0;
}

.tt-cart-item {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #eee8f3;
}

.tt-cart-item__image {
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 7px;
    border-radius: 17px;
    background: linear-gradient(145deg, #f6effc, #edfafb);
}

.tt-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tt-cart-item__details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.tt-cart-item__heading {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.tt-cart-item__heading a,
.tt-cart-item__heading strong {
    display: block;
    color: #292031;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.tt-cart-item__heading dl {
    display: flex;
    gap: 5px;
    margin: 4px 0 0;
    color: #786e80;
    font-size: 11px;
}

.tt-cart-remove {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    color: #897d91;
}

.tt-cart-remove:hover {
    color: #bd176a;
    background: #fff0f6;
}

.tt-cart-remove .material-symbols-outlined {
    font-size: 18px;
}

.tt-cart-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tt-cart-quantity {
    display: grid;
    grid-template-columns: 31px 34px 31px;
    min-height: 32px;
    overflow: hidden;
    border: 1px solid #ddd3e6;
    border-radius: 999px;
    background: #faf8fc;
}

.tt-cart-quantity button,
.tt-cart-quantity span {
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
}

.tt-cart-quantity button {
    color: #5200e3;
}

.tt-cart-quantity button:hover:not(:disabled) {
    background: #eee5fa;
}

.tt-cart-quantity button:disabled {
    color: #bbb2c1;
    cursor: not-allowed;
}

.tt-cart-item__price {
    color: #8f237e;
    font-size: 14px;
}

.tt-cart-summary {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding: 20px 24px 24px;
    border-top: 1px solid #e8dfef;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -14px 30px rgba(49, 20, 75, .06);
    backdrop-filter: blur(10px);
}

.tt-cart-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 17px;
}

.tt-cart-summary > div strong {
    font-size: 21px;
}

.tt-cart-summary p {
    margin: 7px 0 18px;
    color: #776d7e;
    font-size: 11px;
}

.tt-cart-checkout,
.tt-cart-empty a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(100deg, #5200e3, #a920b4);
    box-shadow: 0 12px 25px rgba(82, 0, 227, .22);
    font-size: 15px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tt-cart-checkout:hover,
.tt-cart-empty a:hover {
    color: #fff;
    box-shadow: 0 15px 30px rgba(82, 0, 227, .3);
    transform: translateY(-1px);
}

.tt-cart-checkout .material-symbols-outlined {
    font-size: 19px;
}

.tt-cart-empty {
    display: flex;
    min-height: 100%;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 35px;
    text-align: center;
}

.tt-cart-empty > .material-symbols-outlined {
    display: grid;
    width: 80px;
    height: 80px;
    margin-bottom: 23px;
    place-items: center;
    border-radius: 26px;
    color: #5200e3;
    background: linear-gradient(145deg, #f1e7ff, #e6fbfc);
    font-size: 36px;
}

.tt-cart-empty h3 {
    margin: 0 0 8px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 23px;
    font-weight: 750;
}

.tt-cart-empty p {
    max-width: 290px;
    margin: 0 0 25px;
    color: #776d7e;
    font-size: 14px;
    line-height: 1.55;
}

.tt-cart-empty a {
    min-height: 48px;
    padding: 0 25px;
}

.tt-cart-panel.is-loading .tt-cart-panel__content {
    opacity: .45;
    pointer-events: none;
}

.tt-cart-message {
    position: absolute;
    top: 69px;
    right: 76px;
    margin: 0;
    color: #776d7e;
    font-size: 10px;
}

/* Branded WooCommerce notifications */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.wc-block-components-notice-banner {
    display: none !important;
}

.woocommerce-notices-wrapper:empty {
    display: none;
}

.tt-toast-region {
    position: fixed;
    z-index: 130;
    top: 102px;
    right: 24px;
    display: grid;
    width: min(420px, calc(100vw - 32px));
    gap: 12px;
    pointer-events: none;
    transition: right .32s cubic-bezier(.22, .8, .24, 1);
}

body.tt-cart-open .tt-toast-region {
    right: 484px;
}

.tt-toast {
    position: relative;
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: start;
    overflow: hidden;
    padding: 16px 14px 17px 16px;
    border: 1px solid #e6dced;
    border-radius: 20px;
    color: #2b2232;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 45px rgba(34, 12, 57, .18), 0 3px 10px rgba(82, 0, 227, .06);
    opacity: 0;
    pointer-events: auto;
    transform: translateX(28px) scale(.97);
    transition: opacity .26s ease, transform .26s cubic-bezier(.22, .8, .24, 1);
    backdrop-filter: blur(16px);
}

.tt-toast.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.tt-toast.is-leaving {
    opacity: 0;
    transform: translateX(28px) scale(.97);
}

.tt-toast::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    content: "";
    background: linear-gradient(180deg, #5200e3, #d700af);
}

.tt-toast--success::before {
    background: linear-gradient(180deg, #008b86, #00c8b2);
}

.tt-toast--error::before {
    background: linear-gradient(180deg, #bd176a, #f04b75);
}

.tt-toast__icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
    color: #5200e3;
    background: #f0e8ff;
    font-size: 23px;
}

.tt-toast--success .tt-toast__icon {
    color: #00756f;
    background: #e2faf5;
}

.tt-toast--error .tt-toast__icon {
    color: #b4165c;
    background: #fff0f5;
}

.tt-toast__body {
    min-width: 0;
    padding-top: 1px;
}

.tt-toast__body > strong {
    display: block;
    margin-bottom: 3px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
}

.tt-toast__content {
    color: #6e6476;
    font-size: 13px;
    line-height: 1.45;
}

.tt-toast__content ul,
.tt-toast__content li,
.tt-toast__content p {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tt-toast__content a,
.tt-toast__content .button {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    margin: 9px 8px 0 0;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(100deg, #5200e3, #a920b4);
    float: none;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.tt-toast__content a:hover,
.tt-toast__content .button:hover {
    color: #fff;
    filter: brightness(1.08);
}

.tt-toast__close {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: #8b8093;
    transition: color .2s ease, background .2s ease;
}

.tt-toast__close:hover {
    color: #3c3045;
    background: #f1ecf5;
}

.tt-toast__close .material-symbols-outlined {
    font-size: 18px;
}

.tt-toast__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 4px;
    height: 3px;
    background: linear-gradient(90deg, #5200e3, #d700af);
    transform-origin: left;
    animation: tt-toast-progress var(--tt-toast-duration, 6000ms) linear forwards;
}

.tt-toast--success .tt-toast__progress {
    background: linear-gradient(90deg, #008b86, #00c8b2);
}

.tt-toast--error .tt-toast__progress {
    background: linear-gradient(90deg, #bd176a, #f04b75);
}

@keyframes tt-toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.tt-mobile-menu {
    position: absolute;
    z-index: 49;
    top: 100%;
    right: 0;
    left: 0;
    height: calc(100vh - 82px);
    overflow-y: auto;
    padding: 20px 16px 48px;
    background: #fff;
}

.tt-mobile-primary-link,
.tt-mobile-menu summary {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee8f3;
    color: #2e2535;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.tt-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.tt-mobile-menu details[open] summary {
    color: #5200e3;
}

.tt-mobile-menu details[open] summary .material-symbols-outlined {
    transform: rotate(45deg);
}

.tt-mobile-menu details > div {
    padding: 8px 0 14px;
}

.tt-mobile-menu details a {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 10px;
    border-radius: 10px;
    color: #574e60;
    font-size: 14px;
    font-weight: 650;
}

.tt-mobile-menu details a:hover {
    color: #5200e3;
    background: #f7f2fb;
}

.tt-mobile-menu details a span {
    flex-shrink: 0;
    color: #9b2688;
    font-size: 12px;
    font-weight: 800;
}

.tt-mobile-menu details .tt-mobile-view-all {
    margin-top: 5px;
    color: #5200e3;
}

body.tt-menu-open,
body.tt-cart-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .tt-nav-link {
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 767px) {
    .tt-brand-logo {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .tt-cart-panel__header {
        min-height: 82px;
        padding: 16px 18px;
    }

    .tt-cart-items,
    .tt-cart-summary {
        padding-right: 18px;
        padding-left: 18px;
    }

    .tt-toast-region,
    body.tt-cart-open .tt-toast-region {
        top: 92px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .tt-toast {
        grid-template-columns: 41px minmax(0, 1fr) 30px;
        gap: 10px;
        border-radius: 17px;
    }

    .tt-toast__icon {
        width: 39px;
        height: 39px;
        border-radius: 12px;
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tt-site-header *,
    .tt-site-header *::before,
    .tt-site-header *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .tt-cart-drawer *,
    .tt-cart-drawer *::before,
    .tt-cart-drawer *::after {
        transition-duration: .01ms !important;
    }

    .tt-toast,
    .tt-toast-region {
        transition-duration: .01ms !important;
    }

    .tt-toast__progress {
        animation: none;
    }
}
