/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
    /* Color Palette - Formal Corporate (Light & Navy) */
    --primary-color: #ffffff;
    --secondary-color: #f1f5f9;
    --accent-color: #0f172a;
    --accent-glow: rgba(15, 23, 42, 0.15);
    --gold-accent: #0ea5e9;

    --text-light: #1e293b;
    --text-dim: #64748b;

    --success-color: #10B981;
    --danger-color: #EF4444;

    /* Spacing */
    --section-padding: 6rem 1rem;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    direction: inherit;
}

.container,
.btn,
.card,
.logo-img,
.nav-links,
.dropdown,
.dropdown-menu,
.dropdown-item,
.hero,
.hero-content,
.hero-title,
.hero-description,
.hero-btns,
.hero-visual,
.shield-container {
    direction: inherit;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
        white-space: normal;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #0EA5E9);
    color: var(--primary-color);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

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

.btn-outline:hover,
.btn-outline.active {
    background: var(--accent-color);
    color: #fff;
}

/* Header & Nav */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: flex-start;
    /* Align items to the start (Right in RTL) */
    align-items: center;
    padding: 15px 0;
    gap: 40px;
    /* Space between logo and nav links */
}

.logo-img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

/* Hover Effect: Red Line Animation */
.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
    /* Keep color constant */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--danger-color);
    /* Red Line */
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* === Language-based navbar direction === */
/* Arabic: Logo right, nav items right-to-left */
body.lang-ar header nav {
    flex-direction: row;
    justify-content: flex-start !important;
}

body.lang-ar .nav-links {
    flex-direction: row;
    direction: rtl;
}

body.lang-ar .nav-links a::after {
    right: 0;
    left: auto;
}

/* English: Logo left, nav items left-to-right */
body.lang-en header nav {
    flex-direction: row-reverse;
    justify-content: flex-start !important;
}

body.lang-en .nav-links {
    flex-direction: row;
    direction: ltr;
}

body.lang-en .nav-links a::after {
    left: 0;
    right: auto;
}

body.lang-ar .dropdown-menu {
    right: 0;
    left: auto;
}

body.lang-en .dropdown-menu {
    left: 0;
    right: auto;
}

/* Logo section spacing per language */
body.lang-ar .logo-section {
    padding-left: 25px;
    border-left: 1px solid #e2e8f0;
    margin-left: 25px;
    padding-right: 0;
    border-right: none;
    margin-right: 0;
}

body.lang-en .logo-section {
    padding-right: 25px;
    border-right: 1px solid #e2e8f0;
    margin-right: 25px;
    padding-left: 0;
    border-left: none;
    margin-left: 0;
}

/* ============================================ */
/* === Content Direction Based on Language === */
/* ============================================ */

/* Arabic (RTL) - Default styling */
body.lang-ar {
    text-align: right;
}

body.lang-ar .hero .container {
    flex-direction: row;
}

body.lang-ar .hero-content {
    text-align: right;
}

body.lang-ar .service-card {
    text-align: right;
}

body.lang-ar .service-card span {
    left: 20px;
    right: auto;
}

body.lang-ar .service-card .service-icon {
    right: 20px;
    left: auto;
}

body.lang-ar .section-header {
    text-align: center;
}

body.lang-ar .footer-content {
    direction: rtl;
}

body.lang-ar .footer-col {
    text-align: right;
}

body.lang-ar .footer-links {
    text-align: right;
}

body.lang-ar ul li i {
    margin-left: 10px;
    margin-right: 0;
}

/* English (LTR) */
body.lang-en {
    text-align: left;
}

body.lang-en .hero .container {
    flex-direction: row-reverse;
}

body.lang-en .hero-content {
    text-align: left;
}

body.lang-en .hero-btns {
    justify-content: flex-start;
}

body.lang-en .services-grid {
    direction: ltr;
}

body.lang-en .service-card {
    text-align: left;
}

body.lang-en .service-card span {
    left: 20px;
    right: auto;
}

body.lang-en .service-card .service-icon {
    right: 20px;
    left: auto;
}

body.lang-en .service-card h3,
body.lang-en .service-card p {
    text-align: left;
}

body.lang-en .section-header {
    text-align: center;
}

