:root {
    --bg: #ffffff;
    --text: #111111;
    --text-sec: #444444;
    --border: #dddddd;
    --accent: #2c2c2c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top bar is static */
.top-bar {
    background: #1f1f1f;
    color: #eeeeee;
    text-align: center;
    padding: 10px 0;
    font-size: 0.88rem;
}

/* Sticky header only (logo + search + cart) */
.sticky-header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 16px;
}

.logo {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

.search-bar {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 48px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f9f9f9;
    font-size: 1.02rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(44,44,44,0.08);
    background: white;
}

.search-bar::before {
    content: "🔍";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #888;
    pointer-events: none;
}

.icons {
    display: flex;
    gap: 28px;
    flex-shrink: 0;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #666;
    cursor: pointer;
    position: relative;
}

/* Hero - Pure white, no background image */
.hero {
    background: #ffffff;
    color: var(--accent);
    text-align: center;
    padding: 100px 20px 80px;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.35rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.15rem;
    color: #555;
    max-width: 720px;
    margin: 0 auto;
}

/* ====================== PRODUCT GRID STYLE - MATCHING displayrepairkit.com ====================== */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
}

.guide-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.guide-card .guide-img {
    height: 220px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.guide-card .guide-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.guide-card .guide-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-card .guide-title {
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.guide-card .guide-excerpt {
    font-size: 0.93rem;
    color: var(--text-sec);
    margin-bottom: 16px;
    flex: 1;
}

.watch-video-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.watch-video-btn:hover {
    transform: scale(1.03);
}

/* ====================== GUIDE MODAL - VIDEO VERSION ====================== */
#guideModal .modal-content {
    max-width: 620px;
}

#guideModal .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    background: #000;
    overflow: hidden;
}

#guideModal .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#guideModal .modal-actions {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#guideModal .modal-actions a {
    padding: 16px 20px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

#guideModal .btn-kit {
    background: var(--accent);
    color: white;
}

#guideModal .btn-kit:hover {
    background: #1a1a1a;
}

#guideModal .btn-models {
    background: white;
    color: var(--accent);
    border: 2px solid var(--accent);
}

#guideModal .btn-models:hover {
    background: #f9f9f9;
}

/* Modals - Base styles (keep your original modal structure) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 16px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 580px;
    border-radius: 16px;
    overflow: hidden;
    max-height: 92vh;
    overflow-y: auto;
}

.modal-header {
    padding: 16px 20px;
    background: #2c2c2c;
    color: white;
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-body {
    padding: 24px;
}

.modal-image {
    width: 100%;
    height: 280px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.modal-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.quick-tip {
    text-align: center;
    padding: 60px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.quick-tip h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.quick-tip p {
    max-width: 680px;
    margin: 0 auto 24px;
    line-height: 1.65;
}

.quick-tip button {
    background: #2c2c2c;
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.quick-tip button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Hybrid Video Modal Support */
#guideModal .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;     /* Default = horizontal */
    height: 0;
    background: #000;
    overflow: hidden;
    transition: padding-bottom 0.3s ease;
}

#guideModal .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Optional: Make vertical Shorts modal a bit wider on mobile */
@media (max-width: 640px) {
    #guideModal .modal-content {
        max-width: 92%;
    }
}