/* ============================================================
   NoCloud AquaHub — Shop & Product Pages (shop.css)
   ============================================================ */

/* --- Shop Hero (compact) ----------------------------------- */
.shop-hero {
    padding: 120px 0 40px;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 80%, rgba(14,165,233,0.06) 0%, transparent 60%);
    pointer-events: none;
}


/* --- Category Tabs ----------------------------------------- */
.shop-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--border-color);
}

.shop-tab {
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    margin-bottom: -1px;
}

.shop-tab:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.shop-tab.active {
    color: var(--teal-primary);
    background: rgba(14,165,233,0.08);
    border-color: rgba(14,165,233,0.2);
}


/* --- Product Grid (Shop Catalog) --------------------------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}


/* --- Product Card (shared between shop & related) ---------- */
.product-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.product-card-link:hover {
    color: inherit;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(135deg, rgba(14,165,233,0.05), rgba(34,211,238,0.05));
    border-bottom: 1px solid var(--border-color);
}

.product-image > i {
    font-size: 3.5rem;
    color: var(--teal-primary);
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card:hover .product-image > i {
    opacity: 0.85;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.product-badge--core {
    color: var(--coral);
    background: rgba(249,115,22,0.12);
    border: 1px solid rgba(249,115,22,0.2);
}

.product-badge--addon {
    color: var(--teal-primary);
    background: rgba(14,165,233,0.1);
    border: 1px solid rgba(14,165,233,0.15);
}

.product-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-sku {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.product-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
}

.product-price .currency {
    font-size: 1rem;
    font-weight: 600;
    vertical-align: super;
    margin-right: 2px;
    color: var(--text-secondary);
}


/* --- Breadcrumb -------------------------------------------- */
.breadcrumb-bar {
    padding: 100px 0 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--teal-primary);
}

.breadcrumb i {
    font-size: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb span[aria-current] {
    color: var(--text-primary);
    font-weight: 500;
}


/* --- Product Detail ---------------------------------------- */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.product-image-box {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.product-image-box i {
    font-size: 6rem;
    color: var(--teal-primary);
    opacity: 0.5;
}

.product-detail-info .product-badge {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
}

.product-detail-info .product-sku {
    display: block;
    margin-bottom: 12px;
}

.product-detail-name {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-heading);
}

.product-detail-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.product-detail-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 24px;
}

.product-detail-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super;
    margin-right: 4px;
    color: var(--text-secondary);
}

.product-preorder-btn {
    display: inline-flex;
    margin-bottom: 40px;
}

/* --- Product Variants Dropdown ----------------------------- */
.product-variants {
    margin-bottom: 24px;
}

.variant-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.variant-select {
    width: 100%;
    max-width: 280px;
    padding: 10px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition-base);
}

.variant-select:focus {
    outline: none;
    border-color: var(--teal-primary);
}

/* --- Coming Soon Price ------------------------------------ */
.price-coming-soon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.product-price--coming-soon {
    font-size: inherit;
    font-weight: 600;
    color: var(--text-secondary);
}


/* --- Product Features List --------------------------------- */
.product-features {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.product-features h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-heading);
}

.product-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.product-features-list li i {
    color: var(--seafoam);
    font-size: 0.875rem;
    margin-top: 3px;
    flex-shrink: 0;
}


/* --- Specs Table ------------------------------------------- */
.specs-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th,
.specs-table td {
    padding: 16px 24px;
    font-size: 0.9375rem;
    text-align: left;
}

.specs-table th {
    width: 40%;
    font-weight: 600;
    color: var(--text-heading);
    background: rgba(14,165,233,0.03);
}

.specs-table td {
    color: var(--text-secondary);
}


/* --- Related Products Grid --------------------------------- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}


/* --- Responsive: 1024px ------------------------------------ */
@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .product-detail-grid {
        gap: 40px;
    }

    .product-detail-name {
        font-size: 1.875rem;
    }

    .product-detail-price {
        font-size: 2rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}


/* --- Responsive: 768px ------------------------------------- */
@media (max-width: 768px) {
    .shop-hero {
        padding: 96px 0 24px;
    }

    .shop-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .shop-tabs::-webkit-scrollbar {
        display: none;
    }

    .shop-tab {
        padding: 8px 18px;
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    .shop-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .breadcrumb-bar {
        padding: 84px 0 0;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-image-box {
        position: static;
        aspect-ratio: 4 / 3;
    }

    .product-image-box i {
        font-size: 4rem;
    }

    .product-detail-name {
        font-size: 1.5rem;
    }

    .product-detail-description {
        font-size: 0.9375rem;
    }

    .product-detail-price {
        font-size: 1.75rem;
    }

    .product-detail-price .currency {
        font-size: 1.125rem;
    }

    .product-preorder-btn {
        width: 100%;
        justify-content: center;
    }

    .specs-table th,
    .specs-table td {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .specs-table th {
        width: 45%;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
