/* Marinel - Canta - Siyah Beyaz tema */
:root {
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-text-muted: #333333;
    --color-nav: #000000;
    --color-accent: #000000;
    --color-accent-hover: #333333;
    --color-border: #e0e0e0;
    --color-sale: #333333;
    --font: 'Inter', system-ui, sans-serif;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--color-text); background: var(--color-bg); line-height: 1.5; }

/* Header */
.header { background: var(--color-nav); color: #fff; padding: 12px 0; position: sticky; top: 0; z-index: 100; }
.search-input { background: #fff; color: #000; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo { font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; }
.nav { display: flex; gap: 20px; flex: 1; }
.nav-link { color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 500; }
.nav-link:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.search-form { margin: 0; }
.search-input { padding: 6px 12px; border: none; border-radius: var(--radius); width: 140px; font-size: 14px; }
.cart-link { position: relative; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.cart-count { background: #fff; color: #000; font-size: 11px; padding: 2px 6px; border-radius: 10px; min-width: 18px; text-align: center; }
.cart-icon { font-size: 1.25rem; }

/* Main */
.main-content { min-height: calc(100vh - 200px); padding: 24px 20px; max-width: 1200px; margin: 0 auto; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.alert-success { background: #e0e0e0; color: #000; }
.alert-error { background: #e0e0e0; color: #333; }

/* Hero */
.hero { margin-bottom: 48px; }
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-card { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; display: block; }
.hero-card-image { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.3s; }
.hero-card:hover .hero-card-image { transform: scale(1.05); }
.hero-card-label { position: absolute; bottom: 20px; left: 20px; font-size: 1.25rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

/* Products */
.section-title { font-size: 1.5rem; margin-bottom: 24px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 992px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }
.product-card { position: relative; }
.product-card-link { display: block; text-decoration: none; color: inherit; }
.product-card-image { aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); background: var(--color-border); margin-bottom: 12px; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-card-image img { transform: scale(1.03); }
.product-card-name { font-size: 1rem; font-weight: 500; margin: 0 0 4px; }
.product-card-price { font-size: 0.9rem; }
.price { font-weight: 600; }
.price-old { text-decoration: line-through; color: var(--color-text-muted); margin-right: 8px; }
.price-sale { color: var(--color-sale); font-weight: 600; }
.product-card-actions { margin-top: 8px; }
.btn { padding: 8px 16px; border-radius: var(--radius); font-size: 14px; cursor: pointer; border: none; font-family: inherit; text-decoration: none; display: inline-block; text-align: center; transition: background 0.2s; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
.btn-link { background: none; border: none; color: var(--color-accent); cursor: pointer; font-size: 14px; text-decoration: underline; }

/* Product detail */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.75rem; margin: 0; }
.product-detail { margin-bottom: 48px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 768px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-gallery { position: sticky; top: 100px; }
.product-main-image { width: 100%; border-radius: var(--radius); }
.product-title { font-size: 1.5rem; margin: 0 0 16px; }
.product-price-block { margin-bottom: 20px; font-size: 1.25rem; }
.price-lg { font-size: 1.5rem; }
.product-description { color: var(--color-text-muted); margin-bottom: 16px; }
.product-stock { margin-bottom: 20px; font-size: 0.9rem; }
.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: #000; }
.product-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.input-number { width: 60px; padding: 8px; border: 1px solid var(--color-border); border-radius: var(--radius); }

/* Cart */
.empty-state { text-align: center; color: var(--color-text-muted); padding: 48px 20px; }
.empty-cart { text-align: center; padding: 48px 20px; }
.empty-cart p { margin-bottom: 16px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
@media (max-width: 768px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--color-border); align-items: start; }
.cart-item-image { width: 120px; height: 160px; overflow: hidden; border-radius: var(--radius); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 500; text-decoration: none; color: inherit; display: block; margin-bottom: 4px; }
.cart-item-name:hover { color: #333; }
.cart-item-price { font-size: 0.9rem; color: var(--color-text-muted); margin: 0 0 8px; }
.cart-item-form { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.cart-item-remove { margin: 0; }
.cart-item-total { font-weight: 600; }
.cart-summary { background: #f8f8f8; padding: 24px; border-radius: var(--radius); height: fit-content; }
.cart-summary h3 { margin: 0 0 16px; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-form { max-width: 480px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 16px; font-family: inherit; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-summary { background: #f8f8f8; padding: 24px; border-radius: var(--radius); height: fit-content; }
.summary-item { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-total { display: flex; justify-content: space-between; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--color-border); }

/* Auth */
.auth-section { display: flex; justify-content: center; padding: 48px 20px; }
.auth-box { width: 100%; max-width: 400px; background: #f5f5f5; padding: 32px; border-radius: var(--radius); }
.auth-box h1 { margin: 0 0 24px; font-size: 1.5rem; }
.auth-footer { margin-top: 20px; text-align: center; color: var(--color-text-muted); }
.auth-footer a { color: #000; text-decoration: underline; }

/* Order success */
.order-success { text-align: center; max-width: 480px; margin: 0 auto; padding: 48px 20px; }
.order-success h1 { margin: 0 0 16px; }
.order-number { font-size: 1.1rem; margin-bottom: 24px; }
.order-summary { text-align: left; background: #f8f8f8; padding: 24px; border-radius: var(--radius); margin: 24px 0; }

/* Error page */
.error-page { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; }
.error-page h1 { font-size: 4rem; margin: 0; color: var(--color-text-muted); }
.error-page p { margin: 16px 0; }

/* Footer */
.footer { background: var(--color-nav); color: rgba(255,255,255,0.9); padding: 48px 20px 24px; margin-top: 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { margin: 0 0 12px; color: #fff; }
.footer-col p { margin: 0 0 8px; font-size: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.2); text-align: center; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-nav); color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 999; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner button { background: #fff; color: var(--color-nav); border: none; padding: 8px 16px; border-radius: var(--radius); cursor: pointer; font-weight: 500; }
.cookie-banner.hidden { display: none; }
