/* Medium Layout: 1280px. */
@media only screen and (min-width: 992px) {
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .hero-text h1 {
        font-size: 45px;
    }

    a.video-play-btn {
        right: 51%;
    }
    .hero-area div.hero-form {
        bottom: -20%;
    }

    .cart-buttons a:first-child {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .contact-form form p input[type="email"] {
        margin-left: 8px;
    }
    .contact-form-box h4 i {
        left: -20%;
    }
    .comment-template form p input[type="email"] {
        margin-left: 8px;
    }
    ul.main-menu li a {
        padding: 15px 13px;
    }
    span.close-btn {
        right: 0;
    }
    ul.sub-menu li a {
        padding: 7px 10px;
    }
}
/* Tablet Layout: 768px. */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .hero-text h1 {
        font-size: 40px;
    }
    .footer-box {
        margin-bottom: 40px;
    }
    .copyright p {
        text-align: center;
    }
    .copyright .social-icons {
        text-align: center;
    }
    .feature-bg:after {
        display: none;
    }
    .single-team-item {
        margin-bottom: 30px;
    }
    table.cart-table {
        margin-bottom: 50px;
    }
    .order-details-wrap {
        margin-top: 50px;
    }
    .contact-form form p input[type="text"],
    .contact-form form p input[type="tel"],
    .contact-form form p input[type="email"] {
        width: 100%;
    }

    .contact-form form p input[type="email"] {
        margin-left: 0;
        margin-top: 15px;
    }
    .contact-form form p input[type="tel"] {
        margin-bottom: 15px;
    }

    .hero-area div.hero-form {
        width: 325px;
        top: 30%;
    }

    .comment-template form p input[type="text"],
    .comment-template form p input[type="email"] {
        width: 100%;
    }

    .comment-template form p input[type="email"] {
        margin-top: 15px;
        margin-left: 0;
    }
    .sidebar-section {
        margin-left: 0;
        margin-top: 50px;
    }
    .single-product-img {
        margin-bottom: 30px;
    }
    .single-product-img img {
        width: 100%;
    }
    .single-project-img img {
        width: 100%;
    }
    .site-logo a img {
        max-width: 150px;
    }
    .site-logo {
        text-align: center;
        position: absolute;
        z-index: 999;
    }
    .mean-container .mean-bar {
        z-index: 2;
    }
    .responsive-menu-wrap {
        display: block;
    }
    .header-icons {
        text-align: center;
    }
    .top-header-area {
        padding: 15px 0;
    }

    .responsive-menu-wrap {
        position: absolute;
        top: 0;
    }

    .featured-section {
        padding: 0;
    }

    .responsive-menu-wrap {
        left: 50%;
        margin-top: 10px;
        margin-left: -57.5px;
    }
    .hero-text-tablecell {
        padding: 0px 70px;
    }
    .hero-form .hero-text h1 {
        font-size: 30px;
    }

    .hero-form .hero-text p.subtitle {
        font-size: 13px;
    }

    .hero-form .hero-btns a.bordered-btn {
        margin-left: 0;
        margin-top: 20px;
    }

    .sticky-wrapper.is-sticky .top-header-area {
        position: absolute !important;
        background-color: transparent;
    }
    .featured-box {
        padding: 30px;
    }

    .featured-section {
        padding: 100px 0;
    }
    nav.main-menu {
        display: none;
    }
    table.order-details {
        width: 100%;
    }
    .contact-form-box h4 i {
        left: -7%;
    }
    .single-product-content h3 {
        font-size: 20px;
        font-weight: 500;
        line-height: 1.6;
    }

    .single-product-content {
        margin-left: 15px;
    }
    a.mobile-hide.search-bar-icon {
        display: none !important;
    }
    .mobile-show {
        display: block !important;
    }
    a.mobile-show.search-bar-icon {
        position: absolute;
        right: 60px;
        top: 22px;
        z-index: 999;
        color: #fff;
    }
}

