/* =====================================================
   أوادي للعود والعطور - نظام التصميم الكامل
   ألوان: بني داكن + ذهبي فاخر
   ===================================================== */

/* ROOT VARIABLES */
:root {
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --gold-dark: #A07830;
    --brown-dark: #FDF7F2;
    --brown-mid: #F5EAE0;
    --brown-light: #E8DCC8;
    --brown-accent: #1A0A00;
    --text-light: #1A0A00;
    --text-gold: #8A5A19;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-gold: rgba(201, 168, 76, 0.3);
}

/* BASE */
body {
    box-sizing: border-box;
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    background: #FDF7F2;
    color: #1A0A00;
    font-weight: 500;
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.app-wrapper {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* LOADING SCREEN */
.loading-logo-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    padding: 6px;
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.4), 0 0 60px rgba(201, 168, 76, 0.15);
    animation: pulse-gold 2s ease-in-out infinite;
}
.loading-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.spinner-gold {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(201, 168, 76, 0.2);
    border-top: 3px solid #C9A84C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* MERGED NAVBAR (جزء من الصفحة) */
.owadi-navbar {
    width: 100%;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDF7F2 60%, transparent 100%);
    padding-bottom: 8px;
}
.navbar-inner {
    max-width: 1152px;
    margin: 0 auto;
    padding: 20px 20px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.navbar-logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(201, 168, 76, 0.5);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
    flex-shrink: 0;
}
.navbar-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-gold);
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    line-height: 1.2;
}
.navbar-sub {
    font-size: 0.85rem;
    color: #1A0A00;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    line-height: 1;
}

/* SECTION TITLES */
.section-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gold);
    font-family: 'Tajawal', sans-serif;
}
@media (min-width: 640px) {
    .section-heading { font-size: 1.5rem; }
}
.section-subheading {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}
.card-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Tajawal', sans-serif;
}

/* CARDS */
.owadi-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* PRODUCT CARDS */
.product-card {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px) {
    .product-card:hover {
        transform: translateY(-10px) scale(1.01);
        box-shadow: 0 20px 50px rgba(201, 168, 76, 0.2), 0 0 30px rgba(201, 168, 76, 0.1);
        border-color: rgba(201, 168, 76, 0.6);
    }
}
@media (max-width: 767px) {
    .product-card:active { transform: scale(0.97); }
}

/* PRODUCT PRICE */
.product-price {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Tajawal', sans-serif;
}

/* REVIEW CARDS */
.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 16px;
}

/* INPUTS */
.owadi-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    padding: 10px 14px;
    font-size: 14px;
    background: #FFFFFF;
    color: var(--text-light);
    font-family: 'Tajawal', sans-serif;
    transition: all 0.2s ease;
    outline: none;
}
.owadi-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
    background: #FFFFFF;
    color: var(--text-light);
}
.owadi-input::placeholder {
    color: rgba(61, 42, 34, 0.4);
}
.owadi-input option {
    background: #FFFFFF;
    color: var(--text-light);
}

/* BUTTONS */
.owadi-btn {
    background: linear-gradient(135deg, #C9A84C 0%, #A07830 50%, #C9A84C 100%);
    background-size: 200% auto;
    color: #1A0A00;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.owadi-btn:hover {
    background-position: right center;
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
    transform: scale(1.03);
}
.owadi-btn:active { transform: scale(0.97); }

/* CART BUTTON */
#cart-button {
    background: linear-gradient(135deg, #C9A84C, #A07830);
    color: #1A0A00;
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
}

/* SCROLL BAR */
.scrollbar-thin::-webkit-scrollbar { width: 5px; }
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 999px;
}

/* FOCUS RING */
.focus-ring:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* TOAST */
.toast {
    animation: slideIn 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

/* MODAL */
.modal-overlay { animation: fadeIn 0.25s ease; }

/* CART BOUNCE */
.cart-bounce { animation: bounce 0.3s ease; }

/* MOBILE */
@media (max-width: 767px) {
    input, textarea, select { font-size: 16px !important; }
    .store-title-text { font-size: 1.6rem; }
}

button, a, input[type="submit"] {
    -webkit-tap-highlight-color: rgba(201, 168, 76, 0.2);
    touch-action: manipulation;
}

/* ANIMATIONS */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.3), 0 0 40px rgba(201, 168, 76, 0.1); }
    50% { box-shadow: 0 0 40px rgba(201, 168, 76, 0.6), 0 0 70px rgba(201, 168, 76, 0.25); }
}
@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.animate-slide-up { animation: slideUp 0.3s ease; }
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
