/* ========================================
   CICEKCI - Florist E-Commerce Stylesheet
   ======================================== */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.py-60 { padding: 60px 0; }

/* --- HEADER --- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--header-bg); box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.header-top { border-bottom: 1px solid rgba(0,0,0,0.06); }
.header-top-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; gap: 20px; max-width: 1200px; margin: 0 auto;
}

.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 45px; width: auto; object-fit: contain; }
.site-name { font-size: 22px; font-weight: 700; color: var(--primary); }

.header-search { flex: 1; max-width: 450px; display: flex; position: relative; }
.header-search input {
    width: 100%; padding: 10px 18px; border: 2px solid #eee; border-radius: 30px;
    font-size: 14px; transition: border .3s; font-family: inherit;
}
.header-search input:focus { border-color: var(--primary); outline: none; }
.header-search button {
    position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px;
    background: var(--primary); color: #fff; border: none; border-radius: 50%;
    cursor: pointer; font-size: 14px; transition: background .3s;
}
.header-search button:hover { background: var(--secondary); }

.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.social-icon {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #f5f5f5; color: var(--text); font-size: 14px;
    transition: all .3s;
}
.social-icon:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.phone-link {
    display: flex; align-items: center; gap: 6px; background: var(--primary); color: #fff;
    padding: 8px 16px; border-radius: 25px; font-size: 13px; font-weight: 500; transition: background .3s;
}
.phone-link:hover { background: var(--secondary); }
.phone-link span { display: inline; }

.mobile-menu-btn {
    display: none; background: none; border: none; font-size: 24px;
    color: var(--text); cursor: pointer; padding: 8px;
}

/* --- NAVIGATION --- */
.main-nav { background: var(--primary); }
.main-nav .container { padding: 0; }
.nav-menu { display: flex; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: flex; align-items: center; gap: 6px; padding: 14px 20px;
    color: #fff; font-size: 14px; font-weight: 500; transition: background .3s; white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li:hover > a { background: rgba(0,0,0,0.15); }
.dropdown-arrow { font-size: 10px; margin-left: 4px; transition: transform .3s; }
.nav-menu > li:hover .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .3s ease; list-style: none; z-index: 100; overflow: hidden;
}
.nav-menu > li:hover > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a {
    display: flex; align-items: center; gap: 10px; padding: 12px 18px;
    color: var(--text); font-size: 14px; transition: all .2s; border-bottom: 1px solid #f5f5f5;
}
.dropdown-menu li a:hover { background: #f8f8f8; color: var(--primary); padding-left: 24px; }
.menu-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

/* Submenu (level 3) */
.dropdown-submenu {
    position: absolute; top: 0; left: 100%; min-width: 220px;
    background: #fff; border-radius: 0 10px 10px 0; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0; visibility: hidden; transform: translateX(10px);
    transition: all .3s ease; list-style: none; z-index: 101;
}
.dropdown-menu li:hover > .dropdown-submenu { opacity: 1; visibility: visible; transform: translateX(0); }

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff; padding: 10px 0; overflow: hidden;
}
.announcement-slider { display: flex; animation: slideAnnouncement 12s linear infinite; }
.announcement-item {
    min-width: 100%; text-align: center; font-size: 14px; padding: 0 20px; white-space: nowrap;
}
.announcement-item a { color: #fff; text-decoration: underline; margin-left: 8px; font-weight: 600; }
@keyframes slideAnnouncement {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    25% { transform: translateX(-100%); }
    45% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    70% { transform: translateX(-200%); }
    75% { transform: translateX(-300%); }
    95% { transform: translateX(-300%); }
    100% { transform: translateX(0); }
}

/* --- HERO BANNER --- */
.hero-banner {
    width: 100%; min-height: 420px; background-size: cover; background-position: center;
    background-repeat: no-repeat; position: relative;
}
.hero-overlay {
    position: absolute; inset: 0; display: flex; align-items: center;
}
.hero-content {
    width: 100%; display: flex; flex-direction: column; justify-content: center;
    padding-top: 40px; padding-bottom: 40px;
}
.hero-align-left { align-items: flex-start; text-align: left; }
.hero-align-center { align-items: center; text-align: center; }
.hero-align-right { align-items: flex-end; text-align: right; }
.hero-title {
    color: #fff; font-size: 42px; font-weight: 700; line-height: 1.2;
    margin-bottom: 14px; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-subtitle {
    color: rgba(255,255,255,0.92); font-size: 18px; line-height: 1.6;
    margin-bottom: 24px; max-width: 600px; text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}
.hero-btn {
    display: inline-block; padding: 14px 36px; background: #fff; color: var(--primary);
    border-radius: 30px; font-size: 16px; font-weight: 600; transition: all .3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.hero-btn:hover { background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* --- MAIN CONTENT --- */
.site-main { min-height: 60vh; padding-bottom: 40px; }

.section { padding: 40px 0; }
.section-title {
    font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 30px;
    position: relative; padding-bottom: 12px;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px;
    background: var(--primary); border-radius: 3px;
}

.breadcrumb {
    display: flex; align-items: center; gap: 10px; padding: 15px 0;
    font-size: 14px; color: #888; margin-bottom: 10px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 10px; }

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.product-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all .3s ease;
    display: block;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.product-image { position: relative; overflow: hidden; aspect-ratio: 1/1; background: #f8f8f8; }
.product-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease;
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-badge {
    position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
    padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.product-info { padding: 16px 18px; }
.product-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text); line-height: 1.4; }
.product-price {
    font-size: 18px; font-weight: 700; color: var(--primary);
}

/* --- PRODUCT DETAIL --- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-detail-image { border-radius: 16px; overflow: hidden; background: #f8f8f8; }
.product-detail-image img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-detail-info h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.product-detail-price { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.product-short-desc { font-size: 16px; color: #666; margin-bottom: 16px; line-height: 1.7; }
.product-description { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 24px; padding: 16px; background: #f9f9f9; border-radius: 10px; }

.btn-whatsapp-order {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
    background: #25d366; color: #fff; border-radius: 30px; font-size: 16px;
    font-weight: 600; transition: all .3s; margin-bottom: 12px;
}
.btn-whatsapp-order:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.3); }
.btn-whatsapp-order i { font-size: 22px; }

.btn-phone-order {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
    background: var(--primary); color: #fff; border-radius: 30px; font-size: 16px;
    font-weight: 600; transition: all .3s; margin-left: 10px;
}
.btn-phone-order:hover { background: var(--secondary); transform: translateY(-2px); }

/* --- SEARCH PAGE --- */
.search-page-form { display: flex; max-width: 600px; margin-bottom: 30px; }
.search-page-form input {
    flex: 1; padding: 14px 20px; border: 2px solid #eee; border-radius: 30px 0 0 30px;
    font-size: 16px; font-family: inherit;
}
.search-page-form input:focus { border-color: var(--primary); outline: none; }
.search-page-form button {
    padding: 14px 24px; background: var(--primary); color: #fff; border: none;
    border-radius: 0 30px 30px 0; cursor: pointer; font-size: 15px; font-family: inherit;
    transition: background .3s;
}
.search-page-form button:hover { background: var(--secondary); }

/* --- EMPTY STATE --- */
.empty-state {
    text-align: center; padding: 60px 20px; color: #aaa;
}
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-state p { font-size: 16px; }

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block; padding: 12px 28px; background: var(--primary); color: #fff;
    border: none; border-radius: 30px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all .3s; text-decoration: none;
}
.btn-primary:hover { background: var(--secondary); transform: translateY(-2px); }

/* --- FOOTER --- */
.site-footer { background: var(--footer-bg); color: #ccc; padding: 50px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.footer-col h3 {
    color: #fff; font-size: 18px; margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 2px solid var(--primary); display: inline-block;
}
.footer-col p { font-size: 14px; line-height: 1.8; margin-bottom: 8px; }
.footer-col a { color: #ccc; transition: color .3s; }
.footer-col a:hover { color: var(--primary); }
.footer-col i { margin-right: 6px; color: var(--primary); }

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); border-radius: 50%; color: #fff;
    font-size: 16px; transition: all .3s;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-phone-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
    background: var(--primary); color: #fff !important; border-radius: 25px;
    font-weight: 600; font-size: 14px; transition: all .3s;
}
.footer-phone-btn:hover { background: var(--accent); transform: translateY(-2px); }

.whatsapp-footer-link { color: #25d366 !important; font-weight: 600; }

.footer-map { }
.map-wrapper { border-radius: 10px; overflow: hidden; }
.map-wrapper iframe { width: 100%; height: 200px; border: none; }

.footer-bottom {
    text-align: center; padding: 20px 0; margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #888;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px;
    background: #25d366; color: #fff; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 30px;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4); z-index: 9999; transition: all .3s;
    animation: wpPulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
@keyframes wpPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .hero-banner { min-height: 320px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .product-detail { grid-template-columns: 1fr; }
    .product-detail-info h1 { font-size: 24px; }
    .product-detail-price { font-size: 26px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-top-inner { flex-wrap: wrap; padding: 10px 15px; }
    .header-search { order: 3; max-width: 100%; flex-basis: 100%; margin-top: 10px; }
    .header-right { display: none; }
    .mobile-menu-btn { display: block; }
    .phone-link span { display: none; }

    /* Mobile Nav */
    .main-nav { display: none; }
    .main-nav.active { display: block; }
    .nav-menu { flex-direction: column; }
    .nav-menu > li > a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border-radius: 0; background: rgba(0,0,0,0.1);
        display: none;
    }
    .dropdown-menu.open { display: block; }
    .dropdown-menu li a { color: #fff; border-bottom-color: rgba(255,255,255,0.05); }
    .dropdown-menu li a:hover { background: rgba(255,255,255,0.1); padding-left: 30px; }
    .dropdown-submenu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border-radius: 0; background: rgba(0,0,0,0.1);
        display: none;
    }
    .dropdown-submenu.open { display: block; }
    .menu-thumb { width: 28px; height: 28px; }

    .hero-banner { min-height: 260px; }
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 14px; }
    .hero-btn { padding: 12px 28px; font-size: 14px; }
    .hero-content { padding-top: 30px; padding-bottom: 30px; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .section-title { font-size: 22px; }
    .footer-grid { grid-template-columns: 1fr; }

    .btn-whatsapp-order, .btn-phone-order { display: flex; width: 100%; justify-content: center; margin-left: 0; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-info { padding: 10px 12px; }
    .product-info h3 { font-size: 13px; }
    .product-price { font-size: 15px; }
    .site-name { font-size: 18px; }
}
