/* =============================================================================
   DETAIL PAGE — Product detail page styles (Astro OG Burger, etc.)
   Loaded conditionally (detail template only) via functions.php
   ============================================================================= */

body { background: #f8f7f5; }

/* ── Product Detail ── */
.ap-detail-section {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}
@media (min-width: 1024px) {
    .ap-detail-section { flex-direction: row; }
}

/* Left image */
.ap-detail-image {
    position: relative;
    height: 50vh;
    overflow: hidden;
    background: #23190f;
}
@media (min-width: 1024px) {
    .ap-detail-image { width: 50%; height: auto; }
}
.ap-detail-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
    z-index: 1;
}
.ap-detail-image img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}
.ap-detail-image-caption {
    position: absolute;
    bottom: 3rem; left: 3rem;
    z-index: 2;
    display: none;
}
@media (min-width: 1024px) {
    .ap-detail-image-caption { display: block; }
}
.ap-detail-badge {
    display: inline-block;
    background: rgba(249,140,31,0.9);
    color: #0f172a;
    padding: 0.2rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}
.ap-detail-image-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

/* Right content */
.ap-detail-content {
    background: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 1024px) {
    .ap-detail-content { width: 50%; padding: 6rem; }
}
.ap-detail-inner { max-width: 36rem; }

.ap-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94a3b8;
    margin-bottom: 2rem;
}
.ap-breadcrumb span.active { color: #f98c1f; }

.ap-detail-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem;
    line-height: 1;
}
@media (min-width: 1024px) {
    .ap-detail-title { font-size: 4.5rem; }
}

.ap-detail-desc {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.75;
    font-weight: 300;
    margin: 0 0 2.5rem;
}

/* Ingredients grid */
.ap-ingredients {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}
.ap-ingredient-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #f1f5f9;
    background: rgba(248,247,245,0.5);
}
.ap-ingredient-icon {
    font-size: 1.5rem;
    color: #f98c1f;
    font-family: 'Material Symbols Outlined', sans-serif;
    font-variation-settings: 'FILL' 0, 'wght' 400;
}
.ap-ingredient-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.2rem;
}
.ap-ingredient-sub {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* CTA */
.ap-btn-order {
    display: block;
    width: 100%;
    background: #f98c1f;
    color: #0f172a;
    padding: 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(249,140,31,0.25);
}
.ap-btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(249,140,31,0.35);
    color: #0f172a;
}

.ap-detail-meta {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: #94a3b8;
}
.ap-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ap-detail-meta-item .material-symbols-outlined {
    font-size: 1rem;
    color: #f98c1f;
}

/* ── Related products ── */
.ap-related {
    padding: 6rem 1.5rem;
    background: #f1f5f9;
}
.ap-related-inner { max-width: 1280px; margin: 0 auto; }

.ap-related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}
.ap-related-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 1rem;
}
.ap-related-underline {
    height: 4px;
    width: 5rem;
    background: #f98c1f;
    border-radius: 2px;
}

.ap-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .ap-related-grid { grid-template-columns: repeat(3, 1fr); }
}

.ap-related-card { cursor: pointer; }
.ap-related-card-image {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #cbd5e1;
    margin-bottom: 1rem;
}
.ap-related-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.ap-related-card:hover .ap-related-card-image img {
    transform: scale(1.1);
}
.ap-related-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0.6;
}
.ap-related-card-tag {
    position: absolute;
    bottom: 1rem; left: 1rem;
    background: #f98c1f;
    color: #0f172a;
    padding: 0.15rem 0.5rem;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 0.25rem;
    letter-spacing: 0.1em;
}
.ap-related-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.4rem;
    transition: color 0.2s;
}
.ap-related-card:hover .ap-related-card-name { color: #f98c1f; }
.ap-related-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
