/* GK Nails Studio – custom styles (moved from the original <style> block) */

/* Self-hosted fonts (replaces Google Fonts: no extra DNS/connection, no render-blocking 3rd-party CSS).
   unicode-range means a file only downloads if characters from it are on screen (Cairo = Arabic only). */
@font-face {
    font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url(../fonts/montserrat-latin-wght-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 400 900;
    src: url(../fonts/playfair-display-latin-wght-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'Playfair Display'; font-style: italic; font-display: swap; font-weight: 400 900;
    src: url(../fonts/playfair-display-latin-wght-italic.woff2) format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'Cairo'; font-style: normal; font-display: swap; font-weight: 200 1000;
    src: url(../fonts/cairo-arabic-wght-normal.woff2) format('woff2');
    unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}


/* ------------------------------------------------------------------
   Scoped reset (replaces Tailwind's global "preflight", which would also
   restyle the theme). Only affects elements inside the app.
   ------------------------------------------------------------------ */
#gk-nails-app { max-width: none !important; width: 100%; }
#gk-nails-app, #gk-nails-app *, #gk-nails-app ::before, #gk-nails-app ::after { box-sizing: border-box; border: 0 solid #e5e7eb; }
#gk-nails-app .gk-nails-app { line-height: 1.5; -webkit-text-size-adjust: 100%; text-align: left; letter-spacing: normal; }
html[dir="rtl"] #gk-nails-app .gk-nails-app { text-align: right; }
#gk-nails-app h1, #gk-nails-app h2, #gk-nails-app h3, #gk-nails-app h4, #gk-nails-app h5, #gk-nails-app h6 { font-size: inherit; font-weight: inherit; font-family: inherit; line-height: inherit; letter-spacing: inherit; margin: 0; padding: 0; color: inherit; text-transform: none; }
#gk-nails-app p, #gk-nails-app figure, #gk-nails-app blockquote, #gk-nails-app dl, #gk-nails-app dd, #gk-nails-app hr { margin: 0; }
#gk-nails-app ol, #gk-nails-app ul, #gk-nails-app menu { list-style: none; margin: 0; padding: 0; }
#gk-nails-app a { color: inherit; text-decoration: inherit; }
#gk-nails-app b, #gk-nails-app strong { font-weight: bolder; }
#gk-nails-app img, #gk-nails-app svg, #gk-nails-app video { display: block; vertical-align: middle; }
#gk-nails-app img, #gk-nails-app video { max-width: 100%; height: auto; }
#gk-nails-app button, #gk-nails-app input, #gk-nails-app select, #gk-nails-app textarea, #gk-nails-app label {
    font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; letter-spacing: inherit;
    margin: 0; text-transform: none; box-shadow: none; text-shadow: none; min-height: 0; width: auto;
}
#gk-nails-app button, #gk-nails-app select { padding: 0; background-color: transparent; background-image: none; border-radius: 0; text-decoration: none; }
#gk-nails-app button, #gk-nails-app [role="button"] { cursor: pointer; }
#gk-nails-app select { -webkit-appearance: menulist; appearance: auto; }
#gk-nails-app table { text-indent: 0; border-color: inherit; border-collapse: collapse; margin: 0; width: auto; }
#gk-nails-app th, #gk-nails-app td { padding: 0; border: 0 solid #e5e7eb; background: transparent; }
#gk-nails-app [hidden] { display: none; }
#gk-nails-app :focus-visible { outline: 2px solid #9b1c47; outline-offset: 2px; }

/* Old-browser fallback for Tailwind's `inset` shorthand (Safari < 14.1, Chrome < 87) */
.gk-nails-app .inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Announcement bar: keep each message on one line (it wrapped into a 165px block on phones) */
.gk-nails-app .animate-marquee { white-space: nowrap; width: max-content; }
.gk-nails-app .animate-marquee > span { flex: 0 0 auto; }

/* Lightbox: scrollable so the close and order buttons are always reachable (landscape phones) */
.gk-nails-app #lightbox { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fef9fa; }
::-webkit-scrollbar-thumb { background: #9b1c47; border-radius: 999px; }

html { scroll-behavior: smooth; }

/* Smooth View Transitions */
.gk-nails-app .spa-view {
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.gk-nails-app .spa-view.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(12px);
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
    0% { transform: translateX(0%); }
    100% { transform: translateX(50%); }
}
.gk-nails-app .animate-marquee {
    display: flex;
    animation: marquee 25s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .gk-nails-app .animate-marquee { animation: none !important; }
}
html[dir="rtl"] .gk-nails-app .animate-marquee {
    animation: marquee-rtl 25s linear infinite;
}
.gk-nails-app .animate-marquee:hover {
    animation-play-state: paused;
}

/* Glassmorphism & Cards */
.gk-nails-app .glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(244, 219, 227, 0.7);
}

.gk-nails-app .product-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.gk-nails-app .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(155, 28, 71, 0.12);
}

/* Gallery Grid */
.gk-nails-app .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Lightbox */
.gk-nails-app #lightbox {
    backdrop-filter: blur(8px);
}

/* RTL Adjustments: Arabic text uses Cairo everywhere (Montserrat has no Arabic letters) */
html[dir="rtl"] .gk-nails-app {
    font-family: 'Cairo', 'Montserrat', sans-serif;
}
html[dir="rtl"] .gk-nails-app .font-serif {
    font-family: 'Cairo', 'Playfair Display', serif !important;
    font-weight: 700;
}

/* Full-screen template: remove default body margin */
body.gk-nails-canvas { margin: 0; }
