/* 
    Dani Mac Shop - PREMIUM VANILLA CSS 
    Elite, Professional, and Vibrant
*/

:root {
    /* Luxury Color Palette - Strict Hierarchy */
    --color-primary: #4a0e4e;    /* Deep Purple - Dominant Brand */
    --color-secondary: #00fbac;  /* Neon Mint - Interaction & Hover */
    --color-accent: #ff6da0;     /* Vibrant Pink - Minimal Highlight Only */
    --color-teal: #2d8a72;       
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;
    --color-text: #050505;
    --color-text-muted: #555555;
    --color-border: #e0e0e0;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--color-primary) 0%, #2a052c 100%);
    --grad-dark: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing & Shadows */
    --shadow-soft: 0 10px 40px rgba(74, 14, 78, 0.05);
    --shadow-strong: 0 30px 60px rgba(0,0,0,0.12);
    --radius-lg: 12px;
    --radius-md: 8px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.serif { font-family: var(--font-display); }
.italic { font-style: italic; }
.bold { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: 0.1em; }

/* --- Layout Containers --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

section { padding: 70px 0; }

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-black);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--color-secondary); }
.nav-links a.active { color: var(--color-accent); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-search:hover { background: var(--color-bg-alt); color: var(--color-secondary); }

.btn-cta {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: var(--transition);
}

.btn-cta:hover { transform: translateY(-3px); background: var(--color-secondary); color: var(--color-primary); box-shadow: 0 10px 30px rgba(0, 251, 172, 0.2); }

/* --- Hero Section --- */
.hero {
    padding: 180px 0 100px;
    background: var(--color-bg-alt);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(74, 14, 78, 0.05);
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 800;
    border-radius: 2px;
    margin-bottom: 24px;
    border: 1px solid rgba(74, 14, 78, 0.1);
}

.hero h1 {
    font-size: clamp(48px, 6vw, 84px);
    line-height: 1.1;
    margin-bottom: 32px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 48px;
    max-width: 480px;
}

.hero-image-wrap {
    position: relative;
}

.hero-image-wrap img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    border: 10px solid white;
}

.blob {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
}

/* --- Shop Controls --- */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 40px;
}

.search-wrap {
    display: flex;
    gap: 16px;
}

.input-search {
    padding: 14px 24px 14px 48px;
    background: var(--color-bg-alt);
    border: 1px solid transparent;
    border-radius: 50px;
    width: 280px;
    font-family: inherit;
    transition: var(--transition);
}

.input-search:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
}

.search-icon-fixed {
    position: absolute;
    margin-left: 20px;
    margin-top: 16px;
    color: var(--color-text-muted);
}

select {
    padding: 14px 24px;
    background: var(--color-bg-alt);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    cursor: pointer;
}

/* --- Category Tabs --- */
.tabs {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 2px;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    background: none;
    border: none;
    padding-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab.active {
    color: var(--color-black);
    border-bottom-color: var(--color-accent);
}

/* --- Product Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 60px 40px;
}

.product-card {
    cursor: pointer;
}

.img-container {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover img { transform: scale(1.08); }

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15); /* Neutral subtle darkening only */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-primary);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 2px;
}

.product-info h3 {
    font-size: 22px;
    margin-top: 8px;
    transition: var(--transition);
}

.product-card:hover h3 { color: var(--color-primary); }

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.type { font-size: 10px; font-weight: 800; color: var(--color-secondary); text-transform: uppercase; letter-spacing: 0.1em; }
.price { font-size: 15px; font-weight: 700; color: var(--color-primary); }

/* --- Modal --- */
#modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

#modal.active { display: flex; }

.modal-content {
    background: white;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 60px;
}

.preview-container {
    width: 100%;
    height: 600px;
    background: #fdfdfd;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--color-bg-alt);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.modal-buttons {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.btn-buy {
    flex: 1;
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.btn-buy:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}

.btn-demo {
    flex: 1;
    border: 1px solid var(--color-border);
    color: var(--color-black);
    text-align: center;
    padding: 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* --- Footer --- */
footer {
    background: var(--color-bg-alt);
    color: var(--color-text);
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}
footer .container { padding-top: 0 !important; padding-bottom: 0 !important; }
footer h2 { display: none; }
footer p { margin-bottom: 8px !important; }
footer .logo { line-height: 1.1; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .modal-grid { grid-template-columns: 1fr; }
    .hero { text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .container { padding: 0 24px; }
}

/* Quick static-shop polish */
.product-card { transition: transform .35s ease; }
.product-card:hover { transform: translateY(-6px); }
.btn-buy[href="#PAYHIP-CHECKOUT-LINK"]::after { content: " later"; opacity: .7; }
@media (max-width: 768px) {
  nav { height: auto; padding: 14px 0; position: sticky; }
  .nav-inner { gap: 14px; align-items: flex-start; }
  .nav-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
  .nav-actions { display: none; }
  .hero { padding: 80px 0 50px !important; }
  .hero h1 { font-size: 44px !important; }
  .shop-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .search-wrap { width: 100%; flex-direction: column; }
  .input-search, select { width: 100%; }
  .product-grid { grid-template-columns: 1fr; gap: 36px; }
  #modal { padding: 18px; }
  #modal-body { padding: 28px; }
}


/* Payhip checkout placeholder state */
.btn-buy.is-placeholder {
    background: linear-gradient(135deg, rgba(74,14,78,0.12), rgba(255,79,216,0.18));
    color: var(--color-primary);
    border: 1px dashed var(--color-primary);
    cursor: not-allowed;
}

.payhip-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--color-bg-alt);
    border: 1px dashed var(--color-border);
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.payhip-note code {
    color: var(--color-primary);
    font-weight: 800;
    background: white;
    padding: 2px 6px;
    border-radius: 6px;
}

.preview-container::before {
    content: "LIVE TEMPLATE PREVIEW";
    display: block;
    padding: 10px 14px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.preview-container {
    height: min(68vh, 720px);
}

.preview-iframe {
    height: calc(100% - 35px);
}
