﻿/*app.css - COMPACT VERSION - Smaller sizing throughout with RTL fixes*/

* {
    direction: inherit;
}

/* 🖋️ Font Definitions */
@font-face {
    font-family: 'PingARLT';
    src: url('/fonts/Ping-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PingARLT';
    src: url('/fonts/Ping-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PingARLT';
    src: url('/fonts/Ping-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PingARLT';
    src: url('/fonts/Ping-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Base Styles - SMALLER */
html, body {
    font-family: 'PingARLT', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #2A2A2A;
    background-color: #FFFFFF;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

html, body {
    direction: inherit;
}

h1:focus {
    outline: none;
}

/* Links */
a, .btn-link {
    color: #1E4123;
    text-decoration: none;
    transition: all 0.3s ease;
}

    a:hover, .btn-link:hover {
        color: #B89350;
    }

/* Buttons - SMALLER */
.btn {
    border-radius: 2px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    color: #FFFFFF;
    background: #1E4123;
    border-color: #1E4123;
}

    .btn-primary:hover {
        background: #2a5b32;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(30, 65, 35, 0.2);
    }

.btn-secondary {
    color: #FFFFFF;
    background: #B89350;
    border-color: #B89350;
}

    .btn-secondary:hover {
        background: #caa462;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(184, 147, 80, 0.2);
    }

.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(184, 147, 80, 0.2);
    outline: none;
}

.form-control {
    border-radius: 4px;
    border: 1px solid #E0E0E0;
    padding: 0.5rem 0.875rem;
    font-family: 'PingARLT', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    background: #FFFFFF;
    color: #2A2A2A;
    font-size: 0.875rem;
}

    .form-control:focus {
        border-color: #B89350;
        box-shadow: 0 0 0 2px rgba(184, 147, 80, 0.1);
        outline: none;
    }

    .form-control::placeholder {
        color: #999999;
    }

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #dc3545;
}

.validation-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

#blazor-error-ui {
    background: #FFF3CD;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.5rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #856404;
    border-top: 1px solid #ffeaa7;
    font-size: 0.875rem;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.loading-progress {
    position: relative;
    display: block;
    width: 6rem;
    height: 6rem;
    margin: 15vh auto 0.75rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #F5F5F5;
        stroke-width: 0.5rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #B89350;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 600;
    inset: calc(15vh + 2.5rem) 0 auto 0.2rem;
    color: #2A2A2A;
    font-size: 0.875rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* Code */
code {
    color: #B89350;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.product-card {
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #F5F5F5;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
        border-color: #B89350;
    }

.product-name {
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    color: #2A2A2A;
    font-family: 'PingARLT', sans-serif;
}

.product-price {
    color: #B89350;
    font-weight: 600;
    margin-top: 0.375rem;
    font-family: 'PingARLT', sans-serif;
    font-size: 0.95rem;
}

.section-title {
    font-weight: 600;
    font-size: 1.5rem;
    color: #1E4123;
    margin-bottom: 1.5rem;
    font-family: 'PingARLT', sans-serif;
    position: relative;
    display: block;
    text-align: inherit;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -6px;
        width: 50px;
        height: 2px;
        background: #B89350;
    }

.hero-title {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #1E4123;
    font-family: 'PingARLT', sans-serif;
}

/* Layout Helpers */
.rk-container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* ========================================
   HEADER - SMALLER
   ======================================== */

.rk-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(30, 65, 35, 0.3);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

    .rk-header.is-scrolled {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }

        .rk-header.is-scrolled .rk-logo-img {
            filter: none;
        }

        .rk-header.is-scrolled .rk-icon {
            stroke: #2A2A2A;
        }

        .rk-header.is-scrolled .rk-icon-btn {
            border-color: #E8E8E8;
            background: #FFFFFF;
        }

.rk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
}

/* Logo - SMALLER */
.rk-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 0;
}

    .rk-logo:hover {
        opacity: 0.8;
    }

.rk-logo-img {
    height: 38px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.rk-logo:hover .rk-logo-img {
    opacity: 0.85;
    transform: scale(1.02);
}

.rk-logo-ar {
    font-family: 'PingARLT', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
    color: #1E4123;
    transition: color 0.3s ease;
}

.rk-logo-en {
    font-family: 'PingARLT', sans-serif;
    font-weight: 500;
    font-size: 0.65rem;
    color: #B89350;
    letter-spacing: 0.8px;
    margin-top: 2px;
    text-transform: uppercase;
}

/* Header Actions - SMALLER */
.rk-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rk-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .rk-icon-btn:hover {
        border-color: #B89350;
        background: rgba(255, 255, 255, 0.95);
        transform: translateY(-1px);
    }

.rk-icon {
    width: 18px;
    height: 18px;
    stroke: #FFFFFF;
    transition: stroke 0.3s ease;
}

.rk-icon-btn:hover .rk-icon {
    stroke: #B89350;
}

/* Cart Badge - SMALLER */
.rk-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #B89350;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 4px;
    border-radius: 9px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(184, 147, 80, 0.3);
}

/* ========================================
   SECTION NAV - SMALLER - FIXED SCROLL ISSUE
   ======================================== */

.rk-section-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 90;
    background: transparent;
    transition: all 0.3s ease;
}

    /* When scrolled, give section nav a solid background */
    .rk-header.is-scrolled ~ .rk-section-nav,
    .rk-section-nav.is-scrolled {
        background: rgba(30, 65, 35, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

.rk-section-nav-inner {
    display: flex;
    gap: 0;
    padding-block: 0;
    overflow: auto;
    scrollbar-width: none;
    justify-content: center;
}

    .rk-section-nav-inner::-webkit-scrollbar {
        display: none;
    }

.rk-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #FFFFFF;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

    .rk-pill:hover {
        color: #FFFFFF;
        border-bottom-color: #B89350;
        background: rgba(184, 147, 80, 0.2);
    }

    .rk-pill.active {
        color: #FFFFFF;
        border-bottom-color: #B89350;
        background: rgba(184, 147, 80, 0.25);
        font-weight: 600;
    }

/* Pills when scrolled - maintain visibility */
.rk-header.is-scrolled ~ .rk-section-nav .rk-pill,
.rk-section-nav.is-scrolled .rk-pill {
    color: #FFFFFF;
    text-shadow: none;
}

    .rk-header.is-scrolled ~ .rk-section-nav .rk-pill:hover,
    .rk-section-nav.is-scrolled .rk-pill:hover {
        color: #FFFFFF;
        background: rgba(184, 147, 80, 0.3);
        border-bottom-color: #B89350;
    }

    .rk-header.is-scrolled ~ .rk-section-nav .rk-pill.active,
    .rk-section-nav.is-scrolled .rk-pill.active {
        color: #FFFFFF;
        background: rgba(184, 147, 80, 0.4);
        border-bottom-color: #B89350;
    }

/* ========================================
   HERO SECTION - SMALLER
   ======================================== */

.rk-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #F6F3EE;
    padding-top: 0;
    margin-top: 0;
}

.rk-hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.rk-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rk-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( 135deg, rgba(30, 65, 35, 0.35) 0%, rgba(184, 147, 80, 0.15) 50%, rgba(30, 65, 35, 0.35) 100% );
    z-index: 1;
    pointer-events: none;
}

.rk-hero-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    min-height: 60vh;
}

.rk-hero-copy {
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out;
}

.rk-hero .hero-title {
    font-family: 'PingARLT', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 16px rgba(0, 0, 0, 0.6);
}

    .rk-hero .hero-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: #B89350;
        margin: 1rem auto 0;
        border-radius: 2px;
    }

