.order-info-readonly .info-row.delivery-summary-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0.25rem 0;
}
.order-info-readonly .info-row.delivery-summary-row .info-label {
    min-width: unset;
    font-weight: 500;
    color: #333;
    text-align: center;
    flex: 1;
}
/* ===========================
   GLOBAL
=========================== */

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

html, body {
    height: 100%;
}

body {
    background: #fafafa;
    color: #333;
    line-height: 1.6;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===========================
   NAVBAR
=========================== */

header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.072);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1400px;
    margin: auto;
    padding: 11px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
}

/* CENTERED LOGO */
.logo {
    flex-shrink: 0;
    order: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo img,
.logo-img {
    height: 53px !important; 
    width: auto !important;
    /* Filtr do zmiany czarnego na brązowy #a67c52 */
    filter: brightness(0) saturate(100%) invert(48%) sepia(28%) saturate(832%) hue-rotate(351deg) brightness(93%) contrast(88%);
}

/* ===========================
   MENU LINKS
=========================== */

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.left-menu {
    order: -1;
}

.right-menu {
    order: 1;
    margin-right: auto;
}

.menu li a {
    text-decoration: none;
    color: #a67c52;
    font-size: 23px;
    font-weight: bold;
    font-family: 'Century Gothic', Arial, sans-serif;
    font-size: 1.4em;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

/* HOVER BRONZE */
.menu li a:hover {
    background: #a67c52;
    color: white !important;
}

/* ===========================
   RIGHT ICONS
=========================== */

.nav-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    order: 2;
}


.cart-icon {
    font-size: 25px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
    position: relative;
}

.user-icon {
    font-size: 24px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
    position: relative;
}

.cart-icon:hover,
.user-icon:hover {
    transform: scale(1.1);
}

/* Cart badge overlay */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #a67c52;
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    border: 2px solid #fff;
    z-index: 2;
    pointer-events: none;
}

/* ===========================
   LANGUAGE DROPDOWN
=========================== */

.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

#langBtn {
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
    padding: 4px;
}

#langMenu {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    padding: 8px 0;
    list-style: none;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    width: 180px;
    z-index: 2000;
}

#langMenu li {
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.15s;
    white-space: nowrap;
}

#langMenu li:hover {
    background: #f2f2f2;
}

.hidden {
    display: none;
}

/* ===========================
   HAMBURGER
=========================== */

.hamburger {
    display: none;
}

/* ===========================
   MOBILE MENU
=========================== */

