/* ==============================================================
   Bento Grid — "Modulárny dashboard"
   Modulárna mriežka rôznych veľkostí, multi-color cards, vizuálna pestrosť
   Lifestyle, kurátorské eshopy
   Design source: Navrh novych sablon/eshop-design-templates-vol2.md (Šablóna 6)
   ============================================================== */

.theme-bento-grid {
    background-color: #F4F4F5;
    color: #18181B;
    --bn-bg: #F4F4F5;
    --bn-bg-card: #FFFFFF;
    --bn-text: #18181B;
    --bn-text-quiet: #71717A;
    --bn-border: #E4E4E7;
    --bn-accent-1: #3B82F6;
    --bn-accent-2: #EAB308;
    --bn-accent-3: #EF4444;
    --bn-accent-4: #10B981;
    --bn-radius: 24px;
    --bn-radius-sm: 16px;
    --bn-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    --bn-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 24px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Nav */
.theme-bento-grid .storefront-nav {
    background: var(--bn-bg);
    border-bottom: none;
    box-shadow: none;
}
.theme-bento-grid .storefront-nav-inner {
    padding: 12px 24px;
}
.theme-bento-grid .storefront-logo {
    color: var(--bn-text);
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 20px;
}
.theme-bento-grid .storefront-nav-link {
    color: var(--bn-text-quiet);
    font-size: 14px;
    font-weight: 500;
}
.theme-bento-grid .storefront-nav-link:hover { color: var(--bn-text); }

.theme-bento-grid .storefront-badge {
    background: var(--bn-accent-3);
    color: #FFFFFF;
    border-radius: 12px;
    font-weight: 700;
}

.theme-bento-grid .storefront-hamburger span { background: var(--bn-text); }
.theme-bento-grid .storefront-mobile-menu { background: var(--bn-bg-card); border-radius: var(--bn-radius-sm); margin: 0 16px 16px; padding: 16px; }
.theme-bento-grid .storefront-mobile-link { color: var(--bn-text); border-bottom: 1px solid var(--bn-border); }

/* Hero — pripravený pre custom partial */
.theme-bento-grid .storefront-hero {
    padding: 32px 16px;
    background: var(--bn-bg);
}
.theme-bento-grid .storefront-hero-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--bn-text);
    margin: 0 0 12px;
}
.theme-bento-grid .storefront-hero-desc {
    color: var(--bn-text-quiet);
    font-size: 15px;
}
.theme-bento-grid .storefront-hero-cta {
    background: var(--bn-text) !important;
    color: var(--bn-bg-card) !important;
    border-radius: var(--bn-radius-sm);
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--bn-shadow);
}
.theme-bento-grid .storefront-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--bn-shadow-hover);
}

/* Bento hero grid (custom partial) */
.theme-bento-grid .bn-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 12px;
    padding: 16px;
    max-width: 80rem;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .theme-bento-grid .bn-hero-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .theme-bento-grid .bn-hero-grid { grid-template-columns: 1fr; }
}

