﻿* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #8faeb0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* الفورم */
.phone {
    width: 440px;
    min-height: 550px;
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    position: relative;
}

/* السهم */
.top-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.top-bar a {
    text-decoration: none;
}

.top-bar i {
    font-size: 22px;
    color: #c96b3c;
    cursor: pointer;
    transition: transform 0.3s;
}

.top-bar i:hover {
    transform: scale(1.3);
}

/* العنوان */
.title {
    text-align: center;
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.description {
    text-align: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

/* =========================
   Gallery
========================= */

.gallery {
    overflow: hidden;
    width: 100%;
    height: 360px;
    border-radius: 15px;
}

/* السلايدر */
.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

/* الصور */
.slider img {
    width: 100%;
    min-width: 100%;
    height: 100%;

    flex: 0 0 100%;

    padding: 10px;

    object-fit: contain;

    display: block;

    cursor: pointer;
}

/* النقاط */
.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #c96b3c;
}

/* =========================
   تكبير الصورة
========================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

/* =========================
   Responsive
========================= */

@media (max-width: 480px) {

    body {
        padding: 15px;
        align-items: flex-start;
    }

    .phone {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        border-radius: 16px;
        padding: 15px;
    }

    .title {
        font-size: 20px;
    }

    .description {
        font-size: 14px;
    }

    .gallery {
        height: 320px;
    }

    .slider img {
        padding: 5px;
    }
}

@media (max-width: 360px) {

    .title {
        font-size: 18px;
    }

    .description {
        font-size: 13px;
    }

    .gallery {
        height: 280px;
    }
}


