/*
Theme Name: ArtPiko Sklep
Description: Minimalistyczny motyw stworzony pod WooCommerce na bazie własnego projektu.
Author: Compass
Version: 1.3
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: artpiko-sklep
*/

/* ==========================================================
   PALETA KOLORÓW — dopasowana do logo ArtPiko
   Zmiana tych kilku zmiennych zmienia kolorystykę całej strony.
   ========================================================== */
:root {
    --color-bg: #f8faf9;
    --color-text: #3a3a3a;
    --color-text-muted: #6b6b6b;

    --color-mint: #99e1d9;       /* główny akcent (przyciski, hover) */
    --color-mint-dark: #64b3aa;  /* ciemniejszy turkus, hover/aktywne */
    --color-mint-pale: #eaf9f7;  /* bardzo jasny turkus, tła hover */

    --color-pink: #f6b8d6;       /* akcent różowy z logo */
    --color-pink-dark: #e893bf;  /* ciemniejszy róż, do tekstu/hover */
    --color-pink-pale: #fdeef6;  /* bardzo jasny róż, tła/badge */

    --color-white: #ffffff;
    --color-border: #eaf1f0;
}

/* Reset i główne style */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: 0.2px; color: #2c2c2c; }

/* --- LINKI: bazowy reset, żeby nigdy nie pojawił się domyślny
       niebieski/fioletowy kolor odwiedzonego linku przeglądarki --- */
a,
a:link,
a:visited {
    color: inherit;
    text-decoration: none;
}
a:hover,
a:focus,
a:active {
    color: inherit;
}

/* --- STRUKTURA GŁÓWNA (Sticky Footer) --- */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.shop-section { flex-grow: 1; max-width: 1200px; margin: 50px auto; padding: 0 20px; width: 100%; }

/* --- NAGŁÓWEK I LOGO --- */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; flex-wrap: wrap; }

.logo-link, .custom-logo-link { display: block; }
.custom-logo-link img { max-height: 72px; width: auto; display: block; transition: transform 0.25s ease; }
.custom-logo-link:hover img { transform: scale(1.03); }
.site-logo-text { font-size: 22px; font-weight: 700; letter-spacing: 0.5px; color: #2c4a46; }

/* --- MENU GŁÓWNE --- */
.menu { display: flex; list-style: none; flex-wrap: wrap; align-items: center; }
.menu li { margin-left: 8px; position: relative; }
.menu a,
.menu a:link,
.menu a:visited {
    display: inline-block;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 9px 14px;
    border-radius: 6px;
    transition: color 0.25s ease, background-color 0.25s ease;
}
.menu a:hover,
.menu a:focus {
    color: var(--color-mint-dark);
    background-color: var(--color-mint-pale);
}

/* Aktualnie otwarta strona w menu — subtelne różowe podkreślenie,
   niezależnie od tego, czy link był wcześniej odwiedzony */
.menu li.current-menu-item > a,
.menu li.current_page_item > a,
.menu li.current-menu-item > a:visited,
.menu li.current_page_item > a:visited {
    color: #2c2c2c;
    box-shadow: inset 0 -2px 0 var(--color-pink);
    border-radius: 6px 6px 0 0;
}

/* --- SKLEP I PRZYCISKI --- */
.buy-btn,
.buy-btn:link,
.buy-btn:visited {
    display: inline-block;
    background-color: var(--color-mint);
    color: #2c2c2c;
    text-align: center;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 6px rgba(100, 179, 170, 0.35);
}
.buy-btn:hover,
.buy-btn:focus {
    background-color: var(--color-mint-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(100, 179, 170, 0.4);
}

/* Drugi, różowy wariant przycisku — do wyróżnienia promocji/CTA */
.buy-btn-alt,
.buy-btn-alt:link,
.buy-btn-alt:visited {
    display: inline-block;
    background-color: var(--color-pink-pale);
    color: var(--color-pink-dark);
    text-align: center;
    padding: 12px 28px;
    border: 1.5px solid var(--color-pink);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: 0.25s ease;
}
.buy-btn-alt:hover,
.buy-btn-alt:focus {
    background-color: var(--color-pink);
    color: #ffffff;
}

/* --- STOPKA --- */
.site-footer {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 45px 20px 20px 20px;
    margin-top: auto; /* dopycha stopkę na dół */
}
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-links h3 {
    font-size: 17px;
    margin-bottom: 18px;
    color: #2c4a46;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
/* Mały różowy akcent pod nagłówkiem stopki */
.footer-links h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--color-pink);
}

/* Menu w stopce */
.footer-menu-list { list-style: none; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.footer-menu-list a,
.footer-menu-list a:link,
.footer-menu-list a:visited {
    color: var(--color-text-muted);
    font-size: 14px;
    transition: color 0.25s ease;
}
.footer-menu-list a:hover,
.footer-menu-list a:focus {
    color: var(--color-pink-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
    color: #999999;
    margin-top: 30px;
    border-top: 1px solid var(--color-border);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* --- WIDOK MOBILNY (Telefony i tablety) --- */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 16px; text-align: center; }
    .custom-logo-link img { max-height: 64px; }
    .menu { justify-content: center; width: 100%; padding: 0; }
    .menu li { margin: 4px 6px; }
    .footer-menu-list { flex-direction: column; gap: 15px; }
    .shop-section { margin: 30px auto; }
}
