/* ==========================================================
   Rottweiler Türkiye Petshop - Modern Mağaza Teması (CSS)
   ========================================================== */

:root {
    --bg: #0b0f19;
    --surface: #111827;
    --surface-hover: #1f2937;
    --border: #1f2937;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

/* Üst Duyuru */
.top-announcement {
    background: #000;
    border-bottom: 1px solid #1f2937;
    padding: 8px 16px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: #d1d5db;
    text-align: center;
}

.install-notice-bar {
    background: #1e1b4b;
    border-bottom: 1px solid #3730a3;
    color: #c7d2fe;
    padding: 10px 20px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-install-link {
    background: #4f46e5;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    transition: 0.2s;
}

.btn-install-link:hover {
    background: #4338ca;
}

/* Header */
.main-header {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 26px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.brand-title {
    display: block;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1px;
    color: #fff;
}

.brand-subtitle {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
}

.search-bar {
    flex: 1;
    max-width: 560px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 42px 10px 16px;
    background: #090d16;
    border: 1px solid var(--border);
    border-radius: 9999px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
}

.search-bar input:focus {
    border-color: var(--accent);
}

.search-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
}

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

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1f2937;
    border: 1px solid #374151;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #f3f4f6;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.header-action-btn:hover {
    background: #374151;
}

.cart-trigger {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.cart-trigger:hover {
    background: var(--accent-hover);
}

.cart-count-badge {
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    margin-left: 4px;
}

/* Kategori Nav */
.category-nav {
    background: #090d16;
    border-top: 1px solid var(--border);
    overflow-x: auto;
}

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

.nav-item {
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.nav-item:hover, .nav-item.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #111827 0%, #090d16 100%);
    border-bottom: 1px solid var(--border);
    padding: 60px 24px;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 16px;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-hero-primary {
    background: var(--accent);
    color: #000;
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
}

.btn-hero-secondary {
    background: #1f2937;
    color: #fff;
    border: 1px solid #374151;
}

.btn-hero-secondary:hover {
    background: #374151;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat-box strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.stat-box span {
    font-size: 12px;
    color: var(--text-secondary);
}

.hero-image-wrap {
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 440px;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid #374151;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Ürün Kataloğu */
.products-section {
    padding: 60px 24px;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.filter-pills {
    display: flex;
    gap: 8px;
}

.pill {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.pill.active, .pill:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-col: column;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #374151;
}

.card-image-wrap {
    position: relative;
    background: #000;
    height: 220px;
    overflow: hidden;
}

.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-thumb {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #000;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-snippet {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

.btn-add-cart {
    background: #1f2937;
    border: 1px solid #374151;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-add-cart:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* Güven Bandı */
.trust-bar {
    background: #090d16;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 24px;
}

.trust-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    font-size: 28px;
}

.trust-item strong {
    display: block;
    font-size: 14px;
    color: #fff;
}

.trust-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Footer */
.main-footer {
    background: #060911;
    padding: 60px 24px 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.footer-desc {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--accent);
}

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.payment-badges span {
    background: #111827;
    border: 1px solid #1f2937;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #d1d5db;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid #1f2937;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

/* Cart Drawer */
.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: #111827;
    border-left: 1px solid var(--border);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}

.shipping-progress-wrap {
    padding: 12px 20px;
    background: #090d16;
    border-bottom: 1px solid var(--border);
}

.progress-text {
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.progress-track {
    height: 6px;
    background: #1f2937;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s;
}

.drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-item-row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #000;
}

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

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #090d16;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 6px;
}

.cart-qty-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 16px;
    margin-left: 8px;
}

.drawer-footer {
    padding: 20px;
    background: #090d16;
    border-top: 1px solid var(--border);
}

.coupon-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.coupon-box input {
    flex: 1;
    background: #111827;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #fff;
    outline: none;
}

.coupon-box button {
    background: #1f2937;
    border: 1px solid #374151;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

#coupon-message {
    font-size: 11px;
    margin-bottom: 10px;
}

.totals-summary {
    margin-bottom: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.text-discount {
    color: var(--success);
    font-weight: 600;
}

.grand-total {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 10px;
}

.btn-checkout {
    display: block;
    width: 100%;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    padding: 13px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-checkout:hover {
    background: var(--accent-hover);
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}
