:root {
    --bg: #050210;
    --bg-accent: #140c2c;
    --card-bg: rgba(18, 17, 36, 0.85);
    --accent: #ff5fd1;
    --accent-strong: #ffb55f;
    --accent-secondary: #5ffbf1;
    --text: #f6f3ff;
    --muted: #c0b9d6;
    --border: rgba(255, 255, 255, 0.2);
    --error: #ff6b6b;
    font-family: "Space Grotesk", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: linear-gradient(125deg, #050210, #190834, #2d0a4f);
    background-size: 300% 300%;
    background-attachment: fixed;
    animation: nebula 18s ease infinite;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 20%, rgba(255, 95, 209, 0.2), transparent 50%),
        radial-gradient(circle at 80% 0%, rgba(95, 251, 241, 0.25), transparent 45%);
    mix-blend-mode: screen;
    z-index: -2;
}

body::after {
    background: url("https://www.transparenttextures.com/patterns/stardust.png");
    opacity: 0.04;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    background: rgba(5, 2, 16, 0.8);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.45);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--muted);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 0.5rem 0.75rem;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 12px rgba(255, 95, 209, 0.6);
}

.nav-cta {
    border: 1px solid var(--border);
    background: linear-gradient(120deg, rgba(255, 95, 209, 0.2), rgba(95, 251, 241, 0.2));
    color: var(--text);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nav-cta:hover {
    border-color: var(--accent);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 25px rgba(255, 95, 209, 0.45);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.75rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    width: 100%;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 3rem;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 95, 209, 0.12), rgba(95, 251, 241, 0.08), rgba(255, 181, 95, 0.12));
    border: 1px solid var(--border);
    box-shadow: 0 30px 200px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% -20%, rgba(255, 95, 209, 0.2), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin: 0.3rem 0 1rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    color: var(--accent);
}

.subtitle {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.primary-pill,
.ghost-pill {
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 95, 209, 0.3);
}

.primary-pill {
    background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
    color: #050210;
    box-shadow: 0 15px 35px rgba(255, 95, 209, 0.4);
}

.primary-pill:hover {
    transform: translateY(-3px) scale(1.02);
}

.ghost-pill {
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 12px rgba(95, 251, 241, 0.2);
}

.hero-visual {
    position: relative;
    min-height: 260px;
}

.glass-card {
    position: absolute;
    top: 20%;
    right: 10%;
    padding: 1.5rem;
    background: rgba(10, 5, 28, 0.75);
    border-radius: 24px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.glass-card strong {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.05rem;
}

.hero-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95, 251, 241, 0.22), transparent 70%);
    position: absolute;
    right: -20px;
    bottom: -20px;
}

.hero-orb {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 181, 95, 0.4), transparent 60%);
    position: absolute;
    left: -40px;
    top: 10px;
    filter: blur(1px);
    animation: float 6s ease-in-out infinite;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stats strong {
    display: block;
    font-size: 1.7rem;
}

.hero-stats span {
    font-size: 0.85rem;
    color: var(--muted);
}

.section-heading {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.section-heading h2 {
    margin: 0.5rem 0 0;
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-search {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    display: grid;
    gap: 3.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.search-input-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.product-search input[type="search"] {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-search input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 95, 209, 0.18);
}


.search-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.search-empty {
    margin: 0;
    color: var(--accent-strong);
    font-weight: 600;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.product-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: var(--accent);
    box-shadow: 0 25px 80px rgba(255, 95, 209, 0.35);
}

.card-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price {
    color: var(--accent);
    margin: 0;
    font-weight: 600;
}

.description {
    color: var(--muted);
    flex: 1;
}

.details-btn {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
    background: linear-gradient(120deg, rgba(255, 95, 209, 0.2), rgba(95, 251, 241, 0.2));
    color: var(--text);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 95, 209, 0.3);
    width: 100%;
}

.details-btn:hover {
    background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
    color: #050210;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(95, 251, 241, 0.35);
}

.about,
.contact {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    line-height: 1.6;
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-grid h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.contact a {
    color: var(--accent);
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--muted);
}

.link-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    color: var(--text);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.3s ease, transform 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 95, 209, 0.3);
}

.link-pill:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.order-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.order-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.order-card {
    background: rgba(7, 11, 18, 0.95);
    border-radius: 28px;
    width: min(420px, 100%);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 60px rgba(255, 95, 209, 0.2);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 95, 209, 0.3);
    z-index: 1;
}

.order-content h3 {
    margin: 0;
}

.order-perks {
    margin: 1rem 0 1.5rem;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.5;
}

.order-perks li::marker {
    color: var(--accent);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
}

input,
textarea {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: 2px solid var(--accent-strong);
}

.error {
    color: var(--error);
    font-size: 0.8rem;
    min-height: 1em;
}

.success {
    color: var(--accent);
    font-weight: 500;
    text-align: center;
    min-height: 1.2em;
}

.full-width {
    width: 100%;
}

.info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 4, 9, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.info-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.info-card {
    width: min(640px, 100%);
    background: rgba(10, 5, 28, 0.96);
    border-radius: 32px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65), 0 0 80px rgba(255, 95, 209, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.info-content h3 {
    margin: 0.3rem 0 1rem;
}

.info-list {
    margin: 0;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    color: var(--muted);
}

.info-list li::marker {
    color: var(--accent);
    font-weight: 600;
}

.product-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 1, 12, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 22;
}

