/* ============================================
   Lutloo - Bakery Theme Styles
   Colors: Cream, Brown, Light Orange, Soft Yellow
   ============================================ */

:root {
    --cream: #FBF6EE;
    --cream-dark: #F5EDE0;
    --brown: #5C3A21;
    --brown-light: #8B5E3C;
    --brown-dark: #3D2614;
    --orange: #E89B5C;
    --orange-light: #F0B87A;
    --orange-dark: #D4803A;
    --yellow: #F5D76E;
    --yellow-soft: #FBE8A4;
    --white: #FFFFFF;
    --text: #3D2614;
    --text-muted: #7A6352;
    --border: #E8D9C8;
    --success: #4A7C59;
    --danger: #C44B4B;
    --shadow: 0 4px 20px rgba(92, 58, 33, 0.08);
    --shadow-lg: 0 10px 40px rgba(92, 58, 33, 0.12);
    --radius: 12px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
    --font-ui: 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brown-dark);
}

a { color: var(--brown-light); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--orange); }

img { max-width: 100%; height: auto; }

/* ---- Buttons ---- */
.btn-bakery {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 155, 92, 0.35);
}
.btn-bakery:hover {
    background: linear-gradient(135deg, var(--orange-dark), var(--brown-light));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 155, 92, 0.45);
}
.btn-outline-bakery {
    background: transparent;
    color: var(--brown);
    border: 2px solid var(--brown);
    padding: 0.65rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-ui);
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-outline-bakery:hover {
    background: var(--brown);
    color: var(--white);
}
.btn-brown {
    background: var(--brown);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-ui);
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-brown:hover { background: var(--brown-dark); color: var(--white); }

/* ---- Top Bar ---- */
.top-bar {
    background: var(--brown-dark);
    color: var(--cream);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    padding: 0.45rem 0;
}
.top-bar a { color: var(--yellow-soft); }
.top-bar a:hover { color: var(--white); }
.top-bar .social a {
    display: inline-flex;
    width: 28px; height: 28px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-left: 0.35rem;
    color: var(--cream);
    transition: background 0.25s;
}
.top-bar .social a:hover { background: var(--orange); color: var(--white); }

/* ---- Navbar ---- */
.navbar-bakery {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.navbar-bakery .navbar-brand {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--brown-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-bakery .brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown-dark);
    font-size: 1.2rem;
}
.navbar-bakery .nav-link {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--text) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.25s;
}
.navbar-bakery .nav-link:hover,
.navbar-bakery .nav-link.active {
    color: var(--orange) !important;
}
.navbar-bakery .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 1rem; right: 1rem;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}
.nav-icons .nav-icon {
    position: relative;
    color: var(--brown);
    font-size: 1.25rem;
    margin-left: 1rem;
    transition: color 0.25s;
}
.nav-icons .nav-icon:hover { color: var(--orange); }
.cart-badge {
    position: absolute;
    top: -8px; right: -10px;
    background: var(--orange);
    color: white;
    font-size: 0.65rem;
    font-family: var(--font-ui);
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(61, 38, 20, 0.72) 0%, rgba(92, 58, 33, 0.55) 50%, rgba(232, 155, 92, 0.4) 100%),
        url('../assets/images/hero-bakery.svg') center/cover no-repeat;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, transparent 30%, rgba(61,38,20,0.3) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 640px;
    animation: fadeUp 1s ease;
}
.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-brand span { color: var(--yellow); }
.hero-tagline {
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.92;
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream-dark); }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title .eyebrow {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--orange);
    margin-bottom: 0.5rem;
}
.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}
.section-title p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    font-size: 1.05rem;
}
.section-title .divider {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--yellow));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ---- Product Card ---- */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}
.product-card .product-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--cream-dark);
}
.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--orange);
    color: white;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}
.product-badge.sale { background: var(--danger); }
.product-badge.bestseller { background: var(--brown); }
.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-info .category-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}
.product-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.product-info h5 a { color: var(--brown-dark); }
.product-info h5 a:hover { color: var(--orange); }
.product-price {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brown);
    margin-top: auto;
    padding-top: 0.75rem;
}
.product-price .old {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 0.5rem;
}
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.product-actions .btn {
    flex: 1;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem;
    border-radius: 8px;
}

/* ---- Category Card ---- */
.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
    transition: transform 0.35s ease;
}
.category-card:hover { transform: translateY(-5px); }
.category-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.category-card:hover img { transform: scale(1.1); }
.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61,38,20,0.85) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}
.category-card h4 {
    color: white;
    font-size: 1.25rem;
    margin: 0;
}

/* ---- Testimonial ---- */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    border-top: 3px solid var(--orange);
}
.testimonial-card .stars { color: var(--yellow); margin-bottom: 1rem; }
.testimonial-card .quote {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.testimonial-card .author {
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--brown);
}

/* ---- Newsletter ---- */
.newsletter-section {
    background: linear-gradient(135deg, var(--brown-dark), var(--brown));
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,215,110,0.15), transparent 70%);
    border-radius: 50%;
}
.newsletter-section h2 { color: white; }
.newsletter-form .form-control {
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-ui);
}
.newsletter-form .btn {
    border-radius: 50px;
    padding: 0.85rem 2rem;
}

