/* ==============================================================
   Apple Glass — "Premium Tech / Audio / Smart Home"
   Glassmorphism nav, dvojriadkový hero, 18px card radius, stat strip
   Inšpirácia: apple.com, Vitra, Bang & Olufsen
   Design source: Navrh novych sablon/eshop-design-templates.md (Šablóna 5)
   ============================================================== */

.theme-apple-glass {
    background: linear-gradient(180deg, #F5F5F7 0%, #FFFFFF 100%);
    color: #1D1D1F;
    --ag-text-primary: #1D1D1F;
    --ag-text-secondary: #6E6E73;
    --ag-text-tertiary: #86868B;
    --ag-text-on-dark: #FFFFFF;
    --ag-text-on-dark-quiet: #A1A1A6;
    --ag-bg-card-light: #FFFFFF;
    --ag-bg-card-dark: #1D1D1F;
    --ag-bg-glass: rgba(255, 255, 255, 0.72);
    --ag-bg-footer: #F5F5F7;
    --ag-accent-link: #0066CC;
    --ag-accent-link-on-dark: #2997FF;
    --ag-accent-warm: #BF4800;
    --ag-accent-warm-on-dark: #FF6E5A;
    --ag-border: rgba(0, 0, 0, 0.08);
    --ag-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
    --ag-shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.01em;
}

/* ============= Nav ============= */
.theme-apple-glass .storefront-nav {
    background: var(--ag-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--ag-border);
    box-shadow: none;
}

.theme-apple-glass .storefront-nav-inner {
    height: 48px;
    padding: 12px 24px;
    gap: 22px;
}

.theme-apple-glass .storefront-logo {
    color: var(--ag-text-primary);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

.theme-apple-glass .storefront-nav-link {
    color: var(--ag-text-primary);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
}
.theme-apple-glass .storefront-nav-link:hover {
    color: var(--ag-text-secondary);
}

.theme-apple-glass .storefront-badge {
    background: var(--ag-accent-link);
    color: #fff;
    font-size: 10px;
    border-radius: 8px;
    padding: 0 6px;
}

.theme-apple-glass .storefront-hamburger span { background: var(--ag-text-primary); }
.theme-apple-glass .storefront-mobile-menu { background: #FFFFFF; border-bottom: 0.5px solid var(--ag-border); }
.theme-apple-glass .storefront-mobile-link { color: var(--ag-text-primary); font-size: 14px; border-bottom: 0.5px solid var(--ag-border); }
.theme-apple-glass .storefront-mobile-link:hover { color: var(--ag-accent-link); }

/* ============= Hero ============= */
.theme-apple-glass .storefront-hero {
    padding: 56px 24px 40px;
    background: transparent;
    text-align: center;
}

.theme-apple-glass .storefront-hero-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.05;
    color: var(--ag-text-primary);
    margin: 0 0 8px;
}
.theme-apple-glass .ag-hero-subtitle {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.05;
    color: var(--ag-text-tertiary);
    margin: 0 0 18px;
}

.theme-apple-glass .storefront-hero-desc {
    color: var(--ag-text-secondary);
    font-size: 14px;
}

.theme-apple-glass .storefront-hero-cta {
    color: var(--ag-accent-link);
    background: transparent !important;
    box-shadow: none;
    padding: 0;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 0;
}
.theme-apple-glass .storefront-hero-cta::after {
    content: ' →';
}
.theme-apple-glass .storefront-hero-cta:hover {
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

/* Apple Glass-specific hero blocks (override partial) */
.theme-apple-glass .ag-hero-links {
    display: inline-flex;
    gap: 18px;
    margin-top: 12px;
}
.theme-apple-glass .ag-hero-link {
    color: var(--ag-accent-link);
    font-size: 13px;
    text-decoration: none;
}
.theme-apple-glass .ag-hero-link:hover {
    text-decoration: underline;
}
.theme-apple-glass .ag-hero-link::after {
    content: ' →';
}

.theme-apple-glass .ag-hero-product {
    max-width: 480px;
    margin: 24px auto 0;
    aspect-ratio: 16 / 10;
    background: radial-gradient(ellipse at center, rgba(0, 102, 204, 0.06) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-apple-glass .ag-hero-product img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ============= Stat strip ============= */
.theme-apple-glass .ag-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 32px 12px;
    max-width: 80rem;
    margin: 0 auto;
}
.theme-apple-glass .ag-stat-cell {
    text-align: center;
    padding: 0 12px;
    border-right: 0.5px solid var(--ag-border);
}
.theme-apple-glass .ag-stat-cell:last-child {
    border-right: none;
}
.theme-apple-glass .ag-stat-number {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--ag-text-primary);
    line-height: 1.2;
}
.theme-apple-glass .ag-stat-label {
    font-size: 11px;
    color: var(--ag-text-secondary);
    margin-top: 4px;
}

/* ============= Hero+promo grid (1.4:1) ============= */
.theme-apple-glass .ag-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    padding: 8px 16px 16px;
    max-width: 80rem;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .theme-apple-glass .ag-hero-grid {
        grid-template-columns: 1fr;
    }
    .theme-apple-glass .ag-stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

.theme-apple-glass .ag-card-light {
    background: var(--ag-bg-card-light);
    border-radius: 18px;
    padding: 28px;
    min-height: 280px;
    box-shadow: var(--ag-shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 400ms ease, box-shadow 400ms ease;
}
.theme-apple-glass .ag-card-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--ag-shadow-card-hover);
}

.theme-apple-glass .ag-card-dark {
    background: var(--ag-bg-card-dark);
    color: var(--ag-text-on-dark);
    border-radius: 18px;
    padding: 28px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 400ms ease, box-shadow 400ms ease;
}
.theme-apple-glass .ag-card-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.theme-apple-glass .ag-eyebrow {
    font-size: 11px;
    font-weight: 500;
    color: var(--ag-accent-warm);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 8px;
}
.theme-apple-glass .ag-card-dark .ag-eyebrow {
    color: var(--ag-accent-warm-on-dark);
}

.theme-apple-glass .ag-card-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
}
.theme-apple-glass .ag-card-desc {
    font-size: 13px;
    color: var(--ag-text-secondary);
    margin: 0;
}
.theme-apple-glass .ag-card-dark .ag-card-desc {
    color: var(--ag-text-on-dark-quiet);
}

.theme-apple-glass .ag-card-link {
    color: var(--ag-accent-link);
    font-size: 13px;
    text-decoration: none;
    margin-top: 16px;
}
.theme-apple-glass .ag-card-dark .ag-card-link {
    color: var(--ag-accent-link-on-dark);
}
.theme-apple-glass .ag-card-link::after {
    content: ' →';
}
.theme-apple-glass .ag-card-link:hover {
    text-decoration: underline;
}

.theme-apple-glass .ag-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 16px;
}
.theme-apple-glass .ag-card-price {
    font-size: 18px;
    font-weight: 600;
}
.theme-apple-glass .ag-card-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

