/* ============================================================
   ANTYKI-REX — GŁÓWNY ARKUSZ STYLÓW
   Wersja poprawiona: usunięto duplikaty, naprawiono błędy,
   ujednolicono zmienne i selektory.
   ============================================================ */

/* ===== ZMIENNE CSS ===== */

:root {

    /* TŁO STRONY */
    --bg-main:  #EAF2D8;
    --bg-box:   #F5F0E3;
    --bg-soft:  #E5DDCA;
    --bg-card:  #F7F0E4;

    /* ZIELEŃ (główny akcent) */
    --navy-main:  #4F6247;
    --navy-dark:  #43543C;

    /* BURGUND */
    --burgundy:      #6A3A33;
    --burgundy-dark: #56302B;

    /* KOBALT */
    --pea: #294D8B;

    /* BRĄZY */
    --brown-light: #B08D57;
    --brown-dark:  #3B2F2A;

    /* ZŁOTO */
    --gold: #C5A24A;

    /* RAMKI */
    --border: #CDBD9B;

    /* TEKST (alias dla brown-dark) */
    --text: #3B2F2A;

    /* ZIELEŃ METTLACH (przyciski licytacji) */
    --green-mettlach:       #4F6247;
    --green-mettlach-hover: #43543C;

    /* MENU GŁÓWNE */
    --menu-bg:      #626b4c;   /* ciemniejszy od stopki #474e7a */
    --menu-text:    #F4EBDD;   /* jak tekst stopki */
    --menu-divider: #f3d8a0;   /* złoto — jak linki stopki */
}

/* ===== RESET ===== */

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

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: "Bookman Old Style", sans-serif;
    background: var(--bg-main);
    color: var(--brown-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== LAYOUT ===== */

.container {
    width: 1400px;
    max-width: 94%;
    margin: auto;
}

.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header,
header {
    background: var(--navy-main);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-header {
    padding: 20px 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--burgundy);
}

.logo img {
    max-height: 115px;
    width: auto;
    display: block;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    color: #5a2232;
    text-decoration: none;
}

/* Top header (strona główna) */

.top-header {
    padding: 25px 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-links {
    display: flex;
    gap: 30px;
}

.header-links a {
    color: var(--burgundy);
    font-weight: bold;
}

/* Linki zaloguj / zarejestruj */

.user-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-links a {
    color: var(--gold);
    border: 1px solid rgba(176,141,87,0.5);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 14px;
    font-family: "Bookman Old Style", serif;
    letter-spacing: 0.03em;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    font-weight: 600;
    text-decoration: none;
}

.user-links a:hover {
    background: var(--gold);
    color: var(--navy-main);
    border-color: var(--gold);
}

.user-links span {
    color: #d9c8aa;
    font-size: 14px;
}

.login-required {
    margin-top: 15px;
    color: #666;
}

.login-btn {
    display: inline-block;
    margin-top: 10px;
    background: var(--burgundy);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    transition: .2s;
    border: none;
}

.login-btn:hover {
    background: var(--navy-main);
}

/* ============================================================
   MENU GŁÓWNE
   ============================================================ */

/* Hamburger – domyślnie ukryty na desktopie */
.menu-toggle {
    display: none;
}

.main-menu {
    padding: 26px 0;
    position: relative;
    background: var(--menu-bg);
	border-top: 2px solid #5a2232;
    border-bottom: 2px solid var(--menu-divider);
}

.main-menu .container {
    position: relative;
}

/* Cienka górna linia */
.main-menu .container::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--menu-divider);
}

/* Cienka dolna linia */
.main-menu .container::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--menu-divider);
}

/* Górny ozdobnik */
.menu-top-ornament {
    position: absolute;
    top: -23px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 22px;
    background:
        var(--bg-main)
        url('linijka-ozdoba.jpg')
        center center / contain no-repeat;
}

/* Dolny ozdobnik */
.menu-bottom-ornament {
    position: absolute;
    bottom: -23px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 22px;
    background:
        var(--bg-main)
        url('linijka-ozdoba.jpg')
        center center / contain no-repeat;
}

.main-menu,
.main-menu .container,
.main-menu ul,
.main-menu li {
    overflow: visible;
}

.main-menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.main-menu ul,
.main-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    padding: 0 28px;
    position: relative;
}

.main-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background: var(--menu-divider);
}

.main-menu a {
    font-weight: normal;
    color: var(--menu-text);
    font-size: 15px;
    font-family: "Bookman Old Style", serif;
}

.main-menu a:hover {
    color: var(--menu-divider);
}

/* Wiersz menu + wyszukiwarka */

.menu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-search input {
    padding: 8px 14px;
    border-radius: 6px;
    width: 220px;
    color: #24364f;
    background: #F8F5ED;
    border: 1px solid var(--border);
}

.menu-search input:focus {
    outline: none;
    border-color: #7d5a45;
    box-shadow: 0 0 0 3px rgba(125,90,69,.12);
}

.search-icon {
    font-size: 20px;
    color: #5a2232;
    cursor: pointer;
}

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

