/* public/css/app.css */
/* ===================================================
   PROFİTEROL FRONTEND STİLLERİ
   Tema: Warm Luxury — Koyu çikolata + Altın
=================================================== */

:root {
    --choco:     #2C1A0E;
    --choco-mid: #4A2B15;
    --gold:      #C9933A;
    --gold-light:#E8B96A;
    --cream:     #FDF6ED;
    --white:     #FFFFFF;
    --text:      #1E1209;
    --text-muted:#7A6048;
    --radius:    12px;
    --shadow:    0 4px 20px rgba(44,26,14,.10);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--text);
    margin: 0;
}

/* ---- NAV ---- */
.site-nav {
    background: var(--choco);
    padding: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-icon { font-size: 1.5rem; }
.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--gold-light);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.cart-toggle-btn {
    background: var(--gold);
    border: none;
    border-radius: 50px;
    color: var(--choco);
    font-size: 1.1rem;
    padding: 8px 18px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    transition: background .2s;
}
.cart-toggle-btn:hover { background: var(--gold-light); }
.cart-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ---- CART DRAWER ---- */
.cart-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1050;
}
.cart-overlay.open { display: block; }
.cart-drawer {
    position: fixed;
    top: 0; right: -380px;
    width: 360px; max-width: 95vw;
    height: 100vh;
    background: var(--white);
    z-index: 1060;
    display: flex; flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,.2);
    transition: right .3s ease;
}
.cart-drawer.open { right: 0; }
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #f0e8dd;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--choco);
    color: var(--gold-light);
}
.cart-header h5 { margin: 0; font-family: 'Playfair Display', serif; font-size: 1.2rem; }
.btn-close-cart { background: none; border: none; color: var(--gold-light); font-size: 1.2rem; cursor: pointer; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.cart-empty i { font-size: 3rem; opacity: .3; display: block; margin-bottom: 12px; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0e8dd;
}
.cart-item-name { flex: 1; font-weight: 600; font-size: .9rem; }
.cart-item-price { font-size: .85rem; color: var(--text-muted); }
.qty-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--choco);
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; transition: all .2s;
}
.qty-btn:hover { background: var(--gold); color: var(--white); }
.qty-num { font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-remove { background: none; border: none; color: #e53e3e; cursor: pointer; font-size: .9rem; }

.cart-footer { padding: 16px; border-top: 1px solid #f0e8dd; }
.cart-total {
    display: flex; justify-content: space-between;
    font-weight: 700; font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--choco);
}
.btn-checkout {
    background: var(--gold);
    color: var(--choco);
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background .2s;
}
.btn-checkout:hover { background: var(--gold-light); color: var(--choco); }

/* ---- HERO ---- */
.hero-section {
    background: linear-gradient(135deg, var(--choco) 0%, var(--choco-mid) 60%, #6B3A1F 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '🍫';
    position: absolute;
    font-size: 180px;
    right: -20px; top: -20px;
    opacity: .07;
    transform: rotate(15deg);
}
.hero-content { position: relative; z-index: 1; max-width: 500px; }
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--cream);
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-title em { color: var(--gold-light); font-style: normal; }
.hero-sub { color: #c9b89a; font-size: 1.1rem; margin-bottom: 28px; }
.btn-hero {
    background: var(--gold);
    color: var(--choco);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center; gap: 8px;
    transition: all .2s;
}
.btn-hero:hover { background: var(--gold-light); color: var(--choco); transform: translateY(-2px); }

/* ---- PRODUCTS ---- */
.products-section { padding: 60px 0; }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--choco);
    margin-bottom: 32px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px; height: 3px;
    background: var(--gold);
    margin-top: 8px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(44,26,14,.18); }
.product-img-wrap { position: relative; height: 200px; overflow: hidden; background: #f5ede0; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img { transform: scale(1.05); }
.product-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #f5ede0, #ead4b0);
}
.product-info { padding: 18px; }
.product-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--choco); margin-bottom: 6px; font-weight: 700; }
.product-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.btn-add-cart {
    background: var(--choco);
    color: var(--cream);
    border: none;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    transition: background .2s;
}
.btn-add-cart:hover { background: var(--gold); color: var(--choco); }

/* ---- INFO BAND ---- */
.info-band { background: var(--choco); padding: 30px 0; }
.info-items { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.info-item {
    display: flex; align-items: center; gap: 10px;
    color: var(--gold-light);
    font-weight: 600;
    font-size: .95rem;
}
.info-item i { font-size: 1.3rem; }

/* ---- CHECKOUT ---- */
.checkout-section { padding: 50px 0; }
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }

.checkout-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--choco);
    margin-bottom: 24px;
}
.form-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.form-section-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--choco);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.req { color: #e53e3e; }
.delivery-options, .payment-options {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.delivery-option, .payment-option { flex: 1; min-width: 140px; }
.delivery-option input, .payment-option input { display: none; }
.delivery-label, .payment-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    border: 2px solid #e0d5c7;
    border-radius: 10px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all .2s;
    text-align: center;
}
.payment-label { flex-direction: row; justify-content: center; gap: 8px; }
.delivery-option input:checked + .delivery-label,
.payment-option input:checked + .payment-label {
    border-color: var(--gold);
    background: #fdf3e7;
    color: var(--choco);
}
.btn-place-order {
    background: var(--choco);
    color: var(--cream);
    border: none;
    padding: 16px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: background .2s;
    margin-top: 8px;
}
.btn-place-order:hover:not(:disabled) { background: var(--gold); color: var(--choco); }
.btn-place-order:disabled { opacity: .7; cursor: not-allowed; }

.order-summary-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    top: 80px;
}
.summary-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--choco);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}
.summary-item {
    display: flex; justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0e8dd;
    font-size: .9rem;
}
.summary-item .name { color: var(--text); }
.summary-item .amount { font-weight: 600; color: var(--choco); }
.summary-total-row {
    display: flex; justify-content: space-between;
    font-weight: 700; font-size: 1.15rem;
    color: var(--choco);
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--choco);
}

/* ---- SUCCESS ---- */
.success-section { padding: 80px 0; }
.success-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow);
}
.success-icon { font-size: 4rem; margin-bottom: 16px; }
.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--choco);
    margin-bottom: 12px;
}
.success-sub { color: var(--text-muted); margin-bottom: 28px; }
.order-code-box {
    background: #fdf3e7;
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}
.order-code-label { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: 4px; }
.order-code { font-size: 1.8rem; font-weight: 700; letter-spacing: 2px; color: var(--choco); }
.success-details { text-align: left; margin-bottom: 24px; }
.detail-row {
    display: flex; justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0e8dd;
    font-size: .9rem;
}
.detail-row span { color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.total-row { font-size: 1.1rem; border-bottom: none; }
.total-amount { color: var(--gold); }
.btn-back-home {
    background: var(--choco);
    color: var(--cream);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background .2s;
}
.btn-back-home:hover { background: var(--gold); color: var(--choco); }

/* ---- FOOTER ---- */
.site-footer { background: var(--choco); padding: 24px 0; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { color: var(--gold-light); font-family: 'Playfair Display', serif; font-size: 1.1rem; margin: 0; }
.footer-contact { color: #9a8070; margin: 0; display: flex; align-items: center; gap: 6px; font-size: .9rem; }

/* ---- FORM CONTROLS ---- */
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,147,58,.15);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 576px) {
    .hero-section { padding: 50px 0 40px; }
    .products-grid { grid-template-columns: 1fr; }
    .cart-drawer { width: 100%; right: -100%; }
    .info-items { gap: 24px; }
}