/* ============= Product grid (3 stĺpce) ============= */
.theme-apple-glass .storefront-products-section {
    padding: 16px 16px 32px;
}

.theme-apple-glass .storefront-section-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--ag-text-primary);
    text-transform: none;
    text-align: left;
    padding-left: 16px;
}

.theme-apple-glass .storefront-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (min-width: 1024px) {
    .theme-apple-glass .storefront-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .theme-apple-glass .storefront-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.theme-apple-glass .storefront-card {
    background: var(--ag-bg-card-light);
    border: none;
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--ag-shadow-card);
    text-align: center;
    transition: transform 400ms ease, box-shadow 400ms ease;
}
.theme-apple-glass .storefront-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ag-shadow-card-hover);
}

.theme-apple-glass .storefront-card-image {
    height: 180px;
    background: transparent;
    border-radius: 0;
}
.theme-apple-glass .storefront-card-image img {
    object-fit: contain;
    transform: none;
    transition: opacity 400ms ease;
}
.theme-apple-glass .storefront-card:hover .storefront-card-image img {
    transform: none;
}

.theme-apple-glass .storefront-card-body {
    padding: 8px 0 0;
}
.theme-apple-glass .storefront-card-title {
    color: var(--ag-text-primary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.theme-apple-glass .storefront-card-price {
    color: var(--ag-text-secondary);
    font-size: 11px;
    font-weight: 400;
}
.theme-apple-glass .storefront-card-price-old {
    color: var(--ag-text-tertiary);
}
.theme-apple-glass .storefront-card-badge {
    background: var(--ag-accent-link);
    color: #fff;
    font-size: 10px;
    border-radius: 8px;
}
.theme-apple-glass .storefront-card-soldout {
    color: var(--ag-accent-warm);
    font-size: 11px;
}

/* ============= Listing / sidebar ============= */
.theme-apple-glass .storefront-listing-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--ag-text-primary);
}

.theme-apple-glass .storefront-sidebar-box {
    background: var(--ag-bg-card-light);
    border: 0.5px solid var(--ag-border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--ag-shadow-card);
}
.theme-apple-glass .storefront-sidebar-title {
    color: var(--ag-text-primary);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}