.hero {
    position: relative;
    margin-top: 30px;
    min-height: 550px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 70px;
    background-image: url('hero-desktop.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-text {
    max-width: 520px;
}

.hero h1 {
    font-size: 38px;
    line-height: 1.25;
    color: #4A3525;
    margin-bottom: 20px;
    font-family: Georgia, serif;
}

.hero-ornament {
    font-size: 30px;
    color: #B08D57;
    margin: 20px 0;
}

.hero-ornament img {
    width: 220px;
    height: auto;
    display: block;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #4A3525 !important;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    background: var(--burgundy);
    color: #fff;
    text-decoration: none;
    padding: 16px 34px;
    border-radius: 8px;
    transition: .2s;
    border: none;
}

.hero-btn:hover {
    background: var(--navy-main);
}

/* Klikany overlay na hero */
.hero-overlay-link {
    position: absolute;
    left: 80px;
    bottom: 70px;
    width: 220px;
    height: 90px;
    display: block;
    cursor: pointer;
}

/* ============================================================
   OZDOBNIKI SEKCJI
   ============================================================ */

.decor-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--gold),
        var(--pea),
        var(--gold),
        transparent
    );
    margin: 25px 0;
}

.section-ornament {
    text-align: center;
    margin: -50px 0 12px;
    color: var(--pea);
    opacity: .9;
}

.section-ornament img {
    width: 150px;
    height: auto;
    opacity: 0.75;
}

/* ============================================================
   SEKCJE
   ============================================================ */

.section {
    margin-top: 100px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: center;
    font-size: 34px;
    color: var(--navy-main);
    margin-bottom: 30px;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d9c8aa;
}

.section-decor {
    width: 80px;
    height: 2px;
    background: #d9c8aa;
    margin: 18px auto 40px;
}

/* ============================================================
   PRODUKTY – SIATKA
   ============================================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ===== KARTY PRODUKTÓW ===== */

.product-card,
.product-box,
.product-item,
.card {
    background: var(--bg-box);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.product-card {
    overflow: hidden;
    padding: 16px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(74,53,37,.08);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 14px;
}

.product-category {
    font-size: 13px;
    color: #8a6b4a;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #3e2b1f;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 52px;
}

.product-price,
.price,
.current-price,
.buy-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--burgundy);
    margin-bottom: 16px;
	display: flex;
}

.product-btn {
    display: inline-block;
    background: transparent;
    color: var(--burgundy);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: .2s;
    border: 1px solid var(--burgundy);
    font-weight: 600;
}

.product-btn:hover {
    background: var(--burgundy);
    color: #fff;
}

/* Duże zdjęcie produktu */

.product-image,
.product-gallery,
.product-photo,
.main-product-image,
.product-details img:first-child {
    border: 1px solid var(--gold);
    border-radius: 12px;
    background: var(--bg-card);
    padding: 10px;
    box-sizing: border-box;
}

/* ============================================================
   KATEGORIE
   ============================================================ */

.category-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    padding-bottom: 60px;   /* odstęp od stopki */
}

.category-item {
    text-align: center;
    width: 100px;
}

a.category-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: .2s;
    outline: none;          /* usuwa kwadrat outline na mobile */
    -webkit-tap-highlight-color: transparent;  /* usuwa niebieski highlight na iOS/Android */
}

a.category-item:hover {
    transform: translateY(-4px);
}

a.category-item:hover .category-icon {
    border-color: #6E3E37;
    background: #e8d5bb;
}

.category-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8d5bb;
    border: 1px solid #c2ae8f;
    margin: 0 auto 10px;
    transition: background .2s, border-color .2s, box-shadow .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,.10);
}

.category-icon img {
    width: 68%;
    height: 68%;
    object-fit: contain;
    padding: 8px;
}

/* ============================================================
   STRONA PRODUKTU
   ============================================================ */

.product-page {
    margin-top: 40px;
    margin-bottom: 70px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
}

