:root {
    --primary-color: #fef1e4;
    --secondary-color: #3493ed;
    --button-color: #ff6210;
    --text-color: #333;
    --white-color: #fff;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    background-color: var(--primary-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    color: #000;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Header */
.main-header {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar img {
    border-radius: 3px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white-color);
    font-weight: 600;
}

.nav-links li {
    border-radius: 5px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.nav-links li:hover {
    background-color: var(--button-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Main Content */
.prod-container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    column-gap: 15px;
    margin: 15px 20px 20px;
}

.img-projector {
    padding: 15px 0 0 15px;
}

.main-image img {
    box-shadow: 1px 1px 10px rgba(94, 92, 92, 0.52);
}

.image-options {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.image-options img {
    border: 1px solid rgba(0, 0, 0, 0.44);
    cursor: pointer;
    transition: 0.2s all ease-in-out;
}

.image-options img:hover {
    transform: scale(1.1);
}

.main-image img,
.image-options img {
    max-width: 100%;
    display: block;
}

/* ===== Desktop Image Sizing ===== */
.main-image img {
    max-width: 450px;
    height: auto;
}

.image-options img {
    width: 100px;
    height: auto;
}


.image-options picture {
    width: 100px;
}


.prod-info {
    padding: 20px;
}

.prod-info>h1 {
    line-height: 40px;
    margin: 0 0 6px;
}

.prod-info-container {
    overflow-y: auto;
    scrollbar-width: thin;
    border: 1px solid rgb(91, 90, 90);
    border-radius: 5px;
    height: 600px;
    padding: 15px;
    margin-top: 5px;
}

.prod-info-container h2 {
    margin-bottom: 0;
}

.prod-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.prod-price .price {
    font-size: 25px;
    font-weight: bold;
    color: #006ac1;
}

.negotiate-btn {
    border: 2px solid transparent;
    border-radius: 5px;
    text-align: center;
    font-weight: bolder;
    padding: 10px 18px;
    margin-bottom: 10px;
    color: #fff;
    background-color: #d1500f;
    font-size: 16px;
    transition: all 0.3s;
    animation: negotiate 3s infinite;
}

@keyframes negotiate {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(209, 80, 15, 0.6);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(209, 80, 15, 0.4);
    }
}

.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-family: Arial, sans-serif;
}

.spec-table thead {
    background-color: #3493ed;
    color: white;
}

.spec-table tbody tr {
    background-color: #f5f5f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, transform 0.2s;
    border-radius: 5px;
}

.spec-table tbody tr:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.spec-table th,
.spec-table td {
    padding: 14px;
    text-align: left;
}

.spec-table td:first-child {
    color: #ff6210;
    font-weight: 600;
}

.prod-side-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 15px;
    background-color: white;
    height: fit-content;
}

.talk-to-expert span {
    font-size: 14px;
}

.talk-expert-btn {
    border-radius: 5px;
    padding: 5px;
    font-weight: 600;
    background-color: #006ac1;
    color: white;
    transition: all 0.3s;
    text-align: center;
}

.talk-expert-btn:hover {
    background-color: #0f5fa0;
}

.price-instruction {
    font-size: 13px;
}

.ratings {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rating-stars-display span {
    font-size: 22px;
    color: #e0e0e0;
}

.rating-stars-display span.full {
    color: #f5a623;
}

.rating-avg {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.rating-count {
    font-size: 13px;
    color: #777;
}

.rating-none {
    font-size: 18px;
    color: #999;
}

.rate-label {
    font-size: 25px;
    font-weight: 600;
    color: #444;
    margin: 0 0 6px;
}

.star-input {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.star-input .star {
    font-size: 50px;
    color: #d0d0d0;
    cursor: pointer;
    transition: color 0.15s, transform 0.1s;
}

.star-input .star.hovered,
.star-input .star.selected {
    color: #f5a623;
    transform: scale(1.15);
}

.rate-hint {
    font-size: 15px;
    color: #999;
    margin: 0;
}

.rate-hint.success {
    color: #2e7d32;
    font-weight: 600;
}

.already-rated {
    font-size: 13px;
    color: #555;
    border-left: 3px solid #f5a623;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 4px;
}


.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 1rem 0 1rem;
}

.footer-content {
    padding: 2rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--button-color);
    margin-bottom: 1.5rem;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

.primary-button,
.footer-contact-button {
    border-radius: 5px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    background-color: var(--button-color);
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.primary-button:hover,
.footer-contact-button:hover {
    background-color: #d1500f;
    transform: translateY(-3px);
}

/* Mobile Fixed Buttons */
.mobile-fixed-buttons {
    display: none;
}

/* ======= Responsive ======= */
@media (max-width: 936px) {

    /* Mobile fixed buttons */
    .mobile-fixed-buttons {
        display: flex;
        position: fixed;
        bottom: 20px;
        width: 100%;
        justify-content: space-between;
        padding: 0 20px;
        z-index: 1000;
    }

    main {
        padding-bottom: 100px;
    }

    .whatsapp-mobile,
    .call-mobile {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5rem;
        text-decoration: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
    }

    .whatsapp-mobile {
        background-color: #25d366;
        color: #fff;
    }

    .call-mobile {
        background-color: #006ac1;
        color: #fff;
    }

    .whatsapp-mobile:hover,
    .call-mobile:hover {
        transform: scale(1.1);
    }

    /* Mobile nav */
    .nav-links {
        display: none;
        position: absolute;
        top: 86px;
        left: 0;
        width: 100%;
        flex-direction: column;
        text-align: center;
        background-color: var(--secondary-color);
        padding: 1rem 0;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }

    .nav-links li {
        margin: 0.5rem 0;
        padding: 10px;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Responsive adjustments */
    .prod-container {
        grid-template-columns: 1fr;
        margin: 10px;
    }

    .img-projector,
    .prod-info,
    .prod-side-panel {
        grid-column: auto;
        grid-row: auto;
    }

    .img-projector {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .image-options {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 15px;
    }

    .prod-info-container {
        height: auto;
        padding: 10px;
        font-size: 14px;
        overflow-y: visible;
    }

    .spec-table th,
    .spec-table td {
        padding: 10px;
        font-size: 14px;
    }

    .prod-info h1 {
        font-size: 20px;
        line-height: 1.4;
    }

    .prod-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;

    }

    .prod-price .price {
        font-size: 20px;
    }

    .negotiate-btn {
        width: 100%;
        max-width: 250px;
        font-size: 16px;
        padding: 12px;
    }

    .talk-to-expert {
        font-size: 12px;
    }

    /* ===== Mobile Image Sizing ===== */
    .main-image img {
        max-width: 300px;
        height: auto;
    }

    .image-options picture {
        width: 70px;
    }

    .image-options img {
        height: auto;
        /* ADD THIS */
    }

    .footer-section {
        padding-left: 1rem;
    }

}

@media (max-width: 340px) {
    .image-options img {
        height: 70px;
        width: 70px;
    }
}