/* Product Hero Section */
.product-hero {
    min-height: 400px;
    padding-top: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.product-hero-bg, .product-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: url("../images/Background-img/hero-bg.webp");
    height: 100%;
}

.shop-hero-content, .product-hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 10;
    margin-top: 20px;
}

.product-hero h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
}

.product-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    font-weight: 300;
}

/* Button Fixes */
.btn-outline-product-detail, .btn-solid-product-detail {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-product-detail {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline-product-detail:hover {
    background: rgba(230, 184, 0, 0.1);
}

.btn-solid-product-detail {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    border: none;
}

.btn-solid-product-detail:hover {
    box-shadow: 0 8px 25px var(--shadow-light);
    transform: translateY(-2px);
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

.breadcrumbs .separator {
    margin: 0 5px;
}

/* Product Details Specific Styles */
.product-detail {
    display: flex;
    gap: 40px;
    margin: 30px 0 60px;
    flex-wrap: wrap;
}

.product-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    min-width: 300px;
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--accent-primary);
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.product-info {
    flex: 1;
    min-width: 300px;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-primary);
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4dff59;
    margin: 20px 0;
}

.product-price .original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.4rem;
    margin-right: 10px;
}

.product-price .sale {
    color: #4dff59;
}

.stock-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.stock-status.in-stock {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.stock-status.out-of-stock {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.product-description {
    margin: 40px 0;
    line-height: 1.8;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

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

.specs-table th {
    text-align: left;
    padding: 15px 0;
    width: 30%;
    color: var(--text-muted);
    font-weight: 500;
}

.specs-table td {
    padding: 15px 0;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.documents-list a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.documents-list a:hover {
    opacity: 0.8;
}

/* --- Product Tags Styles --- */
.product-tags-container {
    margin: 30px 0;
}
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.product-tags .filter-chip {
    text-decoration: none;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.product-tags .filter-chip:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* --- Video Thumbnail Styles --- */
.video-thumbnail-wrapper {
    position: relative;
    cursor: pointer;
}
.video-thumbnail-wrapper .thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.video-thumbnail-wrapper:hover .thumbnail,
.video-thumbnail-wrapper.active .thumbnail {
    border-color: var(--accent-primary);
}
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background-color 0.3s ease;
}
.video-play-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid white;
    margin-left: 3px;
}
.video-thumbnail-wrapper:hover .video-play-icon {
    background-color: var(--accent-primary);
}

/* --- START: Floating Action Button Styles --- */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
}

.fab-container > #backToTopBtn {
    position: static;
    bottom: auto;
    right: auto;
    z-index: auto;
}

.calculator-fab-container {
    position: relative;
}

/* This is the new style for the text button */
.fab-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.fab-btn:hover {
    box-shadow: 0 8px 25px var(--shadow-light);
    transform: translateY(-2px);
}

.fab-shape-selector {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px); /* Position above the button */
    width: 180px;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.calculator-fab-container.active .fab-shape-selector {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
/* --- END: Floating Action Button Styles --- */

/* --- Media Calculator Modal Styles --- */
#calculatorModal .modal-content {
    max-width: 800px; /* Widen the modal for two columns */
}
.calculator-modal-layout {
    display: flex;
    gap: 30px;
}
.calculator-main {
    flex: 2; /* Calculator takes more space */
}
.calculator-promo {
    flex: 1; /* Promo takes less space */
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.calculator-promo h2 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-primary);
    margin-bottom: 15px;
}
.calculator-promo p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}
.promo-download-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    padding: 12px 10px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.promo-download-btn:hover {
    box-shadow: 0 8px 25px var(--shadow-light);
    transform: translateY(-2px);
}
.promo-download-btn svg {
    width: 20px;
    height: 20px;
}

#calculatorModal input, #calculatorModal select { width: 100%; padding: 10px 12px; background: var(--bg-tertiary); border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-primary); font-size: 16px; }
#calculatorModal input:focus, #calculatorModal select:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 2px rgba(230, 184, 0, 0.2); }
.calc-actions { display: flex; gap: 15px; margin-top: 25px; }
.calc-actions button { flex: 1; padding: 12px 20px; font-size: 16px; border-radius: 30px; }
.calc-results { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--glass-border); text-align: center; }
.calc-results p { font-size: 1.2rem; color: var(--text-secondary); margin: 10px 0; }
.calc-results span { font-weight: 700; color: var(--accent-primary); font-size: 1.5rem; }

/* Responsive Styles */
@media (max-width: 768px) {
    .product-gallery { grid-template-columns: 1fr; }
    .thumbnail-container { flex-direction: row; order: 2; overflow-x: auto; padding-bottom: 10px; }
    .thumbnail, .video-thumbnail-wrapper .thumbnail { width: 80px; height: 80px; flex-shrink: 0; }
    .main-image { height: 300px; }
    .product-title { font-size: 2rem; }
    .product-actions { flex-direction: column; }
    
    /* Stack calculator and promo on mobile */
    .calculator-modal-layout {
        flex-direction: column;
    }
    .calculator-promo {
        border-left: none;
        border-top: 1px solid var(--glass-border);
        margin-top: 20px;
        padding-top: 20px;
    }
}