/* ==============================================
   QUALIBOLT PRODUCT CARDS (v32.0 - SUCCESS UI FIX)
   Features: 
   1. "Celebration Style" Success Popup (Flexbox Fixed).
   2. "Waterfall" Staggered Entry Animations.
   3. "Alive Glass" Sheen Effects.
   4. Tactile Button Physics (Scale/Recoil).
   5. Double Arrow Glitch Fix.
=============================================== */

/* --- 1. THEME VARIABLES --- */
:root {
    --page-bg: #f4f6f8;            
    --card-bg: #ffffff;            
    --text-main: #1a202c;          
    --text-muted: #718096;         
    --border-color: rgba(0,0,0,0.08);
    --dock-bg: #ffffff;
    --dock-shadow: rgba(0,0,0,0.1);
    --control-bar-bg: rgba(255, 255, 255, 0.85);
    --shelf-header-color: #2d3748;
    --process-strip-bg: #ffffff;
    --process-strip-border: rgba(0,0,0,0.05);
    
    /* Animation Timing */
    --ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy entry */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1); /* Apple-style smooth */
}

body.dark-mode {
    --page-bg: #0b0f19;            
    --card-bg: #1a202c;            
    --text-main: #ffffff;          
    --text-muted: #a0aec0;         
    --border-color: rgba(255,255,255,0.1);
    --dock-bg: #0b0f19;
    --dock-shadow: rgba(0,0,0,0.5);
    --control-bar-bg: rgba(0, 0, 0, 0.6);
    --shelf-header-color: #ffffff;
    --process-strip-bg: #151a25;
    --process-strip-border: rgba(255,255,255,0.05);
}

/* --- 2. ISOLATION LAYER --- */
#digitals-experience {
    background-color: var(--page-bg); 
    color: var(--text-main);          
    overflow-x: hidden;
    margin: 0 !important; padding: 0 !important; width: 100%;
    transition: background-color 0.5s var(--ease-smooth), color 0.5s var(--ease-smooth);
}

#digitals-experience main {
    position: relative; z-index: 1;
    margin-top: 0 !important; padding-top: 0 !important;
}

/* --- 3. ANIMATIONS (KEYFRAMES) --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes glassSheen {
    0% { transform: translateX(-150%) skewX(-25deg); }
    100% { transform: translateX(250%) skewX(-25deg); }
}

@keyframes pulseSubtle {
    0% { box-shadow: 0 0 0 0 rgba(0, 191, 179, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 191, 179, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 191, 179, 0); }
}

/* --- 4. HEADER OVERRIDE --- */
#digitals-experience .main-header.glass-header {
    position: absolute !important; top: 0; left: 0; width: 100%; height: auto;
    background: rgba(11, 15, 25, 0.85) !important;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none !important; z-index: 1000;
}
#digitals-experience .glass-header .logo-link .site-title,
#digitals-experience .glass-header .main-nav ul li a,
#digitals-experience .glass-header .header-actions button {
    color: #ffffff !important; text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
#digitals-experience .glass-header .main-nav ul li a.active {
    color: var(--accent-teal, #00BFB3) !important;
    border-bottom: 2px solid var(--accent-teal, #00BFB3);
}

/* --- 5. CINEMATIC HERO (Parallax Ready) --- */
#digitals-experience .category-hero { 
    position: relative; width: 100%; min-height: 70vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: #fff; background-color: #0f141e; overflow: hidden;
    padding-top: 100px; padding-bottom: 50px;
    background-image: linear-gradient(to bottom, rgba(15, 20, 30, 0.7), rgba(15, 20, 30, 0.1)), url('../../images/digitals/hero/mobile-hero.jpg');
    background-size: cover; background-position: center;
    animation: fadeUp 1.2s var(--ease-out-back) forwards;
}

#digitals-experience .category-hero h1 { 
    font-size: 3rem; font-weight: 700; margin-bottom: 0.5rem; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.9); color: #ffffff; 
}

