/* ============================================================
   SAFETY SHOES – Iron Step LLC
   Mobile-first CSS · iOS + Android + Desktop optimized
   No double-tap zoom · Touch targets 44px min
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent iOS text size adjustment after orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* Prevent double-tap zoom on all interactive elements */
a, button, select, input, textarea, label {
    touch-action: manipulation;
}

/* ── VARIABLES ── */
:root {
    --primary: #1a1a1a;
    --secondary: #444;
    --accent: #c9a227;
    --accent-dark: #a87e1a;
    --light: #fff;
    --gray: #f7f7f7;
    --border: #e5e5e5;
    --header-h: 64px;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--light);
    color: var(--primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ── SHIPPING BANNER ── */
.shipping-banner {
    background: var(--primary);
    color: var(--accent);
    text-align: center;
    padding: 9px 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
}
.shipping-banner span {
    color: rgba(255,255,255,0.82);
    font-weight: 400;
}

/* ── HEADER ── */
header {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 500;
    height: var(--header-h);
}

/* Moves header below shipping banner when banner exists */
.has-banner header {
    top: 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* ── HAMBURGER BUTTON ── */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    /* Critical: prevents double-tap zoom */
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease;
    transform-origin: center;
}
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── LOGO CENTER ── */
.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}
.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary);
    white-space: nowrap;
}
.logo-subtitle {
    font-size: 0.58rem;
    letter-spacing: 1.5px;
    color: #999;
    text-transform: uppercase;
    margin-top: 1px;
    font-weight: 400;
}

/* ── NAV RIGHT ── */
.menu-left { display: flex; align-items: center; flex-shrink: 0; }
.nav-right  { display: flex; align-items: center; flex-shrink: 0; }
.nav-right img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 8px;
}

/* ── OVERLAY ── */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 600;
    cursor: pointer;
}
.overlay.active { display: block; }

/* ── SIDE MENU ── */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100%;
    height: 100dvh;
    background: var(--light);
    z-index: 700;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    padding: 0;
}
.side-menu.active { left: 0; }

.side-menu-inner {
    padding: 1.5rem;
}

.side-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    touch-action: manipulation;
    color: var(--primary);
    font-weight: 700;
    transition: background 0.2s;
}
.side-menu-close:active { background: var(--border); }

.side-menu h3 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin: 3.5rem 0 1rem 1.5rem;
}

.side-menu ul {
    list-style: none;
    padding: 0 0.75rem;
}
.side-menu ul li {
    border-bottom: 1px solid var(--border);
}
.side-menu ul li:last-child {
    border-bottom: none;
}
.side-menu ul li a {
    display: flex;
    align-items: center;
    padding: 0.9rem 0.75rem;
    text-decoration: none;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
    min-height: 44px;
    touch-action: manipulation;
    transition: color 0.15s;
}
.side-menu ul li a:active { color: var(--accent); }

/* ── PAGE BODY OFFSET ── */
.page-body {
    padding-top: var(--header-h);
}

/* ── HERO ── */
.hero-img {
    width: 100%;
    display: block;
    height: auto;
}

/* ── INFO BOX ── */
.info-section {
    padding: 1.5rem 1rem;
    max-width: 860px;
    margin: 0 auto;
}
.info-box {
    background: var(--gray);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.info-box h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.info-box p {
    color: var(--secondary);
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.info-box ul {
    list-style: none;
    text-align: left;
    max-width: 420px;
    margin: 0.75rem auto 0;
}
.info-box ul li {
    padding: 0.35rem 0 0.35rem 1.6rem;
    font-size: 0.9rem;
    color: var(--secondary);
    position: relative;
}
.info-box ul li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* ── SECTION TITLES ── */
.section-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* ── SHIPPING INFO ── */
.shipping-section-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}
.shipping-info-box {
    background: #f0f6ff;
    border: 1.5px solid #c5d8f5;
    border-radius: var(--radius);
    padding: 1.5rem;
}
.shipping-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.shipping-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.shipping-item .s-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.shipping-item strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}
.shipping-item small {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.4;
}

