@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-VariableFont_slnt,wght.ttf') format('truetype');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --tc-bg-main: #FFF8FB;
    --tc-off-white: #FDF8FA;
    --tc-section: #FFF4F8;
    --tc-card: #FFFFFF;
    --tc-primary: #d00668;
    --tc-soft-pink: #f6aed1;
    --tc-light-pink: #FCE3EE;
    --tc-border: #F3C7DA;
    --tc-surface: #F9D7E6;
    --tc-text-secondary: #B64C7F;
    --tc-text-light: #C97AA0;
    --tc-primary-hover: #b1055b;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body.timecake-theme {
    font-family: 'Cairo', sans-serif !important;
    background-color: var(--tc-bg-main);
    background-image: radial-gradient(var(--tc-soft-pink) 2px, transparent 2px), radial-gradient(var(--tc-soft-pink) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    color: #1c1917;
    overscroll-behavior-y: none;
}

body.timecake-theme::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 248, 251, 0.78) 0%, rgba(253, 248, 250, 0.38) 100%);
    pointer-events: none;
    z-index: -1;
}

.icon-white {
    filter: brightness(0) invert(1);
}

.bg-brand-pink {
    background-color: var(--tc-primary);
}

.tc-modal-panel {
    max-height: calc(100vh - 2rem);
}

.animate-fade-in {
    animation: tcFadeIn 0.5s ease-out forwards;
}

.animate-fade-in-up {
    animation: tcFadeInUp 0.6s ease-out forwards;
}

@keyframes tcFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes tcFadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timecake-theme .bg-pink-50 {
    background-color: var(--tc-light-pink) !important;
}

.timecake-theme .bg-pink-600 {
    background-color: var(--tc-primary) !important;
}

.timecake-theme .hover\:bg-pink-400:hover {
    background-color: var(--tc-soft-pink) !important;
}

.timecake-theme .hover\:bg-pink-500:hover,
.timecake-theme .hover\:bg-pink-600:hover {
    background-color: var(--tc-primary-hover) !important;
}

.timecake-theme .text-pink-500,
.timecake-theme .text-pink-600,
.timecake-theme .text-pink-700 {
    color: var(--tc-primary) !important;
}

.timecake-theme .border-pink-100,
.timecake-theme .border-pink-200,
.timecake-theme .border-pink-300 {
    border-color: var(--tc-border) !important;
}

.timecake-theme .prose h1,
.timecake-theme .prose h2,
.timecake-theme .prose h3 {
    color: #1f1f1f;
    font-weight: 800;
}

.timecake-theme .prose p,
.timecake-theme .prose li {
    color: #4f4f4f;
    line-height: 1.9;
}

.timecake-theme input,
.timecake-theme textarea,
.timecake-theme select {
    outline: none;
}

.timecake-theme input:focus,
.timecake-theme textarea:focus,
.timecake-theme select:focus {
    border-color: var(--tc-primary);
    box-shadow: 0 0 0 3px rgba(208, 6, 104, 0.1);
}

@media (max-width: 767px) {
    .tc-navbar h1 {
        font-size: 1rem;
    }
}

body.tc-order-open {
    overflow: hidden;
}

.tc-order-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.tc-order-modal.is-open {
    display: flex;
}

.tc-order-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 15, 18, 0.42);
    backdrop-filter: blur(1px);
}

.tc-order-sheet {
    position: relative;
    width: min(760px, 100%);
    max-height: 92vh;
    background: #fff;
    border: 1px solid var(--tc-border);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 40px rgba(208, 6, 104, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tc-order-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--tc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, #fff, #fff8fb);
}

.tc-order-head h2 {
    margin: 0;
    font-size: 18px;
    color: #1f1f1f;
    font-weight: 900;
}

.tc-order-meta {
    margin: 4px 0 0;
    color: var(--tc-text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.tc-order-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--tc-border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--tc-primary);
}

.tc-order-body {
    overflow-y: auto;
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--tc-bg-main);
}

.tc-order-product-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 16px;
    padding: 10px;
}

.tc-order-product-thumb-wrap {
    width: 78px;
    flex-shrink: 0;
}

.tc-order-product-thumb {
    width: 78px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--tc-border);
}

.tc-order-product-info {
    min-width: 0;
    flex: 1;
}

.tc-order-summary {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--tc-text-secondary);
    line-height: 1.6;
}

.tc-order-product-link {
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    color: var(--tc-primary);
    text-decoration: none;
}