.theme-bento-grid .bn-card {
    background: var(--bn-bg-card);
    border-radius: var(--bn-radius);
    padding: 24px;
    box-shadow: var(--bn-shadow);
    transition: transform 200ms ease, box-shadow 200ms ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.theme-bento-grid .bn-card:hover {
    transform: scale(1.02);
    box-shadow: var(--bn-shadow-hover);
}

/* Bento card variants — different sizes */
.theme-bento-grid .bn-card-tall { grid-row: span 2; }
.theme-bento-grid .bn-card-wide { grid-column: span 2; }
.theme-bento-grid .bn-card-large { grid-row: span 2; grid-column: span 2; }

/* Bento card accents */
.theme-bento-grid .bn-card-accent-1 { background: var(--bn-accent-1); color: #FFFFFF; }
.theme-bento-grid .bn-card-accent-2 { background: var(--bn-accent-2); color: var(--bn-text); }
.theme-bento-grid .bn-card-accent-3 { background: var(--bn-accent-3); color: #FFFFFF; }
.theme-bento-grid .bn-card-accent-4 { background: var(--bn-accent-4); color: #FFFFFF; }

.theme-bento-grid .bn-card-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0 0 8px;
    line-height: 1.2;
}
.theme-bento-grid .bn-card-desc {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}
.theme-bento-grid .bn-card-image {
    width: 100%;
    border-radius: var(--bn-radius-sm);
    margin-top: auto;
    object-fit: cover;
}
.theme-bento-grid .bn-card-price {
    font-size: 16px;
    font-weight: 700;
    margin-top: 12px;
}

/* Standard product cards (listing/category) */
.theme-bento-grid .storefront-products-grid {
    gap: 16px;
}
.theme-bento-grid .storefront-card {
    background: var(--bn-bg-card);
    border: none;
    border-radius: var(--bn-radius);
    box-shadow: var(--bn-shadow);
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.theme-bento-grid .storefront-card:hover {
    transform: scale(1.02);
    box-shadow: var(--bn-shadow-hover);
}
.theme-bento-grid .storefront-card-image {
    height: 200px;
    background: var(--bn-bg);
}
.theme-bento-grid .storefront-card-body {
    padding: 16px;
}
.theme-bento-grid .storefront-card-title {
    color: var(--bn-text);
    font-weight: 600;
    font-size: 14px;
}
.theme-bento-grid .storefront-card-price {
    color: var(--bn-text);
    font-weight: 700;
    font-size: 15px;
}
.theme-bento-grid .storefront-card-badge {
    background: var(--bn-accent-3);
    color: #FFFFFF;
    border-radius: 12px;
    font-weight: 700;
}

/* Section */
.theme-bento-grid .storefront-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--bn-text);
    text-align: left;
    padding-left: 16px;
    letter-spacing: -0.5px;
}

/* Listing */
.theme-bento-grid .storefront-listing-title {
    color: var(--bn-text);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.theme-bento-grid .storefront-sidebar-box {
    background: var(--bn-bg-card);
    border: none;
    border-radius: var(--bn-radius);
    box-shadow: var(--bn-shadow);
}
.theme-bento-grid .storefront-sidebar-title { color: var(--bn-text); font-weight: 700; }
.theme-bento-grid .storefront-search-input {
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius-sm);
    background: var(--bn-bg);
}
.theme-bento-grid .storefront-search-input:focus {
    border-color: var(--bn-accent-1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.theme-bento-grid .storefront-category-link.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--bn-accent-1);
}

/* Pagination */
.theme-bento-grid .storefront-page-link {
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius-sm);
    background: var(--bn-bg-card);
}
.theme-bento-grid .storefront-page-link.active {
    background: var(--bn-text);
    color: var(--bn-bg-card);
    border-color: var(--bn-text);
}

/* Detail */
.theme-bento-grid .storefront-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--bn-text);
    letter-spacing: -0.5px;
}
.theme-bento-grid .storefront-detail-price {
    color: var(--bn-text);
    font-size: 24px;
    font-weight: 700;
}
.theme-bento-grid .storefront-detail-btn {
    background: var(--bn-text) !important;
    color: var(--bn-bg-card) !important;
    border-radius: var(--bn-radius-sm);
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    box-shadow: var(--bn-shadow);
}
.theme-bento-grid .storefront-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--bn-shadow-hover);
}

/* Page banner */
.theme-bento-grid .storefront-page-banner {
    padding: 48px 24px;
    background: var(--bn-bg);
}
.theme-bento-grid .storefront-page-banner-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bn-text);
    letter-spacing: -0.5px;
}

.theme-bento-grid .storefront-shop-name {
    color: var(--bn-text);
}

/* Footer */
.theme-bento-grid .storefront-footer {
    background: var(--bn-bg);
    border-top: 1px solid var(--bn-border);
}
.theme-bento-grid .storefront-footer-link { color: var(--bn-text-quiet); }
.theme-bento-grid .storefront-footer-link:hover { color: var(--bn-text); }
.theme-bento-grid .storefront-footer-text { color: var(--bn-text-quiet); opacity: 0.7; }
