/*
Theme Name: Çiçekçi Pro
Theme URI: https://cicekci.pro
Author: Çiçekçi Pro Team
Author URI: https://cicekci.pro
Description: Premium, fast and highly customizable WordPress/WooCommerce theme for flower shops, rejecting old legacy WooCommerce wrappers and featuring custom shipping logic, visual drag-and-drop homepage builder, and 3-step checkout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cicekci-pro
Requires at least: 5.6
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Custom global styles can go here, but main layout is driven by Bootstrap and custom customizer-injected root variables */

/* === Global Resets & Base Overrides === */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--body-font, 'Inter', sans-serif);
    font-weight: var(--body-weight, 400);
    color: var(--text-color, #2d3748);
    background-color: var(--bg-color, #ffffff);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove WooCommerce default wrappers/layouts we don't want */
.woocommerce-page .woocommerce,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-message {
    max-width: 100%;
}

.woocommerce-message:has(.cicekci-hide-cart-notice) {
    display: none !important;
}

/* Override Bootstrap's default link color with our primary color variable */
a {
    color: var(--primary-color, #ff758c);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--secondary-color, #ff7eb3);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Container max-width */
.container {
    max-width: 1320px;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* === WooCommerce Default Layout Overrides === */
.woocommerce div.product,
.woocommerce-page div.product {
    display: block;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin: 0;
    float: none;
    width: 100%;
}

.woocommerce .woocommerce-breadcrumb {
    font-size: 13px;
    color: #a0aec0;
}

/* Price styling using our variable */
.woocommerce span.price,
.woocommerce ins .amount,
.product-price {
    color: var(--primary-color, #ff758c);
    font-weight: 700;
}

/* Add to cart / buy button */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--primary-color, #ff758c);
    color: #ffffff;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--secondary-color, #ff7eb3);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Delivery Badge */
.delivery-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}
.delivery-badge.same-day {
    background: #e6ffed;
    color: #15803d;
}
.delivery-badge.standard {
    background: #fef3c7;
    color: #92400e;
}

/* Countdown Timer */
#cicekCountdownTimer {
    text-align: center;
    padding: 6px 15px;
    background: var(--primary-color, #ff758c);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* === General Component Polish === */

/* Button hover enhancements */
.btn { transition: all .2s ease; }
.btn:hover { transform: translateY(-1px); }

/* Form elements */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color, #ff758c) !important;
    box-shadow: 0 0 0 3px rgba(255,117,140,.15) !important;
}

/* Modal enhancements */
.modal-content { border: none; }
.modal-header { border-bottom-color: #f1f5f9; }
.modal-footer { border-top-color: #f1f5f9; }

/* Tooltip / small text utility */
.text-muted-small { color: #a0aec0; font-size: 13px; }

/* Star rating color */
.woocommerce .star-rating span { color: #f6ad55; }

/* Remove default WooCommerce page titles when we provide our own */
.woocommerce-page h1.page-title { display: none; }

/* Cart empty state */
.woocommerce-cart .cart-empty { text-align: center; padding: 60px 20px; font-size: 18px; }

/* Checkout styling */
.woocommerce-checkout .form-row { margin-bottom: 16px; }
.woocommerce-checkout .input-text {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    font-size: 14px;
}
.woocommerce-checkout .select2-selection {
    border-radius: 8px !important;
    border-color: #e2e8f0 !important;
    padding: 6px;
    min-height: 44px;
}

/* Delivery Calendar Grid */
.cicek-dc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.cicek-dc-option {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
    position: relative;
}
.cicek-dc-option:hover { border-color: var(--primary-color, #ff758c); }
.cicek-dc-option.selected {
    border-color: var(--primary-color, #ff758c);
    background: rgba(255,117,140,.06);
    box-shadow: 0 0 0 3px rgba(255,117,140,.15);
}
.cicek-dc-label { display:block; font-size:13px; font-weight:700; color:#1e293b; }
.cicek-dc-sub { display:block; font-size:11px; color:#64748b; margin-top:2px; }
.cicek-dc-badge {
    display:inline-block; margin-top:6px;
    font-size:10px; font-weight:700; padding:2px 8px; border-radius:20px;
    background:var(--primary-color,#ff758c); color:#fff;
}
.cicek-dc-option.selected .cicek-dc-badge { background:#15803d; }

/* Time Slot Grid */
.cicek-ts-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); gap:6px; }
.cicek-ts-option {
    padding:8px 6px; text-align:center; border:2px solid #e2e8f0; border-radius:8px;
    cursor:pointer; font-size:12px; font-weight:600; color:#475569; transition:all .2s;
    background:#fff;
}
.cicek-ts-option:hover { border-color:var(--primary-color,#ff758c); }
.cicek-ts-option.selected { border-color:var(--primary-color,#ff758c); background:rgba(255,117,140,.06); color:var(--primary-color,#ff758c); }
.cicek-ts-option.past { opacity:.35; pointer-events:none; text-decoration:line-through; }
.cicek-ts-option.closing-soon { border-color:#f59e0b; background:#fffbeb; }
.cicek-ts-loading { font-size:13px; color:#94a3b8; grid-column:1/-1; text-align:center; padding:12px; }

/* Single product WooCommerce form compatibility */
.cicek-pd-info .cart { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:20px; }
.cicek-pd-info .cart .quantity { display:flex; align-items:center; gap:8px; }
.cicek-pd-info .cart .quantity .qty {
    width:60px; text-align:center;
    border:1px solid #e2e8f0; border-radius:10px;
    padding:8px; font-size:16px; font-weight:700;
    color:var(--text-color,#2d3748);
}
.cicek-pd-info .cart .single_add_to_cart_button {
    display:inline-flex; align-items:center; gap:10px;
    background:linear-gradient(135deg,var(--primary-color,#ff758c),var(--secondary-color,#ff7eb3));
    color:#fff; border:none; border-radius:50px;
    padding:14px 36px; font-size:16px; font-weight:700;
    cursor:pointer; justify-content:center;
    box-shadow:0 6px 20px rgba(255,117,140,.35);
    transition: transform .2s, box-shadow .2s;
}
.cicek-pd-info .cart .single_add_to_cart_button:hover {
    transform:translateY(-2px); box-shadow:0 10px 28px rgba(255,117,140,.45);
}

/* === Product Category Navigation Bar === */
.cicek-cat-nav {
    background: linear-gradient(135deg, #fff0f3, #fef1f7);
    border-bottom: 1px solid rgba(255, 117, 140, 0.12);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 998;
}
.cicek-cat-nav-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cicek-cat-nav-inner::-webkit-scrollbar { display: none; }
.cicek-cat-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #5a3e4b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all .2s ease;
    position: relative;
}
.cicek-cat-link:hover,
.cicek-cat-link:focus {
    color: var(--primary-color, #ff758c);
    border-bottom-color: var(--primary-color, #ff758c);
    background: rgba(255, 117, 140, 0.06);
}
.cicek-cat-all {
    font-weight: 700;
    color: var(--primary-color, #ff758c);
    border-right: 1px solid rgba(255, 117, 140, 0.15);
    margin-right: 4px;
}

/* === Enhanced Footer === */
.cicek-footer {
    background: #1e1b2e;
    color: #c4bcd4;
    padding: 60px 0 0;
    margin-top: 80px;
}
.cicek-footer h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.cicek-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color, #ff758c);
    border-radius: 2px;
}
.cicek-footer a {
    color: #c4bcd4;
    text-decoration: none;
    transition: color .2s;
    font-size: 14px;
    display: block;
    padding: 4px 0;
}
.cicek-footer a:hover {
    color: var(--primary-color, #ff758c);
}
.cicek-footer p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}
.cicek-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.cicek-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0;
    transition: all .25s;
}
.cicek-footer-social a:hover {
    background: var(--primary-color, #ff758c);
    transform: translateY(-3px);
}
.cicek-footer-payments {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.cicek-footer-payments span {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.06);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.cicek-footer-bottom {
    background: rgba(0,0,0,.2);
    padding: 18px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: #8b83a0;
}

/* === Scrollbar Styling === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color, #ff758c); }

/* === Loading shimmer effect for product cards === */
.cicek-product-img-wrap {
    position: relative;
    overflow: hidden;
}
.cicek-product-img-wrap::after {
    display: none;
}

/* === Enhanced Button Styles === */
.cicek-archive-hero {
    background: linear-gradient(135deg, #fff0f3 0%, #fdf2ff 100%);
    padding: 50px 0 30px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    margin-bottom: 40px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .delivery-badge { font-size: 10px; padding: 2px 7px; }
    #cicekCountdownTimer { font-size: 11px; padding: 4px 10px; }
    .cicek-dc-grid { grid-template-columns: repeat(2, 1fr); }
    .cicek-cat-link { padding: 8px 12px; font-size: 12px; }
    .cicek-cat-nav { position: relative; }
}

/* === Cart Page Styling === */
.woocommerce-cart .woocommerce-info, .woocommerce-cart .woocommerce-message, .woocommerce-cart .woocommerce-error {
    max-width:1200px; margin:20px auto 0; padding:16px 20px; border-radius:12px; border:none; font-size:14px; font-weight:600;
}

/* === Off-Canvas Cart Panel === */
.cicek-offcanvas-overlay {
    position:fixed; top:0; left:0; width:100%; height:100%; z-index:99999;
    background:rgba(0,0,0,.35); opacity:0; visibility:hidden;
    transition:opacity .3s, visibility .3s;
}
.cicek-offcanvas-overlay.open { opacity:1; visibility:visible; }

.cicek-offcanvas-panel {
    position:absolute; top:0; right:0; width:420px; max-width:100vw; height:100%;
    background:#fff; display:flex; flex-direction:column;
    transform:translateX(100%); transition:transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow:-8px 0 30px rgba(0,0,0,.1);
}
.cicek-offcanvas-overlay.open .cicek-offcanvas-panel { transform:translateX(0); }

.cicek-offcanvas-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:20px 24px; border-bottom:1px solid #f1f5f9; flex-shrink:0;
}
.cicek-offcanvas-title { font-size:20px; font-weight:800; color:#1e293b; }
.cicek-offcanvas-close {
    background:none; border:none; font-size:32px; line-height:1; color:#94a3b8;
    cursor:pointer; padding:0; transition:color .2s;
}
.cicek-offcanvas-close:hover { color:#1e293b; }

.cicek-offcanvas-body { flex:1; overflow-y:auto; padding:16px 0; }
.cicek-offcanvas-loading { text-align:center; padding:40px; color:#94a3b8; font-size:14px; }

/* Empty cart */
.cicek-offcanvas-empty { text-align:center; padding:60px 24px; }
.cicek-offcanvas-empty-icon { font-size:48px; display:block; margin-bottom:12px; }
.cicek-offcanvas-empty p { font-size:16px; font-weight:600; color:#1e293b; margin-bottom:20px; }
.cicek-offcanvas-shop-link {
    display:inline-block; background:linear-gradient(135deg,#ff758c,#ff7eb3); color:#fff;
    border:none; border-radius:30px; padding:12px 32px; font-size:14px; font-weight:700;
    text-decoration:none; box-shadow:0 6px 20px rgba(255,117,140,.35); transition:all .2s;
}
.cicek-offcanvas-shop-link:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(255,117,140,.45); color:#fff; }

/* Cart items */
.cicek-offcanvas-items { padding:0 16px; }
.cicek-offcanvas-item {
    display:flex; gap:12px; padding:14px 12px; border-bottom:1px solid #f1f5f9; align-items:center;
}
.cicek-offcanvas-item:last-child { border-bottom:none; }
.cicek-offcanvas-item-img { width:68px; height:68px; border-radius:12px; overflow:hidden; flex-shrink:0; background:#f8fafc; position:relative; }
.cicek-offcanvas-item-img img { width:100%; height:100%; object-fit:cover; display:block; }
.cicek-offcanvas-item-img .cicek-img-placeholder { border-radius:12px; width:68px; height:68px; display:inline-flex; }
.cicek-offcanvas-item-info { flex:1; min-width:0; }
.cicek-offcanvas-item-name { font-size:13px; font-weight:700; color:#1e293b; text-decoration:none; display:block; line-height:1.3; margin-bottom:1px; }
.cicek-offcanvas-item-name:hover { color:#ff758c; }
.cicek-offcanvas-item-price { font-size:12px; font-weight:600; color:#ff758c; margin-bottom:2px; }
.cicek-offcanvas-item-meta { font-size:11px; color:#94a3b8; line-height:1.4; }
.cicek-offcanvas-item-meta span { display:block; }
.cicek-offcanvas-item-right { text-align:right; flex-shrink:0; min-width:70px; }
.cicek-offcanvas-item-remove { font-size:20px; color:#cbd5e1; text-decoration:none; line-height:1; display:block; margin-bottom:6px; transition:color .2s; font-weight:300; }
.cicek-offcanvas-item-remove:hover { color:#e53e3e; }
.cicek-offcanvas-item-qty { margin-bottom:4px; }
.cicek-offcanvas-qty-label { font-size:10px; color:#94a3b8; text-transform:uppercase; letter-spacing:.5px; display:block; }
.cicek-offcanvas-qty-val { font-size:16px; font-weight:800; color:#1e293b; }
.cicek-offcanvas-item-subtotal { font-size:15px; font-weight:800; color:#1e293b; white-space:nowrap; }

/* Footer totals */
.cicek-offcanvas-footer {
    padding:16px 24px 24px; border-top:1px solid #f1f5f9; flex-shrink:0; background:#fff;
}
.cicek-offcanvas-total-row {
    display:flex; justify-content:space-between; align-items:center;
    padding:4px 0; font-size:13px; color:#64748b;
}
.cicek-offcanvas-total-amount { font-weight:600; }
.cicek-offcanvas-grand-total {
    display:flex; justify-content:space-between; align-items:center;
    padding:12px 0 16px; margin-top:4px;
    border-top:2px solid #ff758c; font-size:18px; font-weight:800; color:#1e293b;
}
.cicek-offcanvas-grand-total .woocommerce-Price-amount { color:#ff758c; font-size:22px; }
.cicek-offcanvas-btn {
    display:block; width:100%; text-align:center; border:none; border-radius:12px;
    padding:14px; font-size:15px; font-weight:700; cursor:pointer; text-decoration:none; transition:all .2s;
}
.cicek-offcanvas-btn-checkout {
    background:linear-gradient(135deg,#ff758c,#ff7eb3); color:#fff;
    box-shadow:0 6px 20px rgba(255,117,140,.35); margin-bottom:8px;
}
.cicek-offcanvas-btn-checkout:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(255,117,140,.45); color:#fff; }
.cicek-offcanvas-btn-cart {
    background:#f8fafc; color:#475569; border:1px solid #e2e8f0;
}
.cicek-offcanvas-btn-cart:hover { background:#f1f5f9; color:#1e293b; }

@media (max-width: 480px) {
    .cicek-offcanvas-panel { width:100vw; }
}
