/* ============================================================
   ÇİÇEK SEPETİ — ANA CSS
   ============================================================ */

:root {
  --primary: #e8a0b4;
  --primary-dark: #c47090;
  --primary-light: #f5d0dc;
  --accent: #7c4a6e;
  --text: #2d2d2d;
  --text-muted: #888;
  --bg: #fff;
  --bg-soft: #fdf5f7;
  --border: #e8e0e4;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --font: 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); font-size: .95rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all .2s; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary-dark); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.btn-danger:hover { background: #c0392b; border-color: #c0392b; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-xs { padding: 4px 10px; font-size: .78rem; border-radius: 6px; }

/* ── ALERTS ── */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-dismissible { position: relative; }
.alert-close { background: none; border: none; font-size: 20px; cursor: pointer; margin-left: auto; opacity: .6; }
.alert-close:hover { opacity: 1; }

/* ── HEADER ── */
.header-top { background: var(--accent); color: #fff; font-size: .85rem; }
.header-top .container, .header-top-inner { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.header-top a { color: #fff; opacity: .9; }
.header-top a:hover { opacity: 1; }
.header-links { display: flex; gap: 16px; }

.header-main { padding: 16px 0; border-bottom: 1px solid var(--border); }
.header-main-inner { display: flex; align-items: center; gap: 20px; }
.site-logo { flex-shrink: 0; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }
.site-logo img { max-height: 60px; }

.header-search { flex: 1; max-width: 500px; position: relative; }
.search-form { display: flex; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.search-form input { flex: 1; border: none; padding: 10px 14px; font-size: .95rem; outline: none; }
.search-form button { background: var(--primary); color: #fff; border: none; padding: 10px 18px; cursor: pointer; }
.search-form button:hover { background: var(--primary-dark); }

.search-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); z-index: 200; }
.search-suggestion-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.search-suggestion-item:hover { background: var(--bg-soft); }
.search-suggestion-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-action { position: relative; font-size: 1.3rem; color: var(--text-muted); padding: 4px; }
.header-action:hover { color: var(--primary-dark); }
.cart-count { position: absolute; top: -6px; right: -8px; background: var(--primary); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: .7rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }

.main-nav { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.nav-list { display: flex; list-style: none; gap: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 14px 18px; font-weight: 600; font-size: .9rem; color: var(--text); transition: color .2s; }
.nav-list > li > a:hover, .nav-list > li > a.active { color: var(--primary-dark); }
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 200px; z-index: 100; list-style: none; }
.dropdown-menu li a { display: block; padding: 10px 18px; color: var(--text); font-size: .9rem; }
.dropdown-menu li a:hover { background: var(--bg-soft); color: var(--primary-dark); }

.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.1rem; padding: 12px; cursor: pointer; color: var(--text); font-weight: 600; }

/* ── HERO ── */
.hero-section { background: linear-gradient(135deg, var(--primary-light) 0%, #fceef3 100%); padding: 80px 20px; text-align: center; }
.hero-content h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.hero-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 28px; }

/* ── SECTIONS ── */
.section-title { font-size: 1.6rem; font-weight: 800; color: var(--accent); margin-bottom: 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-header .see-all { color: var(--primary-dark); font-weight: 600; }
.featured-section, .categories-section, .services-section { padding: 60px 0; }
.categories-section { background: var(--bg-soft); }

/* ── CATEGORY GRID ── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.category-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; }
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.category-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; margin-bottom: 10px; }
.category-placeholder { width: 80px; height: 80px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.category-name { font-weight: 700; font-size: .9rem; }

/* ── PRODUCT GRID ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; background: #fff; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-image-link { display: block; position: relative; aspect-ratio: 1; overflow: hidden; }
.product-image-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-image-link img { transform: scale(1.04); }
.product-no-image { width: 100%; aspect-ratio: 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--border); }
.badge-sale { position: absolute; top: 10px; right: 10px; background: #e74c3c; color: #fff; padding: 3px 8px; border-radius: 6px; font-size: .78rem; font-weight: 700; }
.product-info { padding: 14px; }
.product-info h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.product-info h3 a { color: var(--text); }
.product-info h3 a:hover { color: var(--primary-dark); }
.product-desc { font-size: .83rem; color: var(--text-muted); margin-bottom: 8px; }
.product-price { margin-bottom: 10px; }
.product-price del { color: var(--text-muted); font-size: .85rem; }
.product-price strong, .price-main, .price-sale { font-size: 1.05rem; color: var(--primary-dark); }
.product-actions { display: flex; gap: 8px; align-items: center; }

/* ── PRODUCT DETAIL ── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 32px 0; }
.gallery-main img { width: 100%; border-radius: var(--radius); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid var(--border); cursor: pointer; transition: border-color .2s; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.product-title { font-size: 1.8rem; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.product-short-desc { color: var(--text-muted); margin-bottom: 20px; }
.product-price-block { margin-bottom: 24px; }
.product-price-block del { color: var(--text-muted); font-size: 1rem; }
.product-price-block strong { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); display: block; }
.product-variants, .product-option-group { margin-bottom: 20px; }
.variant-label, .option-group-label { font-weight: 700; margin-bottom: 8px; display: block; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option input { display: none; }
.variant-option span { display: block; padding: 8px 14px; border: 2px solid var(--border); border-radius: 8px; cursor: pointer; font-size: .9rem; transition: all .2s; }
.variant-option input:checked + span { border-color: var(--primary); background: var(--primary-light); }
.variant-option span:hover { border-color: var(--primary); }
.option-checkbox { display: flex; align-items: center; gap: 8px; padding: 8px 0; cursor: pointer; }
.option-price { color: var(--primary-dark); font-weight: 600; margin-left: 6px; }
.product-quantity { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-control button { background: var(--bg-soft); border: none; padding: 8px 14px; font-size: 1.1rem; cursor: pointer; }
.qty-control input { width: 50px; text-align: center; border: none; padding: 8px; font-size: 1rem; }
.product-add-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.btn-add-cart { flex: 1; }
.stock-info { font-size: .9rem; font-weight: 600; }
.in-stock { color: #27ae60; }
.out-of-stock { color: #e74c3c; }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary-dark); }
.breadcrumb-sep { opacity: .5; }

/* ── CART ── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 24px 0; }
.cart-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-bottom: 1px solid var(--border); }
.cart-item-image { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.cart-options { font-size: .82rem; color: var(--text-muted); padding-left: 14px; margin: 4px 0; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-input { width: 56px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; text-align: center; }
.cart-item-price { font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.cart-summary .summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.summary-total { font-size: 1.1rem; font-weight: 800; border: none !important; padding-top: 14px !important; }
.summary-note { font-size: .8rem; color: var(--text-muted); margin-top: 8px; }
.coupon-input { display: flex; gap: 8px; }
.empty-cart { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-cart i { font-size: 3rem; margin-bottom: 16px; color: var(--border); }

/* ── CHECKOUT ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding: 24px 0; }
.checkout-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.guest-info-note { background: var(--bg-soft); padding: 12px 16px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 16px; }
.sticky-top { position: sticky; top: 20px; }

/* ── ORDER THANKS ── */
.order-thanks { text-align: center; padding: 60px 20px; max-width: 500px; margin: 0 auto; }
.thanks-icon { font-size: 5rem; color: var(--primary); margin-bottom: 20px; }
.thanks-icon.failed { color: #e74c3c; }
.thanks-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.service-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: box-shadow .2s; padding-bottom: 20px; }
.service-card:hover { box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.service-card h3 { padding: 14px 16px 6px; font-size: 1rem; }
.service-card p { padding: 0 16px 12px; font-size: .9rem; color: var(--text-muted); }
.service-card .btn { margin: 0 16px; }
.service-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.service-content { line-height: 1.8; }

/* ── BLOG ── */
.blog-layout { display: grid; grid-template-columns: 1fr 240px; gap: 24px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 16px; }
.blog-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-card h2 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-cover { width: 100%; border-radius: var(--radius); margin-bottom: 24px; max-height: 420px; object-fit: cover; }
.blog-article h1 { font-size: 2rem; color: var(--accent); margin-bottom: 10px; }
.blog-content { line-height: 1.9; margin-top: 20px; }
.blog-sidebar .category-list { list-style: none; }
.blog-sidebar .category-list a { display: block; padding: 8px 12px; color: var(--text); border-radius: 6px; }
.blog-sidebar .category-list a:hover, .blog-sidebar .category-list a.active { background: var(--primary-light); color: var(--primary-dark); }

/* ── CONTACT ── */
.contact-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.info-list .info-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.info-list .info-item label { font-weight: 700; min-width: 110px; color: var(--text-muted); }
.info-list .info-item i { color: var(--primary); margin-top: 3px; min-width: 16px; }

/* ── STATIC PAGE ── */
.static-page-content { line-height: 1.9; max-width: 800px; }
.static-page-content h2 { color: var(--accent); margin: 24px 0 12px; }
.static-page-content p { margin-bottom: 14px; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-control { width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius); font-size: .95rem; outline: none; transition: border-color .2s; font-family: inherit; }
.form-control:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required-mark { color: #e74c3c; margin-left: 3px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; padding: 6px 0; }

/* ── CARD ── */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 0; }
.card-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.card-header h3, .card-header h4 { font-size: 1rem; font-weight: 700; color: var(--accent); }
.card-body { padding: 20px; }
.card-body.p-0 { padding: 0; }
.card-body.border-top { border-top: 1px solid var(--border); }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.ml-auto { margin-left: auto; }
.gap-2 { gap: 8px; }
.text-muted { color: var(--text-muted); }
.text-danger { color: #e74c3c; }
.text-success { color: #27ae60; }
.text-center { text-align: center; }

/* ── PAGINATION ── */
.pagination-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 20px 0; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: .9rem; transition: all .2s; }
.page-link:hover, .page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── ACCOUNT ── */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 32px 0; }
.account-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; align-self: start; }
.account-nav { display: flex; flex-direction: column; }
.account-nav a { padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: background .2s; }
.account-nav a:hover, .account-nav a.active { background: var(--primary-light); color: var(--primary-dark); }
.account-main h2 { font-size: 1.4rem; color: var(--accent); margin-bottom: 20px; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.address-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-size: .9rem; line-height: 1.7; }
.address-card.default-address { border-color: var(--primary); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 14px; text-align: left; background: var(--bg-soft); font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }

/* ── FOOTER ── */
.site-footer { background: var(--accent); color: #f5e8ef; margin-top: 60px; }
.footer-main { padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: #fff; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #f5e8ef; opacity: .8; font-size: .9rem; }
.footer-col ul a:hover { opacity: 1; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--primary); }
.footer-contact p { font-size: .9rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-contact a { color: #f5e8ef; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0; text-align: center; font-size: .85rem; opacity: .7; }

/* ── SEARCH ── */
.search-page-form { display: flex; gap: 10px; margin-bottom: 20px; }
.search-page-form .form-control { font-size: 1.05rem; }
.search-count { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; color: var(--border); display: block; }

/* ── AUTH ── */
.auth-body { background: var(--bg-soft); min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.auth-wrapper { width: 100%; max-width: 460px; }
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand img { max-height: 64px; margin: 0 auto; }
.auth-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 32px; }
.auth-card h2 { color: var(--accent); margin-bottom: 20px; font-size: 1.4rem; }
.auth-links { display: flex; gap: 16px; justify-content: center; margin-top: 16px; font-size: .9rem; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
  .checkout-layout, .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { margin-bottom: 0; }
  .account-nav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .header-main-inner { flex-wrap: wrap; gap: 12px; }
  .header-search { order: 3; width: 100%; max-width: none; }
  .nav-list { display: none; flex-direction: column; }
  .nav-list.open { display: flex; }
  .mobile-menu-toggle { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