.rk-hero .body-text {
    font-size: clamp(0.875rem, 1.6vw, 1.05rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 600px;
    margin-inline: auto;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.5);
}

.rk-hero .btn {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    background: #B89350;
    color: #FFFFFF;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 0.4px;
    box-shadow: 0 3px 14px rgba(184, 147, 80, 0.4);
}

    .rk-hero .btn:hover {
        background: #caa462;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(184, 147, 80, 0.5);
    }

.rk-hero-art {
    display: none;
}

.rk-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

    .rk-hero-scroll svg {
        width: 26px;
        height: 26px;
        stroke: #B89350;
        stroke-width: 2;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-8px);
    }

    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* ========================================
   SECTIONS - SMALLER
   ======================================== */

.rk-section {
    position: relative;
    z-index: 2;
    padding-block: 2.5rem;
    background: #FFFFFF;
    scroll-margin-top: 130px;
}

    .rk-section:nth-child(even) {
        background: #FAFAFA;
    }

/* ========================================
   FOOTER - SMALLER
   ======================================== */

.rk-footer {
    position: relative;
    z-index: 2;
    background: #F6F3EE;
    color: #2A2A2A;
    margin-top: 2rem;
    border-top: 1px solid #E8E8E8;
}

.rk-footer-grid {
    display: grid;
    gap: 2.5rem;
    padding-block: 2.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.rk-footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #1E4123;
}

.rk-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.625rem;
}

    .rk-footer-list a {
        color: #666666;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-block;
        font-weight: 400;
        font-size: 0.85rem;
    }

        .rk-footer-list a:hover {
            color: #B89350;
            transform: translateX(-3px);
        }

.rk-newsletter {
    margin-top: 1rem;
    display: flex;
    gap: 8px;
}