.product-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.product-detail-card {
    width: min(960px, 100%);
    background: rgba(8, 6, 20, 0.95);
    border-radius: 36px;
    border: 1px solid var(--border);
    padding: 2.5rem;
    box-shadow: 0 40px 140px rgba(0, 0, 0, 0.7), 0 0 80px rgba(255, 95, 209, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.detail-media img {
    width: 100%;
    border-radius: 28px;
    object-fit: cover;
    max-height: 360px;
}

.detail-description {
    color: var(--muted);
    line-height: 1.6;
}

.detail-features {
    margin: 1.25rem 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: var(--muted);
}

.detail-features li::marker {
    color: var(--accent-secondary);
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 17, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 25;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.success-card {
    width: min(420px, 100%);
    background: rgba(7, 18, 26, 0.95);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.6), 0 0 45px rgba(255, 95, 209, 0.25);
}

.pulse-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(255, 95, 209, 0.2);
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    animation: pulse 1.4s ease infinite;
}

.success-card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

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

@keyframes nebula {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Tablet and below (768px) */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .nav-cta {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    main {
        padding: 1.5rem 1.25rem 3rem;
        gap: 2.5rem;
    }

    .hero {
        padding: 2rem;
        border-radius: 24px;
        gap: 1.5rem;
    }

    .product-search {
        padding: 1.1rem 1.25rem;
        border-radius: 16px;
    }

    .search-input-wrap {
        grid-template-columns: 1fr;
    }

    #clearSearch {
        width: 100%;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .hero-stats strong {
        font-size: 1.4rem;
    }

    .hero-stats span {
        font-size: 0.75rem;
    }

    .hero-visual {
        min-height: 200px;
    }

    .glass-card {
        padding: 1.25rem;
        font-size: 0.9rem;
    }

    .glass-card strong {
        font-size: 0.95rem;
    }

    .hero-circle {
        width: 180px;
        height: 180px;
    }

    .hero-orb {
        width: 120px;
        height: 120px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .card-media img {
        height: 200px;
    }

    .section-heading h2 {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
    }

    .about,
    .contact {
        padding: 1.75rem;
        border-radius: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-media img {
        max-height: 300px;
    }

    .info-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .product-detail-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
}

/* Mobile (540px and below) */
@media (max-width: 540px) {
    .nav {
        padding: 0.75rem 1rem;
    }

    .brand {
        font-size: 1rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .nav-cta {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    main {
        padding: 1.25rem 1rem 2.5rem;
        gap: 2rem;
    }

    .hero {
        padding: 1.5rem;
        border-radius: 20px;
        gap: 1.25rem;
    }

    .product-search {
        padding: 1rem 1.1rem;
        gap: 0.25rem;
    }

    .product-search input[type="search"] {
        font-size: 0.95rem;
    }

    #clearSearch {
        padding: 0.7rem 0.9rem;
    }

    .hero-copy h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin: 0.25rem 0 0.75rem;
    }

    .subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .primary-pill,
    .ghost-pill {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .hero-stats strong {
        font-size: 1.5rem;
    }

    .hero-stats span {
        font-size: 0.8rem;
    }

    .hero-visual {
        min-height: 180px;
        margin-top: 1rem;
    }

    .glass-card {
        position: relative;
        top: auto;
        right: auto;
        padding: 1rem;
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .glass-card strong {
        font-size: 0.9rem;
    }

    .hero-circle,
    .hero-orb {
        display: none;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-body h3 {
        font-size: 1.1rem;
    }

    .card-body .price {
        font-size: 1.1rem;
    }

    .card-body .description {
        font-size: 0.9rem;
    }

    .details-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .section-heading {
        margin-bottom: 1.5rem;
    }

    .section-heading h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .eyebrow {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .about,
    .contact {
        padding: 1.5rem;
        border-radius: 16px;
        font-size: 0.95rem;
    }

    .contact-grid {
        gap: 1rem;
    }

    .contact-grid h3 {
        font-size: 1.1rem;
    }

    .site-footer {
        padding: 1.5rem 1rem;
    }

    .site-footer p {
        font-size: 0.85rem;
        line-height: 1.8;
    }

    .link-pill {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        margin: 0.25rem 0;
    }

    .product-overlay,
    .info-overlay {
        padding: 1rem;
    }

    .product-detail-card {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
        max-height: 95vh;
    }

    .product-detail-grid {
        gap: 1.25rem;
    }

    .detail-media img {
        max-height: 250px;
        border-radius: 16px;
    }

    .detail-info h3 {
        font-size: 1.5rem;
    }

    .detail-description {
        font-size: 0.95rem;
    }

    .detail-features {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .detail-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .detail-actions .primary-pill,
    .detail-actions .ghost-pill {
        width: 100%;
    }

    .info-card {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
        max-height: 95vh;
    }

    .info-content h3 {
        font-size: 1.5rem;
    }

    .info-list {
        font-size: 0.9rem;
        gap: 0.6rem;
    }

    .close-btn {
        top: 8px;
        right: 8px;
        font-size: 1.75rem;
        min-width: 40px;
        min-height: 40px;
    }
}

/* Small mobile (360px and below) */
@media (max-width: 360px) {
    .nav {
        padding: 0.5rem 0.75rem;
    }

    .brand {
        font-size: 0.95rem;
    }

    main {
        padding: 1rem 0.75rem 2rem;
    }

    .hero {
        padding: 1.25rem;
    }

    .hero-copy h1 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 0.875rem;
    }

    .about,
    .contact {
        padding: 1.25rem;
    }

    .product-detail-card,
    .info-card {
        padding: 1.25rem 1rem;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .product-overlay,
    .info-overlay {
        -webkit-overflow-scrolling: touch;
    }

    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    input,
    textarea,
    button {
        -webkit-appearance: none;
        border-radius: 0;
    }

    button {
        border-radius: 999px;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }

    .hero-visual {
        min-height: auto;
    }

    .product-detail-card {
        max-height: 85vh;
    }

    .info-card {
        max-height: 85vh;
    }
}

/* Large screens (1200px and above) */
@media (min-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Prevent text size adjustment on iOS */
@media screen and (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

