/* ===== NaszaLawenda.pl — Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Nunito+Sans:wght@300;400;500;600&display=swap');

:root {
    --purple: #6B5B8A;
    --purple-dark: #4A3D5C;
    --purple-light: #9B8EC4;
    --purple-bg: #F0EBF5;
    --purple-soft: #D5CBE5;
    --beige: #FAF8F5;
    --beige-dark: #F5F0EB;
    --beige-border: #E8E3DD;
    --text: #3A3040;
    --text-light: #6B6370;
    --text-muted: #8A8290;
    --text-faint: #B0ABB5;
    --green: #4A8C5C;
    --amber: #C4923A;
    --red: #A54A4A;
    --blue: #3A7CA5;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(58,48,64,0.06);
    --shadow-md: 0 8px 30px rgba(107,91,138,0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease;
}

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

body {
    font-family: 'Lora', Georgia, serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--beige) 0%, var(--beige-dark) 100%);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--purple-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style-position: inside; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Lora', serif; font-weight: 500; color: var(--text); }
h1 { font-size: 2.4rem; line-height: 1.2; }
h2 { font-size: 1.75rem; margin-bottom: 8px; }
h3 { font-size: 1.1rem; }
p { font-family: 'Nunito Sans', sans-serif; font-size: 15px; color: var(--text-light); line-height: 1.7; }
.section-title { font-size: 1.75rem; font-weight: 500; text-align: center; }
.section-sub { font-family: 'Nunito Sans', sans-serif; font-size: 15px; color: var(--text-muted); text-align: center; margin-bottom: 32px; }
.label-sm { font-family: 'Nunito Sans', sans-serif; font-size: 11px; font-weight: 600; color: var(--purple-light); text-transform: uppercase; letter-spacing: 1.5px; }

/* ===== HEADER ===== */
.header {
    background: rgba(250,248,245,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--beige-border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-size: 20px; font-weight: 600; color: var(--purple-dark); line-height: 1.1; }
.logo-sub { font-family: 'Nunito Sans', sans-serif; font-size: 10px; color: var(--purple-light); letter-spacing: 2px; text-transform: uppercase; }

.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-family: 'Nunito Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--text-light); padding: 8px 4px; position: relative; }
.nav a:hover, .nav a.active { color: var(--purple); }
.nav a.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--purple-light); border-radius: 1px; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-btn { position: relative; background: none; border: none; font-size: 22px; cursor: pointer; padding: 4px; }
.cart-count { position: absolute; top: -4px; right: -8px; background: var(--amber); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 11px; font-family: 'Nunito Sans', sans-serif; font-weight: 600; }
.admin-link { font-family: 'Nunito Sans', sans-serif; font-size: 12px; padding: 6px 14px; border: 1px solid var(--purple-soft); border-radius: 6px; color: var(--text-muted); }
.admin-link:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }
.mobile-menu { display: none; padding: 16px 24px; border-top: 1px solid var(--beige-border); flex-direction: column; gap: 8px; }
.mobile-menu a { font-family: 'Nunito Sans', sans-serif; font-size: 14px; padding: 8px 0; color: var(--text-light); display: block; }