/* Mobile Layout: 320px. */
@media only screen and (max-width: 767px) {
    .site-logo img {
        max-width: 150px;
    }

    .responsive-menu-wrap {
        top: -35px;
    }

    span.close-btn {
        right: 35px;
    }
    .header-icons {
        text-align: center;
    }
    .hero-text h1 {
        font-size: 28px;
    }

    .section-title p {
        max-width: 400px;
    }

    .section-title h3 {
        font-size: 25px;
    }

    p.testimonial-body {
        font-size: 15px;
    }
    .responsive-menu {
        left: auto;
        right: 0;
    }

    .featured-section {
        padding: 0;
    }

    a.video-play-btn {
        right: auto;
        left: 50%;
        margin-left: -45px;
    }

    .shop-banner h3 {
        font-size: 34px;
    }

    .footer-box {
        margin-bottom: 50px;
    }

    .copyright p {
        text-align: center;
    }

    .social-icons {
        text-align: center;
    }

    .footer-area {
        padding: 80px 0;
    }

    .hero-text {
        text-align: center;
    }

    .responsive-menu-wrap {
        position: relative;
    }

    .breadcrumb-text h1 {
        font-size: 30px;
    }

    .feature-bg:after {
        display: none;
    }

    .text-block {
        margin-bottom: 50px;
    }

    .single-team-item {
        margin-bottom: 50px;
    }

    .team-bg {
        height: 450px;
    }

    .total-section {
        margin-top: 30px;
    }

    .order-details-wrap {
        margin-top: 50px;
    }

    .contact-form form p input[type="text"],
    .contact-form form p input[type="tel"],
    .contact-form form p input[type="email"] {
        width: 100%;
    }
    .contact-form form p input[type="tel"] {
        margin-bottom: 15px;
    }

    .contact-form form p input[type="email"] {
        margin-left: 0;
        margin-top: 15px;
    }

    .find-location p {
        font-size: 20px;
    }

    .comment-template form p input[type="email"] {
        margin-left: 0;
        margin-top: 15px;
    }

    .comment-template form p input[type="text"],
    .comment-template form p input[type="email"] {
        width: 100%;
    }

    .sidebar-section {
        margin-left: 0;
        margin-top: 50px;
    }

    .single-product-content {
        margin-left: 0;
        margin-top: 15px;
    }

    .single-product-content h3 {
        font-size: 20px;
        line-height: 1.5;
    }

    .product-image {
        padding: 60px;
        padding-bottom: 0;
    }

    .header-icons {
        text-align: right;
        margin-top: 15px;
    }

    .feature-bg {
        margin: 100px 0;
    }

    .margin-top-150p {
        margin-top: 650px;
    }

    .display-hidden {
        display: none;
    }

    .hero-area div.hero-form {
        right: 0;
    }

    .hero-btns a.bordered-btn {
        margin-left: 15px;
        margin-top: 0;
        display: inline-block;
    }
    .hero-area div.hero-form {
        width: auto;
    }
    .section-title p {
        max-width: 285px;
    }

    p.testimonial-body {
        max-width: 285px;
    }
    .hero-area div.hero-form {
        top: 0;
    }
    .single-media-wrap h4 {
        font-size: 15px;
    }

    .sticky-wrapper.is-sticky .top-header-area {
        position: absolute !important;
        background-color: transparent;
        padding: 25px 0;
    }
    .featured-box {
        padding: 0 45px;
        margin-bottom: 10px;
    }

    .featured-section {
        padding: 100px 0;
    }
    .search-bar-tablecell input {
        font-size: 20px;
    }
    .header-icons {
        margin-top: 0;
    }
    .site-logo {
        position: absolute;
        z-index: 99;
    }

    .mean-container .mean-bar {
        z-index: 2;
    }
    .section-title {
        margin-bottom: 50px;
    }
    .service-text h3 {
        font-size: 18px;
    }
    .featured-box h2 {
        font-size: 23px;
    }

    .featured-box h3 {
        font-size: 18px;
    }

    .cta-text h3 {
        line-height: 1.6;
    }

    .news-text-box h3 {
        font-size: 20px;
        line-height: 1.5;
    }

    .copyright p {
        padding-bottom: 0;
    }
    .single-service-box {
        padding: 30px;
    }

    .service-icon-table {
        height: 80px;
    }

    .service-icon-tablecell i {
        font-size: 30px;
    }

    .main-menu {
        display: none;
    }
    .error-text h1 {
        font-size: 25px;
    }
    h2.widget-title {
        font-size: 20px;
    }
    .cart-table-wrap {
        width: 100%;
        overflow-x: scroll;
    }
    table.cart-table {
        width: 690px;
    }
    .cart-buttons a:first-child {
        margin-bottom: 15px;
    }
    .form-title h2 {
        font-size: 20px;
    }

    .contact-form-box h4 i {
        left: -20%;
    }
    .featured-text p {
        line-height: 1.8;
    }
    .single-artcile-bg {
        height: 300px;
    }

    .single-article-text h2 {
        font-size: 20px;
    }

    .comments-list-wrap h3,
    .comment-template h4 {
        font-size: 20px;
    }

    .comment-user-avater img {
        max-width: 45px;
    }

    .comment-text-body {
        padding-left: 60px;
    }

    .comment-text-body h4 a {
        display: block;
        border: none;
        margin-left: 0;
        margin-top: 10px;
    }

    .comment-text-body h4 {
        font-size: 18px;
    }

    .comment-text-body p {
        line-height: 1.8;
    }

    .single-comment-body.child {
        margin-left: 0;
    }
    .single-product-content h3 {
        font-size: 20px;
        line-height: 1.5;
    }
    a.mobile-hide.search-bar-icon {
        display: none !important;
    }
    .mobile-show {
        display: block !important;
    }
    a.mobile-show.search-bar-icon {
        position: absolute;
        right: 60px;
        top: 22px;
        z-index: 999;
        color: #fff;
    }
}
/* Wide Mobile Layout: 480px. */
@media only screen and (min-width: 480px) and (max-width: 767px) {
    .hero-area div.hero-form {
        margin: 0 auto;
        right: auto;
        width: 380px;
        left: 50%;
        margin-left: -190px;
    }

    .hero-btns {
        text-align: center;
        margin-top: 35px;
    }

    .hero-btns a.bordered-btn {
        margin-left: 0;
        margin-top: 15px;
        display: block;
    }
}

