/* Product/Service Detail Page Styles (Migrated from style.css) */
.price-comparison {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.original-price {
    text-decoration: line-through;
    color: #64748b;
    font-size: 1.25rem;
}
.discount-badge {
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.product-description,
.service-description {
    line-height: 1.6;
}
.product-description h3,
.service-description h3 {
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}
.product-description p,
.service-description p {
    color: #475569;
    margin: 0;
}
.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}
.stock-label {
    font-weight: 500;
    color: #1e293b;
}
.stock-value.in-stock {
    color: #059669;
}
.stock-value.low-stock {
    color: #dc2626;
}
.service-features h3 {
    color: #1e293b;
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
}
.features-list li i {
    color: #059669;
    font-size: 0.875rem;
}
.product-actions,
.service-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
}
.btn-buy-now,
.btn-book-now {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-buy-now:hover,
.btn-book-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}
.btn-add-to-cart,
.btn-consultation {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.2);
}
.btn-add-to-cart:hover,
.btn-consultation:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}
.btn-contact {
    background: #64748b;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.btn-contact:hover {
    background: #475569;
}
.service-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
}
.info-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: #3b82f6;
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.info-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}
.info-content p {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}
.product-share,
.service-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
}
.share-label {
    font-weight: 500;
    color: #1e293b;
}
.share-buttons {
    display: flex;
    gap: 0.5rem;
}
.share-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.share-btn.whatsapp {
    background: #25d366;
    color: white;
}
.share-btn.facebook {
    background: #1877f2;
    color: white;
}
.share-btn.copy {
    background: #64748b;
    color: white;
}
.share-btn:hover {
    transform: scale(1.1);
}
.related-products,
.related-services {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.related-products h3,
.related-services h3 {
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
}
.related-products-grid,
.related-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.related-product-card,
.related-service-card {
    background: #f8fafc;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}
.related-product-card:hover,
.related-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.related-product-image,
.related-service-image {
    height: 150px;
    overflow: hidden;
}
.related-product-image img,
.related-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-product-info,
.related-service-info {
    padding: 1rem;
}
.related-product-info h4,
.related-service-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}
.related-product-price,
.related-service-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
}
.product-card {
    cursor: pointer;
    transition: all 0.2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
    /* Always show image first then info on mobile - force stacking */
    .product-detail-grid,
    .service-detail-grid {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }
    .product-image-section,
    .service-image-section { order: 1; }
    .product-info-section,
    .service-info-section { order: 2; }
    /* Actions appear after details */
    .product-info-section .product-actions,
    .service-info-section .service-actions { order: 99; margin-top: 0.75rem; }

    .product-detail-page,
    .service-detail-page {
        padding-bottom: 80px;
    }
    .container {
        padding: 0 10px;
    }
    .product-detail-grid,
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .product-detail-container,
    .service-detail-container {
        padding: 0.5rem 1rem 1rem 1rem;
        margin: 0.25rem 0;
        border-radius: 0.75rem;
    }
    .product-image-section,
    .service-image-section {
    position: relative;
    max-width: 100%;
    width: 100% !important;
    margin-bottom: 1rem;
    }
    .product-main-image,
    .service-main-image {
        height: 250px;
        border-radius: 0.75rem;
    }
    .main-product-img,
    .main-service-img {
    height: 250px;
    width: 100% !important;
        object-fit: cover;
    }
    .product-image-placeholder,
    .service-image-placeholder {
        height: 250px;
        font-size: 2rem;
    }
    .service-info-section {
        margin-top: 0.5rem;
    }
    .product-title,
    .service-title {
        font-size: 1.5rem;
        font-weight: 800;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        margin-top: 0.75rem;
        color: #0f172a;
    }
    .current-price {
        font-size: 1.75rem;
    }
    .breadcrumb {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }
    .product-category,
    .service-category,
    .service-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.5rem;
        display: inline-block;
    }
    .product-description,
    .service-description {
        margin-bottom: 1rem;
    }
    .product-description h3,
    .service-description h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .product-description p,
    .service-description p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .service-features h3 {
        font-size: 1rem;
    }
    .features-list {
        gap: 0.35rem;
    }
    .features-list li {
        font-size: 0.85rem;
    }
    .service-info-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    .info-card {
        padding: 0.75rem;
    }
    .info-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    .info-content h4 {
        font-size: 0.8rem;
    }
    .info-content p {
        font-size: 0.7rem;
    }
    .product-stock {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    .product-share,
    .service-share {
        padding: 0.75rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .share-label {
        font-size: 0.85rem;
    }
    .share-btn {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }
    .related-products,
    .related-services {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    .related-products h3,
    .related-services h3 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    .related-products-grid,
    .related-services-grid {
    /* Switch to horizontal scroll list on mobile */
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
        scroll-padding-left: 0.5rem;
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none; /* Firefox */
    }
    .related-products-grid::-webkit-scrollbar,
    .related-services-grid::-webkit-scrollbar { display: none; }
    .related-product-card,
    .related-service-card {
    border-radius: 0.5rem;
    flex: 0 0 72%;
    scroll-snap-align: start;
    }
    .related-product-image,
    .related-service-image {
        height: 120px;
    }
    .related-product-info,
    .related-service-info {
        padding: 0.75rem;
    }
    .related-product-info h4,
    .related-service-info h4 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    .related-product-price,
    .related-service-price {
        font-size: 0.95rem;
    }
    .product-actions,
    .service-actions {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        background: white;
        padding: 1rem;
        border-top: 2px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin: 1rem 0;
        display: grid;
    grid-template-columns: 1fr; /* stack buttons vertically on mobile */
        gap: 0.75rem;
    }
    /* Mobile: show in-section actions and hide separate bottom bar */
    .product-detail-container .product-actions.d-none.d-md-flex,
    .service-detail-container .service-actions.d-none.d-md-flex {
        display: grid !important;
    }
    .product-detail-page > .product-actions.d-flex.d-md-none,
    .service-detail-page > .service-actions.d-flex.d-md-none {
        display: none !important;
    }
    .btn-buy-now,
    .btn-book-now {
    grid-column: auto;
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
        font-weight: 600;
        border-radius: 8px;
    }
    .btn-add-to-cart,
    .btn-consultation {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: #fff;
        border: none;
        padding: 0.375rem 0.625rem;
        font-size: 0.7rem;
        border-radius: 8px;
        font-weight: 500;
        min-height: auto;
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
        transition: all 0.2s ease;
    }
    .btn-add-to-cart:hover,
    .btn-consultation:hover {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
    }
    .btn-contact {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        border-radius: 0.5rem;
    grid-column: auto;
    }
    .product-actions {
        grid-template-columns: 1fr; /* ensure single column on mobile */
        gap: 0.75rem;
    }
    .product-actions .btn-buy-now,
    .product-actions .btn-add-to-cart,
    .product-actions .btn-contact {
        grid-column: auto; /* no spanning, keep equal width */
        margin-top: 0; /* uniform spacing handled by grid gap */
    }
    .service-actions {
    grid-template-columns: 1fr;
    }
    .service-actions .btn-book-now {
        grid-column: auto;
    }
    .service-actions .btn-contact {
        grid-column: auto;
    }
    /* Ensure both buttons take full width equally */
    .product-actions .btn-buy-now,
    .product-actions .btn-contact,
    .service-actions .btn-book-now,
    .service-actions .btn-contact { width: 100% !important; justify-content: center; }
    @media (max-width: 480px) {
        .btn-add-to-cart {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: #fff;
            border: none;
            padding: 0.25rem 0.375rem;
            font-size: 0.65rem;
            border-radius: 6px;
            min-height: auto;
            box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
            transition: all 0.2s ease;
        }
        .btn-add-to-cart:hover {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
        }
        .price-comparison {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.25rem;
        }
        .share-buttons {
            justify-content: flex-start;
        }
        .related-products-grid,
        .related-services-grid {
            /* keep horizontal scroll at very small widths too */
            display: flex;
            overflow-x: auto;
            gap: 0.75rem;
        }
        .breadcrumb {
            font-size: 0.75rem;
        }
        .breadcrumb-current {
            max-width: 150px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }
    .mobile-quick-info {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    .mobile-stock-badge,
    .mobile-duration-badge {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        padding: 0.25rem 0.5rem;
        border-radius: 0.375rem;
        font-size: 0.75rem;
        color: #475569;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    .mobile-stock-badge.in-stock {
        background: #f0fdf4;
        border-color: #bbf7d0;
        color: #166534;
    }
    .mobile-stock-badge.low-stock {
        background: #fef2f2;
        border-color: #fecaca;
        color: #dc2626;
    }
    .mobile-duration-badge {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #1e40af;
    }
    /* Scope utility classes to detail pages only to prevent global side-effects */
    .product-detail-page .d-none,
    .service-detail-page .d-none { display: none !important; }
    .product-detail-page .d-block,
    .service-detail-page .d-block { display: block !important; }
    .product-detail-page .d-flex,
    .service-detail-page .d-flex { display: flex !important; }
    .product-detail-page .d-inline,
    .service-detail-page .d-inline { display: inline !important; }
    .product-detail-page .d-md-none,
    .service-detail-page .d-md-none { display: none !important; }
    .product-detail-page .d-md-block,
    .service-detail-page .d-md-block { display: block !important; }
    .product-detail-page .d-md-flex,
    .service-detail-page .d-md-flex { display: flex !important; }
    .product-detail-page .d-md-inline,
    .service-detail-page .d-md-inline { display: inline !important; }
    .product-detail-page .mt-3,
    .service-detail-page .mt-3 { margin-top: 1rem !important; }
}
@media (min-width: 769px) {
    .product-detail-page .d-md-none,
    .service-detail-page .d-md-none { display: none !important; }
    .product-detail-page .d-md-block,
    .service-detail-page .d-md-block { display: block !important; }
    .product-detail-page .d-md-flex,
    .service-detail-page .d-md-flex { display: flex !important; }
    .product-detail-page .d-md-inline,
    .service-detail-page .d-md-inline { display: inline !important; }
    .product-detail-page .d-none,
    .service-detail-page .d-none { display: block !important; }
    .product-detail-page .d-sm-none,
    .service-detail-page .d-sm-none { display: none !important; }
    .product-detail-page .d-sm-inline,
    .service-detail-page .d-sm-inline { display: inline !important; }
}
@media screen and (min-width: 769px) {
    .service-detail-page .service-actions.d-flex.d-md-none,
    .product-detail-page .product-actions.d-flex.d-md-none {
        display: none !important;
    }
    .service-detail-page .service-detail-container .service-actions,
    .service-detail-page .service-actions.d-none.d-md-flex,
    .service-detail-page .service-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        align-items: stretch !important;
        background: transparent !important;
        position: static !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        grid-template-columns: unset !important;
    }
    .service-detail-page .service-detail-container .service-actions .btn-book-now,
    .service-detail-page .service-detail-container .service-actions .btn-contact,
    .service-detail-page .service-actions .btn-book-now,
    .service-detail-page .service-actions .btn-contact {
        flex: 1 !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        grid-column: unset !important;
        display: flex !important;
        margin: 0 !important;
    }
    .product-detail-page .product-detail-container .product-actions,
    .product-detail-page .product-actions.d-none.d-md-flex,
    .product-detail-page .product-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        align-items: stretch !important;
        background: transparent !important;
        position: static !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        grid-template-columns: unset !important;
    }
    .product-detail-page .product-detail-container .product-actions .btn-buy-now,
    .product-detail-page .product-actions .btn-buy-now {
        flex: 2 !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        grid-column: unset !important;
        display: flex !important;
        margin: 0 !important;
    }
    .product-detail-page .product-detail-container .product-actions .btn-add-to-cart,
    .product-detail-page .product-detail-container .product-actions .btn-contact,
    .product-detail-page .product-actions .btn-add-to-cart,
    .product-detail-page .product-actions .btn-contact {
        flex: 1 !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        grid-column: unset !important;
        display: flex !important;
        margin: 0 !important;
    }
}
/* Product and Service Detail Pages (split from style.css) */
.product-detail-page,
.service-detail-page {
    background-color: #ffffff;
    min-height: 100vh;
    padding-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #64748b;
}

.breadcrumb-link {
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-link:hover {
    color: #1d4ed8;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #94a3b8;
}

.breadcrumb-current {
    color: #1e293b;
}

.product-detail-container,
.service-detail-container {
    background: white;
    border-radius: 1rem;
    padding: 1rem 2rem 2rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-detail-grid,
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-image-section,
.service-image-section {
    position: sticky;
    top: 2rem;
}

.product-main-image,
.service-main-image {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: #f8fafc;
}

.main-product-img,
.main-service-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-image-placeholder,
.service-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 3rem;
}

.product-image-placeholder span,
.service-image-placeholder span {
    font-size: 1rem;
    margin-top: 1rem;
}

.product-info-section,
.service-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header,
.service-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-top: 0.5rem;
}

.product-title,
.service-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.product-category,
.service-category {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
    margin-right: 0.5rem;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-price-section,
.service-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #059669;
}

/* Final mobile override to disable sticky images */
@media (max-width: 768px) {
    .product-image-section,
    .service-image-section { position: static !important; top: auto !important; }
}
