/* Custom variables & Theme config */
:root {
    --primary: #ffb703;
    --primary-rgb: 255, 183, 3;
    --primary-dark: #fb8500;
    --bg-dark: #111111;
    --bg-card: #181818;
    --bg-input: #222222;
    --text-main: #f8f9fa;
    --text-muted: #b0b3b8;
    --border-color: rgba(255, 183, 3, 0.15);
    --border-hover: rgba(255, 183, 3, 0.4);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.6);
    --font-family: 'Vazirmatn', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

input, button, textarea, select {
    font-family: var(--font-family) !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.gold-text {
    color: var(--primary);
    background: linear-gradient(135deg, #ffd000, #ffb703);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #111;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 183, 3, 0.5);
    background: linear-gradient(135deg, var(--primary-dark), #e07a00);
}

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

.btn-outline:hover {
    background: rgba(255, 183, 3, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-logo .footer-title {
    margin-bottom: 0;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.modal-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 15px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.cart-btn {
    position: relative;
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.cart-btn:hover {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.2), rgba(251, 133, 0, 0.2));
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #e63946, #d62828);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    border: 1.5px solid var(--bg-dark);
    transition: opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0);
}

.cart-count.active {
    opacity: 1;
    transform: scale(1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('../assets/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(17,17,17,0.95) 85%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: right;
}

.hero-subtitle {
    display: block;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

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

/* Section Common Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 8px auto 0;
    border-radius: 2px;
}

.section-title.text-right::after {
    margin: 8px 0 0 auto;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Menu Section */
.menu-section {
    width: 100%;
    padding: 80px 0;
    background-color: var(--bg-dark);
    position: relative;
    z-index: 1;
    scroll-margin-top: 100px;
}

.menu-category-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-top: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.menu-category-title i {
    font-size: 1.5rem;
}

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

/* Side Menu (Drinks & Appetizers) - Smaller Compact Grid */
.menu-grid-side {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.menu-grid-side .menu-card-body {
    padding: 14px;
}

.menu-grid-side .menu-card-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.menu-grid-side .menu-card-desc {
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.menu-grid-side .card-qty-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

.menu-grid-side .card-qty-val {
    font-size: 0.9rem;
    min-width: 22px;
}

/* Menu Card */
.menu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.menu-card-img-wrapper {
    position: relative;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

/* Out of Stock Card styles */
.out-of-stock-card {
    opacity: 0.7;
    filter: grayscale(0.2);
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.out-of-stock-overlay span {
    background: #e63946;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.menu-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-card:hover .menu-card-img {
    transform: scale(1.08);
}

.menu-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.menu-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-card-desc:last-child {
    margin-bottom: 0;
}

.menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}

.menu-card-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
}

.menu-card-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-right: 4px;
}

.add-to-cart-btn {
    background: rgba(255, 183, 3, 0.1);
    color: var(--primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-family);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.add-to-cart-btn:hover {
    background: var(--primary);
    color: #111;
    border-color: var(--primary);
}

.card-quantity-control {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 183, 3, 0.15);
    border: 1px solid var(--primary);
    border-radius: 8px;
    height: 38px;
    width: 120px;
    padding: 2px;
    transition: var(--transition);
}

.card-qty-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.card-qty-btn:hover {
    background: var(--primary);
    color: #111;
}

/* Hide number input spinners */
.card-qty-val::-webkit-outer-spin-button,
.card-qty-val::-webkit-inner-spin-button,
.quantity-val::-webkit-outer-spin-button,
.quantity-val::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.card-qty-val[type=number],
.quantity-val[type=number] {
    -moz-appearance: textfield;
}

.card-qty-val,
.quantity-val {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-family) !important;
    font-weight: 900;
    font-size: 1.05rem;
    width: 42px;
    text-align: center;
    direction: ltr !important;
    outline: none;
    transition: var(--transition);
}

.card-qty-val:focus,
.quantity-val:focus {
    background: rgba(255, 183, 3, 0.15);
    border-radius: 4px;
}

/* About / Info Section */
.about-section {
    width: 100%;
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    position: relative;
    z-index: 1;
    scroll-margin-top: 100px;
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.about-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 4px;
}

.feature-item h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.about-map {
    width: 100%;
    scroll-margin-top: 100px;
}

.map-card {
    background: rgba(22, 22, 22, 0.6);
    border: 1px solid rgba(255, 183, 3, 0.12);
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: center;
}

.map-card h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 60%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 183, 3, 0.15);
}

.address-text, .hours-text {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
    direction: rtl;
    transition: var(--transition);
}

.address-text i, .hours-text i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.address-text:hover, .hours-text:hover {
    background: rgba(255, 183, 3, 0.04);
    border-color: rgba(255, 183, 3, 0.2);
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.05);
}

.map-routing-box {
    margin-top: 25px;
    text-align: right;
    direction: rtl;
}

.routing-title {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 700;
}

.map-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-routing-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.map-routing-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.map-routing-item:hover::before,
.map-routing-item:active::before {
    opacity: 1;
}

.map-routing-item:hover,
.map-routing-item:active {
    transform: translateY(-3px);
    border-radius: 16px;
}

/* Brand-Specific Resting States */
.map-routing-item.google-map {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(219, 68, 85, 0.02));
    border: 1px solid rgba(66, 133, 244, 0.15);
}
.map-routing-item.google-map .routing-icon-wrapper {
    background: rgba(66, 133, 244, 0.08);
    border-color: rgba(66, 133, 244, 0.2);
}
.map-routing-item.google-map .arrow-icon {
    color: rgba(66, 133, 244, 0.7);
}

.map-routing-item.neshan-map {
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.05), rgba(0, 191, 165, 0.02));
    border: 1px solid rgba(0, 191, 165, 0.15);
}
.map-routing-item.neshan-map .routing-icon-wrapper {
    background: rgba(0, 191, 165, 0.08);
    border-color: rgba(0, 191, 165, 0.2);
}
.map-routing-item.neshan-map .arrow-icon {
    color: rgba(0, 191, 165, 0.7);
}

.map-routing-item.balad-map {
    background: linear-gradient(135deg, rgba(94, 53, 177, 0.05), rgba(30, 136, 229, 0.02));
    border: 1px solid rgba(94, 53, 177, 0.15);
}
.map-routing-item.balad-map .routing-icon-wrapper {
    background: rgba(94, 53, 177, 0.08);
    border-color: rgba(94, 53, 177, 0.2);
}
.map-routing-item.balad-map .arrow-icon {
    color: rgba(94, 53, 177, 0.7);
}

/* Brand-Specific Hover States */
.map-routing-item.google-map:hover,
.map-routing-item.google-map:active {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.12), rgba(219, 68, 85, 0.06));
    border-color: rgba(66, 133, 244, 0.45);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}