/* زر الهيرو على الموبايل */
@media (max-width: 768px) {
    .hero-btns {
        display: flex;
        flex-direction: column; /* تخليهم فوق بعض */
        align-items: center; /* محاذاة بالوسط */
        gap: 10px; /* مسافة بين الزرين */
        margin-top: 20px; /* يمكن تصغير المسافة عالهواتف */
    }

    .hero-btns .boxed-btn,
    .hero-btns .bordered-btn {
        width: 80%; /* عرض مناسب للشاشة الصغيرة */
        display: block;
        text-align: center;
        padding: 10px 0;
        font-size: 16px;
        margin-left: 0; /* إزالة الهامش الأيسر للزر الثاني */
        margin-top: 0; /* إزالة الهامش العلوي للزر الثاني */
    }
}

/* الوضع الافتراضي للزر */
a.bordered-btn,
a.boxed-btn {
    font-family: "Poppins", sans-serif;
    display: inline-block;
    color: #fff;
    border: 2px solid #d6a75f;
    padding: 7px 20px;
    width: auto; /* العرض تلقائي حسب المحتوى */
    text-align: center;
    min-width: 120px; /* أقل عرض للزر */
}

/* عند الشاشات الصغيرة */
@media (max-width: 768px) {
    a.bordered-btn,
    a.boxed-btn {
        width: 70%; /* أقل عرض مناسب للموبايل */
        max-width: 200px; /* أقصى عرض */
        margin: auto; /* محاذاة بالوسط */
        padding: 10px 0; /* ارتفاع مناسب للزر */
    }
}

/* Hero text tablecell - responsive adjustments */
@media (max-width: 768px) {
    .hero-text-tablecell {
        display: block; /* بدل table-cell نستخدم block */
        width: 100%; /* ياخد كامل عرض الحاوية */
        height: auto; /* ارتفاع تلقائي حسب المحتوى */
        padding: 20px 15px; /* تقليل البادينغ لتناسب الموبايل */
        text-align: center; /* محاذاة النص للوسط */
        vertical-align: middle; /* لا حاجة لـ table-cell */
    }

    .homepage-slider div.hero-text-tablecell div {
        height: auto; /* تأكد أن العناصر الداخلية تتوسع تلقائياً */
    }

    .hero-text-tablecell h1 {
        font-size: 24px; /* تصغير العنوان على الموبايل */
    }

    .hero-text-tablecell p.subtitle {
        font-size: 16px; /* تصغير النص الفرعي */
    }

    .hero-btns {
        display: flex;
        flex-direction: column; /* الزرار فوق بعض */
        align-items: center;
        gap: 10px;
    }

    .hero-btns .boxed-btn,
    .hero-btns .bordered-btn {
        width: 80%; /* عرض مناسب للموبايل */
        text-align: center;
        padding: 10px 0;
        font-size: 16px;
    }
}

/* responsive.css */
@media (max-width: 768px) {
    .reviews-page form p {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .reviews-page form input,
    .reviews-page form textarea {
        width: 100%;
    }

    .reviews-page .section-title h3 {
        font-size: 1.5rem;
    }
}

.reviews-page form input,
.reviews-page form textarea {
    box-sizing: border-box;
}

.reviews-page form input[type="submit"] {
    display: block;
    margin: 1rem auto 0 auto;
    width: 50%;
    max-width: 200px;
    text-align: center;
    padding: 10px;
}

@media (max-width: 768px) {
    .single-testimonial-slider {
        padding: 1rem;
        margin: 0 auto 1rem auto;
        width: 95%;
    }
}

.invoice-box {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

p {
    margin: 5px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    padding: 10px;
    text-align: right;
}

table th {
    background: #f5f5f5;
}

.total {
    font-weight: bold;
    background: #f0f0f0;
}

/* Responsive */
@media only screen and (max-width: 600px) {
    .invoice-box {
        padding: 10px;
    }

    table thead {
        display: none;
    }

    table,
    table tbody,
    table tr,
    table td {
        display: block;
        width: 100%;
    }

    table tr {
        margin-bottom: 15px;
        border-bottom: 1px solid #ddd;
    }

    table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        right: 10px;
        top: 10px;
        font-weight: bold;
        white-space: nowrap;
    }

    .total {
        background: #f9f9f9;
        text-align: right;
    }
}



