/* ==========================================================================
   eWIZONE Premium Template Store (V4 - HotspotLab Inspired)
   Style professionnel et épuré avec mockup à double téléphone
   ========================================================================== */

/* Variables de thème locales (indépendantes mais harmonieuses) */
:root {
    --store-primary: #0d2b6b;
    --store-accent: #F5A623;
    --store-text-muted: #6b7280;
    --store-bg-light: #f9fafb;
    --store-card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --store-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- STRUCTURE GLOBALE --- */
.store-container {
    background-color: var(--store-bg-light);
    min-height: 100vh;
}

.card-lift {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none !important;
}
.card-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--store-hover-shadow) !important;
}

/* --- MOCKUP DUAL-PHONE --- */
.tpl-mockup-wrapper {
    background-color: #eeeff5;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.mockup-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style commun aux téléphones */
.mockup-phone {
    width: 130px;
    height: 200px;
    background: #000;
    border-radius: 18px;
    border: 3px solid #222;
    position: absolute;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 1;
}

.phone-back {
    left: 20%;
    top: 15%;
    transform: rotate(-4deg);
    opacity: 0.85;
    z-index: 1;
}

.phone-front {
    right: 15%;
    top: 10%;
    transform: rotate(3deg);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Écran interne du smartphone */
.mockup-screen {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    color: white;
}

.screen-header {
    height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.screen-header .tpl-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.screen-body {
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

/* Simulation de champs/boutons */
.sim-bar {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}
.sim-btn {
    width: 80%;
    height: 8px;
    background: var(--store-accent);
    border-radius: 2px;
    margin-top: 5px;
}

.screen-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-bottom: 5px;
}

.screen-footer i {
    font-size: 0.6rem;
    opacity: 0.7;
}

/* --- TYPOGRAPHIE & INFO CARTE --- */
.tpl-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.tpl-category {
    font-size: 0.75rem;
    color: var(--store-text-muted);
}

.tpl-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--store-primary);
    margin-top: 5px;
}

/* --- BOUTONS --- */
.btn-premium {
    background-color: var(--store-primary);
    color: white;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px;
    border: none;
    transition: all 0.2s;
}
.btn-premium:hover {
    background-color: #081d4a;
    transform: scale(1.02);
}

.btn-icon-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
}

/* --- BARRES D'OUTILS & SIDEBAR --- */
.store-sidebar .card {
    border-radius: 12px;
    box-shadow: var(--store-card-shadow);
}

.toolbar-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 25px;
    box-shadow: var(--store-card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-range-label {
    font-weight: 700;
    color: var(--store-primary);
}

/* --- UTILITAIRES --- */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Effet Glassmorphism pour les badges */
.feature-badge-v4 {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #374151;
}