body.lang-en .section-title {
    direction: ltr;
}

body.lang-en #about > .container > div {
    flex-direction: row-reverse;
}

body.lang-en #about p,
body.lang-en #about ul {
    text-align: left;
    direction: ltr;
}

body.lang-en #about ul li {
    direction: ltr;
}

body.lang-en #contact > .container > div {
    direction: ltr;
}

body.lang-en #contact-form {
    direction: ltr;
}

body.lang-en .footer-content {
    direction: ltr;
}

body.lang-en .footer-col {
    text-align: left;
}

body.lang-en .footer-col h4::after {
    right: auto;
    left: 0;
}

body.lang-en .footer-links {
    text-align: left;
}

body.lang-en ul li i {
    margin-right: 10px;
    margin-left: 0;
}

body.lang-en .form-group {
    text-align: left;
}

body.lang-en #contact-form label {
    text-align: left;
}

body.lang-en .login-card .form-group {
    text-align: left;
}

body.lang-en .filter-container {
    direction: ltr;
}

body.lang-en #search-input {
    direction: ltr;
    text-align: left;
}

body.lang-en #search-input + i {
    right: auto;
    left: 20px;
}

/* Login dropdown styling for English */
body.lang-en .dropdown-toggle {
    flex-direction: row-reverse;
}

body.lang-en .dropdown-item {
    direction: ltr;
    text-align: left;
}

/* Admin Page English Styles */
body.lang-en .admin-container {
    direction: ltr;
}

/* Admin Header for English */
body.lang-en .admin-nav {
    flex-direction: row-reverse;
}

body.lang-en .admin-nav-logo {
    flex-direction: row-reverse;
}

body.lang-en .admin-nav-actions {
    flex-direction: row-reverse;
}

body.lang-en .admin-card {
    direction: ltr;
    text-align: left;
}

body.lang-en .admin-card h3,
body.lang-en .admin-card h4,
body.lang-en .admin-card p,
body.lang-en .admin-card label {
    text-align: left;
}

body.lang-en .form-row {
    direction: ltr;
}

body.lang-en .form-col {
    text-align: left;
}

body.lang-en .form-col label {
    text-align: left;
}

body.lang-en .form-col input,
body.lang-en .form-col select,
body.lang-en .form-col textarea {
    direction: ltr;
    text-align: left;
}

body.lang-en .product-table th,
body.lang-en .product-table td {
    text-align: left;
}

body.lang-en .admin-product-card {
    direction: ltr;
    text-align: left;
}

body.lang-en .admin-product-actions {
    justify-content: flex-start;
}

body.lang-en .modal-card {
    direction: ltr;
    text-align: center;
}

body.lang-en .products-grid {
    direction: ltr;
}

body.lang-en #dynamic-fields-container {
    direction: ltr;
}

body.lang-en #generic-specs-container {
    direction: ltr;
}

body.lang-en .dropdown-item i {
    margin-left: 8px;
    margin-right: 0;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 200;
    border: 1px solid #f1f5f9;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--secondary-color);
    color: var(--accent-color);
}

.dropdown-item i {
    margin-left: 10px;
    /* Space for icon in RTL */
    font-size: 1rem;
    color: var(--gold-accent);
}