.rk-footer-bottom {
    border-top: 1px solid #E8E8E8;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #999999;
    background: rgba(255, 255, 255, 0.5);
}

/* ========================================
   MODAL - SMALLER
   ======================================== */

.rk-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.rk-modal {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 2rem;
    width: min(92vw, 440px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-25px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rk-modal-title {
    margin: 0 0 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1E4123;
}

.rk-modal-note {
    margin-top: 1.25rem;
    color: #666666;
    font-size: 0.8rem;
    line-height: 1.6;
}

.rk-modal-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #E8E8E8;
    background: #FFFFFF;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s ease;
    color: #2A2A2A;
}

    .rk-modal-close:hover {
        border-color: #B89350;
        background: #FFF9F0;
        color: #B89350;
    }

.rk-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 1rem;
}

.rk-lang-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0.875rem 1rem;
    border-radius: 7px;
    border: 2px solid #E8E8E8;
    background: #FFFFFF;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #2A2A2A;
    font-size: 0.9rem;
}

    .rk-lang-btn:hover {
        border-color: #B89350;
        background: #FFF9F0;
    }

    .rk-lang-btn.is-active {
        border-color: #1E4123;
        background: #F0F7F1;
    }

.rk-lang-check {
    font-weight: 700;
    color: #1E4123;
    font-size: 0.9rem;
}

/* ========================================
   RTL/LTR SUPPORT
   ======================================== */

[dir="ltr"] .rk-header-inner {
    flex-direction: row;
}

[dir="ltr"] .rk-logo {
    text-align: left;
}

[dir="ltr"] .rk-badge {
    right: -5px;
    left: auto;
}

[dir="ltr"] .rk-modal-close {
    right: 12px;
    left: auto;
}

[dir="ltr"] .rk-footer-list a:hover {
    transform: translateX(3px);
}

[dir="ltr"] .section-title {
    text-align: left;
}

    [dir="ltr"] .section-title::after {
        left: 0;
        right: auto;
    }

[dir="rtl"] .rk-header-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .rk-logo {
    text-align: right;
}

[dir="rtl"] .rk-badge {
    right: auto;
    left: -5px;
}

[dir="rtl"] .rk-modal-close {
    right: auto;
    left: 12px;
}

[dir="rtl"] .rk-footer-list a:hover {
    transform: translateX(-3px);
}

[dir="rtl"] .section-title {
    text-align: right;
}

    [dir="rtl"] .section-title::after {
        left: auto;
        right: 0;
    }

[dir="ltr"] .rk-actions {
    flex-direction: row;
}

[dir="rtl"] .rk-actions {
    flex-direction: row-reverse;
}

[dir="ltr"] .rk-newsletter {
    flex-direction: row;
}

[dir="rtl"] .rk-newsletter {
    flex-direction: row-reverse;
}

html {
    scroll-padding-top: 140px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .rk-header-inner {
        height: 60px;
    }

    .rk-section-nav {
        top: 60px;
    }

    .rk-section-nav-inner {
        justify-content: flex-start;
    }

    .rk-pill {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }

    .rk-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rk-section {
        scroll-margin-top: 120px;
        padding-block: 2rem;
    }

    .rk-hero {
        min-height: 75vh;
    }

    .rk-hero-inner {
        min-height: 60vh;
        padding: 2.5rem 1.25rem;
    }

    .rk-hero .hero-title {
        font-size: clamp(1.75rem, 5vw, 3rem);
    }

    .rk-hero .body-text {
        font-size: clamp(0.8rem, 1.6vw, 1rem);
    }

    .section-title {
        font-size: 1.35rem;
    }

    .rk-logo-img {
        height: 34px;
    }
}

@media (max-width: 640px) {
    html, body {
        font-size: 13px;
    }

    .rk-header-inner {
        height: 56px;
    }

    .rk-section-nav {
        top: 56px;
    }

    .rk-logo-ar {
        font-size: 1.1rem;
    }

    .rk-logo-en {
        font-size: 0.6rem;
    }

    .rk-icon-btn {
        width: 36px;
        height: 36px;
    }

    .rk-icon {
        width: 16px;
        height: 16px;
    }

    .rk-actions {
        gap: 8px;
    }

    .rk-hero {
        min-height: 70vh;
    }

    .rk-hero-inner {
        min-height: 55vh;
        padding: 2.5rem 1rem;
    }

    .rk-pill {
        padding: 0.5rem 0.9rem;
        font-size: 0.7rem;
    }

    .rk-modal {
        padding: 1.75rem;
    }

    .rk-logo-img {
        height: 32px;
    }
}

/* Focus States */
*:focus-visible {
    outline: 2px solid #B89350;
    outline-offset: 2px;
}