/* ---- Page Banner ---- */
.page-banner {
    background: linear-gradient(135deg, var(--brown-dark), var(--brown-light));
    padding: 4rem 0 3rem;
    text-align: center;
    color: white;
    position: relative;
}
.page-banner h1 { color: white; font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-banner .breadcrumb {
    justify-content: center;
    background: none;
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}
.page-banner .breadcrumb-item a { color: var(--yellow-soft); }
.page-banner .breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- Forms ---- */
.form-bakery .form-label {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brown);
}
.form-bakery .form-control,
.form-bakery .form-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-family: var(--font-ui);
    background: var(--white);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.form-bakery .form-control:focus,
.form-bakery .form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 155, 92, 0.2);
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    max-width: 480px;
    margin: 0 auto;
}
.auth-card h2 { text-align: center; margin-bottom: 0.5rem; }
.auth-card .auth-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-family: var(--font-ui);
}

/* ---- Cart / Checkout ---- */
.cart-table {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.cart-table th {
    background: var(--cream-dark);
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--brown);
    border: none;
    padding: 1rem;
}
.cart-table td { padding: 1rem; vertical-align: middle; border-color: var(--border); }
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.qty-control button {
    background: var(--cream-dark);
    border: none;
    width: 36px; height: 36px;
    font-weight: 700;
    color: var(--brown);
    cursor: pointer;
    transition: background 0.2s;
}
.qty-control button:hover { background: var(--orange); color: white; }
.qty-control input {
    width: 50px;
    text-align: center;
    border: none;
    font-family: var(--font-ui);
    font-weight: 600;
}
.order-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}
.order-summary h4 { margin-bottom: 1.25rem; }
.order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-family: var(--font-ui);
}
.order-summary .summary-total {
    border-top: 2px solid var(--border);
    margin-top: 0.75rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brown);
}

/* ---- Footer ---- */
.footer {
    background: var(--brown-dark);
    color: rgba(255,255,255,0.8);
    padding-top: 4rem;
    font-family: var(--font-ui);
}
.footer h5 {
    color: var(--yellow);
    font-family: var(--font-display);
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
}
.footer a {
    color: rgba(255,255,255,0.7);
    transition: color 0.25s;
    display: block;
    padding: 0.25rem 0;
}
.footer a:hover { color: var(--orange-light); }
.footer .brand-desc { margin-bottom: 1.5rem; line-height: 1.8; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
}
.footer .social-links a {
    display: inline-flex;
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    color: white;
    padding: 0;
}
.footer .social-links a:hover { background: var(--orange); color: white; }

/* ---- Alerts ---- */
.alert-bakery {
    border: none;
    border-radius: 10px;
    font-family: var(--font-ui);
    padding: 1rem 1.25rem;
}

/* ---- Shop Sidebar ---- */
.shop-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.shop-sidebar h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cream-dark);
}
.shop-sidebar .form-check {
    margin-bottom: 0.5rem;
    font-family: var(--font-ui);
}
.shop-sidebar .form-check-input:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}

/* ---- Product Detail ---- */
.product-gallery {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.product-gallery .main-image {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}
.product-detail-info h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.product-detail-info .price-large {
    font-family: var(--font-ui);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--orange);
    margin: 1rem 0;
}
.stock-status {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
}
.stock-status.in-stock { color: var(--success); }
.stock-status.out-of-stock { color: var(--danger); }

/* ---- Account ---- */
.account-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.account-sidebar .nav-link {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}
.account-sidebar .nav-link:hover,
.account-sidebar .nav-link.active {
    background: var(--cream-dark);
    color: var(--orange);
}
.account-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* ---- About ---- */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--cream-dark), var(--orange-light));
}
.mission-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s;
}
.mission-card:hover { transform: translateY(-5px); }
.mission-card .icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--orange-light), var(--yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--brown-dark);
}

/* ---- Contact ---- */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.contact-info-card .icon {
    width: 50px; height: 50px;
    background: var(--cream-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 350px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ---- FAQ ---- */
.accordion-bakery .accordion-item {
    border: 1px solid var(--border);
    border-radius: 10px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--white);
}
.accordion-bakery .accordion-button {
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--brown);
    background: var(--white);
    box-shadow: none !important;
}
.accordion-bakery .accordion-button:not(.collapsed) {
    background: var(--cream-dark);
    color: var(--orange);
}
.accordion-bakery .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%25E89B5C'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ---- Policy pages ---- */
.policy-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}
.policy-content h3 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.35rem; }
.policy-content p, .policy-content li { color: var(--text-muted); }

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state i { font-size: 4rem; color: var(--border); margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ---- Pagination ---- */
.pagination .page-link {
    color: var(--brown);
    border-color: var(--border);
    font-family: var(--font-ui);
    font-weight: 600;
}
.pagination .page-item.active .page-link {
    background: var(--orange);
    border-color: var(--orange);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero { min-height: 70vh; }
    .about-story { grid-template-columns: 1fr; }
    .section { padding: 3.5rem 0; }
}
@media (max-width: 767px) {
    .hero { min-height: 60vh; }
    .hero-brand { font-size: 2.2rem; }
    .page-banner { padding: 3rem 0 2rem; }
    .page-banner h1 { font-size: 1.8rem; }
    .navbar-bakery .navbar-brand { font-size: 1.3rem; }
}