.map-routing-item.google-map:hover .routing-icon-wrapper,
.map-routing-item.google-map:active .routing-icon-wrapper {
    background: rgba(66, 133, 244, 0.15);
    border-color: rgba(66, 133, 244, 0.4);
}
.map-routing-item.google-map:hover .arrow-icon,
.map-routing-item.google-map:active .arrow-icon {
    color: #4285f4;
}

.map-routing-item.neshan-map:hover,
.map-routing-item.neshan-map:active {
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.12), rgba(0, 191, 165, 0.05));
    border-color: rgba(0, 191, 165, 0.45);
    box-shadow: 0 10px 30px rgba(0, 191, 165, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}
.map-routing-item.neshan-map:hover .routing-icon-wrapper,
.map-routing-item.neshan-map:active .routing-icon-wrapper {
    background: rgba(0, 191, 165, 0.15);
    border-color: rgba(0, 191, 165, 0.4);
}
.map-routing-item.neshan-map:hover .arrow-icon,
.map-routing-item.neshan-map:active .arrow-icon {
    color: #00bfa5;
}

.map-routing-item.balad-map:hover,
.map-routing-item.balad-map:active {
    background: linear-gradient(135deg, rgba(94, 53, 177, 0.12), rgba(30, 136, 229, 0.06));
    border-color: rgba(94, 53, 177, 0.45);
    box-shadow: 0 10px 30px rgba(94, 53, 177, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}
.map-routing-item.balad-map:hover .routing-icon-wrapper,
.map-routing-item.balad-map:active .routing-icon-wrapper {
    background: rgba(94, 53, 177, 0.15);
    border-color: rgba(94, 53, 177, 0.4);
}
.map-routing-item.balad-map:hover .arrow-icon,
.map-routing-item.balad-map:active .arrow-icon {
    color: #5e35b1;
}

.routing-icon-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-left: 16px;
    flex-shrink: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.routing-icon-wrapper img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.routing-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: right;
    align-items: flex-start;
    z-index: 1;
}

.routing-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.routing-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.arrow-icon {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-right: auto;
    z-index: 1;
}

.map-routing-item:hover .arrow-icon {
    color: var(--primary);
    transform: translateX(-6px);
}

/* Footer Section */
.footer {
    background-color: #0b0b0b;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 183, 3, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary);
    margin-top: 5px;
    border-radius: 2px;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #111;
    border-color: var(--primary);
}