.tc-order-section {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tc-order-section h3 {
    margin: 0;
    font-size: 15px;
    color: #1f1f1f;
    font-weight: 900;
}

.tc-order-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tc-order-field label,
.tc-order-field span {
    color: var(--tc-text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.tc-order-persons {
    background: var(--tc-light-pink);
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    padding: 9px 10px;
}

.tc-order-persons strong {
    color: var(--tc-primary);
    font-size: 14px;
}

.tc-order-input {
    width: 100%;
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    min-height: 42px;
    padding: 10px 11px;
    background: #fff;
    color: #1f1f1f;
    font-size: 14px;
}

.tc-order-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tc-order-segment {
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.tc-order-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tc-order-segment span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
    color: #44403c;
    font-weight: 800;
}

.tc-order-segment input:checked + span {
    background: var(--tc-light-pink);
    color: var(--tc-primary);
}

.tc-payment-box {
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    background: #fff;
    padding: 10px 11px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tc-payment-item {
    border-top: 1px dashed var(--tc-border);
    padding-top: 8px;
}

.tc-payment-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.tc-payment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.tc-payment-head strong {
    font-size: 13px;
    color: #1f1f1f;
    font-weight: 800;
}

.tc-payment-box p {
    margin: 0;
    color: #57534e;
    font-size: 12px;
    line-height: 1.6;
}

.tc-payment-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tc-payment-icon-purple {
    background: #f1e9ff;
    color: #7c3aed;
}

.tc-payment-icon-red {
    background: #ffe8ee;
    color: #dc2626;
}

.tc-transfer-note {
    border: 1px solid #f6cfe0;
    background: #fff4f8;
    color: #9d174d;
    border-radius: 12px;
    padding: 10px 11px;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 700;
}

.tc-order-footer {
    border-top: 1px solid var(--tc-border);
    background: #fff;
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tc-order-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tc-order-total span {
    color: #78716c;
    font-size: 12px;
    font-weight: 700;
}

.tc-order-total strong {
    color: var(--tc-primary);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.tc-order-total small {
    color: var(--tc-text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.tc-order-submit-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    background: var(--tc-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(208, 6, 104, 0.18);
}

.tc-order-submit-btn:hover {
    background: var(--tc-primary-hover);
}

.hidden {
    display: none !important;
}

@media (min-width: 768px) {
    .tc-order-modal {
        align-items: center;
        padding: 16px;
    }

    .tc-order-sheet {
        border-radius: 22px;
        max-height: min(92vh, 900px);
        border-bottom: 1px solid var(--tc-border);
    }
}

.tc-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    background: #d00668;
    box-shadow: 0 8px 16px rgba(208, 6, 104, 0.25);
}

.tc-product-badge--sale {
    background: #e11d48;
}

.tc-product-badge--popular {
    background: #f59e0b;
}

.tc-product-sub-badge {
    top: 38px;
}

.tc-badge-slider-section {
    position: relative;
    max-width: 84rem;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.tc-badge-slider-shell {
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(252, 227, 238, 0.78));
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(208, 6, 104, 0.12);
    overflow: hidden;
    padding: 18px 14px 16px;
}

.tc-badge-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tc-badge-slider-head h3 {
    margin: 0;
    color: #d00668;
    font-size: 1.05rem;
    font-weight: 900;
}

.tc-badge-slider-head p {
    margin: 0;
    font-size: 0.78rem;
    color: #8c315f;
    font-weight: 700;
}

.tc-badge-slider-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.tc-badge-slider-track {
    display: flex;
    gap: 12px;
    align-items: stretch;
    will-change: transform;
    touch-action: pan-y;
    user-select: none;
}

.tc-badge-slider-card {
    position: relative;
    flex: 0 0 min(180px, 42vw);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 22px rgba(208, 6, 104, 0.16);
}

.tc-badge-slider-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.tc-badge-slider-card-meta {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(180deg, transparent, rgba(23, 10, 16, 0.74));
    padding: 11px 10px 8px;
    color: #fff;
}

.tc-badge-slider-card-title {
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.tc-badge-slider-progress {
    margin-top: 11px;
    height: 4px;
    background: rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    overflow: hidden;
}

.tc-badge-slider-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #d00668, #f472b6);
    transition: width 0.15s linear;
}

.tc-order-step-nav-dynamic {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--tc-border);
    background: #fff;
}

.tc-order-step-pill {
    border: 1px solid var(--tc-border);
    background: #fff8fb;
    color: #8c315f;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
}

.tc-order-step-pill.is-active {
    background: var(--tc-primary);
    color: #fff;
    border-color: var(--tc-primary);
}

.tc-order-step-actions-dynamic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tc-order-step-btn {
    border: 0;
    border-radius: 11px;
    min-height: 42px;
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    background: var(--tc-primary);
}

.tc-order-step-btn-secondary {
    color: #8c315f;
    background: #fff5f9;
    border: 1px solid var(--tc-border);
}

.tc-order-step-btn:disabled {
    opacity: 0.5;
}

@media (max-width: 767px) {
    .tc-badge-slider-card {
        flex-basis: min(160px, 56vw);
    }
}
