/* Store-specific additions on top of the Ecomus theme */

:root {
    --christmas-red: #c8102e;
    --christmas-green: #146b3a;
}

.text-logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--main, #000);
    white-space: nowrap;
}

.christmas-mode .text-logo::before {
    content: "🎄 ";
}

.footer-logo .text-logo {
    font-size: 22px;
}

@media (max-width: 767px) {
    .text-logo {
        font-size: 18px;
    }
}

.text-christmas,
.box-nav-ul .menu-item .item-link.text-christmas {
    color: var(--christmas-red) !important;
}

.christmas-mode .announcement-bar.bg_dark {
    background-color: var(--christmas-red) !important;
}

.on-sale-item.badge-christmas {
    background-color: var(--christmas-green);
    color: #fff;
}

.sold-out-wrap {
    left: 10px;
    right: auto;
}

/* Snowfall */
.snowfall {
    pointer-events: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 9;
}

.snowflake {
    position: absolute;
    top: -5vh;
    left: var(--x);
    color: #cfe4ff;
    font-size: calc(18px * var(--s));
    opacity: 0.8;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
    animation: snow-fall var(--d) linear var(--delay) infinite;
}

@keyframes snow-fall {
    to {
        transform: translate3d(30px, 110vh, 0) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .snowfall {
        display: none;
    }
}

/* Toasts */
.store-toast-container {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: calc(100vw - 40px);
}

.store-toast {
    background: #111;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.25s ease;
    font-size: 14px;
}

.store-toast.show {
    transform: none;
    opacity: 1;
}

.store-toast.is-success {
    border-left: 4px solid var(--christmas-green);
}

.store-toast.is-error {
    border-left: 4px solid var(--christmas-red);
}

.store-alert {
    border-radius: 4px;
}

/* Shop filters */
.price-inputs .form-control {
    height: 40px;
    font-size: 14px;
}

.tf-shop-content {
    flex: 1;
    min-width: 0;
}

.tf-dropdown-sort .dropdown-menu a.select-item {
    display: block;
    color: inherit;
}

/* Product page */
.rating-stars .icon-star {
    color: #ffb800;
    font-size: 13px;
}

.product-rating-summary {
    color: inherit;
    margin-top: -10px;
}

.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.star-input input {
    display: none;
}

.star-input label {
    cursor: pointer;
    font-size: 20px;
    color: #ddd;
}

.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
    color: #ffb800;
}

.product-description img {
    max-width: 100%;
    height: auto;
}

.btns-full:disabled,
.btn-add-to-cart.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cart & checkout */
.cart-summary li {
    padding: 4px 0;
}

.payment-note {
    background: #f5f5f5;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
}

.order-summary-box .wrap-checkout-product {
    margin-bottom: 20px;
}

/* Account */
.account-stat {
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 20px;
}

.account-address-item {
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 24px;
}

.my-account-nav button.my-account-nav-item {
    cursor: pointer;
}

/* CMS pages */
.cms-content h2,
.cms-content h3,
.cms-content h4 {
    margin: 28px 0 12px;
}

.cms-content p,
.cms-content ul {
    margin-bottom: 14px;
}

.cms-content ul {
    padding-left: 20px;
    list-style: disc;
}

.wg-pagination {
    margin-top: 40px;
}

.tf-product-info-buy-button .btns-full.js-buy-now {
    background: #fff;
    border: 1px solid #000 !important;
    color: #000;
    font-weight: 600;
    padding: 12px;
    border-radius: 3px;
    transition: all 0.2s;
}

.tf-product-info-buy-button .btns-full.js-buy-now:hover:not(:disabled) {
    background: #000;
    color: #fff;
}

/* Our labels already mark required fields with " *"; stop the theme adding a second one. */
.form-checkout label::after {
    content: none;
}

/* Order progress tracker */
.order-progress {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.order-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    color: #9ca3af;
    font-size: 13px;
}

.order-progress-step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 16px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    z-index: 0;
}

.order-progress-step.done::before,
.order-progress-step.current::before {
    background: var(--christmas-green);
}

.order-progress-dot {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 3px solid #e5e7eb;
    font-weight: 700;
    margin-bottom: 6px;
}

.order-progress-step.done .order-progress-dot {
    background: var(--christmas-green);
    border-color: var(--christmas-green);
    color: #fff;
}

.order-progress-step.current .order-progress-dot {
    border-color: var(--christmas-green);
    color: var(--christmas-green);
}

.order-progress-step.done,
.order-progress-step.current {
    color: #111;
    font-weight: 600;
}

.order-progress-label {
    display: block;
}

.order-progress-cancelled {
    background: #fdecef;
    color: var(--christmas-red);
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
}

/* WhatsApp chat button */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 1000;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
}

@media (max-width: 1149px) {
    .whatsapp-float {
        bottom: 84px;
    }
}

/* Product share */
.share-btn {
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    color: inherit;
    line-height: 1.6;
}

.share-btn:hover {
    border-color: #000;
}

.product-share {
    flex-wrap: wrap;
}

.wd-form-order .order-progress {
    margin-bottom: 36px;
}

/* SEO headings keep the theme's original look */
.tf-page-title h1.heading {
    margin: 0;
}

.tf-product-info-title h1.product-title {
    font-size: 28px;
    line-height: 33.6px;
    font-weight: 400;
    margin: 0;
}

@media (max-width: 767px) {
    .tf-product-info-title h1.product-title {
        font-size: 22px;
        line-height: 28px;
    }
}

.seo-breadcrumb {
    padding: 14px 0 0;
}

/* Uploaded logo: size by height so wide wordmarks stay readable */
.logo-header img.logo {
    width: auto;
    height: 46px;
    max-width: 100%;
    object-fit: contain;
}

.footer .footer-logo img.logo {
    width: auto;
    height: 42px;
    max-width: 100%;
}

@media (max-width: 767px) {
    .logo-header img.logo {
        height: 34px;
    }
}
