/* ==========================================
   Noppy Shop — veřejný styl
   Inspirace: Aesop, Apple, čistý minimalismus
   ========================================== */

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

:root {
    --bg: #fafafa;
    --bg-card: #ffffff;
    --bg-subtle: #f5f5f5;
    --bg-hover: #f0f0f0;
    
    --text: #0a0a0a;
    --text-secondary: #525252;
    --text-muted: #888888;
    --text-light: #b8b8b8;
    
    --border: #ececec;
    --border-strong: #d4d4d4;
    --accent: #0a0a0a;
    
    --amber-bg: #FFF3D6;   --amber-text: #6B3F08;
    --teal-bg: #D4F0E2;    --teal-text: #0A5C42;
    --red-bg: #FBDADA;     --red-text: #851A1A;
    
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 18px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; transition: color 0.15s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.shop-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 600px) {
    .shop-container { padding: 0 16px; }
}

/* ===== HEADER ===== */
.shop-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.shop-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.shop-logo {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--text);
}
.shop-logo-reg {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    vertical-align: super;
    margin-left: 1px;
}

.shop-nav {
    display: flex;
    gap: 28px;
    flex: 1;
    justify-content: center;
}
.shop-nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}
.shop-nav a:hover { color: var(--text); }

@media (max-width: 700px) {
    .shop-nav { display: none; }
}

.shop-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shop-cart-link {
    position: relative;
    color: var(--text);
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: var(--radius);
    transition: background 0.15s;
}
.shop-cart-link:hover { background: var(--bg-hover); }

.shop-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== MAIN ===== */
.shop-main {
    min-height: calc(100vh - 68px - 200px);
}

/* ===== HERO ===== */
.shop-hero {
    text-align: center;
    padding: 64px 24px 48px;
    border-bottom: 1px solid var(--border);
}
.shop-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}
.shop-hero p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FILTRY ===== */
.shop-filters {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 68px;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.shop-filters-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.shop-search {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    height: 42px;
    padding: 0 14px 0 38px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-card) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 14px center;
    transition: all 0.15s;
}
.shop-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

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

.shop-pill {
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-card);
    transition: all 0.15s;
    cursor: pointer;
    text-decoration: none;
}
.shop-pill:hover { border-color: var(--accent); }
.shop-pill.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ===== PRODUCT GRID ===== */
.shop-grid-wrapper {
    padding: 40px 0 64px;
}

.shop-product-count {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

@media (max-width: 600px) {
    .shop-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== PRODUCT CARD ===== */
.shop-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.shop-card-image {
    aspect-ratio: 1;
    background: var(--bg-subtle);
    overflow: hidden;
    position: relative;
}
.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.shop-card:hover .shop-card-image img {
    transform: scale(1.04);
}

.shop-card-image-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 36px;
}

.shop-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow);
}
.shop-card-badge.sale { background: var(--red-bg); color: var(--red-text); }
.shop-card-badge.new { background: var(--teal-bg); color: var(--teal-text); }

.shop-card-body {
    padding: 16px 4px 8px;
}

.shop-card-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.shop-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.shop-card-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.shop-card-price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .shop-card-name { font-size: 14px; }
    .shop-card-price { font-size: 15px; }
}

/* ===== EMPTY ===== */
.shop-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.shop-empty-icon {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

/* ===== PAGINATION ===== */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.shop-pagination a, .shop-pagination span {
    padding: 10px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    transition: all 0.15s;
}
.shop-pagination a:hover { background: var(--bg-hover); border-color: var(--accent); }
.shop-pagination .active { background: var(--accent); color: white; border-color: var(--accent); }
.shop-pagination .disabled { color: var(--text-light); cursor: not-allowed; }

/* ===== PRODUCT DETAIL ===== */
.shop-breadcrumbs {
    padding: 24px 0 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.shop-breadcrumbs a:hover { color: var(--text); }
.shop-breadcrumbs .sep { margin: 0 8px; color: var(--text-light); }

.shop-product {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    padding: 24px 0 64px;
}
@media (max-width: 900px) {
    .shop-product {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.shop-product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}
@media (max-width: 900px) {
    .shop-product-gallery { position: static; }
}

.shop-product-main-image {
    aspect-ratio: 1;
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
}
.shop-product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-product-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}
.shop-product-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-subtle);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s;
}
.shop-product-thumb:hover { border-color: var(--border-strong); }
.shop-product-thumb.active { border-color: var(--accent); }
.shop-product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.shop-product-info h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.shop-product-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.shop-product-price {
    font-size: 28px;
    font-weight: 600;
    margin: 24px 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.shop-product-price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 12px;
    font-size: 20px;
}

.shop-product-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    margin: 24px 0;
}
.shop-product-desc p { margin-bottom: 12px; }
.shop-product-desc strong, .shop-product-desc b { color: var(--text); }

.shop-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 32px 0 12px;
}

.shop-fragrance-notes {
    background: var(--bg-subtle);
    padding: 16px 20px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== VARIANT PICKER ===== */
.shop-variants {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 24px;
}
.shop-variant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.15s;
}
.shop-variant:hover { border-color: var(--accent); }
.shop-variant input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.shop-variant.selected {
    border-color: var(--accent);
    background: #fafafa;
}
.shop-variant-name { font-weight: 500; font-size: 14px; }
.shop-variant-price { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ===== ADD TO CART BUTTON ===== */
.shop-add-to-cart {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}
.shop-qty-input {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
}
.shop-qty-input button {
    width: 44px;
    height: 52px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    transition: background 0.15s;
}
.shop-qty-input button:hover { background: var(--bg-hover); }
.shop-qty-input input {
    width: 50px;
    height: 52px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    background: var(--bg-card);
    font-family: inherit;
}
.shop-qty-input input:focus { outline: none; }

.shop-btn-cart {
    flex: 1;
    height: 52px;
    padding: 0 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.shop-btn-cart:hover { background: #1a1a1a; }
.shop-btn-cart:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

.shop-stock-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--teal-text);
    margin-top: 12px;
}
.shop-stock-info.out { color: var(--red-text); }
.shop-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* ===== FOOTER ===== */
.shop-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 80px;
}

.shop-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
@media (max-width: 700px) {
    .shop-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .shop-footer-brand { grid-column: span 2; }
}

.shop-footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
    max-width: 280px;
}

.shop-footer h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.shop-footer ul li {
    margin-bottom: 8px;
}
.shop-footer ul a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.15s;
}
.shop-footer ul a:hover { color: var(--text); }

.shop-footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* ===== ALERT ===== */
.shop-alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin: 16px 0;
}
.shop-alert.success { background: var(--teal-bg); color: var(--teal-text); }
.shop-alert.info { background: var(--amber-bg); color: var(--amber-text); }