/* ── PRODUCTS GRID ── */
.products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}
.product-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: var(--primary);
    display: block;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow);
}
.product-image-container {
    position: relative;
    background: var(--gray);
    aspect-ratio: 1;
    overflow: hidden;
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--accent);
    color: var(--light);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-info {
    padding: 0.8rem;
    text-align: center;
}
.product-brand {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.2rem;
}
.product-name {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}
.product-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}
.product-spec {
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* ── CONTACT SECTION ── */
.contact-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}
.contact-box {
    background: var(--gray);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.contact-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.contact-box > p {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    color: var(--secondary);
}
.contact-item a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}
.contact-form-box {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.2rem;
    border: 1px solid var(--border);
}

/* ── FORM ELEMENTS ── */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 16px; /* CRITICAL: 16px prevents iOS auto-zoom on focus */
    font-family: inherit;
    background: var(--light);
    color: var(--primary);
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    /* Prevents double-tap zoom */
    touch-action: manipulation;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Custom select arrow */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a227' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── BUTTONS ── */
.btn-primary {
    display: block;
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    transition: background 0.2s, transform 0.15s;
    min-height: 52px;
}
.btn-primary:active { background: var(--accent-dark); transform: scale(0.98); }
.btn-primary:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

/* btn-add alias used in contact form */
.btn-add {
    display: block;
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: var(--primary);
    color: var(--light);
    font-size: 0.92rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
    min-height: 52px;
    transition: background 0.2s;
}
.btn-add:active { background: #333; }

/* ── FOOTER ── */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.88rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
    transition: color 0.15s;
}
.footer-links a:active { color: #fff; }
.footer-legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.5rem 0 1.2rem;
}
.footer-legal-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: underline;
    font-size: 0.8rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
    transition: color 0.15s;
}
.footer-legal-links a:active { color: #fff; }
footer p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.4rem;
    line-height: 1.5;
}

/* ── MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 900;
    align-items: flex-end;   /* Slides up from bottom on mobile */
    justify-content: center;
    padding: 0;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: var(--light);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem 1.25rem 2rem;
    position: relative;
    animation: slideUp 0.28s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.modal-handle {
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 1.2rem;
}
.modal-box h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.7rem;
}
.modal-box h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin: 1.2rem 0 0.4rem;
}
.modal-box p,
.modal-box li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 0.3rem;
}
.modal-box ul { padding-left: 1.1rem; margin-bottom: 0.8rem; }
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    color: var(--primary);
    transition: background 0.15s;
}
.modal-close:active { background: var(--border); }

/* ── CATALOG HEADER ── */
.catalog-header {
    background: var(--gray);
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.catalog-header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}
.catalog-header p {
    font-size: 0.82rem;
    color: var(--secondary);
    line-height: 1.5;
}

/* ── PRODUCT DETAIL (catalog page) ── */
.product-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
}
.product-detail:last-of-type { border-bottom: none; }

.product-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Image gallery */
.image-gallery {
    background: var(--gray);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.main-image-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-image {
    width: 85%;
    height: 85%;
    object-fit: contain;
}
.thumbnail-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    border: 2px solid transparent;
    padding: 0.3rem;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color 0.15s;
}
.thumbnail.active,
.thumbnail:active { border-color: var(--accent); }

/* Product info panel */
.product-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.product-category-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--light);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    width: fit-content;
}
.delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #eaf4ea;
    color: #2a6b2a;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: fit-content;
}
.product-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    line-height: 1.25;
    color: var(--primary);
}
.product-subtitle {
    font-size: 0.88rem;
    color: var(--secondary);
    margin-bottom: 0.9rem;
    border-left: 3px solid var(--accent);
    padding-left: 0.75rem;
}
.product-price-big {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}
.product-price-big::before {
    content: "$";
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
}
.product-price-big::after {
    content: "USD";
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
    margin-left: 0.3rem;
}
.product-description {
    font-size: 0.88rem;
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding: 0.9rem;
    background: var(--gray);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}
.product-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}
.product-features li {
    font-size: 0.8rem;
    color: var(--secondary);
    padding: 0.4rem 0.5rem 0.4rem 1.5rem;
    background: var(--gray);
    border-radius: 20px;
    position: relative;
    line-height: 1.3;
}
.product-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    position: absolute;
    left: 0.5rem;
    font-size: 0.85rem;
}

