/* =========================================
   1. IMPORTS & VARIABLES
========================================= */
@font-face {
    font-family: 'YekanBakh';
    src: url('../yekan-bakh.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette */
    --gold: #e3b932;
    --gold-hover: #b8962c;
    --dark: #044EA4;
    --light: #fff;
    --white: #ffffff;
    --border: #eaeaea;
    --text-muted: #508ac7;
    --danger: #dc3545;

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.1s ease;
    
    /* Typography */
    --font-family: 'YekanBakh', sans-serif;
}

h3 {
  color: #044EA4 !important;
}
/* =========================================
   GLOBAL SCROLLBAR
========================================= */
html {
    scrollbar-color: #d4af3780 #f1f1f1;
    scrollbar-width: thin; 
}

::-webkit-scrollbar-thumb {
    background: #d4af3780; 
    border-radius: 4px;
}

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

/* =========================================
   2. BASE & RESET
========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin; 
    scrollbar-color: var(--gold); 
}

body {
    font-family: var(--font-family);
    /*! background-color: #f4f4f4; */
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background: #ffffff;
    background: linear-gradient(162deg,rgba(255, 255, 255, 1) 0%, rgba(245, 245, 245, 1) 100%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   3. GLOBAL COMPONENTS & LAYOUT
========================================= */
header {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    margin: 0 auto;
    padding: 5px 5%;
    height: 50px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.header-center {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px; 
}

.logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--dark);
    width: 110px;
}

.nav-icons {
    margin-top: 10px;
    margin-left: 15px;
}

.nav-icons a {
    font-size: 1.2rem;
    position: relative;
    margin-right: 1.5rem;
}

.nav-icons a:hover {
    color: var(--gold);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

footer {
    background: #fff; 
    border-top: 1px solid var(--border); 
    padding: 2.5rem 5%; 
    text-align: center; 
    margin-top: 4rem; 
    color: var(--text-muted); 
    font-size: 0.6rem;
}

.site-footer {
    margin-top: 4rem;
    padding: 2.5rem 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    direction: rtl;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.02);
}
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}
.footer-nav a {
    color: #044EA4;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-nav a:hover {
    color: #d4af37; /* رنگ طلایی برای هاور */
}
.footer-copy {
    color: #688AB1;
    font-size: 0.7rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.footer-designer {
    display: block;
    width: 70px;
    margin: 0 auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.footer-designer:hover {
    opacity: 1;
}
.footer-designer img {
    width: 100%;
    height: auto;
}


/* Utilities & Alerts */
.breadcrumb {
    padding: 1.5rem 5%;
    font-size: 1rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--dark);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.alert { padding: 1rem; border-radius: 4px; margin-bottom: 1.5rem; font-size: 0.95rem; }
.alert-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.alert-error { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.success-msg { background: #d1e7dd; color: #0f5132; padding: 1rem; border-radius: 4px; margin-bottom: 1rem; border: 1px solid #badbcc; }
.fallback-success-msg { background: var(--gold); color: #000; border: 2px solid #000; padding: 1rem; border-radius: 4px; margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }

/* Base Buttons */
.btn-primary, 
.btn-submit, 
.btn-checkout, 
.btn-add {
    display: inline-block;
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover, 
.btn-submit:hover, 
.btn-checkout:hover, 
.btn-add:hover {
    background: var(--gold);
}

/* Loading & Media Placeholders */
.media-placeholder {
    background-image: url('../loading.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 40px;
    background-color: #f8f8f8;
    position: relative;
    overflow: hidden;
}

.fade-media {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.fade-media.loaded {
    opacity: 1;
}

/* --- Cart Modal Styles --- */
.cart-modal-container {
    display: none;
    position: absolute;
    top: 40px;
    right: 5%;
    width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    border: 1px solid #f0f0f0;
}
.cart-modal-container.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
}
.cart-modal-header h4 { margin: 0; font-size: 1rem; color: #044ea4; }
.cart-modal-header button { background: none; border: none; cursor: pointer; color: #777; font-size: 1.1rem; }
.cart-modal-body {
    max-height: 250px;
    overflow-y: auto;
    padding: 15px;
}
.cart-preview-list { list-style: none; padding: 0; margin: 0; }
.cart-preview-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 12px;
}
.cart-preview-list li:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.cart-preview-media { border-radius: 4px; margin-left: 12px; object-fit: cover; width: 50px; height: 50px; flex-shrink: 0; }
.cart-item-info { display: flex; flex-direction: column; font-size: 0.85rem; }
.cart-item-name { color: #044ea4; font-weight: bold; margin-bottom: 4px; }
.cart-item-price { color: #518ED6; }
.cart-modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}
.cart-total-box { font-weight: bold; margin-bottom: 12px; color: #044ea4; font-size: 0.95rem; display: flex; justify-content: space-between; }
.btn-go-cart {
    display: block;
    background: #518ED6;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
    font-weight: bold;
}
.btn-go-cart:hover { background: #3a6ea8; color: #fff; }


/* =========================================
   4. STOREFRONT (index.php)
========================================= */
.hero {
    height: 100px;
}

.hero h1 {
    font-weight: 300;
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    right: 10%;
    position: absolute;
}

.hero p {
    color: var(--dark);
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
}

.herotext {
    padding: 1rem 20px;
    color: #518ED6;
}

.herotext h1 {
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--dark);
}

.heroimg {
    background-image: url('../hero-ln.jpg');
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #000;
    background-color: #fff;
    max-width: 100vw;
    display: block;
    margin: auto;
    mix-blend-mode: multiply;
    margin-bottom: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
}

.category-card {
    position: relative;
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: #000;
}

.category-card .media-placeholder{
    aspect-ratio: 1 / 1;
    height: 100% !important;
    width: 100% !important;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    filter: grayscale(10%)contrast(110%) saturate(111%);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
    display: block;
}

.category-title {
    position: absolute;
    top: 78%;
    /*! right: 100px; */
    /*! transform: translate(50%, -50%); */
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    z-index: 2;
    pointer-events: none;
    width: 100%;
    text-align: center;
    text-align: right;
    padding-right: 15px;
}

.product-grid {
    padding: 10px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.product-card {
    background: var(--white); 
    border: 1px solid var(--border) !important;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 280px;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 1s linear;
}

.product-card:hover .product-image {
    transform: scale(1.4);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 0.9rem !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--gold);
    font-size: 0.9rem;
}

.btn-add {
    width: 100%;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
}

/* Common Styles for Promos */
.promo-hero-container, 
.promo-banner-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-bottom: 2rem;
    direction: rtl; /* ensure right-to-left layout */
    flex-direction: column-reverse;
    margin-top: 0rem;
}

/* Base Description Container */
.promo-hero-container .description__container,
.promo-banner-container .description__container {
    padding: 0rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10; /* Keep text above image on overlap */
}

.promo-hero-container .description__content h2,
.promo-banner-container .description__content h2 {
    margin-bottom: 1rem;
    font-size: 2.8rem;
}

.promo-hero-container .text-content,
.promo-banner-container .text-content {
    margin-bottom: 1.5rem;
}

.promo-hero-container .button,
.promo-banner-container .button {
    background: #d4af37;
    color: #fff !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: opacity 0.2s ease;
}
.promo-hero-container .button:hover,
.promo-banner-container .button:hover {
    opacity: 0.9;
}

.promo-hero-container .image__container,
.promo-banner-container .image__container {
    flex: 1;
    position: relative;
    z-index: 1;
    align-content: center;
    flex: 0 0 60%;
}

.promo-hero-container figure,
.promo-banner-container figure {
    margin: 0;
    height: 100%;
}

.promo-hero-container img,
.promo-banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 1. TOP HERO STYLES (Transparent BG, Black Text) */
.promo-hero-container {
    background: transparent;
}
.promo-hero-container .description__container {
    color: #000;
}
.promo-hero-container .description__content h2 {
    color: #518ED6;
      text-shadow: 2px 2px 4px rgba(83, 64, 177, 0.45); 

}

/* Hide Top Hero Description Content on Mobile */
@media (max-width: 767px) {
    .promo-hero-container .description__content {
        display: none !important;
    }
}

/* 2. BOTTOM BANNER STYLES (Black BG, White Text) */
.promo-banner-container {
    /*! background: #518ED6; */
    /*! background: linear-gradient(328deg,rgba(81, 142, 214, 1) 20%, rgba(255, 255, 255, 1) 80%); */
    background: #000;
}
.promo-banner-container .description__container {
    color: #fff;
}
.promo-banner-container .description__content h2 {
    color: #fff;
}

/* DESKTOP OVERLAP RULES */
@media (min-width: 768px) {
    .promo-hero-container, 
    .promo-banner-container {
        flex-direction: row;
        max-height: 612px;
        overflow: hidden;
    }
    
    .promo-hero-container .description__container,
    .promo-banner-container .description__container {
        flex: 1;
        /* Slightly overlap the text block onto the image (Negative margin pulls it left towards the image in RTL layout) */
        margin-left: -100px; 
        padding: 10px;
        text-wrap: balance;
    }
}


.featured-section {
    position: relative;
    margin: 0px auto 2rem;
    padding: 0 1rem;
    direction: rtl;
}
.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.featured-header h2 {
    font-size: 1.1rem;
    color: #518ED6;
    margin: 0;
}
.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 0.2rem;
    padding-bottom: 1.8rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}
.horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome/Safari/Edge */
}
.horizontal-card {
    flex: 0 0 240px; /* Fixed width for each card in scroll */
    scroll-snap-align: start;
}

/* ============ CAROUSEL ARROWS CSS ============ */
.slick-arrow {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #fff;
    box-shadow: 0 4px 4px 0 rgba(0,0,0,.2);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 54px;
    height: 54px;
    top: 50%; /* Adjusted for better vertical centering */
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    pointer-events: none; /* Make unclickable when hidden */
    transition: all 0.3s ease; /* Smooth transition for hover */
    color: #000;
}
.slick-next { right: 15px; }
.slick-prev { left: 15px; }

/* Show arrows on hover ONLY for desktop AND ONLY when container is scrollable */
@media (min-width: 768px) {
    .featured-section.is-scrollable:hover .slick-arrow {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Optional: Add a slight hover effect to the button itself */
    .slick-arrow:hover {
        background: #f8f8f8;
        box-shadow: 0 6px 8px 0 rgba(0,0,0,.25);
    }
}

/* Hide completely on mobile */
@media (max-width: 767px) {
    .horizontal-card {
        flex: 0 0 210px;
    }
    .slick-arrow {
        display: none !important;
    }
}

/* =========================================
   5. SINGLE PRODUCT 
========================================= */
.product-single-container { 
    max-width: 1200px; 
    margin: 3rem auto; 
    padding: 0 5%; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 4rem; 
}

.product-gallery { 
    flex: 1; 
    min-width: 300px; 
}

.main-media-container { 
    width: 100%; 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid var(--border); 
    box-shadow: var(--shadow-sm); 
    margin-bottom: 1rem; 
    background: #fff;
    height: 50vh;
    max-width: 500px;
    margin: auto;
}

.main-media-container img, .main-media-container video { 
    width: 100%; 
    display: block; 
    object-fit: cover; 
}

.thumbnail-grid { 
    display: flex; 
    flex-direction: row-reverse;
    gap: 10px; 
    overflow-x: auto; 
    padding-bottom: 10px; 
    justify-content: center;
    padding-top: 10px;
}

.thumbnail-grid .media-placeholder { 
    width: 80px; 
    height: 80px; 
    border-radius: 4px; 
    border: 1px solid var(--border); 
    cursor: pointer; 
    transition: 0.2s; 
    flex-shrink: 0; 
    position: relative; 
}

.thumbnail-grid .media-placeholder:hover { 
    border-color: var(--gold); 
}

.video-thumb-wrapper { position: relative; cursor: pointer; }

.play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    pointer-events: none;
    border-radius: 4px;
}

.product-details {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-details h1 {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.product-price-large {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 2rem;
}

.product-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.meta-item {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--gold);
    margin-left: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-height: 240px;
    overflow-y: auto;
    direction: rtl; 
    text-align: right; 
    padding-left: 12px;
    padding-right: 12px;
    scrollbar-color: var(--gold) #f1f1f1;
    scrollbar-width: thin;
}

.product-description::-webkit-scrollbar {
    width: 6px;
}

.product-description::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}

.product-description::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.product-description::-webkit-scrollbar-thumb:hover {
    background: var(--gold-hover);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.specs-table th, 
.specs-table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    text-align: right;
}

.specs-table th {
    width: 40%;
    color: var(--text-muted);
    font-weight: normal;
    background: #fafafa;
}

.specs-table td {
    font-weight: 500;
    color: var(--dark);
    background: #fafafa;
}

.product-id-badge {
    display: block;
    color: #d2bf85;
    font-size: 0.8rem;
    border-radius: 4px;
    font-family: monospace;
    vertical-align: middle;
    text-align: left;
}

.price-calc-dropdown {
    margin-top: 1rem;
    margin-bottom: 2rem;
    background: #fdfdfd;
    border: 1px dashed #d4af37;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem; 
    color: #666;
}

.price-calc-dropdown summary {
    cursor: pointer;
    /*! font-weight: 600; */
    color: #333;
    outline: none;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.price-calc-dropdown summary:hover {
    color: #d4af37;
}

.price-calc-dropdown summary::-webkit-details-marker {
    display: none; 
}

.price-calc-dropdown ul {
    margin-top: 12px;
    padding-right: 20px;
    line-height: 2;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* =========================================
   6. SHOPPING CART (cart.php)
========================================= */
.container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.container > h2 {
    font-weight: 300;
    margin-bottom: 2rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.cart-table th, 
.cart-table td {
    padding: 1.5rem;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    font-weight: 500;
    color: var(--text-muted);
}

.cart-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    vertical-align: middle;
    margin-left: 1rem;
    border-radius: 4px;
}

.remove-btn {
    color: var(--danger);
    font-size: 1.2rem;
}

.remove-btn:hover {
    opacity: 0.7;
}

.cart-summary {
    background: var(--white);
    padding: 2rem;
    margin-top: 2rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.cart-summary h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.empty-cart { 
    text-align: center; 
    padding: 4rem 1rem; 
    background: #fff; 
    border: 1px solid var(--border); 
    box-shadow: var(--shadow-sm); 
    margin-top: 2rem; 
    border-radius: 8px; 
}

.empty-cart i { 
    font-size: 4rem; 
    color: var(--border); 
    margin-bottom: 1rem; 
}

.empty-cart h3 { 
    font-size: 1.5rem; 
    color: var(--text-muted); 
    margin-bottom: 1.5rem; 
    font-weight: 400; 
}

.btn-continue { 
    display: inline-block; 
    background: var(--dark); 
    color: #fff; 
    padding: 1rem 3rem; 
    text-decoration: none; 
    transition: 0.3s; 
    font-family: inherit; 
    border-radius: 4px; 
}

.btn-continue:hover { background: var(--gold); }

.qty-input { 
    width: 70px; 
    padding: 0.6rem; 
    text-align: center; 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    font-family: inherit; 
    font-size: 1rem; 
    direction: ltr; 
    transition: border-color 0.3s;
    color: var(--dark);
}

.qty-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1); }

.cart-actions { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 1.5rem; 
    padding-top: 1.5rem; 
    border-top: 1px solid var(--border); 
}

.btn-update { 
    background: #f8f9fa; 
    color: var(--dark); 
    border: 1px solid var(--border); 
    padding: 0.8rem 1.5rem; 
    cursor: pointer; 
    border-radius: 4px; 
    transition: 0.3s; 
    font-family: inherit; 
    font-size: 1rem; 
}

.btn-update:hover { background: #e2e6ea; border-color: #dae0e5; }

/* =========================================
   7. CHECKOUT PAGE (checkout.php)
========================================= */
.checkout-wrapper {
    max-width: 600px;
    margin: 4rem auto;
    background: var(--white);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.checkout-wrapper h2 {
    text-align: center;
    font-weight: 300;
    color: var(--gold);
    margin-bottom: 2rem;
}

.checkout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 5%;
    align-items: flex-start;
}

.checkout-form-section {
    flex: 2;
    min-width: 300px;
    background: #fff;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.checkout-summary-section {
    flex: 1;
    min-width: 300px;
    background: var(--bg-color, #f8f9fa);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

.section-title {
    font-weight: 400;
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    background: var(--light);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    background: #fff;
}

.summary-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border);
    gap: 1rem;
}

.summary-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.summary-item-thumb img, 
.summary-item-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-item-title {
    font-size: 0.95rem;
    color: var(--dark);
}

.summary-item-qty {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.summary-item-price {
    font-weight: 500;
    color: var(--gold);
    font-size: 0.95rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.btn-submit {
    width: 100%;
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1.5rem;
    border-radius: 4px;
    font-family: inherit;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--gold);
}

/* =========================================
   8. MODALS, INTERACTIVES, & OVERLAYS
========================================= */
.cart-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeInOverlay 0.3s ease-out;
}

.cart-modal-box {
    background: #fff; 
    border: 1px solid #518ED6; 
    color: #3a3a3a;
    padding: 1rem;
    border-radius: 25px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    animation: scaleInModal 0.3s ease-out;
    position: relative;
}

.cart-modal-icon { font-size: 3rem; margin-bottom: 15px; color: #044ea4; }
.cart-modal-text { font-size: 1rem; margin-bottom: 1.5rem; color: #044ea4; }
.cart-modal-actions { display: flex; justify-content: center; }

.cart-modal-btn {
    background: #044ea4;
    color: #fff !important;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    font-size: 1rem;
}

.cart-modal-btn:hover { background: #518ED6; }

.cart-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #044ea4;
    opacity: 0.7;
    transition: 0.2s;
}

.cart-modal-close:hover { opacity: 1; }

@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleInModal { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* WhatsApp Interactive Animation */
.whatsapp-container { display: inline-flex; align-items: center; overflow: hidden; direction: ltr; padding-left: 10px;}
.whatsapp-icon { cursor: pointer; margin-right: 5px; margin-bottom: 5px; }
.whatsapp-text { display: inline-block; max-width: 0; opacity: 0; white-space: nowrap; transition: max-width 0.5s ease-in-out, opacity 0.5s ease-in-out, margin 0.5s ease-in-out; color: #000; text-decoration: none; font-size: 1rem; margin-right: 0; }
.whatsapp-text.show { max-width: 150px; opacity: 1; margin-right: 8px; }
#waText { font-size: 0.85rem; }

/* Fullscreen Glass Menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: -101%; 
    width: 340px;
    height: 100vh;
    height: 100dvh; 
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 5px 0 25px rgba(50, 159, 255, 0.4);
    max-width: 80%;
}

.fullscreen-menu.open { left: 0; }

.menu-close-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #518ED6;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 2;
}

.menu-close-btn:hover { transform: rotate(90deg); color: #d4af37; }

.menu-content-wrapper { width: 100%; max-height: 100vh; overflow-y: auto; padding: 1rem 1rem 1rem; display: flex; flex-direction: column; align-items: center; }
.menu-nav-list { list-style: none; padding: 0; text-align: center; margin: 0; }
.menu-nav-list li { margin: 0.5rem 0; }
.menu-nav-list a { text-decoration: none; font-size: 0.9rem; /*! font-weight: bold; */ color: #044EA4; transition: color 0.3s ease; display: block; }
.menu-nav-list a:hover { color: #d4af37; }
.menu-divider { width: 60px; height: 2px; background: rgba(26, 26, 26, 0.15); border: none; border-radius: 2px; margin: 1rem auto; }
.menu-secondary-list {     list-style: none;padding: 0;margin: 0;text-align: center;display: grid;grid-template-columns: repeat(2, 1fr);gap: 0px 40px;justify-items: center;}
.menu-secondary-list li { margin: 10px 0; }
.menu-secondary-list a { text-decoration: none; font-size: 0.8rem; font-weight: 500; color: #518ed6; transition: color 0.3s ease; display: block; }
.menu-secondary-list a:hover { color: #d4af37; }

#menuOpenBtn, #searchOpenBtn { font-size: 1.6rem; cursor: pointer; color: #518ED6; transition: color 0.3s ease; }
#menuOpenBtn:hover, #searchOpenBtn:hover { color: #d4af37; }
#searchOpenBtn { font-size: 1.4rem !important; }

/* Search Modal */
.search-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding-top: 15vh; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.search-modal.active { opacity: 1; visibility: visible; }
.search-modal-content { background: #fff; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 16px; padding: 2rem; width: 90%; max-width: 500px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); transform: translateY(-30px); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; direction: rtl; }
.search-modal.active .search-modal-content { transform: translateY(0); }
.search-close-btn { position: absolute; top: 15px; left: 15px; background: none; border: none; font-size: 1.5rem; color: #044ea4; cursor: pointer; transition: color 0.3s ease, transform 0.3s ease; }
.search-close-btn:hover { color: #d4af37; transform: rotate(90deg); }
.search-form { display: flex; gap: 10px; margin-top: 10px; }
.search-form input { flex: 1; padding: 12px 15px; border: 2px solid #eaeaea; border-radius: 10px; font-size: 1rem; font-family: inherit; outline: none; background: rgba(255, 255, 255, 0.9); transition: border-color 0.3s ease, box-shadow 0.3s ease; color: #518ed6;}
.search-form input:focus { border-color: #d4af37; box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15); }
.search-form button { background: #044EA4; color: #fff; border: none; border-radius: 10px; padding: 0 20px; font-size: 1.2rem; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease; }
.search-form button:hover { background: #d4af37; }
.search-form button:active { transform: scale(0.95); }

/* =========================================
   9. ADMIN DASHBOARD & INVOICE
========================================= */
.admin-container { max-width: 1200px; margin: 2rem auto; padding: 0 5%; }
.admin-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.admin-title { font-size: 1.5rem; color: var(--dark); font-weight: 600; }
.admin-actions { display: flex; gap: 1rem; align-items: center; }
.btn-admin { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; background: var(--dark); color: var(--white); border: none; border-radius: 4px; font-family: inherit; font-size: 0.9rem; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-admin:hover { background: var(--gold); color: var(--dark); }
.btn-admin.outline { background: transparent; border: 1px solid var(--dark); color: var(--dark); }
.btn-admin.outline:hover { background: var(--dark); color: var(--white); }

.order-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.order-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--border); }
.order-id { font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.order-date { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }
.status-badge { padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.info-block h4 { font-size: 1rem; color: var(--gold); margin-bottom: 0.8rem; font-weight: 600; }
.info-block p { margin: 0.3rem 0; font-size: 0.95rem; color: var(--dark); }
.info-block .label { color: var(--text-muted); font-size: 0.85rem; }

.items-list { margin-top: 1rem; }
.item-row { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.item-row:last-child { border-bottom: none; }

.item-info-wrapper { display: flex; align-items: center; gap: 12px; }
.item-thumbnail { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; background: #f8f9fa; border: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.item-id-badge { color: #9c9c9c; font-size: 0.6rem; font-family: monospace; margin-bottom: -10px; display: block; margin-top: 10px; }

.admin-form { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.form-row-admin { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: center; }
.form-row-admin select, .form-row-admin textarea, .form-row-admin input[type="number"] { flex: 1; padding: 0.8rem; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 0.95rem; background: var(--light); }
.form-row-admin textarea { resize: vertical; min-height: 80px; }
.form-row-admin select:focus, .form-row-admin textarea:focus, .form-row-admin input:focus { outline: none; border-color: var(--gold); }
.btn-save { background: var(--gold); color: var(--dark); border: none; padding: 0.8rem 2rem; border-radius: 4px; font-family: inherit; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-save:hover { background: var(--gold-hover); }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; color: var(--border); }

/* Invoice Layout */
.invoice-box { max-width: 800px; margin: auto; padding: 30px; border: 1px solid #eee; box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); background: #fff; }
.header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #d4af37; padding-bottom: 20px; margin-bottom: 20px; }
.brand-section { display: flex; align-items: center; gap: 15px; }
.brand-logo { max-height: 60px; width: auto; object-fit: contain; }
.header .title h2 { margin: 0; color: #d4af37; font-size: 22px;}
.header .title p { margin: 5px 0 0; color: #777; font-size: 12px;}
.header .meta { text-align: left; }
.header .meta p { margin: 2px 0; font-size: 0.8rem;}

.customer-info { margin-bottom: 30px; background: #fdfdfd; padding: 15px; border: 1px solid #eaeaea; border-radius: 10px; font-size: 0.9rem !important; }
.customer-info h4 { margin-top: 0; margin-bottom: 15px; border-bottom: 1px dashed #ccc; padding-bottom: 5px; color: #555; }
.customer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }

table.items-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
table.items-table th, table.items-table td { border: 1px solid #ddd; padding: 10px; text-align: center; }
table.items-table th { background: #f8f8f8; font-weight: bold; color: #333; }
.item-meta { font-size: 11px; color: #777; margin-top: 4px; }

.totals-box { width: 50%; float: left; margin-top: 20px; }
.totals-box table { width: 100%; border-collapse: collapse; }
.totals-box table td { padding: 8px; border-bottom: 1px solid #eee; }
.totals-box table tr.bold td { font-weight: bold; font-size: 16px; color: #d4af37; border-bottom: none;}

.footer-note { clear: both; text-align: center; padding-top: 40px; color: #888; font-size: 12px; }

.print-btn { display: block; width: 180px; margin: 20px auto; padding: 10px; text-align: center; background: #d4af37; color: #fff; text-decoration: none; border-radius: 5px; cursor: pointer; border: none;}

@media print {
    body { background: #fff; padding: 0; }
    .invoice-box { box-shadow: none; border: none; padding: 0; max-width: 100%; }
    .print-btn { display: none; }
}

/* =========================================
   10. THANK YOU PAGE (Success)
========================================= */
.thankyou-container { max-width: 800px; margin: 4rem auto; padding: 0 5%; }
.thankyou-card { background: #fff; padding: 2rem; box-shadow: var(--shadow-sm); border-radius: 8px; border: 1px solid var(--border); text-align: center; }
.icon-success { font-size: 4rem; color: #198754; margin-bottom: 1.5rem; }
.thankyou-title { font-weight: 300; font-size: 1.2rem; color: var(--dark); margin-bottom: 1rem; }
.thankyou-desc { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 2rem; line-height: 1.8; text-wrap: balance; }

.order-meta { background: var(--bg-color, #f8f9fa); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin-bottom: 2rem; display: grid; justify-content: space-around; flex-wrap: wrap; gap: 10px; max-width: 440px; margin: auto;}
.meta-box { display: flex; flex-direction: column; align-items: center; }
.meta-label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.meta-value { font-size: 1rem; font-weight: 500; color: var(--dark); }
.meta-value.tracking-code { font-family: monospace; letter-spacing: 1px; color: var(--gold); font-weight: bold;}

.order-items { text-align: right; border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem; }
.order-items h3 { font-weight: 400; color: var(--gold); margin-bottom: 1.5rem; border-bottom: 1px dashed var(--border); padding-bottom: 1rem; }

.item-thumb { width: 60px; height: 60px; border-radius: 4px; overflow: hidden; border: 1px solid var(--border); flex-shrink: 0;  margin-left: 3px; }
.item-thumb img, .item-thumb video { width: 100%; height: 100%; object-fit: cover; }
.item-info { flex: 1; }
.item-title { font-size: 0.8rem; color: var(--dark); margin-bottom: 0.3rem; }
.item-price { color: var(--text-muted); font-size: 0.8rem; }
.item-total { font-weight: 500; color: var(--gold); font-size: 0.8rem; }

.action-buttons { display: flex; justify-content: center; gap: 15px; margin-top: 2.5rem; flex-wrap: wrap; }
.btn-invoice { display: inline-flex; align-items: center; gap: 8px; background: var(--gold, #d4af37); color: #fff; padding: 1rem 2rem; text-decoration: none; border-radius: 4px; transition: 0.3s; font-weight: 500; box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2); }
.btn-invoice:hover { filter: brightness(0.95); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3); color: #fff; }
.btn-home { display: inline-flex; align-items: center; justify-content: center; background: var(--dark, #333); color: #fff; padding: 1rem 2rem; text-decoration: none; border-radius: 4px; transition: 0.3s; }
.btn-home:hover { background: #111; color: #fff; transform: translateY(-2px); }

/* =========================================
   11. RESPONSIVE DESIGN & MEDIA QUERIES
========================================= */
@media (max-width: 768px) {
    .heroimg {
        background-image: url('../hero-port.jpg');
        background-size: cover;
        background-position: right;
    }
    
    .cart-table th, 
    .cart-table td {
        padding: 1rem 0.5rem;
    }
    
    .checkout-wrapper {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }

    .order-grid { grid-template-columns: 1fr; }
    
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; box-sizing: border-box; }
    .cart-table thead { display: none; } 
    
    .cart-table tr { 
        margin-bottom: 1.5rem; 
        border: 1px solid var(--border); 
        border-radius: 8px; 
        padding: 1rem; 
        background: #fff;
        box-shadow: var(--shadow-sm);
    }
    
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 0;
        border-bottom: 1px dashed var(--border);
        text-align: left;
    }
    
    .cart-table td:last-child { border-bottom: none; padding-bottom: 0; }
    .cart-table td:first-child { border-bottom: 1px solid var(--border); padding-top: 0; }
    
    .cart-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--text-muted);
    }
    
    .cart-table td.product-cell {
        justify-content: flex-start;
        text-align: right;
        gap: 1rem;
    }
    .cart-table td.product-cell::before { content: none; }
    .cart-table td.product-cell .media-placeholder { margin-left: 5px !important; }
}

@media (max-width: 767px) {
    .mobile-hero-container {
        display: block;
    }
    .promo-hero-container {
        /*! display: none !important; */ 
    }
    
    .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background-color: black;
}

}

@media (max-width: 576px) {
    .product-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 2px !important;
      padding: 10px 5px !important;
    }

    .product-card .media-placeholder,
    .product-image {
        height: 240px !important; 
    }

    .product-info {
        padding: 0.8rem;
    }

    .product-title {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .product-description {
        max-height: 500px;
    }

    .btn-add {
        padding: 0.5rem 0.2rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
}


.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 95%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    direction: rtl;
    color: #044EA4;
    width: 1000px;
}
.glass-panel h1, .glass-panel h2 {
    color: #d4af37; /* Gold accent color */
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.glass-panel p {
    line-height: 2;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1000px;
    direction: rtl;
    max-width: 95%;
}
.contact-info, .contact-form {
    flex: 1 1 400px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: rgba(255,255,255,0.8);
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.form-group input[type="file"] {
    padding: 8px 15px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.btn-submit {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    font-size: 1rem;
    transition: background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.btn-submit:hover {
    background: #d4af37;
}
.btn-submit:disabled {
    background: #888;
    cursor: not-allowed;
}
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
}
.alert-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.alert-error { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }

.faq-container {
    margin: 3rem auto;
    width: 1000px;
    direction: rtl;
    max-width: 95%;
}
.faq-item {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}
.faq-question {
    font-weight: bold;
    color: #044EA4;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.faq-answer {
    color: #508ac7;
    line-height: 1.8;
    font-size: 0.95rem;
}

.policy-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem auto;
    width: 1000px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    direction: rtl;
    max-width: 95%;
}
.policy-panel h1 {
    color: #d4af37;
    margin-bottom: 2rem;
    text-align: center;
}
.policy-panel h3 {
    color: #044EA4;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.policy-panel p, .policy-panel ul {
    color: #508ac7;
    line-height: 2;
    font-size: 0.85rem;
    text-align: justify;
}
.policy-panel ul {
    padding-right: 20px;
}

@media (max-width: 767px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* -----------------------------------------
   Hide on Desktop (Screens 768px and wider) 
   ----------------------------------------- */
@media (min-width: 768px) {
  .hide-on-desktop {
    display: none !important;
  }
}
