/* ============================================
   CSS GLOBAL VARIABLES & RESET
   The foundation for the premium look.
   ============================================ */
:root {
    /* Brand Identity & Colors */
    --color-dark: #FFFFFF;
    --color-darker: #F7FBFF;
    --color-light: #102A43;
    --color-accent: #2F80ED;
    --color-accent-hover: #1F68C9;
    --color-lavender: #8B7CFF;
    --color-success: #4CAF50;

    /* Typography & Spacing */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Sora', sans-serif;
    --padding-section: 60px 5%;
    --transition-speed: 0.3s;

    /* Shadows & Effects */
    --shadow-lifted: 0 16px 40px rgba(16, 42, 67, 0.12);
}

/* Global Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-darker);
    color: var(--color-light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-lavender);
    outline-offset: 3px;
}

a {
    text-decoration: none;
    color: #1F68C9;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-accent-hover);
}

/* ============================================
   HEADER & NAVIGATION
   Consistent presence on all pages.
   ============================================ */

.header {
    background-color: rgba(247, 251, 255, 0.92);
    border-bottom: 1px solid rgba(47, 128, 237, 0.14);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--color-light);
}

/* Primary Nav Links */
.nav a {
    margin-left: 25px;
    font-weight: 500;
}

/* Cart Icon Styling */
.cart-icon {
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
}

.cart-badge {
    background-color: var(--color-accent);
    color: white;
    position: absolute;
    top: -8px;
    right: -10px;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 0.8rem;
    display: none; /* Managed by JS */
}

/* ============================================
   HERO SECTION (Homepage Index)
   The sales pitch. Bold and high-impact.
   ============================================ */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--padding-section);
    background:
        radial-gradient(circle at 20% 15%, rgba(139, 124, 255, 0.22), transparent 30%),
        radial-gradient(circle at 80% 35%, rgba(47, 128, 237, 0.20), transparent 32%),
        linear-gradient(180deg, #F7FBFF 0%, #EDF6FF 100%);
}

.hero-content {
    max-width: 960px;
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--color-light), var(--color-accent), var(--color-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Call to Action Button */
.cta-button {
    background-color: #1F68C9;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    box-shadow: 0 8px 24px rgba(47, 128, 237, 0.28);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(47, 128, 237, 0.34);
}

/* ============================================
   PRODUCT CARD LAYOUT (Shop Page)
   The most important element for conversion.
   ============================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: var(--padding-section);
}

.product-card {
    background-color: var(--color-dark);
    border-radius: 12px;
    box-shadow: var(--shadow-lifted); /* Subtle depth */
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    border: 1px solid transparent; /* Base border for clean look */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(16, 42, 67, 0.18);
    border-color: var(--color-accent);
}

.product-image {
    height: 250px; /* Fixed height for visual consistency */
    width: 100%;
    background-color: var(--color-darker); /* Placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.product-category {
    font-size: 0.9rem;
    color: #526B82;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.6rem;
    color: var(--color-accent);
    font-weight: bold;
    margin-bottom: 15px;
}

.product-rating {
    color: gold;
    font-size: 1rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: var(--color-accent-hover);
}

/* Badges */
.badge {
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    position: absolute;
    top: 15px;
    right: 15px;
}

.badge-bestseller { background-color: #FFD700; color: var(--color-darker); }
.badge-new { background-color: var(--color-accent); color: white; }

/* ============================================
   FOOTER (Compliance & Consistency)
   Critical for trust and professionalism.
   ============================================ */

.footer {
    background-color: var(--color-dark);
    padding: 50px 5%;
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid rgba(47, 128, 237, 0.14);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links a {
    color: #526B82;
    margin: 0 15px;
}

.footer-copyright {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   RESPONSIVENESS (Mobile First)
   Ensuring a premium mobile experience.
   ============================================ */

@media (max-width: 900px) {
    .hero {
        height: auto;
        padding-bottom: 40px;
    }
    .hero h2 {
        font-size: 2.5rem;
    }

    /* Mobile Nav */
    .nav {
        display: none; /* Hide complex nav on mobile, replace with hamburger menu if needed */
    }

    /* Ensure padding shrinks nicely */
    body {
        padding-top: 0;
    }
}

/* Tablet/Desktop adjustments - already handled by container classes */

/* EMRKCLOUD SIGNATURE: FLOATING CLOUD PANEL */
.cloud-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 52px auto 0;
    text-align: left;
}

.cloud-panel-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 18px;
    color: #102A43;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(47, 128, 237, 0.16);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(16, 42, 67, 0.12);
    backdrop-filter: blur(16px);
    transform: translateY(12px);
}

.cloud-panel-card-primary {
    transform: translateY(-8px);
}

.cloud-panel-card:last-child {
    transform: translateY(24px);
}

.cloud-panel-card i {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    color: #FFFFFF;
    background: linear-gradient(135deg, #2F80ED, #8B7CFF);
    border-radius: 14px;
}

.cloud-panel-card strong,
.cloud-panel-card small {
    display: block;
}

.cloud-panel-card strong {
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.cloud-panel-card small {
    margin-top: 3px;
    color: #526B82;
    font-size: 0.74rem;
}

.page-shop input,
.page-shop select {
    color: #102A43 !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(47, 128, 237, 0.28) !important;
}

@media (max-width: 720px) {
    .cloud-panel { grid-template-columns: 1fr; max-width: 420px; margin-top: 42px; }
    .cloud-panel-card,
    .cloud-panel-card-primary,
    .cloud-panel-card:last-child { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
