/*
Theme Name: Age Kulp
Theme URI: https://agekulp.com.tr
Author: Age Kulp
Description: Mobilya kulp satış sitesi - Instagram & WhatsApp entegrasyonlu WooCommerce teması
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
WC requires at least: 7.0
WC tested up to: 8.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: age-kulp
Tags: e-commerce, woocommerce, kulp, mobilya, instagram
*/

/* =====================================================
   RESET & BASE
====================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    background: #f8f6f2;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* =====================================================
   TOPBAR
====================================================== */
.topbar {
    background: #1a1a1a;
    color: #bbb;
    font-size: 12px;
    padding: 7px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.topbar a { color: #bbb; }
.topbar a:hover { color: #e8a83a; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 5px; }
.topbar-item .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* =====================================================
   HEADER
====================================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8e5e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.site-logo img {
    max-height: 48px;
    width: auto;
}
.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}
.logo-text span { color: #b5781a; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    padding: 6px 12px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.main-nav a:hover,
.main-nav a.current-menu-item { color: #b5781a; background: #fdf6ec; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; }

.search-form {
    display: flex;
    align-items: center;
    background: #f5f3ef;
    border: 1px solid #e0ddd8;
    border-radius: 24px;
    padding: 5px 14px;
    gap: 6px;
    transition: border-color 0.2s;
}
.search-form:focus-within { border-color: #b5781a; }
.search-form input {
    background: none;
    border: none;
    outline: none;
    font-size: 13px;
    color: #333;
    width: 160px;
}
.search-form input::placeholder { color: #aaa; }
.search-form button { background: none; border: none; padding: 0; color: #999; display: flex; }
.search-form button .dashicons { font-size: 16px; width: 16px; height: 16px; }

.header-icon-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.2s;
}
.header-icon-btn:hover { background: #f5f3ef; }
.header-icon-btn .dashicons { font-size: 20px; width: 20px; height: 20px; }

.cart-count {
    position: absolute;
    top: 2px; right: 2px;
    background: #b5781a;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 50%;
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid #e0ddd8;
    border-radius: 6px;
    padding: 6px 8px;
    color: #555;
}
.mobile-menu-toggle .dashicons { font-size: 18px; width: 18px; height: 18px; }

/* Mobile Nav */
.mobile-nav {
    display: none;
    background: #fff;
    border-top: 1px solid #f0ede8;
    padding: 12px 24px 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #f5f3ef;
}

/* =====================================================
   HERO BANNER
====================================================== */
.hero-section {
    background: #1a1a1a;
    color: #fff;
    padding: 56px 32px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(181,120,26,0.15);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 220px; height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(181,120,26,0.1);
    pointer-events: none;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(181,120,26,0.18);
    border: 1px solid rgba(181,120,26,0.4);
    color: #e8a83a;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero-title em { color: #e8a83a; font-style: italic; }

.hero-desc {
    color: #999;
    font-size: 15px;
    max-width: 420px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-gold {
    background: #b5781a;
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-gold:hover { background: #9d6615; color: #fff; }

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 26px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); color: #fff; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat-box { text-align: center; }
.stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #e8a83a;
    display: block;
    line-height: 1;
}
.stat-label { font-size: 11px; color: #888; margin-top: 4px; }

/* =====================================================
   FEATURES STRIP
====================================================== */
.features-strip {
    background: #fff;
    border-bottom: 1px solid #e8e5e0;
}
.features-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
}
.feat-item { display: flex; align-items: center; gap: 10px; }
.feat-icon { font-size: 22px; color: #b5781a; flex-shrink: 0; }
.feat-icon .dashicons { font-size: 22px; width: 22px; height: 22px; }
.feat-text-title { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.feat-text-sub { font-size: 11px; color: #999; }

/* =====================================================
   CATEGORY CHIPS
====================================================== */
.category-filter {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.category-filter-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.cat-chip {
    background: #f5f3ef;
    border: 1px solid #e0ddd8;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.cat-chip:hover,
.cat-chip.current-cat { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* =====================================================
   SECTIONS
====================================================== */
.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
}
.section-link {
    font-size: 13px;
    font-weight: 500;
    color: #b5781a;
}
.section-link:hover { text-decoration: underline; }

/* =====================================================
   PRODUCT GRID (WooCommerce override)
====================================================== */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product,
.product-card {
    background: #fff;
    border: 1px solid #e8e5e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}
.woocommerce ul.products li.product:hover,
.product-card:hover {
    border-color: #b5781a;
    transform: translateY(-2px);
}

.woocommerce ul.products li.product a img,
.product-card .product-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #f5f3ef;
}

/* WooCommerce ürün başlık / fiyat */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-card .product-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 12px 14px 4px;
    line-height: 1.4;
}

.woocommerce ul.products li.product .price,
.product-card .product-price {
    font-size: 16px;
    font-weight: 700;
    color: #b5781a !important;
    padding: 2px 14px 12px;
    display: block;
}
.woocommerce ul.products li.product .price del,
.product-card .product-price del {
    color: #ccc !important;
    font-size: 12px;
    font-weight: 400;
    margin-right: 4px;
}

/* "Satın Al" butonu → Instagram yönlendirme */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.single_add_to_cart_button,
.add_to_cart_button {
    display: block !important;
    width: calc(100% - 28px) !important;
    margin: 0 14px 14px !important;
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    letter-spacing: 0.3px !important;
    font-family: inherit !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover {
    background: #b5781a !important;
    color: #fff !important;
}

/* Product badge */
.product-badge {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.badge-new { background: #1a1a1a; color: #fff; }
.badge-hot { background: #b5781a; color: #fff; }
.badge-sale { background: #c0392b; color: #fff; }

.product-thumb { position: relative; }

/* =====================================================
   SINGLE PRODUCT — Instagram CTA
====================================================== */
.instagram-order-box {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-radius: 10px;
    padding: 24px;
    color: #fff;
    margin: 20px 0;
    text-align: center;
}
.instagram-order-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.instagram-order-box p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 18px;
}
.instagram-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #833ab4;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s;
}
.instagram-order-btn:hover {
    transform: scale(1.04);
    color: #833ab4;
}

/* =====================================================
   WHATSAPP FLOATING BUTTON
====================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.whatsapp-float-btn {
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}
.whatsapp-float-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.whatsapp-tooltip {
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity:0; transform: translateX(8px); } to { opacity:1; transform: translateX(0); } }

/* =====================================================
   BANNER SECTIONS
====================================================== */
.promo-banner {
    background: linear-gradient(135deg, #1a1a1a, #3d3520);
    color: #fff;
    border-radius: 10px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 32px 40px;
}
.promo-banner-text h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    margin-bottom: 6px;
}
.promo-banner-text p { font-size: 13px; color: #aaa; }

/* =====================================================
   FOOTER
====================================================== */
.site-footer {
    background: #111;
    color: #888;
    margin-top: 60px;
}
.footer-top {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 32px 32px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
}
.footer-brand .logo-text { font-size: 22px; margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #888;
    transition: all 0.2s;
    text-decoration: none;
}
.social-btn:hover { border-color: #b5781a; color: #b5781a; }

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.footer-col a:hover { color: #e8a83a; }

.footer-bottom {
    border-top: 1px solid #222;
    padding: 16px 32px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom p { font-size: 12px; }

/* =====================================================
   WOOCOMMERCE MISC
====================================================== */
.woocommerce .woocommerce-breadcrumb { font-size: 13px; color: #999; margin-bottom: 20px; }
.woocommerce .woocommerce-breadcrumb a { color: #b5781a; }

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error {
    border-top: 3px solid #b5781a !important;
}

.woocommerce div.product p.price { color: #b5781a !important; font-size: 24px !important; font-weight: 700 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #b5781a !important; border-bottom-color: #b5781a !important; }

/* =====================================================
   RESPONSIVE
====================================================== */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero-title { font-size: 30px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 20px; }
}
@media (max-width: 600px) {
    .header-inner { padding: 0 16px; }
    .hero-section { padding: 36px 20px; }
    .section-wrap { padding: 28px 16px; }
    .footer-top { grid-template-columns: 1fr; padding: 32px 20px; }
    .topbar { display: none; }
    .search-form input { width: 100px; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
    .promo-banner { margin: 0 16px 28px; padding: 24px 20px; }
}