@media (max-width: 900px) {

    .hamburger {
        display: block;
        position: absolute;
        left: 20px;
        top: 25px;
        font-size: 32px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2001;
    }

    /* ukrywamy obie listy */
    .left-menu,
    .right-menu {
        display: none !important;
    }

    /* po otwarciu menu – POKAZUJEMY OBA */
    body.menu-open .left-menu,
    body.menu-open .right-menu {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        text-align: left;
        position: static;
    }

    /* wygląd pozycji w mobile */
    body.menu-open .left-menu li a,
    body.menu-open .right-menu li a {
        font-size: 22px;
        padding: 14px 20px;
        border-bottom: 1px solid #eee;
        display: block;
        width: 100%;
    }

    /* panel rozwijany - WSPÓLNY kontener dla obu menu */
    body.menu-open .navbar {
        flex-wrap: wrap;
    }

    body.menu-open .left-menu {
        order: 10;
        background: white;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    body.menu-open .right-menu {
        order: 11;
        background: white;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* ikony przeniesione */
    .nav-icons {
        position: absolute;
        right: 20px;
        top: 20px;
    }

    /* logo mobilne */
    .logo img {
        height: 70px !important;
    }
}

/* OSTATECZNE WYŁĄCZENIE HAMBURGERA NA DESKTOPIE */
@media (min-width: 901px) {
    .hamburger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute;
        left: -9999px;
    }
}


/* ===========================
   HERO
=========================== */

.hero {
    background: url("../img/chleb3.jpeg") center/cover no-repeat;
    color: white;
    text-align: center;
    /* 20% smaller than original: padding reduced */
    padding: 104px 16px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero h1, .hero p, .hero a {
    position: relative;
}


.hero h1 {
    /* ~20% smaller */
    font-size: 38px;
    margin-bottom: 8px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.hero-btn {
    padding: 14px 32px;
    background: #a67c52;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.hero-btn:hover {
    background: #8c5c45;
}

/* Footer placeholder: keep footer at the bottom when content is short */
#footer-placeholder {
    margin-top: auto;
}

/* ===========================
   DELIVERY OPTIONS
=========================== */

.delivery-options {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.delivery-options h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.options {
    display: flex;
    justify-content: center; /* center cards and allow max-width to control size */
    gap: 25px;
    flex-wrap: wrap;
}

.options article {
    background: white;
    padding: 15px;
    border-radius: 10px;
    /* use flexible sizing with an explicit max so cards don't grow too large on wide desktop screens */
    flex: 1 1 320px; /* grow/shrink, base width 320px */
    max-width: 360px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.options article:hover {
    transform: translateY(-5px);
}

/* Make delivery option images a sensible, consistent size */
.options article img {
    width: 100%;
    max-width: 100%;
    height: 180px; /* fixed visual height for consistency */
    max-height: 320px; /* safety cap */
    object-fit: cover; /* crop to fill without distortion */
    display: block;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Stronger selector to avoid accidental overrides */
section.delivery-options .options article img {
    width: 100%;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .options article img {
        height: 200px; /* slightly taller on narrow screens */
    }
}

@media (max-width: 480px) {
    .options article {
        width: 100%;
        min-width: auto;
    }

    .options {
        gap: 18px;
    }

    .options article img {
        height: 220px; /* larger touch targets on very small screens */
    }
}

/* ===========================
   LOCATIONS
=========================== */

.locations {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.locations h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.loc-grid {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.loc-card {
    width: 32%;
    min-width: 280px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.loc-card p {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    order: -1; /* move text above image */
}

.loc-card img {
    width: 100%;
    height: 200px; /* fixed height for consistent sizing */
    object-fit: cover; /* crop to fill without distortion */
    display: block;
}

/* Desktop: force single row and cap card width so three cards fit on one line */
@media (min-width: 901px) {
    .loc-grid {
        flex-wrap: nowrap; /* keep cards on a single row */
        justify-content: center; /* center them and rely on max-width */
    }

    .loc-card {
        /* allow cards to shrink to fit, but cap their width */
        flex: 1 1 320px;
        max-width: 360px;
        width: auto; /* override percentage width */
        min-width: 0; /* allow shrinking below previous min */
    }
}

/* Gift form styles */
.gift-form-section {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px 40px;
}

.gift-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.gift-form label { font-weight: 600; }
.gift-form input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.gift-result { margin-top: 14px; font-size: 15px; }

@media (max-width: 480px) {
    .gift-form-section { padding: 0 12px 30px; }
}

/* ===========================
   SHOP / WINKEL PAGE
=========================== */

main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

main h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.cart {
    position: fixed;
    top: 120px;
    right: 30px;
    background: white;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.12);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999;
    transition: 0.2s;
}

.cart:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

#cart-count {
    background: #a67c52;
    color: white;
    padding: 4px 10px;
    border-radius: 50%;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.product-card h3 {
    font-size: 20px;
    margin: 16px 16px 8px;
    color: #333;
    font-weight: 600;
}

.product-card .product-desc {
    font-size: 14px;
    color: #666;
    margin: 0 16px 12px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-card .product-price {
    font-size: 22px;
    font-weight: bold;
    color: #a67c52;
    margin: 0 16px 16px;
}

.product-card button {
    background: #a67c52;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 0;
    margin-top: auto;
}

.product-card button:hover {
    background: #8c5c45;
}

.product-card button:active {
    transform: scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .product-card img {
        height: 240px;
    }

    .cart {
        top: 90px;
        right: 15px;
        padding: 10px 14px;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    main {
        padding: 0 15px;
        margin: 20px auto;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .product-card img {
        height: 260px;
    }

    main h1 {
        font-size: 28px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .cart {
        position: fixed;
        bottom: 20px;
        top: auto;
        right: 20px;
    }
}

/* ===========================
   ACCOUNT PAGE STYLES
=========================== */

.account-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 30px;
}

.auth-section {
    max-width: 500px;
    margin: 3rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.auth-tabs button {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-tabs button.active {
    border-bottom-color: #a67c52;
    color: #a67c52;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #a67c52;
}

.btn-primary {
    width: 100%;
    background: #a67c52;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #8a6441;
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #a67c52;
}

.account-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.account-nav button {
    padding: 0.75rem 1.5rem;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.account-nav button.active {
    background: #a67c52;
    color: white;
    border-color: #8a6441;
}

.profile-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    max-width: 1000px;
}

.profile-card form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}

.profile-card .form-group {
    margin-bottom: 0;
}

.profile-card .btn-primary {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 1rem auto 0;
}

@media (max-width: 768px) {
    .profile-card form {
        grid-template-columns: 1fr;
    }
}

.orders-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    background: #f5f5f5;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    font-size: 1rem;
}

.orders-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.orders-table tr:hover {
    background: #f9f9f9;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending { background: #FFF3CD; color: #856404; }
.status-processing { background: #D1ECF1; color: #0C5460; }
.status-shipped { background: #D4EDDA; color: #155724; }
.status-delivered { background: #C3E6CB; color: #155724; }
.status-cancelled { background: #F8D7DA; color: #721C24; }

.payment-badge {
    display: inline-block;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.3;
}

.payment-badge.paid {
    background: #D4EDDA;
    color: #155724;
}

.payment-badge.unpaid {
    background: #FFF3CD;
    color: #856404;
}

.payment-badge small {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.logout-btn {
    background: white;
    color: #333;
    padding: 0.5rem 1rem;
    border: 2px solid #333;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #333;
    color: white;
}

.btn-secondary {
    background: white;
    color: #333;
    padding: 0.5rem 1rem;
    border: 2px solid #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #333;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Order Details Modal */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    overflow-y: auto;
}

.order-modal.active {
    display: flex;
}

.order-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.order-modal-header h2 {
    margin: 0;
    color: #333;
}

.modal-close-btn {
    background: white;
    color: #333;
    border: 2px solid #333;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.modal-close-btn:hover {
    background: #333;
    color: white;
}

.order-info {
    margin-bottom: 1.5rem;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-info-label {
    font-weight: 600;
    color: #666;
}

.order-items {
    margin-top: 1.5rem;
}

.order-items h3 {
    margin-bottom: 1rem;
    color: #333;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 0.35rem;
    background: #fafafa;
}

.order-item-name {
    font-weight: 600;
    color: #333;
}

.order-item-details {
    color: #666;
    font-size: 0.9rem;
}

.order-item-price {
    text-align: right;
    font-weight: 600;
    color: #333;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.subsection {
    display: none;
}

.subsection.active {
    display: block;
}

/* ===========================
   ADMIN PAGE STYLES
=========================== */

.admin-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #a67c52;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-nav button {
    padding: 0.75rem 1.5rem;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.admin-nav button.active {
    background: #a67c52;
    color: white;
    border-color: #8a6441;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-danger {
    background: #f44336;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.products-table,
.orders-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.products-table table,
.orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.products-table th,
.orders-table th {
    background: #f5f5f5;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.products-table td,
.orders-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.products-table tr:hover,
.orders-table tr:hover {
    background: #f9f9f9;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* form-group styles already defined in ACCOUNT section */
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #a67c52;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.change-password-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #a67c52;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s;
}

.change-password-link:hover {
    color: #8a6441;
    text-decoration: underline;
}

.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #a67c52;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password-link:hover {
    color: #8a6441;
    text-decoration: underline;
}

.password-change-fields {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.change-password-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #a67c52;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s;
}

.change-password-link:hover {
    color: #8a6441;
    text-decoration: underline;
}

.password-change-fields {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #a67c52;
}

.order-items {
    font-size: 0.85rem;
    color: #666;
}

.image-preview {
    max-width: 200px;
    margin-top: 0.5rem;
    border-radius: 8px;
}

/* ===========================
   WINKEL (SHOP) PAGE SPECIFIC STYLES
=========================== */

.winkel-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.shop-sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 140px;
    align-self: flex-start;
    height: fit-content;
}

.shop-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-btn {
    background: white;
    border: 2px solid #a67c52;
    color: #a67c52;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.category-btn:hover {
    background: #a67c52;
    color: white;
}

.category-btn.active {
    background: #a67c52;
    color: white;
}

.category-btn i {
    margin-right: 8px;
    width: 16px;
}

.products-content {
    flex: 1;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.product-info .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.price-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-display {
    display: inline-block;
    width: 50px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-weight: 600;
    line-height: 1.2;
}

.weight-selector {
    padding: 0.5rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.3s;
}

.weight-selector:hover {
    border-color: #a67c52;
}

.weight-selector:focus {
    outline: none;
    border-color: #a67c52;
    box-shadow: 0 0 0 2px rgba(166, 124, 82, 0.1);
}

.unit-display {
    font-size: 1.1rem;
    color: #666;
    padding: 0.5rem;
    font-weight: 500;
}

.qty-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e0e0e0;
    border-color: #a67c52;
}

.qty-btn:active {
    transform: scale(0.95);
}

.add-cart-btn {
    background: #a67c52;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    flex-grow: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.add-cart-btn:hover {
    background: #8a6441;
}

.add-cart-btn i {
    margin-right: 5px;
}

.price-section button {
    background: #a67c52;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.price-section button:hover {
    background: #8a6441;
}

.price-section button i {
    margin-right: 5px;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    color: #333;
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 16px;
    z-index: 10000;
    animation: slideIn 0.3s ease-out, slideOut 0.3s ease-in 2.7s;
    pointer-events: none;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ===========================
   ORDER PLACEMENT MODAL
=========================== */

.order-placement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    overflow-y: auto;
}

.order-placement-modal.active {
    display: flex;
}

.order-placement-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.order-placement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.order-placement-header h2 {
    margin: 0;
    color: #333;
}

.order-form-section {
    margin-bottom: 1.5rem;
}

.order-form-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #fafafa;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 2px solid #333;
    font-weight: 700;
    font-size: 1.2rem;
}

.order-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.order-actions button {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.order-actions .btn-confirm {
    background: #a67c52;
    color: white;
    border: none;
}

.order-actions .btn-confirm:hover {
    background: #8a6441;
}

.order-actions .btn-cancel {
    background: white;
    color: #333;
    border: 2px solid #333;
}

.order-actions .btn-cancel:hover {
    background: #333;
    color: white;
}

/* Order Info Readonly */
.order-info-readonly {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
}

.order-info-readonly .info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.order-info-readonly .info-label {
    font-weight: 600;
    color: #666;
    min-width: 130px;
    font-size: 0.95rem;
}

.order-info-readonly .info-value {
    color: #333;
    text-align: right;
    flex: 1;
    font-size: 0.95rem;
}

.change-address-link {
    display: inline-block;
    margin-top: 0.25rem;
    color: #a67c52;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.change-address-link:hover {
    color: #8a6441;
    text-decoration: underline;
}

/* Guest Order Form */
.order-form-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.order-form-inputs .form-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-form-inputs .form-row-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    min-width: 120px;
    flex-shrink: 0;
}

.order-form-inputs input {
    flex: 1;
    padding: 0.5rem 0.65rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.order-form-inputs input:focus {
    outline: none;
    border-color: #a67c52;
}

.order-form-inputs input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.guest-options {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.account-create-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #a67c52;
}

.checkbox-option span {
    color: #333;
    font-size: 0.9rem;
}

.account-create-row input[type="password"] {
    opacity: 0.5;
    transition: opacity 0.3s;
}

/* Delivery Method Options */
.delivery-method-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.delivery-option:hover {
    border-color: #a67c52;
    box-shadow: 0 2px 8px rgba(166, 124, 82, 0.15);
}

.delivery-option.selected {
    border-color: #a67c52;
    background: #fafafa;
}

.delivery-option input[type="radio"] {
    display: none;
}

.delivery-option .option-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.delivery-option .option-icon {
    font-size: 1.5rem;
}

.delivery-option .option-details {
    flex: 1;
}

.delivery-option .option-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.delivery-option .option-desc {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.delivery-option .option-price {
    color: #a67c52;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Cost Summary */
.cost-summary {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
}

.cost-summary .cost-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.cost-summary .cost-row:last-child {
    border-bottom: none;
}

.cost-summary .cost-row.total {
    font-size: 1.2rem;
    font-weight: 600;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #a67c52;
}

/* Order Steps Navigation */
.order-steps-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.step-indicator:hover .step-circle {
    transform: scale(1.1);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.step-indicator.active .step-circle {
    background: white;
    color: #a67c52;
    border: 3px solid #a67c52;
    box-shadow: 0 0 0 4px rgba(166, 124, 82, 0.2);
}

.step-indicator.completed .step-circle {
    background: #a67c52;
    color: white;
}

.step-indicator.completed:hover .step-circle {
    background: #8a6441;
}

.step-label {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

.step-indicator.active .step-label {
    color: #a67c52;
    font-weight: 600;
}

.step-indicator.completed .step-label {
    color: #a67c52;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 0.5rem;
    align-self: center;
    margin-top: -1.5rem; /* Wyrównanie do poziomu kółek */
}

.step-line.completed {
    background: #a67c52;
}

/* Date Picker */
.date-picker {
    margin: 1rem 0;
}

.date-picker input[type="date"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s;
}

.date-picker input[type="date"]:hover {
    border-color: #a67c52;
}

.date-picker input[type="date"]:focus {
    outline: none;
    border-color: #a67c52;
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.1);
}

.date-note {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.time-slot {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.time-slot:hover {
    border-color: #a67c52;
    box-shadow: 0 2px 8px rgba(166, 124, 82, 0.15);
}

.time-slot.selected {
    border-color: #a67c52;
    background: #fafafa;
}

.time-slot input[type="radio"] {
    display: none;
}

.time-slot-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time-icon {
    font-size: 1.2rem;
}

.time-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.time-slot.selected .time-label {
    color: #a67c52;
}

/* Disabled button */
.order-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.order-actions button:disabled:hover {
    background: #a67c52;
}

/* Summary Info Grid */
.summary-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.summary-info-item .info-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.info-label-small {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.info-value-large {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/* Order Confirmation Success */
.order-confirmation-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: white;
    color: #a67c52;
    font-size: 3rem;
    border: 4px solid #a67c52;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.order-confirmation-success h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.order-confirmation-details {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.confirmation-label {
    color: #666;
    font-size: 1rem;
}

.confirmation-value {
    color: #a67c52;
    font-weight: 600;
    font-size: 1.3rem;
}

.confirmation-message {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.confirmation-note {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

@media (max-width: 768px) {
    .summary-info-grid {
        grid-template-columns: 1fr;
    }
    
    .time-slots {
        grid-template-columns: 1fr;
    }
}
