/* =========================================
   Product Detail Styles (Dark Enterprise)
   ========================================= */

body {
    background-color: #0b0d11;
    /* Matching product-list.css */
    color: var(--color-gray-300);
}

.mesh-gradient {
    background-image:
        radial-gradient(at 0% 0%, hsla(0, 0%, 10%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(354, 70%, 30%, 0.4) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(354, 70%, 20%, 0.6) 0, transparent 50%);
    position: absolute;
    inset: 0;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    height: 100vh;
    /* Gradient primarily for hero area */
}

.layout-relative {
    position: relative;
    z-index: 1;
}

/* --- Layout --- */
.container-custom,
.detail-layout-container {
    max-width: 1400px;
}

.detail-layout-container {
    padding-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.detail-split-grid {
    /* display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
     Reduced from 3rem */
}

@media (min-width: 992px) {
    .detail-split-grid {
        grid-template-columns: 7fr 5fr;
        /* Gallery : Info */
        gap: 2.5rem;
        /* Reduced from 4rem */
    }
}

/* --- Breadcrumbs --- */
.breadcrumb-nav {
    margin-bottom: 2rem;
    color: var(--color-gray-500);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-nav a {
    color: var(--color-gray-500);
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--color-accent);
}

.breadcrumb-separator {
    font-size: 1rem;
    color: var(--color-gray-600);
}

.breadcrumb-active {
    color: var(--color-white);
    font-weight: 500;
}

/* --- Gallery Section --- */
.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: radial-gradient(circle at center, #1a1f2b 0%, #0b0d11 100%);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-bg {
    width: 80%;
    height: 80%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* Soft shadow internal image */
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatPremium 6s ease-in-out infinite;
}

@keyframes floatPremium {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.main-image-frame:hover .main-image-bg {
    transform: scale(1.1);
    /* Float is preserved via animation, only scale changes */
}

/* Magnetic Button Base */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

/* Zoom Button */
.zoom-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: var(--color-accent);
}

/* Thumbnails */
.thumb-scroll-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.thumb-item {
    position: relative;
    width: 6rem;
    height: 6rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #111318;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.6;
}

.thumb-item.active {
    border-color: var(--color-accent);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.thumb-item:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.thumb-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.thumb-item:hover .thumb-bg,
.thumb-item.active .thumb-bg {
    opacity: 1;
}

/* --- Product Info Column --- */
.product-info-premium {
    display: flex;
    flex-direction: column;
}

/* Category & Status Badges */
.premium-badge-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.premium-category-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.premium-status-badge {
    color: #4ADE80;
    /* Green-400 */
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #4ADE80;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.product-title-large {
    font-family: var(--font-display, sans-serif);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: -0.02em;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
    color: #FACC15;
    /* Yellow-400 */
}

.rating-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-400);
}

/* Price */
.price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-display, sans-serif);
}

.price-currency {
    font-size: 1.25rem;
    color: var(--color-gray-500);
}

.product-desc-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-gray-300);
    margin-bottom: 2rem;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-400);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-item .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--color-accent);
}

/* Spec Highlights Grid */
.spec-highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.spec-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(11, 13, 17, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.spec-highlight-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.05);
}

.spec-icon-box {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.02));
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 0.5rem;
    padding: 0.6rem;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.spec-text-box h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
    margin: 0;
    font-weight: 700;
}

.spec-text-box p {
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    margin: 0.25rem 0 0;
    line-height: 1.3;
}

/* Action Buttons Wrapper */
.actions-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.action-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 640px) {
    .action-row {
        flex-direction: row;
    }
}

.btn-request {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px !important;
    background: linear-gradient(135deg, var(--color-accent), #ff6b6b);
    color: white;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 25px -3px rgba(230, 57, 70, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-family: var(--font-display, sans-serif);
}

.btn-request:hover {
    filter: brightness(1.1);
    box-shadow: 0 15px 35px -5px rgba(230, 57, 70, 0.6);
}

.btn-whatsapp-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-family: var(--font-display, sans-serif);
}

.btn-whatsapp-outline:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25D366;
    color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

/* --- Tabs Section --- */
.premium-tabs-section {
    margin-top: 5rem;
}

.premium-tabs-nav {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.premium-tab-link {
    padding: 1rem 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-400);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.premium-tab-link:hover {
    color: var(--color-gray-200);
    border-color: var(--color-gray-600);
}

.premium-tab-link.active {
    color: white;
    font-weight: 700;
    border-color: var(--color-accent);
}

.tab-content-panel {
    display: none;
    padding: 2rem 0;
}

.tab-content-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Style for Specs */
.premium-table-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 24, 34, 0.6);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.premium-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.premium-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.premium-table tr:last-child {
    border-bottom: none;
}

.premium-table td {
    padding: 1.25rem 1.5rem;
}

.td-label {
    width: 35%;
    color: var(--color-gray-400);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.td-value {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Related Products --- */
.related-section {
    margin: 5rem 0;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.related-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.related-subtitle {
    color: var(--color-gray-400);
    margin-top: 0.25rem;
}

.btn-text-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Reusing Premium Card styles from product-list.css? 
   Actually, the reference has a slightly different, simpler card for related items.
   Let's create a .related-card style here to match the specific reference. */

.related-card {
    background: rgba(26, 31, 41, 0.6);
    /* Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.related-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(26, 31, 41, 0.8);
}

.related-img-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: #2a2a2a;
    overflow: hidden;
}

.related-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.related-card:hover .related-img {
    transform: scale(1.1);
}

.related-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.related-cat {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    margin-top: 0.25rem;
}

.related-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-price {
    font-weight: 600;
    color: white;
}

.arrow-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.related-card:hover .arrow-circle {
    background: var(--color-accent);
}

/* =========================================
   Responsive Adjustments (Mobile & Tablet)
   ========================================= */

@media (max-width: 991px) {
    .product-title-large {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .detail-layout-container {
        padding-bottom: 2rem;
    }

    .breadcrumb-nav {
        flex-wrap: wrap;
        font-size: 0.75rem;
    }

    .main-image-frame {
        aspect-ratio: 1 / 1;
        border-radius: 0.75rem;
    }

    .thumb-item {
        width: 4.5rem;
        height: 4.5rem;
        border-radius: 0.5rem;
    }

    .product-title-large {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .rating-row {
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
    }

    .price-value {
        font-size: 1.5rem;
    }

    .product-desc-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .spec-highlight-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .trust-indicators {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .actions-wrapper {
        gap: 1rem;
    }

    .action-row {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-request,
    .btn-whatsapp-outline {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .premium-tabs-section {
        margin-top: 3rem;
    }

    .premium-tabs-nav {
        gap: 1rem;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        padding-bottom: 0.5rem;
    }
    
    .premium-tabs-nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .premium-table-container {
        overflow-x: auto;
        border-radius: 0.75rem;
    }

    .premium-table td {
        padding: 1rem;
        min-width: 120px;
    }

    .td-label {
        width: 40%;
        font-size: 0.85rem;
    }

    .td-value {
        font-size: 0.85rem;
    }

    .related-section {
        margin: 3rem 0;
    }

    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .related-title {
        font-size: 1.25rem;
    }

    .related-subtitle {
        font-size: 0.85rem;
    }
}