/* Size select */
.size-section {
    margin-bottom: 1rem;
}
.size-section label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.size-select {
    width: 100%;
    max-width: 280px;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 16px; /* CRITICAL: prevents iOS zoom */
    font-family: inherit;
    background: var(--light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a227' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    color: var(--primary);
    touch-action: manipulation;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.size-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

/* Purchase button */
.purchase-btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    min-height: 52px;
    /* Disabled state */
    background: #d0d0d0;
    color: #888;
    pointer-events: none;
}
.purchase-btn:not(:disabled),
.purchase-btn.active {
    background: linear-gradient(135deg, var(--accent), #d4b030);
    color: var(--primary);
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(201,162,39,0.35);
}
.purchase-btn:not(:disabled):active,
.purchase-btn.active:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(201,162,39,0.25);
}

.purchase-note {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.6rem;
    line-height: 1.5;
}
.purchase-note a {
    color: var(--accent);
    text-decoration: underline;
    touch-action: manipulation;
}

/* Employee ID hidden */
.employee-id-group { display: none !important; }

/* ============================================================
   TABLET – 600px+
   ============================================================ */
@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .shipping-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-box {
        border-radius: 20px 20px 0 0;
    }
}

/* ============================================================
   DESKTOP – 900px+
   ============================================================ */
@media (min-width: 900px) {

    /* Header */
    :root { --header-h: 70px; }
    .logo-text { font-size: 1.4rem; }
    .nav-right img { height: 55px; width: 55px; }

    /* Modal becomes centered on desktop */
    .modal-overlay {
        align-items: center;
        padding: 1rem;
    }
    .modal-box {
        border-radius: 16px;
        max-width: 680px;
        max-height: 85vh;
        animation: fadeIn 0.2s ease;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.96); }
        to   { opacity: 1; transform: scale(1); }
    }
    .modal-handle { display: none; }

    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
    .product-card:hover {
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        transform: translateY(-4px);
    }

    /* Shipping grid */
    .shipping-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Product detail — side by side */
    .product-content {
        flex-direction: row;
    }
    .image-gallery {
        width: 45%;
        flex-shrink: 0;
        border-right: 1px solid var(--border);
        padding: 2rem;
    }
    .main-image-container {
        max-width: 400px;
    }
    .thumbnail { width: 72px; height: 72px; }
    .product-details {
        padding: 2rem;
        flex: 1;
        justify-content: center;
    }
    .product-title { font-size: 1.7rem; }
    .product-price-big { font-size: 2.4rem; }

    /* Contact side-by-side */
    .contact-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .contact-form-box { margin-top: 0; }

    /* Info box */
    .info-box { padding: 2.5rem; }
    .info-box h2 { font-size: 1.5rem; }

    /* Section padding */
    .products-section { padding: 2rem 2rem 3rem; }
    .shipping-section-wrap { padding: 0 2rem 3rem; }
    .contact-wrap { padding: 0 2rem 3rem; }
    .info-section { padding: 2rem 2rem; }
    .product-detail { padding: 2rem; }
}

/* ============================================================
   LARGE DESKTOP – 1200px+
   ============================================================ */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    .image-gallery { padding: 2.5rem; }
    .product-details { padding: 2.5rem; }
}

/* ============================================================
   UTILITY
   ============================================================ */

/* Prevents scroll when menu/modal open
   NOTE: no position:fixed here — that causes iOS to jump to top of page */
body.no-scroll {
    overflow: hidden;
    touch-action: none;
}

/* ── ANDROID CHROME: disable double-tap zoom on the whole document ──
   touch-action:manipulation already set on all interactive elements above.
   This catches any missed elements.                                       */
html { touch-action: pan-x pan-y; }

/* ── iOS SAFARI: guarantee inputs never trigger zoom ──
   iOS zooms in if font-size < 16px on any input/select/textarea.
   This is a belt-and-suspenders catch-all.                        */
input, select, textarea, button {
    font-size: max(16px, 1em);
}
/* But for display text inside buttons we override back to designed size */
.btn-primary, .btn-add, .purchase-btn, .modal-close, .side-menu-close, .menu-toggle {
    font-size: inherit;
}
.btn-primary  { font-size: 0.95rem; }
.btn-add      { font-size: 0.92rem; }
.purchase-btn { font-size: 1rem; }

/* ── SMOOTH tap feedback on all interactive elements ── */
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── SAFE AREA INSET (iPhone notch / Dynamic Island) ── */
.shipping-banner {
    padding-top: max(9px, env(safe-area-inset-top));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}
footer {
    padding-bottom: max(2.5rem, calc(2.5rem + env(safe-area-inset-bottom)));
}
.side-menu {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
}