.theme-apple-glass .storefront-search-input {
    border: 0.5px solid var(--ag-border);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--ag-text-primary);
    font-size: 13px;
}
.theme-apple-glass .storefront-search-input:focus {
    border-color: var(--ag-accent-link);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.theme-apple-glass .storefront-sort-select {
    border: 0.5px solid var(--ag-border);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--ag-text-primary);
    font-size: 13px;
}
.theme-apple-glass .storefront-category-link {
    color: var(--ag-text-secondary);
    font-size: 13px;
}
.theme-apple-glass .storefront-category-link:hover {
    background: rgba(0, 102, 204, 0.06);
    color: var(--ag-accent-link);
}
.theme-apple-glass .storefront-category-link.active {
    background: rgba(0, 102, 204, 0.12);
    color: var(--ag-accent-link);
    font-weight: 500;
}
.theme-apple-glass .storefront-category-parent {
    color: var(--ag-text-primary);
    font-weight: 600;
}
.theme-apple-glass .storefront-clear-filters {
    color: var(--ag-accent-link);
    font-size: 13px;
}

/* ============= Pagination ============= */
.theme-apple-glass .storefront-page-link {
    border: 0.5px solid var(--ag-border);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--ag-text-primary);
    font-size: 13px;
}
.theme-apple-glass .storefront-page-link:hover {
    background: rgba(0, 102, 204, 0.06);
    color: var(--ag-accent-link);
}
.theme-apple-glass .storefront-page-link.active {
    background: var(--ag-accent-link);
    color: #fff;
    border-color: var(--ag-accent-link);
}

/* ============= Detail ============= */
.theme-apple-glass .storefront-detail-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--ag-text-primary);
}
.theme-apple-glass .storefront-detail-price {
    color: var(--ag-text-primary);
    font-size: 24px;
    font-weight: 600;
}
.theme-apple-glass .storefront-detail-price-old {
    color: var(--ag-text-tertiary);
}
.theme-apple-glass .storefront-detail-btn {
    background: var(--ag-accent-link) !important;
    color: #fff !important;
    border-radius: 22px;
    padding: 12px 32px;
    font-weight: 500;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}
.theme-apple-glass .storefront-detail-btn:hover {
    background: #0055AA !important;
    box-shadow: none;
}
.theme-apple-glass .storefront-breadcrumb a {
    color: var(--ag-text-secondary);
    font-size: 13px;
}
.theme-apple-glass .storefront-breadcrumb-current {
    color: var(--ag-text-primary);
}

/* TechSpec table (apple-glass specific) */
.theme-apple-glass .ag-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: var(--ag-bg-card-light);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--ag-shadow-card);
}
.theme-apple-glass .ag-spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 12px 20px;
    border-bottom: 0.5px solid var(--ag-border);
    font-size: 13px;
}
.theme-apple-glass .ag-spec-row:last-child {
    border-bottom: none;
}
.theme-apple-glass .ag-spec-label {
    color: var(--ag-text-secondary);
}
.theme-apple-glass .ag-spec-value {
    color: var(--ag-text-primary);
    font-weight: 500;
}

/* ============= Cookie / Shop Name ============= */
.theme-apple-glass .storefront-cookie-banner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-color: var(--ag-border);
}
.theme-apple-glass .storefront-cookie-title { color: var(--ag-text-primary); }
.theme-apple-glass .storefront-cookie-text { color: var(--ag-text-secondary); }
.theme-apple-glass .storefront-cookie-link { color: var(--ag-accent-link); }

.theme-apple-glass .storefront-shop-name {
    color: var(--ag-text-primary);
    font-weight: 500;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

/* ============= Page banner (podstránky) ============= */
.theme-apple-glass .storefront-page-banner {
    padding: 48px 24px;
    background: transparent;
}
.theme-apple-glass .storefront-page-banner-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--ag-text-primary);
}

/* ============= Footer ============= */
.theme-apple-glass .storefront-footer {
    background: var(--ag-bg-footer);
    border-top: 0.5px solid var(--ag-border);
}
.theme-apple-glass .storefront-footer-inner {
    padding: 14px 24px;
}
.theme-apple-glass .storefront-footer-link {
    color: var(--ag-text-secondary);
    font-size: 11px;
}
.theme-apple-glass .storefront-footer-link:hover {
    color: var(--ag-accent-link);
}
.theme-apple-glass .storefront-footer-text {
    color: var(--ag-text-tertiary);
    font-size: 11px;
}
.theme-apple-glass .storefront-footer-credit {
    color: var(--ag-text-tertiary);
    font-size: 11px;
}
