.product-details {
    padding: 60px 10%;
    background: #fff;
}

/* ALIGN LOGO + TEXT */
.product-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* 🔥 CENTER EVERYTHING */
}

/* LOGO ON TOP */
.product-logo-top {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;

    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* TITLE */
.product-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* MAIN LAYOUT */
.product-content {
    display: flex;
    gap: 50px;
    justify-content: space-between;
    align-items: flex-start;
}

/* LEFT SIDE */
.product-left {
    flex: 1;
}

/* DESCRIPTION */
.product-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    max-width: 500px; /* 🔥 keeps text centered nicely */
    align-items: flex-start;
     text-align: left;
    margin-top: 10px;
}

/* DOWNLOAD */
.download-section {
    margin-top: 30px;
}


.download-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

/* SUBTITLE */
.download-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* BUTTON */
.playstore-btn-pro {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 12px 18px;
    border-radius: 12px;

    background: linear-gradient(135deg, #1E5FCC, #2678D9);
    color: #fff;
    text-decoration: none;

    box-shadow: 0 6px 20px rgba(30, 95, 204, 0.3);

    transition: all 0.3s ease;
}



.playstore-btn-pro img {
    width: 28px;
}


/* TEXT STRUCTURE */
.btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.small-text {
    font-size: 10px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.big-text {
    font-size: 16px;
    font-weight: 600;
}

/* HOVER EFFECT */
.playstore-btn-pro:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 95, 204, 0.4);
}


.playstore-btn-pro.microsoft-store {
    background: linear-gradient(135deg, #0078D4, #106EBE);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.3);
}

.playstore-btn-pro.microsoft-store:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 120, 212, 0.4);
}

/* Microsoft icon tuning */
.playstore-btn-pro.microsoft-store img {
    width: 24px;
    filter: none; /* keep original logo colors */
}

.store-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}
/* ============================================ */

/* RIGHT SIDE SLIDER */
.product-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* SLIDER BOX */
.slider {
    width: 100%;
    max-width: 500px;
    
    aspect-ratio: 16 / 9; /* default desktop */
    max-height: 420px; 

    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #000;
    padding: 0px;
    box-sizing: border-box;
    position: relative;
}




/* SLIDES CONTAINER */
.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    
}

/* EACH IMAGE */
.slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-btn {
    width: 45px;
    height: 45px;
    background: #1E5FCC;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;

    /* PERFECT CENTER ALIGNMENT */
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    line-height: 1;

    transition: 0.3s;
}

.nav-btn:hover {
    background: #174bb5;
}


.slide.active {
    display: block;
}




/* WRAPPER */
.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}



.slider.android {
    aspect-ratio: 9 / 16;  /* mobile */
}

.slider.windows {
    aspect-ratio: 16 / 9;  /* desktop screenshots */
}
.slider.chrome {
    aspect-ratio: 16 / 10;
}


.slider.web {
    aspect-ratio: 16 / 10;
}




/* ========================= */
/* TABLET (1024px and below) */
/* ========================= */
@media (max-width: 1024px) {

    .product-details {
        padding: 50px 6%;
    }

    .product-content {
        gap: 30px;
    }

    .product-title {
        font-size: 30px;
    }

    .product-desc {
        font-size: 15px;
        max-width: 100%;
    }
    .slider {
        max-width: 420px;
    }


    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}


/* ========================= */
/* MOBILE (768px and below) */
/* ========================= */
@media (max-width: 768px) {

    .product-details {
        padding: 40px 5%;
    }

    /* STACK LAYOUT */
    .product-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* LEFT SECTION */
    .product-left {
        width: 100%;
    }

    .product-info {
        align-items: center;
    }

    /* LOGO */
    .product-logo-top {
        width: 90px;
        height: 90px;
    }
     .slider {
        max-width: 320px;
        aspect-ratio: 4 / 3; 
    }

    /* TITLE */
    .product-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    /* DESCRIPTION */
    .product-desc {
        text-align: left; /* 🔥 still left aligned (good UX) */
        font-size: 14px;
        line-height: 1.6;
        max-width: 100%;
    }

    /* DOWNLOAD SECTION */
    .download-section {
        text-align: center;
        margin-top: 25px;
    }

    .download-title {
        font-size: 16px;
    }

    .download-subtitle {
        font-size: 13px;
    }

    /* BUTTON */
    .playstore-btn-pro {
        justify-content: center;
        
        max-width: 260px;
    }

    /* RIGHT SIDE */
    .product-right {
        margin-top: 30px;
        width: 100%;
    }

    .slider-wrapper {
        gap: 10px;
    }

 

    .nav-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}


/* ========================= */
/* SMALL MOBILE (480px) */
/* ========================= */
@media (max-width: 480px) {

    .product-title {
        font-size: 22px;
    }

    .product-desc {
        font-size: 13px;
    }



    .playstore-btn-pro {
        padding: 10px 14px;
    }
    .slider {
        max-width: 260px;
        aspect-ratio: 4 / 3;
    }

    .big-text {
        font-size: 14px;
    }

    .small-text {
        font-size: 9px;
    }
}


/* ===================================================== */
/* ============================== */
/* GLOBAL SECTION IMPROVEMENT */
/* ============================== */

.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 70px auto;
    width: 85%;
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.section-title.center {
    text-align: center;
}

/* ============================== */
/* YOUTUBE SECTION (PREMIUM CARD) */
/* ============================== */