.product-main-image {
    padding: 10px;
    background: var(--bg-box);
    border: 2px solid var(--border);
    border-radius: 16px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.product-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.product-thumbs img {
    width: 100px;
    height: 100px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: .2s;
}

.product-thumbs img:hover {
    border-color: #5a2232;
}

.gallery-thumbs img {
    border: 2px solid transparent;
    border-radius: 8px;
    transition: .2s;
}

.gallery-thumbs img:hover {
    border-color: var(--gold);
}

.gallery-thumbs img.active {
    border-color: var(--pea);
}

.product-title {
    color: #5a2232;
    margin-bottom: 15px;
}

.product-subtitle {
    margin-top: -8px;
    margin-bottom: 16px;
    color: var(--burgundy);
    font-style: italic;
    font-size: 0.95rem;
}

.product-meta,
.product-info,
.product-specs {
    color: #666;
    margin-bottom: 18px;
    background: var(--bg-box);
    border: 1px solid var(--border);
}

.product-description,
.description-box,
.product-content {
    line-height: 1.7;
    margin-bottom: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.product-info-row {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e7d8c0;
}

/* Boks kup teraz */

.buy-box,
.auction-box,
.bid-box,
.buy-now-box,
.offer-box,
.product-sidebar {
    background: var(--bg-box);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.buy-box {
    margin-top: 25px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;

	background:#f7f4ea;
    border:1px solid #b58a4d;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.buy-price {
    display: flex;
    align-items: center;
    margin: 0;
}

/* Przyciski kontaktu i licytacji */

.contact-btn,
.buy-now-btn,
.buy-btn {
    background: var(--burgundy);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    transition: .2s;
}

.contact-btn:hover,
.buy-now-btn:hover,
.buy-btn:hover {
    background: var(--navy-main);
    color: gold;
}

/* Boks aukcji */

.auction-box {
    margin-top: 25px;
    padding: 28px;
    line-height: 1.5;
}

.auction-stats {
    display: flex;
    justify-content: space-between;
    margin: 14px 0;
    gap: 30px;
}

.auction-stats div {
    line-height: 1.5;
}

.bid-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.bid-row input {
    flex: 1;
    padding: 14px;
    background: #F7F0E4;
    border: 1px solid #C8B79A;
    border-radius: 8px;
    color: #4A3525;
}

.bid-row button {
    background: #5a2232;
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 8px;
    transition: .2s;
}

.bid-row button:hover {
    background: #6D2E2E;
    color: gold;
}

/* Przyciski licytacji */

.bid-btn,
.auction-btn,
.submit-bid-btn {
    background: var(--green-mettlach);
    color: #fff;
    border: none;
    transition: .2s;
}

.bid-btn:hover,
.auction-btn:hover,
.submit-bid-btn:hover {
    background: var(--green-mettlach-hover);
}

/* Boks szczegółów produktu */

.product-details-box {
    background: var(--bg-box);
    border: 1px solid #c9a84c !important;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-detail-row {
    display: flex;
    gap: 1px;
    padding: 2px 18px;
}

.detail-label {
    font-weight: 600;
    color: var(--brown-dark);
    min-width: 140px;
    font-size: 14px;
}

.detail-value {
    color: #555;
    font-size: 14px;
    line-height: 1.1;
    flex: 1;
}

/* Boks opisu produktu */

.product-description-box {
    margin-top: 24px;
    background: var(--bg-box);
    border: 1px solid #c9a84c;
    border-radius: 16px;
    padding: 28px;
}
.product-details-box h2,
.product-description-box h2 {
    margin: 0 0 14px;
    color: var(--brown-dark);
    font-size: 1.15rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.product-description-content {
    color: var(--brown-dark);
    line-height: 1.85;
    text-align: justify;
}

/* Sprzedany */

.sold-label {
    display: inline-block;
    background: #999;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: bold;
}

/* ============================================================
   FORMULARZ – ELEMENTY WSPÓLNE
   ============================================================ */

input,
select,
textarea {
    background: #F7F0E4;
    border: 1px solid var(--border);
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-row-2 {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: #FAF8F2;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: .3s;
    box-sizing: border-box;
}

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

.form-group textarea {
    resize: vertical;
}

.upload-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.form-group small {
    display: block;
    margin-top: 10px;
    color: #666;
    line-height: 1.6;
}

/* Checkbox regulaminu */

.regulamin-toggle {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 5px;
}

.regulamin-toggle input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

.checkbox-group {
    margin: 30px 0;
    overflow: hidden;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
    width: 100%;
}

.checkbox-group label span {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
}

.checkbox-group input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 4px;
}

/* Przycisk wyślij (formularze) */

.submit-btn {
    background: var(--burgundy);
    color: #fff;
    border: none;
    padding: 16px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;   /* POPRAWKA: było "2s" */
}

.submit-btn:hover {
    background: var(--navy-main);
    color: gold;
}

/* Consent span */

.consent span {
    display: block;
    line-height: 1.5;
}

/* ============================================================
   WYCENA
   ============================================================ */

.valuation-page {
    padding: 60px 0;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 25px;
}

/* Wspólny styl boksów wyceny */

.valuation-info,
.valuation-form-container,
.faq-container {
    background: var(--bg-box);
    border: 1px solid var(--burgundy);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 30px;
    box-sizing: border-box;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.valuation-info:hover,
.valuation-form-container:hover,
.faq-container:hover {
    border-color: var(--burgundy-dark);   /* POPRAWKA: było --burgundfy-dark */
    box-shadow: 0 4px 12px rgba(109,46,46,.08);
}

.valuation-info h2,
.valuation-form-container h2,
.faq-container h2 {
    color: var(--brown-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.valuation-info p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.valuation-info ul {
    margin-top: 18px;
    padding-left: 22px;
}

.valuation-info li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.valuation-form h2,
.faq-container h2 {
    margin-bottom: 30px;
}

.valuation-form h3 {
    margin: 35px 0 20px;
    font-size: 22px;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--brown-dark);
}

.faq-item p {
    line-height: 1.7;
    color: #555;
}

/* ============================================================
   STRONA PRODUKTU — RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .buy-box {
        flex-direction: column;
        gap: 15px;
    }

    .bid-row {
        flex-direction: column;
    }
}

/* ============================================================
   STOPKA
   ============================================================ */

.site-footer,
footer {
    background: #474e7a;
    color: #F4EBDD;
    margin-top: auto;
}

.site-footer {
    width: 100%;
    padding: 32px 14px;
    box-sizing: border-box;
    margin-top: 10px;
	border-top: 2px solid #f3d8a0;
}

.footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    color: #ffffff;
    font-size: 14px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: #f3d8a0;
    text-decoration: none;
    font-size: 15px important;
}

.footer-nav a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-color: var(--gold) !important;
    text-underline-offset: 3px;
}

/* Stary .footer (strona główna) */

.footer {
    margin-top: 90px;
    background: #474e7a;
    padding: 40px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 35px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: #f3d8a0;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Social media */

.footer-socials {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-socials .social {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    color: #fff;
}

.footer-socials .social svg {
    width: 22px;
    height: 22px;
}

.footer-socials .social:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0,0,0,.3);
}

.social-fb { background: #1877F2; }
.social-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-tt { background: #000000; }

.footer-slogan {
    text-align: center;
    color: #f3d8a0;
    font-size: 17px;
    font-style: italic;
    font-family: 'Bookman Old Style', serif;
    letter-spacing: .02em;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(243,216,160,.25);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   STRONA AUKCJI
   ============================================================ */

.auctions-page {
    padding: 60px 0 80px;
}

.auctions-title {
    text-align: center;
    font-size: 42px;
    color: #3e2010;
    margin-bottom: 12px;
    font-family: "Bookman Old Style", serif;
}

.auctions-decor {
    text-align: center;
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.auctions-decor::before,
.auctions-decor::after {
    content: '';
    width: 80px;
    height: 1px;
    background: var(--gold);
}

/* Filtry */

.auctions-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid #e0d0b8;
    background: #f5ede0;
    color: #3e2010;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
}

.filter-tab:hover,
.filter-tab.active {
    background: #5a2232;
    color: #f3d8a0;
    border-color: #5a2232;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form select {
    padding: 9px 14px;
    border: 1px solid #e0d0b8;
    border-radius: 8px;
    background: #f5ede0;
    color: #3e2010;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.filter-form select option {
    font-weight: normal;
}

/* Siatka aukcji */

.auctions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.auctions-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
    background: #f5ede0;
    border-radius: 14px;
    border: 1px solid #e0d0b8;
}

/* Karta aukcji */

.auction-card {
    background: #f5ede0;
    border: 1px solid #e0d0b8;
    border-radius: 14px;
    overflow: hidden;
    transition: .25s;
    display: flex;
    flex-direction: column;
}

.auction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

.auction-card.auction-ended {
    opacity: 0.75;
}

.auction-card-img {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
    background: #E3E8C9;
}

.auction-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}

.auction-card:hover .auction-card-img img {
    transform: scale(1.04);
}

.auction-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #c9b79b;
}

/* Odznaki czasu */

.auction-time-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.time-ok     { background: rgba(30,132,73,0.85); }
.time-soon   { background: rgba(183,119,13,0.9); }
.time-urgent { background: rgba(192,57,43,0.9); }
.time-ended  { background: rgba(100,100,100,0.85); }

.auction-sold-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #5a2232;
    color: #f3d8a0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

/* Body karty */

.auction-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.auction-card-cat {
    font-size: 12px;
    color: #8a6b4a;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.auction-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #3e2010;
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.auction-card-title:hover {
    color: #5a2232;
}

.auction-card-prices {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 14px;
    gap: 8px;
}

.auction-card-current strong {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #5a2232;
}

.auction-card-current small,
.auction-card-buynow small {
    font-size: 11px;
    color: #999;
    display: block;
    margin-bottom: 2px;
}

.auction-card-buynow span {
    font-size: 13px;
    color: #777;
}

.auction-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e0d0b8;
}

.auction-bids-count {
    font-size: 13px;
    color: #888;
}

.auction-card-btn {
    background: #6D2E2E;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    transition: .2s;
}

.auction-card-btn:hover {
    background: #7A8460;
    color: #d3f089;
}

/* ============================================================
   ALERTY LICYTACJI
   ============================================================ */

.bid-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.bid-alert-error {
    background: #fdecea;
    border: 1px solid #f5c6c6;
    color: #c0392b;
}

.bid-alert-success {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    color: #1e8449;
}

.bid-alert-warning {
    background: #fef9e7;
    border: 1px solid #f9e79f;
    color: #7d6608;
}

.bid-alert-warning a {
    color: #5a2232;
    font-weight: 600;
}

/* ============================================================
   TABELA ADMINA
   ============================================================ */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    background: #5a2232;
    color: #f3d8a0;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #fdf8f2;
}

.row-blocked td {
    background: #fff5f5;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.badge-ok    { color: #1e8449; font-weight: 600; }
.badge-warn  { color: #b7770d; font-weight: 600; }
.badge-block { color: #c0392b; font-weight: 600; }

.alert-ok {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    color: #1e8449;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Ikona weryfikacji */

.verify-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f5ede0;
    border: 2px solid #b89b62;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

/* ============================================================
   PRZYCISK POWRÓT
   ============================================================ */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5a2232;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    padding: 8px 14px;
    border: 1px solid #e0d0b8;
    border-radius: 8px;
    background: #f5ede0;
    transition: .2s;
}

.back-link:hover {
    background: #4a3f35;
    color: #f3d8a0;
    border-color: #4a3f35;
}

/* ============================================================
   JAK KUPOWAĆ
   ============================================================ */

.how-to-page {
    padding: 60px 0 80px;
}

.how-to-title {
    text-align: center;
    font-size: 42px;
    color: #3e2010;
    margin-bottom: 12px;
    font-family: "Bookman Old Style", serif;
}

.how-to-decor {
    text-align: center;
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.how-to-decor::before,
.how-to-decor::after {
    content: '';
    width: 80px;
    height: 1px;
    background: var(--gold);
}

.how-to-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.how-to-step,
.how-to-contact {
    background: #f5ede0;
    border: 1px solid #e0d0b8;
    border-radius: 14px;
    box-shadow: none;
}

.how-to-step {
    padding: 28px 32px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.step-number {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: #5a2232;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    font-family: "Bookman Old Style", serif;
}

.step-content h2 {
    font-size: 20px;
    color: var(--brown-dark);
    margin-bottom: 10px;
    font-family: "Bookman Old Style", serif;
}

.step-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
}

.step-content ul {
    padding-left: 20px;
    color: #555;
    line-height: 1.9;
}

.step-content ul li {
    margin-bottom: 2px;
}

.how-to-guarantee {
    background: #f5ede0;
    border: 1px solid #e0d0b8;
    border-radius: 14px;
    padding: 30px 32px;
    margin-bottom: 20px;
}

.how-to-guarantee h2 {
    font-size: 20px;
    color: var(--brown-dark);
    margin-bottom: 12px;
    font-family: "Bookman Old Style", serif;
}

.how-to-guarantee p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.how-to-guarantee a {
    color: #5a2232;
    font-weight: 600;
    text-decoration: underline;
}

.how-to-contact {
    padding: 36px 32px;
    text-align: center;
}

.how-to-contact h2 {
    font-size: 26px;
    color: var(--brown-dark);
    margin-bottom: 10px;
    font-family: "Bookman Old Style", serif;
}

.how-to-contact p {
    color: #666;
    margin-bottom: 22px;
    font-size: 15px;
}

.how-to-btn {
    display: inline-block;
    background: #5a2232;
    color: #fff;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 1px;
    transition: .2s;
}

.how-to-btn:hover {
    background: #7a3248;
}

/* ============================================================
   O NAS
   ============================================================ */

.about-page {
    padding: 60px 0 80px;
}

.about-title {
    text-align: center;
    font-size: 42px;
    color: #3e2010;
    margin-bottom: 12px;
    font-family: "Bookman Old Style", serif;
}

.about-decor {
    text-align: center;
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.about-decor::before,
.about-decor::after {
    content: '';
    width: 80px;
    height: 1px;
    background: var(--gold);
}

.about-box {
    background: #f5ede0;
    border: 1px solid #e0d0b8;
    border-radius: 14px;
    padding: 30px 32px;
    margin-bottom: 24px;
}

.about-box h2 {
    font-size: 22px;
    color: var(--brown-dark);
    margin-bottom: 16px;
    font-family: "Bookman Old Style", serif;
}

.about-box p {
    color: #555;
    line-height: 1.75;
    margin-bottom: 12px;
}

.about-box p:last-child {
    margin-bottom: 0;
}

.about-box strong {
    color: #5a2232;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.about-stat {
    background: #f5ede0;
    border: 1px solid #e0d0b8;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
}

.about-stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
    color: #b89b62;
}

.about-stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #5a2232;
    font-family: "Bookman Old Style", serif;
    margin-bottom: 6px;
}

.about-stat-label {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.about-features li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-check {
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: #5a2232;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    margin-top: 2px;
}

.about-features strong {
    display: block;
    font-size: 16px;
    color: #3e2010;
    margin-bottom: 4px;
}

.about-features p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   KONTAKT
   ============================================================ */

.contact-page {
    padding: 60px 0 80px;
}

.contact-title {
    text-align: center;
    font-size: 42px;
    color: #3e2010;
    margin-bottom: 12px;
    font-family: "Bookman Old Style", serif;
}

.contact-decor {
    text-align: center;
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.contact-decor::before,
.contact-decor::after {
    content: '';
    width: 80px;
    height: 1px;
    background: var(--gold);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.contact-box {
    background: #f5ede0;
    border: 1px solid #e0d0b8;
    border-radius: 14px;
    padding: 30px 32px;
    box-sizing: border-box;
}

.contact-box h2 {
    font-size: 22px;
    color: var(--brown-dark);
    margin-bottom: 24px;
    font-family: "Bookman Old Style", serif;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    box-sizing: border-box;
}

.contact-form-group {
    margin-bottom: 18px;
}

.contact-form-group label {
    display: block;
    font-size: 14px;
    color: #3e2010;
    margin-bottom: 6px;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #2b2b2b;
    box-sizing: border-box;
    transition: .2s;
}

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

.contact-form-group textarea {
    resize: vertical;
}

.contact-submit {
    width: 100%;
    background: #5a2232;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .2s;
    margin-top: 6px;
}

.contact-submit:hover {
    background: #7a3248;
    color: #fff;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-info-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #fff;
    border: 1px solid #e0d0b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-list strong {
    display: block;
    font-size: 15px;
    color: #3e2010;
    margin-bottom: 2px;
}

.contact-info-list span {
    font-size: 14px;
    color: #666;
}

.contact-valuation p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.contact-valuation-btn {
    display: block;
    text-align: center;
    background: transparent;
    color: #3e2010;
    border: 1px solid #b89b62;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: .2s;
}

.contact-valuation-btn:hover {
    background: #4a3f35;
    color: #f3d8a0;
    border-color: #4a3f35;
}

/* ============================================================
   STRONA PODZIĘKOWANIA
   ============================================================ */

.thankyou-page {
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.thankyou-box {
    background: #f5ede0;
    border: 1px solid #e0d0b8;
    border-radius: 14px;
    padding: 50px 40px;
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.thankyou-icon {
    width: 64px;
    height: 64px;
    background: #5a2232;
    color: #fff;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.thankyou-box h1 {
    font-size: 28px;
    color: var(--brown-dark);
    font-family: "Bookman Old Style", serif;
    margin-bottom: 20px;
}

.thankyou-box p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.thankyou-box a {
    color: #5a2232;
    font-weight: 600;
}

.thankyou-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.thankyou-btn {
    background: #5a2232;
    color: #fff !important;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: .2s;
}

.thankyou-btn:hover {
    background: #7a3248;
}

.thankyou-btn-outline {
    background: transparent;
    color: #5a2232 !important;
    border: 1px solid #b89b62;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: .2s;
}

.thankyou-btn-outline:hover {
    background: #4a3f35;
    color: #f3d8a0 !important;
    border-color: #4a3f35;
}

/* ============================================================
   STRONY PRAWNE (regulamin, prywatność)
   ============================================================ */

.legal-page {
    padding: 60px 0 80px;
}

.legal-title {
    text-align: center;
    font-size: 36px;
    color: #3e2010;
    margin-bottom: 12px;
    font-family: "Bookman Old Style", serif;
}

.legal-decor {
    text-align: center;
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.legal-decor::before,
.legal-decor::after {
    content: '';
    width: 80px;
    height: 1px;
    background: var(--gold);
}

.legal-box {
    background: #f5ede0;
    border: 1px solid #e0d0b8;
    border-radius: 14px;
    padding: 40px 48px;
    max-width: 860px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid #e0d0b8;
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 18px;
    color: var(--brown-dark);
    font-family: "Bookman Old Style", serif;
    margin-bottom: 14px;
}

.legal-section p {
    color: #555;
    line-height: 1.75;
    margin-bottom: 10px;
}

.legal-section ol,
.legal-section ul {
    padding-left: 22px;
    color: #555;
    line-height: 1.85;
}

.legal-section ol li,
.legal-section ul li {
    margin-bottom: 6px;
}

.legal-section ul ul,
.legal-section ol ul {
    margin-top: 6px;
    margin-bottom: 6px;
}

.legal-section strong {
    color: #3e2010;
}

/* Tabela postąpień */

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.legal-table th {
    background: #5a2232;
    color: #f3d8a0;
    padding: 10px 16px;
    text-align: left;
    font-family: "Bookman Old Style", serif;
}

.legal-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e0d0b8;
    color: #555;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:nth-child(even) td {
    background: rgba(180,155,98,0.08);
}

/* Nawigacja między regulaminami */

.legal-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-nav a {
    color: #5a2232;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border: 1px solid #b89b62;
    border-radius: 8px;
    transition: .2s;
}

.legal-nav a:hover {
    background: #4a3f35;
    color: #f3d8a0;
    border-color: #4a3f35;
}

/* ============================================================
   LOGOWANIE / REJESTRACJA
   ============================================================ */

.auth-page {
    padding: 50px 0 30px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: flex-start;
}

.auth-box {
    width: 480px;
    max-width: 94%;
    margin: 0 auto;
    background: #f5ede0;
    border: 1px solid #e0d0b8;
    border-radius: 14px;
    padding: 40px;
}

.auth-box h1 {
    text-align: center;
    font-size: 28px;
    color: var(--brown-dark);
    font-family: "Bookman Old Style", serif;
    margin-bottom: 28px;
}

.auth-error {
    background: #fdecea;
    border: 1px solid #f5c6c6;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-success {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    color: #1e8449;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    transition: .2s;
}

.auth-group input:focus {
    outline: none;
    border-color: #b89b62;
}

.auth-consent {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.auth-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    flex-wrap: wrap;
}

.auth-consent label span {
    max-width: 100%;
    flex: 1;
    min-width: 0;
}

.auth-consent input[type="checkbox"] {
    margin-top: 3px;
    min-width: 16px;
    flex-shrink: 0;
}

.auth-consent a {
    color: #5a2232;
    font-weight: 600;
    text-decoration: underline;
    white-space: normal;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: #5a2232;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
    margin-top: 6px;
}

.auth-btn:hover {
    background: #7a3248;
}

.auth-links {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.auth-links a {
    color: #5a2232;
    font-weight: 600;
}

.auth-legal {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.auth-legal a {
    color: #999;
    text-decoration: underline;
}

/* ============================================================
   WSPÓLNE PADDING STRON WEWNĘTRZNYCH
   ============================================================ */

.auth-page,
.contact-page,
.legal-page,
.how-to-page,
.valuation-page {
    padding-bottom: 40px !important;
    margin-bottom: 0 !important;
}

/* Tytuł w nagłówku mobile */

.header-site-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #5a2232;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    text-shadow: 0 1px 3px rgba(0,0,0,.30);
    font-family: Georgia, serif;
    user-select: none;
}

/* Nagłówki globalne */

h1, h2, h3 {
    color: var(--brown-dark);
}

/* ============================================================
   MOBILE + TABLET HEADER (do 1024px)
   ============================================================ */

@media (max-width: 1024px) {

    .site-header {
        background: var(--navy-main);
        padding: 0;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        min-height: 64px;
        position: relative;
    }

    .logo {
        display: flex;
        align-items: stretch;
        z-index: 1;
    }

    .logo a {
        display: flex;
        align-items: center;
        padding: 0 4px;
    }

    .logo img {
        max-height: 52px;
        width: auto;
    }

    /* Napis ANTYKI-REX na środku */
    .header-top::before {
        content: 'ANTYKI-REX';
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        text-align: center;
        padding: 0 70px 0 95px;
        color: #f3d8a0;
        font-size: 16px;
        font-weight: bold;
        letter-spacing: 2px;
        font-family: 'Bookman Old Style', serif;
        pointer-events: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-shadow: 0 1px 3px rgba(0,0,0,.30);
    }

    .user-links {
        display: none !important;
    }

    /* Hamburger po prawej */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.22);
        border: none;
        border-radius: 8px;
        font-size: 26px;
        color: #f5e6c8;
        cursor: pointer;
        padding: 0 14px;
        margin: 10px 12px;
        line-height: 1;
        z-index: 1;
    }

    .main-menu {
        padding: 0;
        background: #DCD8C2;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .main-menu.menu-hidden {
        display: none;
    }

    .main-menu .container::before,
    .main-menu .container::after {
        display: none;
    }

    .menu-top-ornament,
    .menu-bottom-ornament {
        display: none;
    }

    .menu-row {
        display: none;
    }

    .menu-row.active {
        display: block;
        padding: 8px 0;
        border-top: 1px solid rgba(90,34,50,0.15);
    }

    .main-menu ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        text-align: left;
        padding: 0;
    }

    .main-menu li {
        padding: 0;
    }

    .main-menu li::after {
        display: none;
    }

    .main-menu li a {
        display: block;
        padding: 13px 20px;
        font-size: 15px;
        color: #3e2010;
        border-bottom: 0.5px solid rgba(90,34,50,0.12);
    }

    .main-menu li a:hover {
        background: rgba(90,34,50,0.08);
    }

    .mobile-only {
        border-top: none;
    }

    .mobile-only:first-of-type {
        border-top: 1px solid rgba(90,34,50,0.25);
    }

    .mobile-only a {
        color: #5a2232 !important;
        font-weight: 600;
        border-bottom: none;
    }

    .menu-search {
        margin: 10px 20px 8px;
        display: flex;
        gap: 8px;
    }

    .menu-search input {
        width: 100%;
    }

    /* Strony wewnętrzne */

    .how-to-title,
    .about-title,
    .contact-title,
    .auctions-title {
        font-size: 32px;
    }

    .how-to-step {
        padding: 22px 20px;
        gap: 18px;
    }

    .how-to-guarantee,
    .how-to-contact {
        padding: 24px 20px;
    }

    .about-box {
        padding: 24px 20px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 24px 20px;
    }

    .legal-title {
        font-size: 28px;
    }

    .legal-box {
        padding: 30px 24px;
    }

    .auctions-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .auctions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ============================================================
   DESKTOP MENU (od 1025px)
   ============================================================ */

@media (min-width: 1025px) {

    .menu-toggle {
        display: none;
    }

    .menu-row {
        display: flex !important;
    }

    .main-menu ul {
        flex-wrap: nowrap;
    }

    .main-menu li {
        padding: 0 36px !important;
    }

    .main-menu a {
        white-space: nowrap;
        font-size: 15px;
        font-family: "Bookman Old Style", serif;
    }

    .user-links a {
        white-space: nowrap;
        font-size: 14px;
    }

    .menu-search input {
        width: 160px;
    }

    .mobile-only {
        display: none;
    }
}

/* ============================================================
   MOBILE 768px
   ============================================================ */

@media (max-width: 768px) {

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 18px;
    }

    .top-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .logo {
        font-size: 32px;
    }

    .header-links {
        display: flex;
        gap: 15px;
        font-size: 14px;
    }

    /* Hero */

    .hero {
        min-height: 650px;
        margin-top: 0;
        padding: 70px 25px 40px;
        align-items: flex-start;
        background-image: url('hero-mobile.jpg');
        background-size: cover;
        background-position: center top;
        border-radius: 0;      /* usunięcie zaokrągleń na mobile */
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 36px;
    }

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

    .hero-btn {
        padding: 14px 24px;
    }

    .hero-ornament {
        display: flex;
        justify-content: center;
    }

    .hero-overlay-link {
        left: 25px;
        bottom: 25px;
        width: 170px;
        height: 50px;
    }

    /* Siatki */

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

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

    .category-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .about-stat {
        padding: 20px;
    }

    /* Formularze */

    .form-row-2 {
        flex-direction: column;
        gap: 0;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .valuation-form-container,
    .faq-container,
    .valuation-info {
        padding: 25px;
    }

    .checkbox-group label {
        width: 100%;
        font-size: 13px;
        line-height: 1.5;
    }

    .consent span {
        font-size: 13px;
    }

    /* Jak kupować */

    .how-to-step {
        flex-direction: column;
        gap: 12px;
    }

    /* Produkt */

    .product-layout {
        grid-template-columns: 1fr;
    }

    .buy-box {
        flex-direction: column;
        gap: 15px;
    }

    .bid-row {
        flex-direction: column;
    }

    .auction-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 15px;
    }

    .all-bids-link,
    .all-bids-disabled {
        display: block;
        text-align: center;
        font-size: 14px;
    }

    /* Auth */

    .auth-box {
        padding: 28px 20px;
    }

    /* Kontakt */

    .contact-box {
        padding: 20px 16px;
        box-sizing: border-box;
    }

    .contact-page .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .cf-turnstile {
        max-width: 100%;
        overflow: hidden;
    }

    iframe {
        max-width: 100%;
    }

    /* Podziękowanie */

    .thankyou-box {
        padding: 36px 24px;
    }

    .thankyou-actions {
        flex-direction: column;
    }

    /* Stopka */

    .site-footer {
        padding: 20px 14px;
        overflow: visible;
    }

    .footer-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center;
        gap: 14px;
        text-align: center;
        width: 100%;
    }

    .footer-copy {
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-nav {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
    }

    .footer-nav a {
        font-size: 11px;
    }

    .footer-socials {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ============================================================
   MOBILE 600px — aukcje
   ============================================================ */

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

    .filter-tabs {
        width: 100%;
    }

    .filter-tab {
        flex: 1;
        text-align: center;
    }
}

/* ============================================================
   MOBILE 480px — hero
   ============================================================ */

@media (max-width: 480px) {
    .hero {
        min-height: 600px;
        padding: 30px 20px;
        border-radius: 0;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }
}

/* ============================================================
   AUKCJE RESPONSIVE — 1200px
   ============================================================ */

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

/* ===== UDOSTĘPNIANIE ===== */

.share-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.share-box span {
    font-size: 14px;
    color: #555;
    margin-right: 4px;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.share-icon svg {
    width: 20px;
    height: 20px;
}

.share-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0,0,0,.22);
}

.share-fb  { background: #1877F2; }
.share-wa  { background: #25D366; }
.share-pin { background: #E60023; }

/* ===== META PRODUKTU ===== */

.product-meta{
    margin:0 0 14px;
    color:#8a7e67;
    font-size:0.78rem;
    padding:0;
    background:none;
    border:none;
    box-shadow:none;
}

/* ===== PODOBNE ANTYKI ===== */

.related-products{
    margin-top:50px;
	margin-bottom: 70px;
}

.related-products h2{
    text-align:center;
    margin-bottom:30px;
}

.related-products .products-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

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

@media(max-width:600px){
    .related-products .products-grid{
        grid-template-columns:1fr;
    }
}

/* ===== POŁĄCZONY BOKS INFORMACJI ===== */

.product-info-box{
    background:#f8f4ea;
    border:1px solid #cdbca4;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:16px;
}

.product-info-box .product-details-box{
    border:none;
    background:transparent;
    margin:0;
    box-shadow:none;
    padding:2px 18px;
}

.product-info-box .product-description-box{
    border:none;
    background:transparent;
    margin:0;
    box-shadow:none;
    padding:16px 18px 18px;
}

.info-divider{
    height:1px;
    background:#ddd0b8;
    margin:0 18px;
}

.product-info-box .product-details-box{
    border:none !important;
    background:transparent !important;
    box-shadow:none !important;
    margin:0 !important;
    border-radius:0 !important;
}

.product-details-box{
	padding: 2px 18px;
}

@media (max-width: 768px) {
    .search-dropdown {
        position: fixed !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        top: 110px !important;
    }
}