#digitals-experience .hero-badge {
    display: inline-block; background: var(--accent-teal, #00BFB3); color: #000;
    font-weight: 700; font-size: 0.75rem; padding: 4px 12px; border-radius: 4px;
    text-transform: uppercase; margin-bottom: 15px; box-shadow: 0 0 15px rgba(0, 191, 179, 0.4);
    animation: pulseSubtle 3s infinite;
}

#digitals-experience .trust-strip { 
    margin-top: 1.5rem; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; 
}
#digitals-experience .trust-strip span { 
    background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); padding: 8px 20px; 
    border-radius: 50px; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.2); color: #fff; display: flex; align-items: center; gap: 8px; 
    transition: transform 0.3s ease;
}
#digitals-experience .trust-strip span:hover {
    transform: translateY(-2px); background: rgba(255,255,255,0.15);
}

/* --- 6. PROMISE STRIP (Alive Glass Effect) --- */
#digitals-experience .promise-strip {
    width: 100%; margin-bottom: 30px; padding: 12px 20px;
    background: linear-gradient(90deg, rgba(0,45,43,0.9) 0%, rgba(11,15,25,0.9) 100%);
    border-bottom: 1px solid var(--accent-teal, #00BFB3); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; text-align: center; gap: 15px; flex-wrap: wrap; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative; overflow: hidden;
}
#digitals-experience .promise-strip::after {
    content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-150%) skewX(-25deg);
    animation: glassSheen 6s infinite ease-in-out 3s; 
    pointer-events: none;
}

#digitals-experience .promise-item { font-size: 0.9rem; color: #a0aec0; font-weight: 500; display: flex; align-items: center; gap: 8px; position: relative; z-index: 2; }
#digitals-experience .promise-item strong { color: #fff; font-weight: 600; }
#digitals-experience .promise-item i { color: var(--accent-teal, #00BFB3); }
#digitals-experience .promise-item .highlight-gold { color: #ffd700; }
#digitals-experience .promise-separator { color: rgba(255,255,255,0.2); font-size: 1.2rem; }

/* --- 7. NAVIGATION & PROCESS --- */
#digitals-experience .process-strip-container {
    position: relative; z-index: 10;
    background: var(--process-strip-bg); 
    border-top: 1px solid var(--process-strip-border); border-bottom: 1px solid var(--process-strip-border); 
    padding: 50px 0; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
#digitals-experience .process-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
#digitals-experience .process-step { display: flex; flex-direction: column; align-items: center; width: 200px; position: relative; }
@media (min-width: 769px) {
    #digitals-experience .process-step:not(:last-child)::after {
        content: ''; position: absolute; top: 25px; right: -30px; width: 60px; height: 2px; background: var(--border-color); z-index: 0;
    }
}
#digitals-experience .step-icon {
    width: 50px; height: 50px; background: rgba(0, 191, 179, 0.1); border: 1px solid var(--accent-teal, #00BFB3);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent-teal, #00BFB3); font-size: 1.2rem;
    margin-bottom: 15px; position: relative; z-index: 1; background-color: var(--process-strip-bg);
    transition: transform 0.4s var(--ease-out-back);
}
#digitals-experience .process-step:hover .step-icon { transform: scale(1.15) rotate(5deg); }
#digitals-experience .step-title { color: var(--text-main); font-weight: 600; font-size: 1rem; margin-bottom: 5px; }
#digitals-experience .step-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.4; }

/* --- 8. SHELF ARCHITECTURE --- */
#digitals-experience .shelf-wrapper { margin-bottom: 50px; width: 100%; }
#digitals-experience .shelf-header { margin: 30px 0 20px 0; border-left: 4px solid var(--accent-teal, #00BFB3); padding-left: 15px; }
#digitals-experience .shelf-header h3 { 
    color: var(--shelf-header-color); margin: 0; font-size: 1.4rem; display: flex; align-items: center; gap: 10px; 
}
#digitals-experience .shelf-header p { color: var(--text-muted); font-size: 0.85rem; margin: 5px 0 0 0; }
#digitals-experience .shelf-divider { border: 0; border-top: 1px solid var(--border-color); margin-top: 40px; }
#digitals-experience .shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; width: 100%; }