.youtube-section {
    padding: 70px 10%;
    background: #f8fafc;
}

.youtube-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.yt-icon {
    width: 22px;        /* perfect size */
    height: 22px;
    margin-left: 8px;
    vertical-align: middle;

    object-fit: contain;
    display: inline-block;
}

/* LEFT SIDE */
.youtube-left {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.youtube-desc {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* BULLETS */
.youtube-points {
    list-style: none;
    padding: 0;
}

.youtube-points li {
    margin-bottom: 12px;
    font-size: 15px;
    padding-left: 25px;
    position: relative;
}

.youtube-points li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #1E5FCC;
    font-weight: bold;
}

/* RIGHT SIDE */
.youtube-right {
    display: flex;
    justify-content: center;
}

.youtube-right iframe {
    width: 100%;
    height: 320px;
    border-radius: 18px;
    border: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.youtube-right iframe:hover {
    transform: scale(1.02);
}

/* ============================== */
/* ABOUT PRODUCT (CARD STYLE) */
/* ============================== */

.about-product {
    padding: 70px 10%;
    background: #ffffff;
}

/* MAIN TEXT */
.about-desc {
    max-width: 850px;
    margin: 0 auto 25px auto;
    font-size: 16px;
    color: #444;
    line-height: 1.8;
}

/* SUB SECTIONS */
.small-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 10px;
    color: #0f172a;
}

/* FEATURES GRID */
.features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.features-list li {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    transition: 0.3s;
}

.features-list li:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
}

/* ============================== */
/* PRODUCT META (CLEAN TABLE UI) */
/* ============================== */

.product-meta {
    padding: 70px 10%;
    background: #f8fafc;
}

.product-details-list {
    max-width: 550px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-details-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.product-details-list li:last-child {
    border-bottom: none;
}

/* ============================== */
/* RESPONSIVE DESIGN */
/* ============================== */

/* TABLET */
@media (max-width: 1024px) {

    .youtube-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .youtube-right iframe {
        height: 260px;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .youtube-section,
    .about-product,
    .product-meta {
        padding: 50px 6%;
    }

    .section-title {
        font-size: 26px;
    }

    .youtube-left {
        padding: 20px;
    }

    .youtube-right iframe {
        height: 220px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .about-desc {
        font-size: 14px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .section-title {
        font-size: 22px;
    }

    .youtube-right iframe {
        height: 200px;
    }

    .product-details-list li {
        font-size: 14px;
        padding: 12px 15px;
    }
}



/* ============================== */
/* RATING SECTION */
/* ============================== */

.rating-section {
    padding: 80px 8%;
    background: #f8fafc; /* light gray background */
}

.rating-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;

    max-width: 900px;
    margin: 0 auto;

    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}


.rating-overall {
    text-align: center;
}

.rating-score {
    font-size: 56px;
    font-weight: 700;

    background: linear-gradient(135deg, #1E5FCC, #2678D9);
    background-clip: text;
    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    /* fallback */
    display: inline-block;
}

.stars {
    font-size: 24px;
    color: #fbbf24;
    margin: 10px 0;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 14px;
    color: #64748b;
}

/* RIGHT SIDE */
.rating-breakdown {
    width: 100%;
}


.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.rating-row span {
    width: 30px;
    font-size: 13px;
    color: #334155;
}

.bar {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}


.bar div {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #1E5FCC, #2678D9);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.rating-row strong {
    font-size: 13px;
    color: #475569;
}

.fill {
    height: 100%;
    background: linear-gradient(135deg, #1E5FCC, #2678D9);
    border-radius: 10px;
}

/* ============================== */
/* RESPONSIVE */
/* ============================== */

@media (max-width: 768px) {
    .rating-container {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .rating-section {
        padding: 50px 6%;
    }

    .rating-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .rating-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .rating-score {
        font-size: 36px;
    }

    .stars {
        font-size: 18px;
    }
}






.user-rating-box {
    margin-top: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 14px;
    text-align: center; /* ✅ FIX: everything centered */
    border: 1px solid #e2e8f0;
}

.rate-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.rate-subtext {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}



.user-stars {
    display: flex;
    justify-content: center;  /* ✅ center properly */
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.user-stars span {
    font-size: 30px;
    cursor: pointer;
    color: #cbd5e1;
    transition: all 0.25s ease;
}

/* Active stars */
.user-stars span.active {
    color: #fbbf24;
    transform: scale(1.15);
}

/* Hover effect */
.user-stars span:hover {
    transform: scale(1.25);
}


#submitRating {
    display: inline-block;   /* ✅ ensures center alignment */
    margin-top: 10px;
    padding: 10px 22px;
    border: none;
    background: linear-gradient(135deg, #1E5FCC, #2678D9);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#submitRating:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,95,204,0.3);
}

#alreadyRatedMsg {
    margin-top: 20px;
    padding: 15px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}


.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.popup-box {
    background: #fff;
    padding: 25px 30px;
    border-radius: 14px;
    text-align: center;
    width: 280px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: pop 0.25s ease;
}

.popup-box span {
    font-size: 30px;
    display: block;
    margin-bottom: 10px;
}

.popup-box p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #0f172a;
}

.popup-box button {
    padding: 8px 16px;
    border: none;
    background: #1E5FCC;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

@keyframes pop {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.rate-note {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    border-radius: 8px;
    line-height: 1.5;
}