.order-notice {
    color: var(--primary) !important;
    background: rgba(255, 183, 3, 0.05);
    border-right: 3px solid var(--primary);
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    margin-top: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Cart Drawer Slider */
.cart-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    left: -400px; /* Hidden offscreen on the left */
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-md);
}

.cart-drawer.active {
    left: 0;
}

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.close-cart-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-cart-btn:hover {
    color: var(--primary);
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    gap: 15px;
}

.empty-cart i {
    font-size: 3rem;
    opacity: 0.3;
}

/* Cart Item Card */
.cart-item {
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px;
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-dark);
}

.quantity-btn {
    border: none;
    background: transparent;
    color: var(--primary);
    width: 26px;
    height: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: rgba(255,183,3,0.1);
}



.remove-item-btn {
    background: transparent;
    border: none;
    color: #e63946;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.remove-item-btn:hover {
    color: #ff5252;
}

.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(18, 18, 18, 0.95);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cart-total-price {
    color: var(--primary);
    font-weight: 900;
}

/* Modals & Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-md);
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-weight: 900;
    font-size: 1.25rem;
}

.close-modal-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal-btn:hover {
    color: var(--primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* Order Form */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 700;
}

.form-group label i {
    margin-left: 4px;
}

.form-group input, .form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-main);
    font-family: var(--font-family);
    text-align: right;
    direction: rtl;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(255,183,3,0.25);
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.address-map-wrapper {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

.address-map-container {
    height: 200px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    z-index: 10;
    direction: ltr;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    touch-action: none !important;
}

.address-map-container.expanded {
    height: 380px;
}

.map-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 1000;
    pointer-events: none;
    color: #e63946;
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.2s ease, color 0.2s ease;
}

.map-center-pin.dragging {
    transform: translate(-50%, -120%) scale(1.1);
    color: var(--primary);
}

.map-center-pin::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(1);
    width: 8px;
    height: 3px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
}

.map-center-pin.dragging::after {
    transform: translateX(-50%) scaleX(0.5);
    opacity: 0.2;
}

.map-actions-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    gap: 10px;
}

.map-action-btn {
    background: rgba(255, 183, 3, 0.05);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.map-action-btn:hover {
    background: var(--primary);
    color: #111;
    border-color: var(--primary);
}


.required {
    color: #e63946;
    margin-right: 2px;
}

/* Order Summary Box */
.order-summary-box {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 10px 0;
}

.order-summary-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.order-summary-list {
    list-style: none;
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.order-summary-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 10px;
}

.email-notice {
    display: flex;
    gap: 10px;
    background: rgba(255, 183, 3, 0.05);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    align-items: center;
    color: var(--text-muted);
}

.email-notice i {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Success Modal Body */
.success-modal-body {
    padding: 40px 24px;
}

.success-icon {
    font-size: 4rem;
    color: #2ec4b6;
    margin-bottom: 20px;
}

.success-modal-body h2 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.success-modal-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.secondary-text {
    font-size: 0.85rem !important;
    margin-top: 15px;
    margin-bottom: 10px !important;
}

.copy-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.85rem;
    direction: rtl;
    text-align: right;
    margin-bottom: 20px;
    resize: none;
    outline: none;
}

/* Premium Payment Card */
.payment-card-box {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 183, 3, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    text-align: right;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-card-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,183,3,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.payment-card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(255, 183, 3, 0.15);
}

.payment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.payment-card-logo {
    display: inline-block;
    background: #ffb703;
    color: #111;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 900;
}

.payment-card-number-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    direction: ltr;
}

.payment-card-number {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.btn-copy-mini {
    background: rgba(255, 183, 3, 0.1);
    border: 1px solid rgba(255, 183, 3, 0.3);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-family);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-copy-mini:hover {
    background: var(--primary);
    color: #111;
    border-color: var(--primary);
}

.payment-card-owner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-top: 10px;
}

.payment-card-owner .label {
    color: var(--text-muted);
}

.payment-card-owner .value {
    color: #ffffff;
    font-weight: bold;
}

.message-copy-box {
    margin-top: 25px;
    text-align: right;
}

.message-copy-label {
    display: block;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary);
}

/* Responsiveness Media Queries */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-info h2 {
        text-align: center;
    }
    .about-info h2::after {
        margin: 8px auto 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: auto;
        flex-direction: column;
        gap: 8px;
        padding: 8px 12px;
    }
    .nav-links {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .nav-links a {
        font-size: 0.62rem;
        padding: 4px 7px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 3px;
        color: var(--text-light);
        transition: var(--transition);
        white-space: nowrap;
    }
    .nav-links a i {
        font-size: 0.6rem;
    }
    .nav-links a:hover {
        background: rgba(255, 183, 3, 0.1);
        border-color: var(--primary);
        color: var(--primary);
    }
    .hero {
        height: 52vh;
        min-height: 350px;
        text-align: center;
        padding-top: 112px;
        background-attachment: scroll;
        background-position: center 35%;
    }
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-buttons .btn {
        font-size: 0.78rem;
        padding: 7px 14px;
        gap: 5px;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Floating Order Bar */
.floating-order-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 999;
}

.floating-order-bar button {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 183, 3, 0.3);
    background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
    border: none;
    color: #111;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-family);
}