/* --- 9. COMPONENTS (Tactile Physics) --- */
#digitals-experience .product-card {
    background: var(--card-bg); border: 1px solid var(--border-color); 
    border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    will-change: transform; 
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), border-color 0.3s ease;
    opacity: 0; 
}
#digitals-experience .product-card.animate-in {
    animation: fadeUp 0.8s var(--ease-out-back) forwards;
}

#digitals-experience .product-card:hover { 
    transform: translateY(-8px) scale(1.01); 
    border-color: var(--accent-teal); 
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
}

#digitals-experience .card-image-wrapper {
    position: relative; height: 250px; background: #fff; padding: 20px; 
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
#digitals-experience .card-image-wrapper img { 
    max-height: 100%; max-width: 100%; object-fit: contain; 
    transition: transform 0.5s ease; 
}
#digitals-experience .product-card:hover .card-image-wrapper img { transform: scale(1.08); }

#digitals-experience .product-badge { 
    position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; z-index: 2; 
}
.badge-standard { background: #00BFB3; color: #fff; } .badge-best { background: #ffd700; color: #000; } .badge-new { background: #34c759; color: #fff; }
#digitals-experience .stock-status { 
    position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.8); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; 
}

#digitals-experience .card-details { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
#digitals-experience .product-title { font-size: 1.1rem; color: var(--text-main); margin-bottom: 1rem; min-height: 3rem; }
#digitals-experience .product-specs li { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; list-style: none; }
#digitals-experience .product-specs li i { color: var(--accent-teal); margin-right: 6px; }

#digitals-experience .card-footer { 
    display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 1rem; margin-top: auto; 
}
#digitals-experience .price-value { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }

#digitals-experience .btn-get-quote { 
    background: transparent; border: 1px solid var(--accent-teal); color: var(--accent-teal);
    padding: 8px 16px; border-radius: 50px; font-weight: 600; cursor: pointer; 
    transition: all 0.2s var(--ease-smooth); 
}
#digitals-experience .btn-get-quote:hover { 
    background: var(--accent-teal); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 191, 179, 0.3);
}
#digitals-experience .btn-get-quote:active { 
    transform: scale(0.95); box-shadow: none; 
}

/* --- 10. MICRO-DOCK (Magnetic Tiles) --- */
#digitals-experience .micro-dock-panel {
    background-color: var(--dock-bg);
    background-image: linear-gradient(rgba(0,191,179,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,191,179,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    border: 1px solid var(--border-color); border-radius: 20px; padding: 20px; margin-bottom: 25px;
    box-shadow: 0 10px 30px -10px var(--dock-shadow);
    z-index: 90; position: relative; 
}
#digitals-experience .micro-dock-scroller { display: flex; gap: 15px; overflow-x: auto; justify-content: center; scrollbar-width: none; }
#digitals-experience .micro-tile { 
    flex: 0 0 auto; width: 85px; height: 85px; 
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color); border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer; transition: all 0.3s var(--ease-smooth); color: var(--text-muted);
}
#digitals-experience .micro-tile:hover {
    transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: rgba(0, 191, 179, 0.5);
}
#digitals-experience .micro-tile:active { transform: scale(0.95); }

#digitals-experience .micro-tile.active {
    background: linear-gradient(135deg, rgba(0,191,179,0.2), rgba(0,191,179,0.05));
    border-color: var(--accent-teal); color: var(--text-main);
    box-shadow: 0 0 20px rgba(0, 191, 179, 0.2);
}
#digitals-experience .micro-tile-icon { font-size: 1.8rem; }
#digitals-experience .micro-tile-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
#digitals-experience .micro-tile.active .micro-tile-label { color: var(--text-main); }

