﻿/* ============================================================
   TACHLI custom-site.css - all overrides, grouped by component
   One section per component, one style block per selector.
   Load order: template style.css -> brand-override -> tachli-shop
   -> user-panel -> THIS FILE (loaded last, so it wins).
   ============================================================

   TABLE OF CONTENTS
   1. SweetAlert2 theme
   2. Site header (background / brand lockup / nav / profile)
   3. Mini-cart & wishlist drawer
   4. Cart page (+ responsive)
   5. CTA buttons (hero & sections)
   6. Pagination
   7. Breadcrumb
   8. Footer (palette + icon circles)
   9. Global (::selection)
   10. Auth forms (palette / compact / OTP / required star)
   ============================================================ */


/* ===== 1) SweetAlert2 theme ===== */

/* ============================================================
   Tachli Brand - SweetAlert2 Theme
   Full synchronization of popups and toasts with Tachli palette:
   - Honey Gold: #F2A93B
   - Dark Chocolate: #4E3B2B
   - Warm Beige: #DCCEB3 / #EFE7D5
   - Crimson/Ruby: #C0392B
   - Natural Olive: #6E8B4D
   ============================================================ */

/* ---------- 1. Modal Popup Styles ---------- */
.swal2-popup {
    font-family: inherit !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 35px rgba(78, 59, 43, 0.16) !important;
    border: 1px solid #EFE7D5 !important;
    color: #5F5245 !important;
}

.swal2-title {
    color: #4E3B2B !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    margin-bottom: 0.4rem !important;
}