/* Reset hover line for dropdown items */
.dropdown-item::after {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Nav Links - Default (Desktop) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: radial-gradient(circle at top left, #f8fafc, #fff);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    max-width: 100%;
}

.hero-content {
    flex: 1;
    padding-left: 50px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-title span {
    color: var(--danger-color);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-container {
    width: 300px;
    height: 350px;
    background: linear-gradient(135deg, var(--accent-color), #1e293b);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3); - Doesn't work well with clip-path */
    filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.4));
    animation: hexagonFloat 6s ease-in-out infinite;
}

@keyframes hexagonFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.shield-icon {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
}

/* Sections */
section {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--gold-accent);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin: 10px 0;
}

/* Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

@media (max-width: 480px) {
    .services-grid {
        gap: 15px;
    }
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    padding-top: 80px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card span {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 2.5rem;
    font-weight: 900;
    color: #eee;
    line-height: 1;
}

.service-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3rem;
    color: var(--danger-color);
    margin-bottom: 0;
    display: inline-block;
    line-height: 1;
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.service-card p {
    margin: 0;
}

/* Footer */
footer {
    background: var(--accent-color);
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gold-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-right: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    section {
        padding: 40px 0 !important;
    }
    
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 100px 0 40px 0 !important;
        min-height: auto;
    }

    .hero-content {
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }

    .nav-links {
        display: none !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        background: #fff !important;
        flex-direction: column !important;
        padding: 10px 0 !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
        z-index: 999 !important;
        gap: 0 !important;
        align-items: stretch !important;
        list-style: none !important;
        margin: 0 !important;
    }
    
    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .nav-links li {
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9;
        text-align: center !important;
        display: block !important;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block !important;
        padding: 15px 20px !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .nav-links li button {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links .dropdown {
        width: 100%;
    }
    
    .nav-links .dropdown-toggle {
        width: 100%;
        justify-content: center;
        border-radius: 0;
        background: #f8fafc;
    }
    
    .nav-links .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #f1f5f9;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        border: none;
        border-top: 1px solid #e2e8f0;
    }
    
    .nav-links .dropdown-item {
        padding: 12px 20px;
        border-bottom: 1px solid #e2e8f0;
        justify-content: center;
    }
    
    .nav-links .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* Hide divider on mobile */
    .nav-links li[style*="width: 1px"] {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--accent-color);
        z-index: 1001;
        padding: 8px;
        border-radius: 5px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }
    
    .menu-toggle:hover {
        background: #e2e8f0;
    }
    
    /* Arabic - Logo first, then menu button */
    body.lang-ar .logo-menu-container {
        flex-direction: row;
    }
    
    body.lang-ar nav {
        flex-direction: row;
    }
    
    /* English - Menu button first, then logo (to keep logo on right) */
    body.lang-en .logo-menu-container {
        flex-direction: row-reverse;
    }
    
    body.lang-en nav {
        flex-direction: row-reverse;
    }
    
    /* Service Cards */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
        padding-top: 70px;
    }
    
    .service-card span {
        font-size: 2rem;
        top: 15px;
    }
    
    .service-icon {
        font-size: 2.5rem;
        top: 15px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* About Section */
    #about > .container > div {
        flex-direction: column;
    }
    
    #about img {
        max-width: 150px !important;
        height: auto;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Contact Section */
    #contact .container > div {
        grid-template-columns: 1fr;
    }
    
    /* Modal Responsive */
    .modal-card {
        width: 95%;
        max-width: 95%;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .spec-group {
        margin-bottom: 15px;
    }
    
    .spec-group h4 {
        font-size: 1rem;
    }
    
    .spec-item {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-col {
        width: 100%;
    }
    
    /* Modal */
    .modal-card {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    #modal-specs {
        grid-template-columns: 1fr !important;
    }
    
    /* Products Page */
    .filter-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        padding: 35px 25px;
        padding-top: 75px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    #about > .container > div {
        gap: 30px;
    }
    
    .footer-content {
        flex-wrap: wrap;
    }
    
    .footer-col {
        flex: 1 1 45%;
    }
    
    .modal-card {
        width: 90%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    * {
        box-sizing: border-box;
    }
    
    header {
        position: sticky;
        top: 0;
    }
    
    header .container {
        padding: 0 10px;
    }
    
    nav {
        padding: 10px 0;
    }
    
    .logo-img {
        height: 45px !important;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .service-card {
        padding: 25px 15px;
        padding-top: 65px;
    }
    
    .service-card span {
        font-size: 1.8rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
        white-space: normal;
    }
    
    .modal-card {
        padding: 15px;
        width: 98%;
        max-width: 98%;
    }
    
    #modal-title {
        font-size: 1.2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-col {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 15px;
    }
}

/* --- Helper Classes & Modal (Added) --- */

.form-group-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.form-group-title {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.btn-sm {
    padding: 5px 15px;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.spec-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }

    #product-detail-modal,
    #product-detail-modal * {
        visibility: visible;
    }

    #product-detail-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: white;
    }

    .modal-card {
        box-shadow: none;
        width: 100%;
        max-width: 100%;
    }

    button {
        display: none !important;
    }
}

/* Tables Responsive */
@media (max-width: 768px) {
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
        max-width: 100%;
    }
}