/* Kiya Bakery Website Styles */
:root {
    --primary: #1FB0FF;
    --black: #050505;
    --bg: #F7F9F8;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #e5e5e5;
    --danger: #ff4d4f;
    --success: #52c41a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--black);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============== Navbar ============== */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo { font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.logo-text { color: var(--primary); }
.logo-bakery { color: var(--black); }

.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-menu a { color: var(--black); font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.nav-menu a:hover { color: var(--primary); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: 0.3s;
}

/* ============== Buttons ============== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
}
.btn-primary:hover {
    background: #1890d8;
    color: var(--white) !important;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
}

.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ============== Hero ============== */
.hero { padding: 5rem 0; }
.hero-inner { display: flex; align-items: center; min-height: 400px; }
.hero-text { max-width: 600px; }
.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-text p { font-size: 1.1rem; color: var(--gray); margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============== Sections ============== */
.section { padding: 4rem 0; }
.section-gray { background: var(--white); }
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1890d8 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header p { opacity: 0.9; }

/* ============== Intro / Features ============== */
.intro { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.intro h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.intro p { color: var(--gray); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--gray); font-size: 0.9rem; }

/* ============== Products ============== */
.category-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}
.category-tabs .tab {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--light-gray);
    transition: all 0.2s;
}
.category-tabs .tab.active,
.category-tabs .tab:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    text-decoration: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-decoration: none;
}

.product-image {
    position: relative;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    color: #ccc;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--danger);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-frozen { background: #1890ff; }

.product-info { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.product-desc { color: var(--gray); font-size: 0.85rem; margin-bottom: 0.75rem; flex: 1; }
.product-price { display: flex; align-items: center; gap: 0.75rem; }
.product-price .price { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.product-price .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

/* ============== Product Detail ============== */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-detail-image {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.product-detail-image img { width: 100%; height: auto; display: block; }
.product-placeholder-large {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #ddd;
}

.product-detail-info h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.product-category { color: var(--primary); font-weight: 600; margin-bottom: 1rem; }
.product-price-large { margin-bottom: 1rem; }
.product-price-large .price { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.product-price-large .original-price { font-size: 1.25rem; color: #999; text-decoration: line-through; margin-left: 0.75rem; }
.product-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.badge-halal { background: #d4edda; color: #155724; }
.badge-frozen { background: #cce5ff; color: #004085; }
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.product-description { color: var(--gray); margin-bottom: 2rem; line-height: 1.7; }

/* ============== About / Content ============== */
.content-block { margin-bottom: 3rem; }
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.content-image img { width: 100%; border-radius: 16px; }
.content-text h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.content-text p { color: var(--gray); margin-bottom: 1rem; line-height: 1.7; }

/* ============== Contact ============== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 1rem; color: var(--gray); }
.contact-info a { color: var(--primary); font-weight: 500; }

.contact-form-wrapper { background: var(--white); padding: 2rem; border-radius: 16px; box-shadow: 0 2px 16px rgba(0,0,0,0.04); }
.contact-form-wrapper h2 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); }

.alert { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* ============== Footer ============== */
.footer { background: var(--black); color: var(--white); padding: 4rem 0 1.5rem; margin-top: 2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-brand p { color: #aaa; margin-top: 0.75rem; font-size: 0.95rem; }
.footer-brand .badge { color: #4ade80; font-size: 0.85rem; margin-top: 0.25rem; display: block; }
.footer-links h4, .footer-contact h4 { font-size: 1rem; margin-bottom: 1.25rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #aaa; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); }
.footer-contact p { color: #aaa; margin-bottom: 0.75rem; font-size: 0.95rem; }
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #777;
    font-size: 0.85rem;
}
.footer-bottom a { color: #777; }

/* ============== Utilities ============== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.empty-state { text-align: center; color: var(--gray); padding: 3rem; grid-column: 1 / -1; }

/* ============== Responsive ============== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--light-gray);
        display: none;
    }
    .nav-menu.open { display: flex; }
    .hero-text h1 { font-size: 2.25rem; }
    .hero-buttons { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .content-split { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