.floating-order-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 183, 3, 0.4);
}

@media (max-width: 600px) {
    .floating-order-bar {
        bottom: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        padding: 10px 15px;
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .floating-order-bar button {
        border-radius: 12px;
        padding: 12px 20px;
    }

    .logo span {
        font-size: 0.9rem;
    }
    .logo-img {
        width: 32px;
        height: 32px;
    }
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }
    .menu-card-body {
        padding: 16px;
    }
    .menu-card-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }
    .menu-card-desc {
        font-size: 0.85rem;
    }
    .menu-grid-side {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .menu-grid-side .menu-card-body {
        padding: 10px;
    }
    .menu-grid-side .menu-card-title {
        font-size: 0.92rem;
        margin-bottom: 4px;
    }
    .menu-grid-side .menu-card-desc {
        font-size: 0.78rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    .menu-grid-side .add-to-cart-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}

/* Floating Map Buttons */
.map-floating-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1010;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.map-floating-btn:hover {
    background: var(--primary);
    color: #111;
    border-color: var(--primary);
    transform: scale(1.05);
}

.map-confirm-location-btn {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1010;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #111;
    border: none;
    padding: 8px 18px;
    border-radius: 24px;
    font-weight: 900;
    font-size: 0.85rem;
    font-family: var(--font-family) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.4);
    transition: var(--transition);
    white-space: nowrap;
}

.map-confirm-location-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 183, 3, 0.6);
}

.map-confirm-location-btn.confirmed {
    background: linear-gradient(135deg, #2ec4b6, #0f9f90);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.4);
}

/* Custom Marker Styling */
.custom-leaflet-marker {
    background: transparent;
    border: none;
}

.custom-map-marker {
    color: #2ec4b6;
    font-size: 2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: marker-drop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes marker-drop {
    0% { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.success-bounce {
    animation: success-bounce 0.6s ease;
}

@keyframes success-bounce {
    0%, 100% { transform: translate(-50%, -100%); }
    50% { transform: translate(-50%, -130%) scale(1.1); color: #2ec4b6; }
}

/* User GPS Marker (Google Maps Style) */
.user-gps-marker-container {
    background: transparent;
    border: none;
}

.user-gps-marker {
    color: #007aff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 2px solid #007aff;
    animation: gps-appear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes gps-appear {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Gallery Section Styles */
.gallery-section {
    width: 100%;
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-dark);
    position: relative;
    z-index: 1;
    scroll-margin-top: 100px;
}

.gallery-section .section-title {
    margin-bottom: 8px;
}

.gallery-section .section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
    font-family: 'Vazirmatn', sans-serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
    z-index: 1;
    pointer-events: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 17, 21, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.gallery-overlay i {
    color: var(--primary);
    font-size: 2.2rem;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover effects */
.gallery-item:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(255, 183, 3, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Lightbox Modal Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 14, 0.96);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 85%;
    max-height: 85%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    cursor: zoom-in;
}

.lightbox-img.zoomed {
    transform: scale(1.35);
    cursor: zoom-out;
}

.lightbox-caption {
    color: var(--text-main);
    margin-top: 18px;
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    direction: ltr; /* Prevent browser from mirroring arrow characters in RTL context */
}

.lightbox-btn:hover {
    background: var(--primary);
    color: #0c0e12;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.4);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 50px 0;
    }
    
    .gallery-section .section-subtitle {
        margin-bottom: 25px;
        font-size: 0.95rem;
    }

    .gallery-grid {
        gap: 16px;
        margin-top: 20px;
    }
    
    .gallery-item {
        border-radius: 12px;
    }

    .lightbox-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.2rem;
    }
    
    .lightbox-caption {
        font-size: 1rem;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .gallery-item {
        aspect-ratio: 16 / 10;
    }
    
    .lightbox-content-container {
        max-width: 90%;
    }
    
    .lightbox-btn {
        display: flex;
        width: 36px;
        height: 36px;
        font-size: 1rem;
        background: rgba(10, 11, 14, 0.65);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .lightbox-prev {
        left: 8px;
    }
    .lightbox-next {
        right: 8px;
    }
}