.swal2-html-container,
.swal2-content {
    color: #5F5245 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

/* ---------- 2. Floating Toast Styles ---------- */
.swal2-toast {
    background-color: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 24px rgba(78, 59, 43, 0.14) !important;
    font-size: 0.92rem !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #EFE7D5 !important;
    border-right: 4px solid #F2A93B !important;
}

    .swal2-toast .swal2-title {
        color: #4E3B2B !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
    }

/* Timer progress bar (Honey gold gradient) */
.swal2-timer-progress-bar {
    background: linear-gradient(to left, #F2A93B, #C98218) !important;
    height: 3px !important;
}

/* ---------- 3. Icon Color Palette ---------- */
/* Success Icon (Olive green) */
.swal2-icon.swal2-success {
    border-color: #6E8B4D !important;
    color: #6E8B4D !important;
}

    .swal2-icon.swal2-success [class^='swal2-success-line'] {
        background-color: #6E8B4D !important;
    }

    .swal2-icon.swal2-success .swal2-success-ring {
        border-color: rgba(122, 138, 87, 0.3) !important;
    }

/* Warning & Question Icons (Honey gold & Choco) */
.swal2-icon.swal2-warning {
    border-color: #F2A93B !important;
    color: #F2A93B !important;
}

.swal2-icon.swal2-question {
    border-color: #4E3B2B !important;
    color: #4E3B2B !important;
}

.swal2-icon.swal2-info {
    border-color: #C98218 !important;
    color: #C98218 !important;
}

/* Error Icon (Crimson / Warm Ruby) */
.swal2-icon.swal2-error {
    border-color: #C0392B !important;
    color: #C0392B !important;
}

    .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
        background-color: #C0392B !important;
    }

/* ---------- 4. Action Buttons ---------- */
.swal2-actions {
    gap: 10px !important;
    margin-top: 1rem !important;
}

/* Primary / Confirm Button (Brand Chocolate) */
.swal2-confirm.btn-primary,
.swal2-confirm:not(.btn-danger):not(.btn) {
    background-color: #4E3B2B !important;
    border-color: #4E3B2B !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0.45rem 1.25rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

    .swal2-confirm.btn-primary:hover,
    .swal2-confirm:not(.btn-danger):not(.btn):hover {
        background-color: #F2A93B !important;
        border-color: #F2A93B !important;
        color: #ffffff !important;
    }

/* Danger / Delete Confirm Button */
.swal2-confirm.btn-danger {
    background-color: #C0392B !important;
    border-color: #C0392B !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0.45rem 1.25rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

    .swal2-confirm.btn-danger:hover {
        background-color: #96281B !important;
        border-color: #96281B !important;
        color: #ffffff !important;
        box-shadow: 0 3px 10px rgba(192, 57, 43, 0.3) !important;
    }

/* Cancel Button (Brand Beige) */
.swal2-cancel.btn-secondary {
    background-color: #EFE7D5 !important;
    border: 1px solid #DCCEB3 !important;
    color: #4E3B2B !important;
    border-radius: 8px !important;
    padding: 0.45rem 1.25rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

    .swal2-cancel.btn-secondary:hover {
        background-color: #DCCEB3 !important;
        border-color: #F2A93B !important;
        color: #33241A !important;
    }


/* ===== 2) Site header ===== */

/* ---------- Header background restore (Tachli) ---------- */
.site-header .navigation {
    background: linear-gradient(180deg, #FBF6EC 0%, #F5F0E6 100%) !important;
    border-bottom: 1px solid #EFE7D5;
    box-shadow: 0 2px 14px rgba(78, 59, 43, 0.06);
}

    /* Center the brand vertically: cancel the template's 20px push-down */
    .site-header .navigation .navbar-header {
        margin-top: 0 !important;
    }

        /* ---------- Navbar brand lockup ---------- */
        .site-header .navigation .navbar-header .navbar-brand {
            color: #4E3B2B !important;
            font-size: 34px !important;
            font-weight: 800 !important;
            line-height: 1.4 !important;
            gap: 10px;
        }

            .site-header .navigation .navbar-header .navbar-brand img {
                height: 76px;
                width: auto;
                margin-left: 0;
            }

@media (max-width: 450px) {
    .site-header .navigation .navbar-header .navbar-brand {
        font-size: 24px !important;
    }

        .site-header .navigation .navbar-header .navbar-brand img {
            height: 54px;
        }
}

/* ---------- Main navigation ---------- */
.site-header #navbar > ul > li > a:hover,
.site-header #navbar > ul > li > a.active {
    color: #C98218 !important;
}

.site-header #navbar > ul .sub-menu a:hover {
    color: #C98218 !important;
    background: #FBF3E3 !important;
}

/* ---------- Profile dropdown ---------- */
.site-header .header-right .header-profile-content ul li a {
    border-bottom-color: #EFE7D5 !important;
}

    .site-header .header-right .header-profile-content ul li a:hover {
        color: #C98218 !important;
        background: #FBF3E3 !important;
    }


/* ============================================================
   3) MINI-CART & WISHLIST DRAWER (header side panels)
   Everything drawer-related lives here: container, count badge,
   item rows, total, action buttons, close. Open/close mechanics
   remain the template's own (script.js + the -toggle class).
   The drawer is content-sized (the template's forced height:100%
   is dropped); only a cart taller than the screen scrolls, and
   the WHOLE drawer scrolls. The items rule below is kept exactly
   as tuned live: overflow + touch scrolling, max-height commented
   out after mobile testing (nested scrolling felt wrong).
   ============================================================ */

/* Drawer container */
.mini-cart-content,
.mini-wislist-content {
    border: 1px solid #EADFC9 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(78, 59, 43, 0.15) !important;
    height: auto !important;
    max-height: 100% !important;
    overflow-y: auto !important;
}

/* Template decoration: a 300x300 ghost watermark (2% opacity), absolutely
   centered. On a content-sized drawer it sticks out past the bottom and,
   with overflow-y:auto above, summons a phantom scrollbar. Stretch the box
   to the drawer and scale the image inside it instead - the watermark is
   imperceptible either way, but the scrollbar is gone for good. */
.site-header .header-right .mini-cart-content .visible-icon,
.site-header .header-right .mini-wislist-content .visible-icon {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    transform: none;
}

    .site-header .header-right .mini-cart-content .visible-icon img,
    .site-header .header-right .mini-wislist-content .visible-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Count badges (cart & wishlist header buttons) */
.site-header .header-right .mini-cart .cart-count,
.site-header .header-right .header-wishlist-form-wrapper .cart-count {
    background: #F2A93B !important;
    color: #ffffff !important;
}

/* Item rows: image / title / price */
.mini-cart-item-image img {
    border-radius: 8px;
    border: 1px solid #EADFC9;
}

.mini-cart-item-des a {
    color: #4E3B2B !important;
    font-weight: 700 !important;
}

    .mini-cart-item-des a:hover {
        color: #F2A93B !important;
    }

.mini-cart-item-price {
    color: #F2A93B !important;
    font-weight: 700 !important;
}

/* Total price */
.mini-checkout-price {
    color: #4E3B2B !important;
    font-weight: 700 !important;
}

/* ---------- Action buttons (checkout / view cart) ----------
   Merged from two older blocks. The bare .view-cart-btn:hover rule
   was always beaten by the s1/:not(.s1) hover rules below and is
   dropped; the s1 gradient variants lost the cascade the same way
   and are kept as comments for reference. */
.mini-cart-action .view-cart-btn {
    background-color: #4E3B2B !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    transition: all 0.25s ease !important;
}

    .mini-cart-action .view-cart-btn.s1 {
        background: #4E3B2B !important;
        color: #ffffff !important;
        /* gradient variant, never won the cascade (lower specificity):
           background: linear-gradient(to left, #F2A93B, #C98218) !important; */
    }

        .mini-cart-action .view-cart-btn.s1:hover {
            background: #F2A93B !important;
            /* reversed-gradient variant, also never won:
               background: linear-gradient(to left, #C98218, #F2A93B) !important; */
        }

    .mini-cart-action .view-cart-btn:not(.s1) {
        background: #FBF3E3 !important;
        color: #4E3B2B !important;
        border: 1px solid #EADFC9 !important;
    }

        .mini-cart-action .view-cart-btn:not(.s1):hover {
            background: #F2A93B !important;
            color: #ffffff !important;
        }

/* dead: always shadowed by the s1 / :not(.s1) hover rules above
    .view-cart-btn:hover {
        background-color: #F2A93B !important;
        color: #fff !important;
    }
    */

/* ---------- Mini-cart drawer: scrollable items + reachable actions ---------- */
.site-header .header-right .mini-cart-content .mini-cart-items {
    overflow-y: auto !important;
    /*max-height: calc(100vh - 300px) !important;*/
    -webkit-overflow-scrolling: touch;
}

/* Action row: normal flow right after the items (not pinned to the
   drawer's absolute bottom) - always reachable on short viewports.
   BOTH drawers: the wishlist twin was left on the template's absolute
   bottom, which overlaid the last item rows once the drawer became
   content-sized. */
.site-header .header-right .mini-cart-content .mini-cart-action,
.site-header .header-right .mini-wislist-content .mini-cart-action {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    padding: 15px 0 25px !important;
}

    /* in RTL a full-width flex row aligns to the right by default -
       center the button pair like the template's original look */
    .site-header .header-right .mini-cart-content .mini-cart-action .mini-btn,
    .site-header .header-right .mini-wislist-content .mini-cart-action .mini-btn {
        justify-content: center;
    }

/* ---------- Mini-cart close button: brand colors ----------
   Open/close mechanics are the template's own (script.js + the
   -toggle class in style.css); only the gray #333 default is re-skinned. */
.site-header .header-right .mini-cart-content .mini-cart-close,
.site-header .header-right .mini-wislist-content .mini-cart-close {
    background-color: #4E3B2B !important;
    color: #FBF6EC !important;
    border-radius: 8px !important;
    transition: background-color 0.25s ease !important;
}

    .site-header .header-right .mini-cart-content .mini-cart-close:hover,
    .site-header .header-right .mini-wislist-content .mini-cart-close:hover {
        background-color: #F2A93B !important;
        color: #ffffff !important;
    }


/* ===== 4) Cart page ===== */

/* ============================================================
   Tachli Brand - Cart Page Responsive Styles
   ============================================================ */
.cart-section {
    background-color: #FBF6EC;
    min-height: 60vh;
}

.cart-table thead th {
    background-color: #FAF5EB !important;
    color: #4E3B2B !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 14px 12px !important;
    border-bottom: 1px solid #EADFC9 !important;
    white-space: nowrap;
}

.cart-table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #F1E8DA;
}

    .cart-table tbody tr:hover {
        background-color: #FAF7F0 !important;
    }

.cart-item-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #EADFC9;
    box-shadow: 0 2px 6px rgba(78, 59, 43, 0.06);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

    .cart-item-img:hover {
        transform: scale(1.05);
    }

.cart-item-title {
    color: #4E3B2B !important;
    font-weight: 700 !important;
    font-size: 0.98rem !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: inline-block;
    line-height: 1.4;
}

    .cart-item-title:hover {
        color: #F2A93B !important;
    }

/* Quantity Stepper (+ / -) */
.quantity-stepper {
    display: inline-flex;
    align-items: center;
    background: #FAF7F0;
    border: 1px solid #EADFC9;
    border-radius: 8px;
    overflow: hidden;
    height: 36px;
}

.stepper-btn {
    width: 32px;
    height: 36px;
    border: none;
    background: transparent;
    color: #4E3B2B;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    user-select: none;
}

    .stepper-btn:hover {
        background-color: #F2A93B;
        color: #ffffff;
    }

.stepper-input {
    width: 44px;
    height: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    color: #4E3B2B;
    font-size: 0.95rem;
    outline: none;
}

/* Remove button */
.cart-remove-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #F5D5D5;
    background-color: #FFF5F5;
    color: #C0392B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .cart-remove-btn:hover {
        background-color: #C0392B;
        border-color: #C0392B;
        color: #ffffff;
        transform: scale(1.08);
    }

/* Cart Summary Card */
.cart-summary {
    position: sticky;
    top: 25px;
    border: 1px solid #EADFC9 !important;
}

.btn-checkout {
    background: linear-gradient(to left, #F2A93B, #C98218) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 12px 18px !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 14px rgba(242, 169, 59, 0.3) !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
}

    .btn-checkout:hover {
        background: linear-gradient(to left, #C98218, #F2A93B) !important;
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(242, 169, 59, 0.4) !important;
    }

.btn-clear-cart {
    background: transparent !important;
    border: 1px dashed #DCCEB3 !important;
    color: #8A7B6A !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    padding: 9px !important;
    transition: all 0.2s ease !important;
}

    .btn-clear-cart:hover {
        background-color: #FFF5F5 !important;
        border-color: #C0392B !important;
        color: #C0392B !important;
    }

/* Empty cart state */
.cart-empty-box {
    border: 1px solid #EADFC9;
    background: #ffffff;
}

.empty-icon-wrapper i {
    font-size: 80px;
    color: #DCCEB3;
}

/* Empty Cart Return Button (Tachli Honey Gradient - replaces Bootstrap blue) */
.cart-empty-box .btn-primary,
.cart-section .btn-primary {
    background: linear-gradient(to left, #F2A93B, #C98218) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(242, 169, 59, 0.3) !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

    .cart-empty-box .btn-primary:hover,
    .cart-section .btn-primary:hover {
        background: linear-gradient(to left, #C98218, #F2A93B) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(242, 169, 59, 0.45) !important;
        color: #ffffff !important;
    }

/* ============================================================
   Mobile Responsive Adjustments for Cart
   ============================================================ */
@media (max-width: 991px) {
    .cart-summary {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .cart-section {
        padding-top: 30px !important;
        padding-bottom: 40px !important;
    }

    .cart-table thead th {
        font-size: 0.82rem !important;
        padding: 10px 8px !important;
    }

    .cart-table tbody td {
        padding: 12px 6px !important;
        font-size: 0.86rem !important;
    }

    .cart-item-img {
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }

    .cart-item-title {
        font-size: 0.88rem !important;
    }

    .quantity-stepper {
        height: 30px;
    }

    .stepper-btn {
        width: 26px;
        height: 30px;
        font-size: 14px;
    }

    .stepper-input {
        width: 34px;
        height: 30px;
        font-size: 0.88rem;
    }

    .cart-remove-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .cart-summary .card-body {
        padding: 18px !important;
    }

    .cart-summary .fs-5 {
        font-size: 1rem !important;
    }

    .btn-checkout {
        font-size: 0.92rem !important;
        padding: 10px 14px !important;
    }

    .empty-icon-wrapper i {
        font-size: 55px;
    }

    .cart-empty-box h4 {
        font-size: 1.15rem;
    }

    .cart-empty-box p {
        font-size: 0.88rem;
    }
}

@media (max-width: 450px) {
    .cart-table th, .cart-table td {
        font-size: 0.8rem !important;
    }

    .cart-item-title {
        font-size: 0.82rem !important;
        max-width: 110px;
        white-space: normal;
    }
}


/* ===== 5) CTA buttons ===== */

/* ---------- CTA buttons (hero & sections) ---------- */
.theme-btn,
.theme-btn-s2 {
    background: linear-gradient(to left, #F2A93B, #C98218) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(242, 169, 59, 0.3) !important;
    transition: all 0.25s ease !important;
}

    .theme-btn:hover,
    .theme-btn:focus,
    .theme-btn-s2:hover,
    .theme-btn-s2:focus {
        background: linear-gradient(to left, #C98218, #F2A93B) !important;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(242, 169, 59, 0.4) !important;
    }

.theme-btn-s2 {
    background: transparent !important;
    border: 2px solid #F2A93B !important;
    color: #4E3B2B !important;
    box-shadow: none !important;
}

    .theme-btn-s2 i {
        color: #C98218 !important;
    }

    .theme-btn-s2:hover,
    .theme-btn-s2:focus {
        background: #F2A93B !important;
        color: #fff !important;
        transform: none;
        box-shadow: none !important;
    }

        .theme-btn-s2:hover i,
        .theme-btn-s2:focus i {
            color: #fff !important;
        }


/* ===== 6) Pagination ===== */

/* ============================================================
   PAGINATION (shared _Paging partial) - Tachli palette
   Skins Bootstrap's .pagination to match the shop's pg-pagination
   and the honey-gradient house idiom (btn-checkout).
   ============================================================ */

.pagination .page-link {
    color: #5F5245 !important;
    background-color: #FFFFFF !important;
    border: 1px solid #DCCEB3 !important;
    font-weight: 600 !important;
    min-width: 2.4rem;
    text-align: center;
    transition: all 0.25s ease;
}

    .pagination .page-link:hover {
        color: #FFFFFF !important;
        background: linear-gradient(to left, #F2A93B, #C98218) !important;
        border-color: #C98218 !important;
        box-shadow: 0 4px 14px rgba(242, 169, 59, 0.3) !important;
    }

    .pagination .page-link:focus {
        box-shadow: 0 0 0 0.25rem rgba(242, 169, 59, 0.25) !important;
    }

.pagination .page-item.active .page-link {
    color: #FFFFFF !important;
    background: linear-gradient(to left, #F2A93B, #C98218) !important;
    border-color: #C98218 !important;
    box-shadow: 0 4px 14px rgba(242, 169, 59, 0.3) !important;
}

.pagination .page-item.disabled .page-link {
    color: #C9BFAF !important;
    background-color: #FBF8F1 !important;
    border-color: #EADFC9 !important;
    box-shadow: none !important;
}

/* Round variant used by the partial (pagination-round) */
.pagination.pagination-round .page-item .page-link {
    border-radius: 50rem !important;
}

.pagination.pagination-round .page-item {
    margin: 0 3px;
}

    /* Chevron icons (first/prev/next/last) slightly bolder presence */
    .pagination.pagination-round .page-item i {
        font-size: 1.05rem;
        vertical-align: -0.15em;
    }


/* ===== 7) Breadcrumb ===== */

/* ---------- Breadcrumb area: stock photo out, warm wash in ---------- */
.tp-breadcumb-area {
    background: linear-gradient(180deg, #F8ECD2 0%, #EFDDB4 60%, #E6D3AB 100%) !important;
    min-height: 260px;
}

    .tp-breadcumb-area .tp-breadcumb-wrap h2 {
        color: #4E3B2B !important;
    }

    .tp-breadcumb-area .tp-breadcumb-wrap ul li,
    .tp-breadcumb-area .tp-breadcumb-wrap ul li:last-child span {
        color: #5F5245 !important;
    }

        .tp-breadcumb-area .tp-breadcumb-wrap ul li a {
            color: #5F5245 !important;
        }

            .tp-breadcumb-area .tp-breadcumb-wrap ul li a:hover {
                color: #C98218 !important;
            }


/* ===== 8) Footer ===== */

/* ---------- Footer: deep chocolate instead of near-black gray ---------- */
.tp-site-footer {
    background: #33241A !important;
}

    .tp-site-footer .widget-title h3 {
        color: #F5E9D8 !important;
    }

    .tp-site-footer .about-widget p,
    .tp-site-footer .contact-ft ul li,
    .tp-site-footer .newsletter-widget p {
        color: #CBB896 !important;
    }

        .tp-site-footer .contact-ft ul li i {
            color: #F2A93B !important;
        }

    .tp-site-footer .link-widget ul li a,
    .tp-site-footer .about-widget ul li a {
        color: #D9C9AF !important;
        transition: color 0.25s ease;
    }

        .tp-site-footer .link-widget ul li a:hover,
        .tp-site-footer .about-widget ul li a:hover {
            color: #F2A93B !important;
        }

        .tp-site-footer .about-widget ul li a i {
            color: #D9C9AF;
        }

        .tp-site-footer .about-widget ul li a:hover i {
            color: #F2A93B;
        }

    /* Newsletter form */
    .tp-site-footer .newsletter-widget form input {
        background: #FBF6EC !important;
        border: 1px solid #5A4632 !important;
        color: #4E3B2B !important;
        border-radius: 8px !important;
    }

    /* Lower footer / copyright */
    .tp-site-footer .tp-lower-footer {
        border-top: 1px solid rgba(245, 233, 216, 0.15) !important;
    }

        .tp-site-footer .tp-lower-footer .copyright {
            color: #CBB896 !important;
        }

            .tp-site-footer .tp-lower-footer .copyright a {
                color: #F2A93B !important;
            }

    /* Footer icon circles: center the glyph perfectly.
   Template used line-height:40px on a 36px circle, which pushed the
   themify glyph off-center; flex centering is bulletproof. */
    .tp-site-footer .about-widget ul li a,
    .tp-site-footer .newsletter-widget ul li a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

        .tp-site-footer .about-widget ul li a i,
        .tp-site-footer .newsletter-widget ul li a i {
            line-height: 1 !important;
            margin: 0 !important;
        }

    /* Bulletproof footer icon circles:
   1) any icon-only link inside the footer becomes a true 36px circle
      with the glyph dead-center (covers social/email lists anywhere) */
    .tp-site-footer ul li a:has(> i:only-child) {
        width: 36px;
        height: 36px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        line-height: 1 !important;
        background: rgba(255, 255, 255, 0.1);
    }

        .tp-site-footer ul li a:has(> i:only-child) i {
            line-height: 1 !important;
            margin: 0 !important;
            display: block;
        }

    /* 2) newsletter submit button: kill the template's pixel offsets and
   make it a centered circle instead of the rounded square */
    .tp-site-footer .newsletter-widget form .submit {
        top: 50%;
        left: 12px;
        transform: translateY(-50%);
    }

        .tp-site-footer .newsletter-widget form .submit button {
            position: static !important;
            margin: 0 !important;
            left: auto !important;
            width: 38px;
            height: 38px;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            /* brand fill merged from the old palette block (its 8px radius
           was always beaten by the 50% circle anyway) */
            background: linear-gradient(to left, #F2A93B, #C98218) !important;
            color: #fff !important;
            border: none !important;
        }

            .tp-site-footer .newsletter-widget form .submit button i {
                line-height: 1 !important;
                margin: 0 !important;
                display: block;
            }


/* ===== 9) Global ===== */

/* Brand selection color */
::selection {
    background: #F2A93B;
    color: #33241A;
}


/* ===== 10) Auth forms ===== */

/* (moved from the top of the file - belongs to the auth forms) */
.registerForm {
    padding: 34px 56px !important;
}

/* ============================================================
   AUTH FORMS (Login / Register / Activate) - Tachli palette
   Overrides for the template's tp-account* classes.
   Palette: honey #F2A93B / #C98218, choco #4E3B2B, text #5F5245,
   beige #DCCEB3 / #EADFC9, cream #FBF6EC / #EFE7D5, ruby #C0392B.
   NOTE: make sure _LoginLayout.cshtml links custom-site.css.
   ============================================================ */

.tp-accountWrapper {
    background: #FFFFFF !important;
    border: 1px solid #EADFC9 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(78, 59, 43, 0.14) !important;
}

/* ---------- Left info panel ---------- */
.tp-accountInfo {
    background: radial-gradient(circle at 50% 28%, rgba(255, 246, 220, 0.9) 0%, rgba(255, 246, 220, 0) 55%), linear-gradient(165deg, #F8ECD2 0%, #EBD5A4 48%, #D9B877 100%) !important;
}

    .tp-accountInfo .tp-accountInfoHeader > a:first-child {
        color: #4E3B2B !important;
        font-weight: 800 !important;
    }

        .tp-accountInfo .tp-accountInfoHeader > a:first-child img {
            max-height: 42px;
        }

    .tp-accountInfo .image img {
        max-width: 100%;
    }

    .tp-accountInfo .back-home .tp-accountBtn {
        background: transparent !important;
        border: 1px dashed #DCCEB3 !important;
        color: #5F5245 !important;
        box-shadow: none !important;
    }

        .tp-accountInfo .back-home .tp-accountBtn:hover {
            border-color: #F2A93B !important;
            color: #C98218 !important;
            transform: none;
        }

/* ---------- Buttons ---------- */
.tp-accountBtn {
    background: linear-gradient(to left, #F2A93B, #C98218) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(242, 169, 59, 0.3) !important;
    transition: all 0.25s ease !important;
}

    .tp-accountBtn:hover {
        background: linear-gradient(to left, #C98218, #F2A93B) !important;
        color: #FFFFFF !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(242, 169, 59, 0.4) !important;
    }

    /* Secondary variant (resend activation code) */
    .tp-accountBtn.btn-secondary {
        background: transparent !important;
        border: 1px dashed #DCCEB3 !important;
        color: #5F5245 !important;
        box-shadow: none !important;
    }

        .tp-accountBtn.btn-secondary:hover {
            border-color: #F2A93B !important;
            color: #C98218 !important;
            transform: none;
            box-shadow: none !important;
        }

/* ---------- Form side ---------- */
.tp-accountForm .fromTitle h2 {
    color: #4E3B2B !important;
    font-weight: 800 !important;
}

    .tp-accountForm .fromTitle h2::after {
        content: '';
        display: block;
        width: 56px;
        height: 4px;
        border-radius: 4px;
        background: linear-gradient(to left, #F2A93B, #C98218);
        margin-top: 10px;
    }

.tp-accountForm .fromTitle p {
    color: #5F5245 !important;
    opacity: 0.85;
}

.tp-accountForm label {
    color: #5F5245 !important;
    font-weight: 600 !important;
}

.tp-accountForm .form-control {
    border: 1px solid #DCCEB3 !important;
    border-radius: 10px !important;
    color: #4E3B2B !important;
    background-color: #F2F5EB !important; /* soft olive cream, from the panel palette */
    padding: 0.65rem 0.9rem !important;
    transition: all 0.25s ease;
}

    .tp-accountForm .form-control::placeholder {
        color: #B9AC97 !important;
    }

    .tp-accountForm .form-control:focus {
        border-color: #F2A93B !important;
        background-color: #FFFFFF !important;
        box-shadow: 0 0 0 0.25rem rgba(242, 169, 59, 0.18) !important;
    }

/* Kill the browser autofill light-blue wash (Chrome paints #e8f0fe) */
.tp-accountForm input:-webkit-autofill,
.tp-accountForm input:-webkit-autofill:hover,
.tp-accountForm input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #F2F5EB inset !important;
    box-shadow: 0 0 0 1000px #F2F5EB inset !important;
    -webkit-text-fill-color: #4E3B2B !important;
    caret-color: #4E3B2B;
    transition: background-color 9999s ease-out;
}

/* Password reveal (eye) button */
.tp-accountForm .reveal {
    background: transparent !important;
    border: none !important;
    color: #C98218 !important;
    box-shadow: none !important;
}

    .tp-accountForm .reveal:hover {
        color: #4E3B2B !important;
        transform: none;
        box-shadow: none !important;
    }

/* Remember me / forgot password row */
.tp-accountForm .check-box-wrap .input-box label {
    color: #5F5245 !important;
}

.tp-accountForm .check-box-wrap .input-box input[type="checkbox"] {
    accent-color: #F2A93B;
}

.tp-accountForm .forget-btn a {
    color: #C98218 !important;
    transition: color 0.25s ease;
}

    .tp-accountForm .forget-btn a:hover {
        color: #4E3B2B !important;
        text-decoration: underline;
    }

/* "or" divider */
.tp-accountForm .or,
.tp-accountForm .or span {
    color: #B9AC97 !important;
}

/* Footer text + links */
.tp-accountForm .subText {
    color: #5F5245 !important;
}

    .tp-accountForm .subText a {
        color: #C98218 !important;
        font-weight: 700 !important;
    }

        .tp-accountForm .subText a:hover {
            color: #F2A93B !important;
        }

/* Validation messages - house crimson */
.tp-accountForm .text-danger,
.tp-accountForm .field-validation-error {
    color: #C0392B !important;
    font-size: 0.82rem;
}

/* Activation loading spinner */
#loadingActivation .spinner-border {
    color: #F2A93B !important;
}

#loadingActivation p {
    color: #5F5245;
}


/* Mobile: keep long page ranges inside a phone viewport */
@media (max-width: 575px) {
    .pagination .page-link {
        min-width: 2rem;
        padding: 0.3rem 0.55rem;
        font-size: 0.85rem;
    }

    .pagination.pagination-round .page-item {
        margin: 0 1px;
    }
}

/* ---------- AUTH FORMS - Compact sizing & warm cream canvas ----------
   Template defaults were bulky: wrapper 1170px, panels min-height 600px,
   form padding 55px 85px, inputs 60px tall, h2 35px, area padding 100px.
   The template also paints a rust-orange :before over the info panel -
   replaced here with a soft honey-cream wash so the brand photo shines. */

.tp-login-area {
    background: linear-gradient(180deg, #FBF6EC 0%, #F5F0E6 100%) !important;
    padding: 56px 0 !important;
}

    .tp-login-area .tp-accountWrapper {
        width: 100% !important;
        max-width: 1020px !important;
    }

    .tp-login-area .tp-accountInfo {
        min-height: 540px;
        padding: 36px !important;
    }

        /* The template's :before overlay (rust orange) is dead weight now -
   the gradient lives on the panel element itself (single paint source) */
        .tp-login-area .tp-accountInfo:before {
            display: none !important;
        }

        /* Breathing room: photo must never touch the back-home button */
        .tp-login-area .tp-accountInfo .image {
            margin: 16px 0 24px;
        }

            .tp-login-area .tp-accountInfo .image img {
                max-height: 400px;
                width: auto;
                max-width: 100%;
                border-radius: 12px;
                box-shadow: 0 10px 30px rgba(78, 59, 43, 0.18);
            }

        .tp-login-area .tp-accountInfo p {
            font-size: 15px !important;
            margin-top: 12px !important;
        }

    .tp-login-area .tp-accountForm {
        min-height: 540px;
        padding: 40px 56px !important;
    }

    /* Type scale - one notch down */
    .tp-login-area .fromTitle h2 {
        font-size: 28px !important;
        margin-bottom: 6px !important;
    }

    .tp-login-area .fromTitle p {
        font-size: 13.5px !important;
        margin-bottom: 22px !important;
    }

    /* Slimmer inputs (were 60px tall) */
    .tp-login-area .form-style input {
        height: 48px !important;
        margin-top: 4px !important;
        margin-bottom: 10px !important;
        font-size: 14px !important;
    }

    /* Tighter dividers / footer */
    .tp-login-area .or {
        margin-top: 22px !important;
        margin-bottom: 14px !important;
    }

    .tp-login-area .subText {
        margin-top: 6px;
        font-size: 14px;
    }

    .tp-login-area .tp-accountForm .tp-accountBtn {
        padding: 10px 20px !important;
        font-size: 15px !important;
    }

/* Register: bottom-align the submit button with the last input row
   (inputs carry a 10px bottom margin; mirror it on the button) */
.registerForm .align-items-end .tp-accountBtn {
    margin-bottom: 10px;
}

/* Mobile - keep the compact card breathable */
@media (max-width: 992px) {
    .tp-login-area .tp-accountInfo {
        min-height: 360px;
    }
}

@media (max-width: 767px) {
    .tp-login-area .tp-accountForm {
        padding: 24px 20px !important;
        min-height: auto;
    }

    .tp-login-area .tp-accountInfo {
        padding: 20px !important;
        min-height: auto;
    }

        .tp-login-area .tp-accountInfo .image img {
            max-height: 260px;
        }
}

/* ============================================================
   AUTH OTP - Login tabs / code timer / resend link
   Used by: Login (OTP tab), ActivateAccount, VerifyPasswordResetCode
   ============================================================ */

/* Segmented switcher: "ورود با رمز عبور" / "ورود با رمز یک‌بارمصرف" */
.tp-accountForm .tp-authTabs {
    display: flex;
    gap: 6px;
    background: rgba(51, 36, 26, 0.07);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 26px;
}

.tp-accountForm .tp-authTab {
    flex: 1 1 0;
    border: 0;
    background: transparent;
    border-radius: 9px;
    padding: 11px 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #6B5645;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

    .tp-accountForm .tp-authTab.active {
        background: #FFFFFF;
        color: #33241A;
        box-shadow: 0 2px 8px rgba(51, 36, 26, 0.14);
    }

/* Only the selected panel is visible */
.tp-accountForm .tp-authPanel {
    display: none;
}

    .tp-accountForm .tp-authPanel.active {
        display: block;
    }

/* 6-digit code input: centered, spaced digits, LTR */
.tp-accountForm .tp-codeInput {
    direction: ltr;
    text-align: center;
    letter-spacing: 7px;
    font-weight: 700;
}

/* Timer + resend row under the code input */
.tp-accountForm .tp-otpTimerWrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    min-height: 30px;
}

.tp-accountForm .tp-otpTimer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6B5645;
}

    .tp-accountForm .tp-otpTimer i {
        color: #C98218;
        font-size: 15px;
    }

.tp-accountForm .tp-otpTimerDigits {
    direction: ltr;
    display: inline-block;
    min-width: 46px;
    font-weight: 800;
    color: #33241A;
    font-variant-numeric: tabular-nums;
}

    .tp-accountForm .tp-otpTimerDigits.expired {
        color: #C0392B;
    }

.tp-accountForm .tp-resendBtn {
    border: 0;
    background: transparent;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #C98218;
    cursor: pointer;
    white-space: nowrap;
}

    .tp-accountForm .tp-resendBtn:disabled {
        color: rgba(107, 86, 69, 0.45);
        cursor: default;
    }

    .tp-accountForm .tp-resendBtn:not(:disabled):hover {
        color: #33241A;
        text-decoration: underline;
    }

/* OTP step-2 block appears under the phone row */
.tp-accountForm #otpCodeArea {
    margin-top: 6px;
}

/* ---------- Responsive (3-breakpoint pass: 991 / 767 / 575) ---------- */
@media (max-width: 991px) {
    .tp-accountForm .tp-authTabs {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .tp-accountForm .tp-authTab {
        font-size: 13px;
        padding: 10px 6px;
    }

    .tp-accountForm .tp-codeInput {
        letter-spacing: 6px;
    }
}

@media (max-width: 575px) {
    .tp-accountForm .tp-authTabs {
        gap: 4px;
        padding: 4px;
        margin-bottom: 16px;
    }

    .tp-accountForm .tp-authTab {
        font-size: 12px;
        padding: 9px 4px;
    }

    .tp-accountForm .tp-codeInput {
        letter-spacing: 5px;
    }

    .tp-accountForm .tp-otpTimerWrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ============================================================
   AUTH FORMS - Required-field star
   A red asterisk on the label above every required input.
   custom-site.js adds the is-required class automatically;
   the OTP and confirm-password labels carry it manually
   (their inputs are validated by regex, not the required
   attribute). margin-inline-start keeps the gap on the
   correct side in RTL.
   ============================================================ */
.tp-accountForm label.is-required::after {
    content: "*";
    color: #C0392B;
    font-weight: 800;
    font-size: 0.9em;
    margin-inline-start: 5px;
}