/* ===== BUTTONS ===== */
.btn { font-family: 'Nunito Sans', sans-serif; border: none; cursor: pointer; transition: var(--transition); display: inline-block; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--purple); color: #fff; padding: 12px 28px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--purple); padding: 10px 24px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; border: 1.5px solid var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 6px; }
.btn-danger { background: var(--red); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 13px; }
.btn-danger:hover { background: #8c3333; }
.btn-block { width: 100%; }

/* ===== CARDS ===== */
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--beige-border); overflow: hidden; transition: var(--transition); }
.card:hover { border-color: var(--purple-soft); box-shadow: var(--shadow-md); }
.card-body { padding: 20px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-label { font-family: 'Nunito Sans', sans-serif; font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 6px; }
.form-control { font-family: 'Nunito Sans', sans-serif; padding: 10px 16px; border: 1.5px solid var(--beige-border); border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: border-color 0.2s; width: 100%; background: #fff; color: var(--text); }
.form-control:focus { border-color: var(--purple-light); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ===== PRODUCTS GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card .product-image { background: linear-gradient(135deg, var(--purple-bg) 0%, #E8E0F0 100%); padding: 32px; text-align: center; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.product-card .product-image img { max-height: 160px; object-fit: contain; }
.product-card .product-placeholder { font-size: 72px; }
.product-card .product-info { padding: 20px; }
.product-card .product-cat { font-family: 'Nunito Sans', sans-serif; font-size: 11px; font-weight: 600; color: var(--purple-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.product-card .product-name { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.product-card .product-weight { font-family: 'Nunito Sans', sans-serif; font-size: 12px; color: var(--text-faint); margin-bottom: 8px; }
.product-card .product-desc { font-family: 'Nunito Sans', sans-serif; font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.product-card .product-bottom { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 20px; font-weight: 600; color: var(--purple-dark); }

/* ===== CATEGORY FILTER ===== */
.cat-filter { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.cat-btn { font-family: 'Nunito Sans', sans-serif; font-size: 13px; padding: 8px 18px; border-radius: 20px; border: none; cursor: pointer; transition: var(--transition); background: var(--purple-bg); color: var(--purple); }
.cat-btn:hover, .cat-btn.active { background: var(--purple); color: #fff; }

/* ===== HERO ===== */
.hero { display: flex; gap: 48px; align-items: center; padding: 64px 0 48px; }
.hero-content { flex: 1; }
.hero-visual { flex: 1; display: flex; justify-content: center; }
.hero-circle { width: 360px; height: 360px; border-radius: 50%; background: linear-gradient(135deg, #E8E0F0, #D5CBE5, #C5B8D9); display: flex; align-items: center; justify-content: center; position: relative; }

/* ===== CHECKOUT ===== */
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.order-summary { align-self: flex-start; position: sticky; top: 90px; }
.delivery-option { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-sm); cursor: pointer; border: 1.5px solid var(--beige-border); margin-bottom: 8px; transition: var(--transition); }
.delivery-option:hover, .delivery-option.selected { background: var(--purple-bg); border-color: var(--purple-light); }
.delivery-option input[type="radio"] { accent-color: var(--purple); }

/* ===== CART ITEMS ===== */
.cart-item { display: flex; align-items: center; gap: 16px; padding: 20px; }
.cart-item-image { width: 56px; height: 56px; background: var(--purple-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 15px; font-weight: 500; }
.cart-item-price { font-family: 'Nunito Sans', sans-serif; font-size: 14px; color: var(--purple); font-weight: 600; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 30px; height: 30px; border: 1px solid var(--beige-border); border-radius: 6px; background: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { border-color: var(--purple-light); }
.qty-value { font-family: 'Nunito Sans', sans-serif; font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.remove-btn { background: none; border: none; color: var(--text-faint); font-size: 18px; cursor: pointer; }
.remove-btn:hover { color: var(--red); }

/* ===== PAYMENT METHODS ===== */
.payment-methods { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-method { font-family: 'Nunito Sans', sans-serif; font-size: 13px; padding: 8px 16px; border-radius: var(--radius-sm); background: var(--beige-dark); color: var(--purple-dark); border: 1px solid var(--beige-border); cursor: pointer; transition: var(--transition); }
.payment-method:hover, .payment-method.active { border-color: var(--purple); background: var(--purple-bg); }

/* ===== BADGE ===== */
.badge { font-family: 'Nunito Sans', sans-serif; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; display: inline-block; }

/* ===== INFO BOX ===== */
.info-box { padding: 16px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 12px; }
.info-box-purple { background: var(--purple-bg); }
.info-box-green { background: #EAF3DE; }
.info-box p { font-size: 13px; }

/* ===== CONTENT PAGE ===== */
.page-content { max-width: 760px; margin: 0 auto; padding: 48px 0 64px; }
.page-content .card-body { padding: 36px; }
.page-content h3 { margin-top: 24px; margin-bottom: 8px; color: var(--purple-dark); }
.page-content p { margin-bottom: 12px; }
.page-content ul, .page-content ol { margin-bottom: 12px; padding-left: 20px; font-family: 'Nunito Sans', sans-serif; font-size: 14px; color: var(--text-light); }
.page-content li { margin-bottom: 4px; }
.benefit-item { margin-bottom: 24px; padding: 20px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--beige-border); }
.benefit-item h3 { margin-top: 0; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.contact-info-item .icon { font-size: 18px; }
.contact-info-item .label { font-family: 'Nunito Sans', sans-serif; font-size: 12px; color: var(--text-muted); }
.contact-info-item .value { font-family: 'Nunito Sans', sans-serif; font-size: 14px; color: var(--purple-dark); }

/* ===== ORDER STATUS ===== */
.order-result { margin-top: 16px; padding: 16px; background: var(--purple-bg); border-radius: var(--radius-sm); }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card { text-align: center; padding: 24px; }
.stat-value { font-size: 28px; font-weight: 600; color: var(--purple); margin-bottom: 4px; }
.stat-label { font-family: 'Nunito Sans', sans-serif; font-size: 13px; color: var(--text-muted); }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature { text-align: center; padding: 8px; }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; }

/* ===== FOOTER ===== */
.footer { background: var(--text); color: #C5BED0; padding: 48px 0 24px; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { font-family: 'Nunito Sans', sans-serif; font-size: 13px; font-weight: 600; color: #E8E3F0; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer a { color: #C5BED0; font-family: 'Nunito Sans', sans-serif; font-size: 13px; display: block; margin-bottom: 8px; }
.footer a:hover { color: #E8E3F0; }
.footer-bottom { border-top: 1px solid #4A4350; padding-top: 20px; text-align: center; font-family: 'Nunito Sans', sans-serif; font-size: 12px; color: var(--text-muted); }

/* ===== TABLES ===== */
.table { width: 100%; border-collapse: collapse; font-family: 'Nunito Sans', sans-serif; font-size: 13px; }
.table th { text-align: left; padding: 10px 8px; color: var(--text-muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--beige-border); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--purple-bg); }
.table tr:hover td { background: var(--beige); }

/* ===== ADMIN ===== */
.admin-layout { display: flex; gap: 24px; }
.admin-sidebar { width: 220px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.admin-sidebar a { font-family: 'Nunito Sans', sans-serif; font-size: 14px; padding: 12px 16px; border-radius: var(--radius-sm); color: var(--purple-dark); display: block; transition: var(--transition); }
.admin-sidebar a:hover { background: var(--purple-bg); }
.admin-sidebar a.active { background: var(--purple); color: #fff; font-weight: 600; }
.admin-content { flex: 1; min-width: 0; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* ===== LOGIN ===== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--beige), var(--purple-bg)); }
.login-box { width: 100%; max-width: 400px; }
.login-box .card-body { padding: 40px; }

/* ===== NOTIFICATIONS ===== */
.flash { padding: 12px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-family: 'Nunito Sans', sans-serif; font-size: 14px; }
.flash-success { background: #EAF3DE; color: var(--green); border: 1px solid #C0DD97; }
.flash-error { background: #FCEBEB; color: var(--red); border: 1px solid #F7C1C1; }
.flash-info { background: #E6F1FB; color: var(--blue); border: 1px solid #B5D4F4; }
.flash-warning { background: #FAEEDA; color: var(--amber); border: 1px solid #FAC775; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { flex-direction: column; text-align: center; padding: 40px 0 32px; }
    .hero-circle { width: 260px; height: 260px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-toggle { display: block; }
    .mobile-menu.open { display: flex; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .header-inner { height: 60px; }
    .container { padding: 0 16px; }
}
