/* Curiosities in Light - Shop Styles */
:root {
    --parchment: #f4e4c1;
    --parchment-dark: #e8d4a8;
    --ink: #2c1810;
    --gold: #d4a84b;
    --gold-light: #e8c87a;
    --egg-ember: #ff6b35;
    --egg-frost: #7dd3fc;
    --egg-shadow: #a855f7;
    --chess-classic: #8b4513;
    --chess-crystal: #60a5fa;
    --chess-obsidian: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f1a 100%);
    color: var(--parchment);
    min-height: 100vh;
    position: relative;
    line-height: 1.7;
}

.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse at 20% 30%, rgba(212, 168, 75, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
.shop-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.header-ornament {
    margin-bottom: 1rem;
}

.header-ornament svg {
    width: 200px;
    height: 60px;
}

.back-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--gold-light);
}

.shop-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212, 168, 75, 0.5);
    margin-bottom: 0.5rem;
}

.shop-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--parchment);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.shop-motto {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(244, 228, 193, 0.7);
    letter-spacing: 0.1em;
}

/* Navigation */
.shop-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(212, 168, 75, 0.3);
    border-bottom: 1px solid rgba(212, 168, 75, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}

.shop-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--parchment);
    text-decoration: none;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.shop-nav a:hover,
.shop-nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.1) 0%, transparent 50%);
    border-radius: 20px;
    margin-bottom: 3rem;
}

.hero-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: rgba(244, 228, 193, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.hero-btn.primary {
    background: var(--gold);
    color: var(--ink);
}

.hero-btn.primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.hero-btn.secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.hero-btn.secondary:hover {
    background: rgba(212, 168, 75, 0.1);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(244, 228, 193, 0.7);
}

/* Featured Section */
.featured-section {
    margin-bottom: 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 168, 75, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 168, 75, 0.2);
}

.product-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image.dragon-egg {
    background: linear-gradient(135deg, #2d1f3d 0%, #1a1a2e 100%);
}

.product-image.chess-board {
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%);
}

.egg-visual .egg-glow {
    width: 80px;
    height: 100px;
    background: radial-gradient(ellipse, var(--egg-ember), transparent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: eggFloat 3s ease-in-out infinite;
}

@keyframes eggFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chess-visual .board-float {
    width: 100px;
    height: 100px;
    background: repeating-conic-gradient(#d4a84b 0% 25%, #2c1810 0% 50%) 50% / 25px 25px;
    border-radius: 5px;
    animation: boardFloat 4s ease-in-out infinite;
}

@keyframes boardFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.product-badge.new {
    background: var(--egg-frost);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--parchment);
    margin: 0.5rem 0;
}

.product-description {
    font-size: 0.95rem;
    color: rgba(244, 228, 193, 0.8);
    margin-bottom: 1rem;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold);
}

.view-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--gold);
    text-decoration: none;
    border: 1px solid var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.view-btn:hover {
    background: var(--gold);
    color: var(--ink);
}

/* Dragon Eggs Section */
.product-section {
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.lore-intro, .chess-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1.1rem;
    color: rgba(244, 228, 193, 0.9);
}

.eggs-grid, .chess-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.egg-card, .chess-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.egg-card:hover, .chess-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(212, 168, 75, 0.2);
}

.egg-display, .chess-display {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.egg-display {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
}

.egg {
    width: 70px;
    height: 90px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: eggFloat 3s ease-in-out infinite;
}

.ember-glow {
    background: radial-gradient(ellipse at 30% 30%, #ff9f43, #ff6b35, #c0392b);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
}

.frost-glow {
    background: radial-gradient(ellipse at 30% 30%, #e0f2fe, #7dd3fc, #0ea5e9);
    box-shadow: 0 0 40px rgba(125, 211, 252, 0.6);
}

.shadow-glow {
    background: radial-gradient(ellipse at 30% 30%, #c084fc, #a855f7, #7c3aed);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.6);
}

.egg-info-overlay {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

.lineage {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--gold);
}

.egg-details, .chess-details {
    padding: 1.5rem;
}

.egg-details h3, .chess-details h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--parchment);
    margin-bottom: 0.5rem;
}

.egg-lore {
    font-size: 0.9rem;
    color: rgba(244, 228, 193, 0.8);
    margin-bottom: 1rem;
    font-style: italic;
}

.egg-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.generation, .rarity {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    background: rgba(212, 168, 75, 0.2);
    color: var(--gold);
}

.egg-price, .chess-price {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--gold), #b8942f);
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 168, 75, 0.4);
}

/* Chess Section */
.chess-section {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.3) 0%, transparent 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin: 3rem 0;
}

.chess-display {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.floating-board {
    position: relative;
}

.floating-board .board-surface {
    width: 80px;
    height: 80px;
    background: repeating-conic-gradient(#d4a84b 0% 25%, #2c1810 0% 50%) 50% / 20px 20px;
    border-radius: 5px;
    animation: boardFloat 4s ease-in-out infinite;
}

.floating-board .levitation-ring {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(212, 168, 75, 0.4), transparent);
    border-radius: 50%;
}

.chess-features {
    list-style: none;
    margin-bottom: 1rem;
}

.chess-features li {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(244, 228, 193, 0.8);
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.chess-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* Registry Section */
.registry-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 168, 75, 0.2);
    margin-bottom: 3rem;
}

.registry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .registry-content {
        grid-template-columns: 1fr;
    }
}

.registry-about h3, .registry-timeline h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.registry-about p {
    margin-bottom: 1rem;
    color: rgba(244, 228, 193, 0.9);
}

.registry-about ul {
    list-style: none;
}

.registry-about li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.registry-about li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-event {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
}

.timeline-event .year {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    display: block;
    margin-bottom: 0.3rem;
}

.timeline-event p {
    font-size: 0.9rem;
    color: rgba(244, 228, 193, 0.8);
}

.registry-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.1) 0%, transparent 100%);
    border-radius: 15px;
    margin: 2rem 0;
}

.registry-cta h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.registry-cta p {
    color: rgba(244, 228, 193, 0.9);
    margin-bottom: 1rem;
}

.registry-link {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s;
}

.registry-link:hover {
    color: var(--gold-light);
}

.registry-disclaimer {
    text-align: center;
    padding: 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 10px;
    border: 1px dashed rgba(168, 85, 247, 0.3);
}

.registry-disclaimer p {
    font-size: 0.9rem;
    color: rgba(244, 228, 193, 0.7);
    font-style: italic;
}

/* About Section */
.about-section {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    margin-bottom: 3rem;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: rgba(244, 228, 193, 0.9);
}

/* Footer */
.shop-footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(212, 168, 75, 0.3);
    padding: 3rem 2rem 1rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-brand .logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.2em;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(244, 228, 193, 0.6);
    margin-top: 0.5rem;
}

.footer-links, .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a, .footer-legal a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(244, 228, 193, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(212, 168, 75, 0.2);
}

.footer-bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(244, 228, 193, 0.5);
}

/* Cart Widget */
.cart-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gold);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 168, 75, 0.4);
    transition: transform 0.3s;
    z-index: 1000;
}

.cart-widget:hover {
    transform: scale(1.1);
}

.cart-icon {
    position: relative;
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--ink);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--ink);
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
    .shop-nav {
        gap: 1rem;
    }
    
    .shop-nav a {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
}