/* ==========================================================
   REDYEZ - Core Theme Stylesheet
   Design tokens read from config/theme.php on the PHP side;
   mirrored here as CSS variables so JS/CSS never hardcode colors.
   ========================================================== */

:root {
    --redyez-primary: #111111;
    --redyez-secondary: #f5f5f5;
    --redyez-accent: #d4af37;
    --redyez-radius: 16px;
    --redyez-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --redyez-transition: 200ms ease;
}

[data-theme="dark"] {
    --redyez-primary: #f5f5f5;
    --redyez-secondary: #1a1a1a;
    --redyez-bg: #0d0d0d;
    --redyez-text: #f5f5f5;
}

body {
    background: var(--redyez-bg, #ffffff);
    color: var(--redyez-text, #111111);
    font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------- Header ---------------- */
.redyez-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.redyez-navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background var(--redyez-transition);
}

.redyez-header-icons .btn-icon {
    position: relative;
    background: transparent;
    border: none;
}

.badge-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--redyez-primary);
    color: #fff;
    font-size: 10px;
    border-radius: 999px;
    padding: 1px 6px;
}

.live-search-panel {
    background: #fff;
    box-shadow: var(--redyez-shadow);
}

/* ---------------- Product Card ---------------- */
.product-card {
    border-radius: var(--redyez-radius);
    box-shadow: var(--redyez-shadow);
    overflow: hidden;
    background: #fff;
    transition: transform var(--redyez-transition);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card-media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--redyez-transition);
}

.product-card:hover .product-card-actions {
    opacity: 1;
}

.product-card-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: var(--redyez-shadow);
}

.product-card-body {
    padding: 12px;
}

.product-card-brand {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
}

.product-card-name {
    display: block;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    margin-left: 6px;
    font-size: 13px;
}

/* ---------------- Skeleton Loading ---------------- */
.skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: var(--redyez-radius);
}

@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ---------------- Toasts ---------------- */
.toast-container .toast {
    border-radius: 12px;
    box-shadow: var(--redyez-shadow);
}

/* ---------------- Quick View Modal ---------------- */
.quick-view-modal .modal-content {
    border-radius: var(--redyez-radius);
    border: none;
}

.section-title {
    font-weight: 700;
    margin-bottom: 24px;
}
