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

:root {
    --gold: #d4af37;
    --black: #0b0b0b;
    --dark-grey: #1a1a1a;
    --light-grey: #f4f4f4;
    --white: #ffffff;
}

body { font-family: 'Poppins', sans-serif; background-color: var(--light-grey); overflow-x: hidden; }

/* Kontener trzymający stronę w ryzach (Header nie wyjdzie poza 1200px) */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* --- NAGŁÓWEK --- */
.site-header {
    background-color: var(--black);
    color: var(--white);
    margin-top: 20px;
    border-radius: 15px 15px 0 0;
    border-bottom: 3px solid var(--gold);
    position: relative;
    z-index: 1000;
}

.top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 25px 30px; 
    gap: 30px; 
}

.menu-toggle { display: none; background: none; border: none; color: white; font-size: 28px; cursor: pointer; }

/* POWIĘKSZONE LOGO */
.logo img { height: 60px; display: block; }

/* SZUKAJKA */
.search-box { flex: 1; max-width: 450px; }
.search-box form { display: flex; background: rgba(255,255,255,0.1); border: 1px solid #333; border-radius: 30px; overflow: hidden; }
.search-box input { border: none; padding: 12px 25px; width: 100%; outline: none; background: transparent; color: white; font-size: 14px; }
.search-box button { background: var(--gold); border: none; padding: 0 20px; cursor: pointer; color: white; font-size: 18px; }

/* POWIĘKSZONE IKONY AKCJI */
.user-actions { display: flex; gap: 30px; align-items: center; }
.action-wrapper { position: relative; padding-bottom: 10px; margin-bottom: -10px; }

.action-item { 
    text-align: center; 
    color: white; 
    text-decoration: none; 
    font-size: 11px; 
    text-transform: uppercase; 
    font-weight: 600; 
}
.action-item i { 
    display: block; 
    font-size: 24px; 
    margin-bottom: 5px; 
    transition: 0.3s;
}
.action-item:hover { color: var(--gold); }

/* TOOLTIP KONTAKT */
.contact-tooltip {
    position: absolute; top: 75px; left: 50%; transform: translateX(-50%) translateY(10px);
    background: white; color: #333; padding: 20px; width: 220px; border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); text-align: center; visibility: hidden; opacity: 0; transition: 0.3s; z-index: 1010;
}
.contact-tooltip p { margin: 5px 0; font-size: 12px; text-transform: none; color: #444; }
.contact-tooltip strong { color: #888; font-size: 10px; text-transform: uppercase; }
.contact-tooltip a { color: var(--gold); text-decoration: none; font-weight: bold; font-size: 14px; }
.contact-tooltip hr { border: 0; border-top: 1px solid #eee; margin: 12px 0; }
/* Most łączący */
.contact-tooltip::after { content: ''; position: absolute; top: -35px; left: 0; width: 100%; height: 35px; }
.action-wrapper:hover .contact-tooltip { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- NAWIGACJA --- */
.main-nav { background: var(--dark-grey); padding: 0 10px; }
.menu-list { list-style: none; display: flex; justify-content: center; }
.menu-list > li > a { 
    display: block; padding: 20px 25px; color: white; text-decoration: none; 
    font-size: 13px; font-weight: 600; text-transform: uppercase; transition: 0.3s;
}
.menu-list > li:hover > a { color: var(--gold); }

/* MEGA MENU */
.mega-sub-menu {
    position: absolute; top: 100%; left: 0; width: 100%; background: #1f1f1f;
    border-bottom: 5px solid var(--gold); padding: 40px 0; z-index: 999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); display: none; opacity: 0;
    transform: translateY(15px); transition: 0.3s;
}

@media (min-width: 769px) {
    .menu-list li:hover .mega-sub-menu { display: block; opacity: 1; transform: translateY(0); }
}

.mega-row { display: flex; max-width: 1100px; margin: 0 auto; gap: 40px; padding: 0 20px; }
.mega-column { flex: 1; }
.mega-column h3 { color: var(--gold); font-size: 14px; margin-bottom: 18px; border-bottom: 1px solid #333; padding-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.mega-column a { color: #ccc; text-decoration: none; display: block; font-size: 14px; margin: 10px 0; transition: 0.2s; }
.mega-column a:hover { color: white; padding-left: 5px; }

/* PROMO BOX */
.mega-promo { flex: 1.5; }
.promo-box { position: relative; border-radius: 10px; overflow: hidden; height: 180px; }
.promo-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.promo-text { position: absolute; bottom: 20px; left: 20px; color: white; }
.promo-text h4 { font-size: 18px; margin: 5px 0; }
.btn-mini { background: var(--gold); color: black !important; padding: 6px 15px !important; font-size: 12px !important; border-radius: 5px; font-weight: bold; }

/* MOBILNE */
@media (max-width: 768px) {
    .top-bar { flex-wrap: wrap; padding: 15px 20px; gap: 10px; }
    .logo { order: 1; }
    .logo img { height: 45px; }
    .user-actions { order: 2; margin-left: auto; gap: 20px; }
    .menu-toggle { display: block; order: 3; margin-left: 10px; }
    .search-box { order: 4; flex: 100%; max-width: 100%; margin-top: 10px; }
    
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; }
    .main-nav.active { display: block; }
    .menu-list { flex-direction: column; }
    .mega-sub-menu { position: relative; opacity: 1; transform: none; display: none; padding: 10px 20px; }
    .has-mega-menu.open .mega-sub-menu { display: block; }
}

/* --- SEKCJA PRODUKTÓW --- */
.section-header {
    text-align: center;
    margin: 50px 0 30px;
}

.section-title {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--black);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
}

.section-header p {
    color: #777;
    margin-top: 10px;
    font-size: 14px;
}

/* GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolumny na desktopie */
    gap: 30px;
    margin-bottom: 60px;
}

/* KARTA PRODUKTU */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid #eee;
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Przyciski na zdjęciu (pojawiają się po najechaniu) */
.product-actions {
    position: absolute;
    bottom: -50px; /* Ukryte pod krawędzią */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    transition: 0.3s;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    color: var(--black);
}

.product-actions button:hover {
    background: var(--gold);
    color: white;
}

/* Etykiety (Nowość/Promo) */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    z-index: 10;
    border-radius: 3px;
}
.badge.new { background: var(--black); }
.badge.sale { background: #c0392b; }

/* INFO O PRODUKCIE */
.product-info {
    padding: 20px;
    text-align: center;
}

.product-info .category {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.product-name {
    font-size: 15px;
    color: var(--black);
    margin-bottom: 10px;
    font-weight: 600;
}

.price {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--black);
}

.old-price {
    font-size: 14px;
    color: #aaa;
    text-decoration: line-through;
}

/* RESPONSYWNOŚĆ PRODUKTÓW */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-image { height: 200px; }
    .product-actions { display: none; } /* Na dotyku przyciski mogą przeszkadzać */
}

@media (max-width: 480px) {
    .section-title { font-size: 22px; }
}
/* --- HERO BANNER --- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 70vh; /* Banner zajmuje 70% wysokości ekranu */
    min-height: 500px;
    background: url('img/hero-banner.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 600px;
    color: var(--white);
}

.hero-subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-text h1 span {
    color: var(--gold);
}

.hero-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 35px;
}

/* PRZYCISKI W BANNERZE */
.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 13px 35px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

/* RESPONSYWNOŚĆ BANNERA */
@media (max-width: 768px) {
    .hero-banner { height: 50vh; text-align: center; }
    .hero-overlay { background: rgba(0,0,0,0.6); }
    .hero-text { margin: 0 auto; }
    .hero-text h1 { font-size: 32px; }
    .hero-btns { justify-content: center; flex-direction: column; gap: 10px; }
    .hero-btns a { width: 100%; }
}
