/* ============================================================
   ps_countryorigin — stylesheet
   Styl: przezroczysty / glassmorphism — pasuje do ciemnych motywów
   ============================================================ */

/* -------- Widget boczny -------- */
.co-widget {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.co-widget .block-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: inherit;
    opacity: .75;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.co-globe-icon {
    font-size: 17px !important;
    vertical-align: middle;
    opacity: .8;
}

/* -- lista tekstowa -- */
.co-text-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.co-text-list li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.co-text-list li:last-child { border-bottom: none; }

.co-text-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 4px;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    opacity: .85;
    transition: opacity .15s, padding-left .15s;
}
.co-text-item:hover {
    opacity: 1;
    padding-left: 6px;
    text-decoration: none;
    color: inherit;
}

.co-emoji-sm { font-size: 20px; line-height: 1; flex-shrink: 0; }
.co-item-name { flex: 1; }
.co-item-badge {
    background: rgba(255,255,255,0.13);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}

.co-more-link {
    display: block;
    text-align: right;
    font-size: 12px;
    color: inherit;
    opacity: .6;
    margin-top: 10px;
    text-decoration: none;
}
.co-more-link:hover { opacity: 1; text-decoration: none; color: inherit; }

/* -- dropdown -- */
.co-dropdown-wrap .select-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    font-size: 13px;
    color: inherit;
    cursor: pointer;
    background: rgba(255,255,255,0.07);
    transition: border-color .15s, background .15s;
}
.co-dropdown-wrap .select-title:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.3);
}
.co-dd-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    padding: 8px 16px;
}
.co-dd-count { opacity: .5; font-size: 11px; margin-left: auto; }

/* -- siatka flag -- */
.co-flags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.co-flag-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 11px;
    min-width: 58px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    transition: transform .15s, border-color .15s, background .15s;
}
.co-flag-tile:hover {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.co-emoji { font-size: 28px; line-height: 1.2; }
.co-tile-name  { margin-top: 4px; font-size: 10px; line-height: 1.2; opacity: .8; }
.co-tile-count {
    font-size: 10px;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 0 5px;
    margin-top: 3px;
    line-height: 1.7;
}

/* -------- Odznaka produktu -------- */
.co-product-badge { margin: 12px 0 4px; }

.co-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-left: 3px solid rgba(255,255,255,0.45);
    border-radius: 8px;
    padding: 10px 18px;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    transition: background .15s, border-color .15s;
    backdrop-filter: blur(4px);
}
.co-badge-link:hover {
    background: rgba(255,255,255,0.12);
    border-left-color: rgba(255,255,255,0.75);
    text-decoration: none;
    color: inherit;
}
.co-badge-emoji { font-size: 28px; line-height: 1; flex-shrink: 0; }
.co-badge-label { opacity: .55; font-size: 11px; letter-spacing: .3px; }
.co-badge-name  { font-weight: 700; font-size: 15px; }

/* -------- Strona front -------- */
.co-page { max-width: 1200px; margin: 0 auto; }
.co-page-intro {
    opacity: .7;
    font-size: 15px;
    margin-bottom: 28px;
}

/* Siatka kart krajów */
.co-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}
.co-country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 12px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.co-country-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
    text-decoration: none;
    color: inherit;
}
.co-card-flag  { font-size: 52px; line-height: 1; margin-bottom: 10px; }
.co-card-name  { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.co-card-count { font-size: 12px; opacity: .5; }
.co-country-card:hover .co-card-count { opacity: .8; }

/* Nagłówek kraju */
.co-country-header {
    display: flex;
    align-items: center;
    gap: 22px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 28px 36px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    backdrop-filter: blur(6px);
}
.co-hero-flag  { font-size: 72px; line-height: 1; flex-shrink: 0; }
.co-hero-info  { flex: 1; }
.co-hero-name  { font-size: 26px; font-weight: 900; margin: 0 0 5px; }
.co-hero-count { opacity: .6; font-size: 14px; margin: 0; }

.co-back-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}
.co-back-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
    text-decoration: none;
    color: inherit;
}

/* Siatka produktów */
.co-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}
.co-prod-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(6px);
    transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.co-prod-card:hover {
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 10px 28px rgba(0,0,0,.3);
    transform: translateY(-3px);
}

.co-prod-img-link {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: rgba(0,0,0,.2);
}
.co-prod-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.co-prod-card:hover .co-prod-img { transform: scale(1.05); }

.co-prod-no-img {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .25;
}
.co-prod-no-img .material-icons { font-size: 48px; }

.co-prod-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.co-prod-name {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    line-height: 1.4;
    opacity: .9;
}
.co-prod-name:hover { opacity: 1; text-decoration: none; color: inherit; }
.co-prod-desc {
    font-size: 12px;
    opacity: .5;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 12px;
}
.co-prod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 8px;
}
.co-prod-price {
    font-size: 16px;
    font-weight: 700;
}
.co-prod-btn {
    font-size: 11px !important;
    padding: 6px 14px !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: inherit !important;
    border-radius: 6px !important;
    text-decoration: none;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.co-prod-btn:hover {
    background: rgba(255,255,255,0.22) !important;
    border-color: rgba(255,255,255,0.45) !important;
    color: inherit !important;
    text-decoration: none;
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
    .co-country-header { padding: 18px; gap: 14px; }
    .co-hero-flag      { font-size: 54px; }
    .co-hero-name      { font-size: 20px; }
    .co-products-grid  { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .co-cards-grid     { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    .co-card-flag      { font-size: 38px; }
}
@media (max-width: 480px) {
    .co-cards-grid     { grid-template-columns: repeat(3, 1fr); }
    .co-products-grid  { grid-template-columns: repeat(2, 1fr); }
}
