/* Product Page - Dark Theme */
/* Inherits variables from home.css */

.product-hero {
    background-color: var(--primary-bg);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.product-hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.product-hero p {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-hero h1 {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.3;
}

/* Product Grid */
.product-grid-section {
    background-color: var(--primary-bg);
    padding: 1rem 2rem 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Product Card */
.product-card {
    background: #242866;
    /* Darker card bg */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-image {
    background: white;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-icon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header Strip */
.product-header-strip {
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.product-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.key-features-title {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-pill::before {
    content: '•';
    color: var(--accent-color);
    /* Overridden per card */
    font-weight: bold;
}

/* Buttons */
.card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-fill {
    color: white;
    /* Bg set by theme */
    border: none;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

/* Theme Colors */
/* Water */
.theme-water .product-icon-badge {
    background: #f39f22;
}

.theme-water .product-header-strip {
    background: linear-gradient(90deg, #f39f22, #ffb347);
}

.theme-water .feature-pill::before {
    color: #f39f22;
}

.theme-water .btn-fill {
    background: #f39f22;
}

.theme-water .btn-fill:hover {
    background: #d98a1a;
}

.theme-water .btn-outline {
    border-color: #f39f22;
    color: #f39f22;
}

.theme-water .btn-outline:hover {
    background: rgba(243, 159, 34, 0.1);
}

/* Inverter */
.theme-power .product-icon-badge {
    background: #f39f22;
}

.theme-power .product-header-strip {
    background: linear-gradient(90deg, #f39f22, #ffb347);
}

.theme-power .feature-pill::before {
    color: #f39f22;
}

.theme-power .btn-fill {
    background: #f39f22;
    color: white;
}

.theme-power .btn-fill:hover {
    background: #d98a1a;
}

.theme-power .btn-outline {
    border-color: #f39f22;
    color: #f39f22;
}

.theme-power .btn-outline:hover {
    background: rgba(243, 159, 34, 0.1);
}

/* CCTV */
.theme-cctv .product-icon-badge {
    background: #f39f22;
}

.theme-cctv .product-header-strip {
    background: linear-gradient(90deg, #f39f22, #ffb347);
}

.theme-cctv .feature-pill::before {
    color: #f39f22;
}

.theme-cctv .btn-fill {
    background: #f39f22;
}

.theme-cctv .btn-fill:hover {
    background: #d98a1a;
}

.theme-cctv .btn-outline {
    border-color: #f39f22;
    color: #f39f22;
}

.theme-cctv .btn-outline:hover {
    background: rgba(243, 159, 34, 0.1);
}

/* Cash */
.theme-cash .product-icon-badge {
    background: #f39f22;
}

.theme-cash .product-header-strip {
    background: linear-gradient(90deg, #f39f22, #ffb347);
}

.theme-cash .feature-pill::before {
    color: #f39f22;
}

.theme-cash .btn-fill {
    background: #f39f22;
}

.theme-cash .btn-fill:hover {
    background: #d98a1a;
}

.theme-cash .btn-outline {
    border-color: #f39f22;
    color: #f39f22;
}

.theme-cash .btn-outline:hover {
    background: rgba(243, 159, 34, 0.1);
}

/* AC */
.theme-ac .product-icon-badge {
    background: #f39f22;
}

.theme-ac .product-header-strip {
    background: linear-gradient(90deg, #f39f22, #ffb347);
}

.theme-ac .feature-pill::before {
    color: #f39f22;
}

.theme-ac .btn-fill {
    background: #f39f22;
}

.theme-ac .btn-fill:hover {
    background: #d98a1a;
}

.theme-ac .btn-outline {
    border-color: #f39f22;
    color: #f39f22;
}

.theme-ac .btn-outline:hover {
    background: rgba(243, 159, 34, 0.1);
}


/* Why Buy Section */
.why-buy-section {
    background: #242866;
    /* Slightly lighter than bg */
    padding: 4rem 2rem;
    margin: 6rem 2rem 4rem;
    border-radius: 16px;
    text-align: center;
}

.why-buy-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

.why-buy-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.why-buy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.why-buy-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #1e293b;
    /* Dark theme background matching card-bg approx */
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-body strong {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Modal Submit Button */
.modal-body .btn-fill {
    background: #f39f22 !important;
    /* Force accent color */
    color: #1e293b !important;
    /* Dark text for contrast */
    font-weight: 700;
    transition: background 0.3s;
}

.modal-body .btn-fill:hover {
    background: #ffffff !important;
}