/* Base Reset */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Title */
.gtin-title {
    text-align: center;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: bold;
    padding: 1rem;
    color: white;
    background-color: #002f59;
    letter-spacing: 1px;
}

/* Body */
.gtin-body {
    padding: 1rem;
}

/* Info Section */
.gtin-info {
    padding: 0 1rem 1rem 1rem;
    margin-bottom: 1.5rem;
    background: #fff;
}

    .gtin-info label {
        font-weight: bold;
        color: #222;
    }

    .gtin-info span {
        margin-left: 6px;
        color: #555;
        word-break: break-word;
    }

h2 {
    color: #222;
    margin: 0 0 12px 0;
    text-align: left;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

/* Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

/* Tiles */
.link-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4fa;
    border-radius: 8px;
    border: 1px solid #002f59;
    padding: 2rem 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.2s ease;
    color: #002f59;
    font-weight: bold;
    text-decoration: none;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    height: 100px;
}

    .link-tile:hover {
        background: #002f59;
        color: #ffffff;
        box-shadow: 0 2px 8px rgba(0,120,215,0.10);
    }

/* Content Wrapper */
.content {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto 0 auto;
}

/* Sticky Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2c2c2c;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f4f6f8;
}

    /* Header Inner Container */
    .site-header .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        box-shadow: unset;
        background-color: transparent;
    }

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Arial, sans-serif;
    font-weight: 600;
    color: #1e2a36;
}

.logo img {
    height: clamp(50px, 10vw, 100px);
    width: auto;
}

/* ===== Responsive Breakpoints ===== */

/* Tablets */
@media (max-width: 768px) {
    .link-tile {
        padding: 1.8rem 10px;
    }

    .gtin-info {
        padding: 0 0.5rem 1rem 0.5rem;
    }

    .content {
        width: 95%
    }

    .logo img {
        margin: 0 auto;
        height: 5rem;
    }
}

/* Mobile */
/* =======================================================
   MOBILE IMPROVEMENTS (Phones)
   ======================================================= */
@media (max-width: 300px) {

    /* Make layout feel full-width */
    .container {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .content {
        margin-top: 0;
    }

    /* Bigger GTIN title */
    .gtin-title {
        font-size: 1.8rem;
        padding: 1rem 0.8rem;
    }

    /* Bigger section headings */
    h2 {
        font-size: 1.4rem;
    }

    /* Make product info text larger */
    .gtin-info {
        font-size: 1.05rem;
    }

    /* FORCE 2 items per row on mobile */
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* Bigger, more tappable buttons */
    .link-tile {
        padding: 2rem 10px;
        font-size: 1.05rem;
        height: 100px;
    }
}
