/*
Theme Name: PandoraMarket
Description: Modern luxury e-commerce theme with dark elegant design
Version: 2.0.1
Author: PandoraMarket
Text Domain: pandoramarket
*/

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-elevated: #22222e;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(212, 175, 55, 0.3);
    --gold: #d4af37;
    --gold-light: #e5c158;
    --gold-dark: #b8941f;
    --text-primary: #f5f5f7;
    --text-secondary: rgba(245, 245, 247, 0.7);
    --text-muted: rgba(245, 245, 247, 0.5);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 4px 30px rgba(212, 175, 55, 0.25);
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; }

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    color: #0a0a0f;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(212, 175, 55, 0.4); }

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

.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--gold);
    color: #0a0a0f;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        var(--bg-primary);
}

.hero-content { text-align: center; max-width: 800px; }

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    padding: 40px 0;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

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

.product-content { padding: 24px; }

.product-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
}

.add-to-cart {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 10px;
    color: #0a0a0f;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 140px 24px 60px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.page-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 60px 0;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pagination .current {
    background: var(--gold);
    border-color: var(--gold);
    color: #0a0a0f;
}

/* Cart Page */
.cart-page {
    padding: 120px 24px 80px;
    min-height: 100vh;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-items { background: var(--bg-card); border-radius: 20px; padding: 32px; }

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; }

.cart-item-price { color: var(--gold); font-weight: 600; }

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 4px;
}

.quantity-control button {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.quantity-control button:hover { background: var(--bg-elevated); }

.quantity-control span { min-width: 40px; text-align: center; font-weight: 600; }

.cart-summary {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    height: fit-content;
}

.cart-summary h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.checkout-btn {
    width: 100%;
    margin-top: 24px;
}

/* Checkout Page */
.checkout-page { padding: 120px 24px 80px; }

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-form { background: var(--bg-card); border-radius: 20px; padding: 40px; }

.form-section { margin-bottom: 40px; }

.form-section h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.payment-methods { display: flex; flex-direction: column; gap: 12px; }

.payment-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.payment-method input[type="radio"] { width: 20px; height: 20px; accent-color: var(--gold); }

.order-summary { background: var(--bg-card); border-radius: 20px; padding: 40px; height: fit-content; }

.order-items { margin-bottom: 24px; }

.order-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.order-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.order-item-info { flex: 1; }

.order-item-title { font-weight: 600; margin-bottom: 4px; }

.order-item-qty { color: var(--text-muted); font-size: 0.85rem; }

.order-item-price { color: var(--gold); font-weight: 600; }

/* Blog */
.blog-page { padding: 120px 24px 80px; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.blog-image { aspect-ratio: 16/10; overflow: hidden; }

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img { transform: scale(1.05); }

.blog-content { padding: 28px; }

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.blog-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-excerpt { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.7; }

.read-more {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover { gap: 12px; }

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 80px 24px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo { margin-bottom: 20px; }

.footer-brand p { color: var(--text-secondary); line-height: 1.8; }

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 8px 20px;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0;
    display: inline-flex;
}

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.3s;
    white-space: nowrap;
    text-decoration: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-container,
    .checkout-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 80px 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