/* --- 11. CONTROL BAR --- */
#digitals-experience .store-control-bar {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px;
    background: var(--control-bar-bg); backdrop-filter: blur(12px); 
    border: 1px solid var(--border-color); padding: 12px 20px; border-radius: 12px;
}
#digitals-experience .item-counter { color: var(--text-main); font-weight: 600; }
.control-right { display: flex; gap: 30px; align-items: center; }

.toggle-wrapper { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-main); font-weight: 600; font-size: 0.9rem; }
.toggle-switch { width: 44px; height: 24px; background: rgba(128,128,128,0.3); border-radius: 50px; position: relative; border: 1px solid var(--border-color); transition: 0.3s; }
.toggle-switch.active { background: rgba(0,191,179,0.4); border-color: var(--accent-teal); }
.toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: 0.3s var(--ease-out-back); }
.toggle-switch.active::after { transform: translateX(20px); background: var(--accent-teal); }

.sort-wrapper { position: relative; display: flex; align-items: center; }
.sort-wrapper select { 
    background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-main); 
    padding: 8px 35px 8px 15px; border-radius: 50px; cursor: pointer;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    font-family: inherit; font-weight: 600; font-size: 0.9rem; outline: none;
    transition: 0.3s;
}
.sort-wrapper select:hover { border-color: var(--accent-teal); }
.sort-wrapper i { position: absolute; right: 15px; color: var(--accent-teal); pointer-events: none; font-size: 0.8rem; }

/* Concierge Strip */
#digitals-experience .concierge-strip {
    margin-top: 40px; padding: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-color); border-radius: 16px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
    background-color: var(--card-bg); transition: 0.3s;
}
#digitals-experience .concierge-strip:hover { box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1); border-color: var(--accent-teal); }
#digitals-experience .concierge-text h3 { font-size: 1.2rem; color: var(--text-main); margin-bottom: 5px; }
#digitals-experience .concierge-text p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
#digitals-experience .btn-concierge-action {
    background: transparent; border: 1px solid var(--accent-teal, #00BFB3); color: var(--accent-teal, #00BFB3);
    padding: 10px 25px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px;
}
#digitals-experience .btn-concierge-action:hover { background: var(--accent-teal, #00BFB3); color: #fff; box-shadow: 0 0 20px rgba(0, 191, 179, 0.4); transform: translateX(5px); }

.fair-usage-note { margin-top: 30px; padding: 12px 20px; background: rgba(255,255,255,0.03); border-radius: 6px; display: inline-block; border: 1px solid var(--border-color); }
.fair-usage-note p { font-size: 0.85rem; color: var(--text-muted); margin: 0; } .fair-usage-note strong { color: var(--text-main); }

/* --- 12. QUOTE MODAL SUCCESS VIEW (THE FIX) --- */
/* This section makes the "Success Popup" look organized and premium */
.quote-success-view {
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    height: 100%; /* Fill modal body */
    animation: fadeUp 0.5s var(--ease-out-back);
}

/* Hero Icon (Big Green Check) */
.quote-success-icon {
    font-size: 4rem;
    color: #25D366;
    margin-bottom: 20px;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s backwards;
}

/* Text Hierarchy */
.quote-success-view h3 {
    font-size: 1.5rem; color: var(--text-main); margin: 0 0 10px 0;
}
.quote-success-view p {
    font-size: 0.95rem; color: var(--text-muted); margin: 0; max-width: 80%; line-height: 1.5;
}

/* Action Button (WhatsApp Style) */
#q-wa-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background-color: #25D366; color: #ffffff !important;
    text-decoration: none; font-weight: 600;
    padding: 14px 30px; border-radius: 50px;
    margin-top: 30px; width: 80%;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}
#q-wa-link:hover {
    transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    #digitals-experience .category-hero h1 { font-size: 2rem; }
    #digitals-experience .category-hero { padding-top: 140px; }
    #digitals-experience .micro-dock-scroller { justify-content: flex-start; }
    #digitals-experience .micro-dock-panel { position: relative; }
    #digitals-experience .concierge-strip { flex-direction: column; text-align: center; }
    .control-right { gap: 15px; }
}