/* Dape Price Studio - Core Styles */

/* CSS Variables */
:root {
    --primary: #2c5282;
    --primary-dark: #1a365d;
    --secondary: #c9a227;
    --secondary-light: #d4b43a;
    --bg: #f7f5f0;
    --bg-white: #ffffff;
    --text: #1a202c;
    --text-light: #4a5568;
    --text-muted: #718096;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text);
}

.site-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    display: flex;
    align-items: center;
}

.logo-main {
    color: var(--primary);
}

.logo-accent {
    color: var(--secondary);
}

.desktop-nav {
    display: none;
}

.desktop-nav a {
    margin: 0 20px;
    color: var(--text-light);
    font-size: 15px;
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text);
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--secondary);
    color: var(--bg-white);
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency-dropdown select {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 10px;
    font-size: 14px;
    background: var(--bg-white);
    cursor: pointer;
}

.desktop-only {
    display: none;
}

/* Search Bar */
.search-bar {
    display: none;
    padding: 16px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.search-bar.open {
    display: block;
}

.search-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
}

.search-submit {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--bg-white);
    border-radius: var(--radius);
    font-weight: 500;
}

.search-close {
    display: none;
}

/* Mobile Drawer */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    z-index: 201;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.drawer-close {
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
}

.drawer-menu {
    flex: 1;
    padding: 20px 0;
}

.drawer-menu a {
    display: block;
    padding: 16px 24px;
    font-size: 18px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

.currency-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
}

/* Footer CTA */
.footer-cta {
    background: var(--primary);
    color: var(--bg-white);
    padding: 80px 24px;
    text-align: center;
}

.footer-cta h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.footer-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--secondary);
    color: var(--bg-white);
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: var(--bg-white);
    padding: 60px 24px 30px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo .site-logo {
    justify-content: center;
    font-size: 28px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: var(--primary);
    color: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: var(--transition);
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.error {
    background: #e53e3e;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    .desktop-nav {
        display: flex;
    }
    
    .desktop-only {
        display: block;
    }
    
    .header-inner {
        padding: 20px 40px;
    }
    
    .footer-cta h2 {
        font-size: 48px;
    }
    
    .footer-links {
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
}
