@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --accent: #10B981;
    --accent-dark: #059669;
    --background: #F9FAFB;
    --surface: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.2s ease;
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========== HEADER ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 11px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--border-light); }
.nav-link.active { color: var(--primary); background: rgba(37,99,235,0.1); }

.owner-entry-btn {
    margin-left: 8px;
    padding: 11px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--border-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}
.owner-entry-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    border-radius: var(--radius);
}
.menu-toggle:hover { background: var(--border-light); }

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.25s ease;
}
.menu-icon { top: 50%; transform: translate(-50%, -50%); }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

/* ========== MOBILE DRAWER ========== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
    cursor: pointer;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(85vw, 320px);
    background: var(--surface);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.drawer-title { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); }

.drawer-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.drawer-close:hover { background: var(--border-light); color: var(--text-primary); }

.drawer-nav { display: flex; flex-direction: column; gap: 8px; }

.drawer-nav a,
.drawer-owner-btn {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
}
.drawer-nav a:hover,
.drawer-nav a.active,
.drawer-owner-btn:hover {
    background: rgba(37,99,235,0.08);
    color: var(--primary);
    border-color: rgba(37,99,235,0.2);
}

body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
body.drawer-open .mobile-drawer { transform: translateX(0); }

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 48px 24px;
    text-align: center;
}
.page-header-content h1 { font-size: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.page-header-content p { font-size: 1.1rem; color: rgba(255,255,255,0.85); }

/* ========== PRODUCT HERO ========== */
.product-hero {
    max-width: 1280px;
    margin: 32px auto;
    padding: 40px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-left { color: var(--text-primary); }

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 8px;
}

.hero-title { font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; line-height: 1.2; }
.hero-subtitle { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }

.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.hero-feature-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.hero-feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.hero-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,99,235,0.1);
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

.hero-feature-text { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }

.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.hero-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.hero-btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.hero-btn.outlined { background: transparent; color: var(--text-primary); border-color: var(--border); }
.hero-btn.outlined:hover { border-color: var(--primary); color: var(--primary); }

/* Hero Right — always visible, responsive image */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-illustration { width: 100%; }

.hero-illustration img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: block;
}

/* ========== PRODUCT SEARCH ========== */
.product-search-section {
    max-width: 640px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.product-search-inner { position: relative; display: flex; align-items: center; }

.product-search-icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.product-search-input {
    width: 100%;
    padding: 14px 44px 14px 48px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    outline: none;
    transition: var(--transition);
}
.product-search-input::placeholder { color: var(--text-muted); }
.product-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }

.product-search-clear {
    position: absolute;
    right: 14px;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.product-search-clear:hover { color: var(--text-primary); background: var(--border-light); }
.product-search-clear.visible { display: flex; }

.product-search-hint { margin-top: 8px; font-size: 0.8rem; color: var(--text-muted); text-align: center; }

.product-search-no-results {
    display: none;
    max-width: 1280px;
    margin: 24px auto;
    padding: 48px 24px;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.product-search-no-results.visible { display: block; }
.product-search-no-results i { font-size: 3rem; color: var(--border); margin-bottom: 16px; }
.product-search-no-results p { color: var(--text-secondary); font-size: 1rem; }

.product-card.search-hidden,
.products-section.search-hidden,
.products-section-title.search-hidden,
.products-subsection-title.search-hidden,
.product-card.product-removed { display: none !important; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ========== PRODUCTS SECTION ========== */
.products-wrapper { max-width: 1280px; margin: 0 auto 48px; padding: 0 24px; }

.products-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 24px;
    padding: 20px 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.products-section-title i { color: var(--primary); }

.products-subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 32px 0 16px;
    padding: 12px 16px;
    background: var(--background);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ========== PRODUCT CARDS ========== */
.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.product-image { width: 100%; height: 380px; overflow: hidden; background: var(--border-light); }
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }

.product-info { padding: 20px; }
.product-info h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.product-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; }

.view-details-btn {
    width: 100%;
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.color {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-left: 5px;
    border: 1px solid #ccc;
}
.view-details-btn:hover { background: var(--primary-dark); }

/* ========== PRODUCT MODAL ========== */
.product-details-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background: var(--background);
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    background: var(--background);
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Sticky top bar with Back button ── */
.modal-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
}

.close-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: auto;
    height: auto;
    white-space: nowrap;
}
.close-btn:hover { background: var(--border-light); color: var(--text-primary); border-color: var(--primary); }
.close-btn i { font-size: 0.85rem; }

/* ── Main layout ── */
.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 48px;
    align-items: start;
}

/* ── Left: image column ── */
.product-images-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 70px; /* below sticky topbar */
}

.main-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
.main-image:hover img { transform: scale(1.03); }

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: var(--transition);
    object-fit: cover;
    background: var(--border-light);
}
.thumbnail:hover { border-color: var(--primary-light); transform: scale(1.04); }
.thumbnail.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,0.25); }

/* Contact buttons below thumbnails */
.modal-contact-icons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.modal-contact-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: var(--radius);
    border: none;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: var(--transition);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.modal-contact-btn i { font-size: 1.4rem; }
.modal-contact-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); opacity: 0.92; }

.modal-call     { background: #2563EB; }
.modal-mail     { background: #DC2626; }
.modal-whatsapp { background: #25D366; }

/* ── Right: info column ── */
.product-details-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 40px;
    border-left: 1px solid var(--border);
}

.product-details-section h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

.product-price-large {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(37,99,235,0.07);
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(37,99,235,0.15);
}

.product-description,
.product-specs,
.product-features {
    background: var(--surface);
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.product-description h3,
.product-specs h3,
.product-features h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.product-description p { color: var(--text-secondary); line-height: 1.75; font-size: 0.95rem; }
.product-specs ul, .product-features ul { list-style: none; }
.product-specs li, .product-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
    border-bottom: 1px solid var(--border-light);
}
.product-specs li:last-child, .product-features li:last-child { border-bottom: none; padding-bottom: 0; }
.product-specs li::before, .product-features li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent);
    font-size: 0.75rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.product-actions { display: flex; gap: 12px; }

.add-to-cart-btn,
.buy-now-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}
.add-to-cart-btn { background: #25D366; color: #fff; }
.add-to-cart-btn:hover { background: #1da851; transform: translateY(-2px); box-shadow: var(--shadow); }
.buy-now-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.buy-now-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); opacity: 0.92; }

/* Owner Remove */
.owner-remove-action { padding-top: 12px; border-top: 1px solid var(--border); }
.owner-remove-from-listing-btn {
    padding: 11px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #DC2626;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.owner-remove-from-listing-btn:hover { background: #FEE2E2; }

/* ========== RECOMMENDATIONS ========== */
.recommendations-section { padding: 64px 0 56px; background: var(--background); overflow: hidden; }

.rec-header { text-align: center; margin-bottom: 44px; padding: 0 24px; }
.rec-header h2 { font-size: 2.4rem; font-weight: 700; color: var(--text-primary); }
.rec-header h2 em { font-style: italic; color: var(--primary); }

.rec-slider-wrap { display: flex; align-items: center; padding: 0 16px; }
.rec-track-outer { flex: 1; overflow: hidden; border-radius: var(--radius-lg); }
.rec-track { display: flex; gap: 20px; transition: transform 0.45s cubic-bezier(.4,0,.2,1); }

.rec-card {
    flex: 0 0 calc(25% - 15px);
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    aspect-ratio: 4/5;
    background: var(--border-light);
}
.rec-card:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow-lg); }

.rec-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.rec-card:hover .rec-card-img { transform: scale(1.06); }

.rec-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.rec-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 18px 18px; z-index: 2; }
.rec-card-body h3 { font-size: 1.05rem; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); margin: 0; line-height: 1.3; }

.rec-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--border-light), var(--border));
    color: var(--text-muted); font-size: 3rem;
}

.rec-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    margin: 0 8px;
}
.rec-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.rec-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); cursor: pointer; border: none; transition: var(--transition); }
.rec-dot.active { background: var(--primary); width: 28px; border-radius: 6px; }

/* ========== FILE INPUT ========== */
.owner-input,
.owner-textarea,
input[type="text"],
input[type="password"],
input[type="url"],
input[type="search"],
textarea { -webkit-user-select: text; user-select: text; }

.owner-file-input { padding: 10px 12px; cursor: pointer; font-size: 0.9rem; background: var(--background); }
.owner-file-input::-webkit-file-upload-button {
    background: var(--primary); color: #fff; border: none;
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 0.875rem; font-weight: 600; cursor: pointer;
    margin-right: 12px; font-family: inherit;
}

.owner-img-preview {
    width: 100%; max-height: 160px; object-fit: cover;
    border-radius: var(--radius); border: 1px solid var(--border);
    margin-bottom: 16px; display: block;
}

/* ========== OWNER MODALS ========== */
.owner-modal {
    display: none; position: fixed; inset: 0;
    z-index: 3500;
    background: rgba(0,0,0,0.6);
    align-items: flex-start; justify-content: center;
    padding: 24px; overflow-y: auto;
}
.owner-modal.open { display: flex; }

.owner-modal-content {
    background: var(--surface); color: var(--text-primary);
    border-radius: var(--radius-lg); padding: 32px;
    max-width: 420px; width: 100%;
    position: relative; box-shadow: var(--shadow-lg); margin: auto 0;
}
.owner-modal-content h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.owner-modal-hint { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }

.owner-input {
    width: 100%; padding: 12px 16px; font-size: 1rem;
    border: 2px solid var(--border); border-radius: var(--radius);
    margin-bottom: 16px; font-family: inherit; transition: var(--transition);
}
.owner-input:focus { outline: none; border-color: var(--primary); }
.owner-textarea { resize: vertical; min-height: 80px; }

.owner-btn {
    padding: 12px 24px; font-size: 1rem; font-weight: 600;
    border-radius: var(--radius); cursor: pointer; border: none;
    font-family: inherit; transition: var(--transition);
}
.owner-btn.primary { background: var(--primary); color: #fff; }
.owner-btn.primary:hover { background: var(--primary-dark); }
.owner-btn.secondary { background: var(--border-light); color: var(--text-secondary); }
.owner-btn.secondary:hover { background: var(--border); }

.owner-modal-close {
    position: absolute; right: 16px; top: 16px;
    width: 36px; height: 36px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); font-size: 1.5rem; line-height: 1;
    border-radius: var(--radius); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.owner-modal-close:hover { background: var(--border-light); color: var(--text-primary); }

.owner-error { color: #DC2626; font-size: 0.9rem; margin-top: 8px; }

.owner-form-content .owner-form label {
    display: block; font-size: 0.875rem;
    font-weight: 600; color: var(--text-primary); margin-bottom: 6px;
}

.owner-form-actions { display: flex; gap: 12px; margin-top: 20px; }
.owner-form-actions .owner-btn { flex: 1; }

.owner-fab {
    display: none; position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none;
    font-size: 1.25rem; cursor: pointer; box-shadow: var(--shadow-lg);
    z-index: 1000; align-items: center; justify-content: center;
    transition: var(--transition);
}
.owner-fab:hover { transform: scale(1.05); background: var(--primary-dark); }

/* ========== FOOTER ========== */
.footer { background: var(--text-primary); color: #fff; padding: 64px 24px 24px; margin-top: 48px; }

.footer-container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo { width: 48px; height: 48px; object-fit: contain; border-radius: var(--radius-sm); }
.footer-brand h4 { font-size: 1.1rem; font-weight: 600; }
.footer-desc { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.7; }

.footer-col h4 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; position: relative; }
.footer-col h4::after {
    content: ""; position: absolute; left: 0; bottom: -8px;
    width: 32px; height: 2px; background: var(--primary); border-radius: 2px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }

.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: var(--transition);
}
.social-links a:hover { background: var(--primary); transform: translateY(-2px); }

.footer-bottom {
    max-width: 1200px; margin: 48px auto 0;
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ========== RESPONSIVE: ≤1024px (Tablet) ========== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero-right { order: -1; }
    .hero-illustration img { max-height: 280px; }

    .products-container { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .product-hero { margin: 24px 20px; padding: 32px; }

    .footer-container { grid-template-columns: repeat(2, 1fr); gap: 32px; }

    /* Modal: switch to single column */
    .product-details-container {
        grid-template-columns: 1fr;
        padding: 24px 20px 40px;
    }
    .product-details-section {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-top: 24px;
    }
    .product-images-section { position: static; }
}

/* ========== RESPONSIVE: ≤900px (Mobile) ========== */
@media (max-width: 900px) {
    .header-container { height: 64px; padding: 0 16px; }
    .nav-desktop { display: none; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; -webkit-tap-highlight-color: transparent; }

    .page-header { padding: 36px 16px; }
    .page-header-content h1 { font-size: 2rem; }

    .product-hero { margin: 20px 16px; padding: 24px 20px; }
    .hero-title { font-size: 1.5rem; }
    .hero-features-grid { grid-template-columns: 1fr; }
    .hero-cta-row { flex-direction: column; }
    .hero-illustration img { max-height: 240px; }

    .products-wrapper { padding: 0 16px; }
    .products-container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .products-section-title { font-size: 1.25rem; padding: 16px 20px; }

    .product-image { height: 300px; }
    .product-info { padding: 16px; }
    .product-info h3 { font-size: 0.95rem; }
    .product-price { font-size: 1.1rem; margin-bottom: 12px; }

    .modal-content { padding: 0; }
    .modal-topbar { padding: 10px 16px; }
    .product-details-modal { overflow-y: auto; }
    .product-details-container { grid-template-columns: 1fr; padding: 16px 16px 40px; gap: 0; }
    .product-details-section { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 20px; }
    .product-images-section { position: static; }
    .main-image { aspect-ratio: 4/5; }
    .product-details-section h2 { font-size: 1.4rem; }
    .product-actions { flex-direction: row; }

    .modal-contact-btn { padding: 12px 6px; font-size: 0.72rem; gap: 5px; }
    .modal-contact-btn i { font-size: 1.15rem; }
    .modal-contact-icons { gap: 8px; }

    .footer { padding: 48px 16px 20px; }
    .footer-container { grid-template-columns: repeat(2, 1fr); gap: 28px; }

    .product-search-section { max-width: 100%; padding: 0 16px; }

    .rec-card { flex: 0 0 calc(50% - 10px); }
    .rec-header h2 { font-size: 1.8rem; }
}

/* ========== RESPONSIVE: ≤540px (Small Mobile) ========== */
@media (max-width: 540px) {
    .header-container { height: 60px; }
    .logo-img { width: 40px; height: 40px; }
    .logo-text { font-size: 1.1rem; }

    .page-header { padding: 32px 12px; }
    .page-header-content h1 { font-size: 1.75rem; }
    .page-header-content p { font-size: 0.95rem; }

    .product-hero { margin: 16px 12px; padding: 20px 16px; }
    .hero-title { font-size: 1.35rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-feature-card { padding: 12px; }
    .hero-feature-text { font-size: 0.85rem; }
    .hero-btn { padding: 12px 20px; font-size: 0.9rem; }
    .hero-illustration img { max-height: 200px; border-radius: var(--radius); }

    .product-search-section { padding: 0 12px; margin-bottom: 24px; }
    .product-search-input { padding: 12px 40px 12px 44px; font-size: 0.95rem; }

    .products-wrapper { padding: 0 12px; }
    .products-section-title { font-size: 1.1rem; padding: 14px 16px; margin: 32px 0 16px; }
    .products-subsection-title { font-size: 1rem; padding: 10px 14px; margin: 24px 0 12px; }
    .products-container { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card { border-radius: var(--radius); }
    .product-image { height: 260px; }
    .product-info { padding: 12px; }
    .product-info h3 { font-size: 0.85rem; margin-bottom: 4px; }
    .product-price { font-size: 1rem; margin-bottom: 10px; }
    .view-details-btn { padding: 10px 12px; font-size: 0.85rem; }

    .close-btn { padding: 8px 14px; font-size: 0.85rem; }
    .modal-topbar { padding: 8px 12px; }
    .product-details-container { padding: 12px 12px 32px; }
    .main-image { aspect-ratio: 4/5; }
    .thumbnail-images { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .product-details-section h2 { font-size: 1.2rem; }
    .product-price-large { font-size: 1.25rem; }
    .product-description, .product-specs, .product-features { padding: 14px 16px; }
    .add-to-cart-btn, .buy-now-btn { padding: 12px 14px; font-size: 0.88rem; }

    .modal-contact-btn { padding: 10px 4px; gap: 4px; font-size: 0.68rem; border-radius: var(--radius-sm); }
    .modal-contact-btn i { font-size: 1rem; }
    .modal-contact-icons { gap: 6px; }

    .owner-fab { bottom: 16px; right: 16px; width: 48px; height: 48px; font-size: 1rem; }
    .owner-modal-content { padding: 24px; margin: 12px; }

    .footer-container { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { margin-top: 32px; padding-top: 20px; }

    .rec-card { flex: 0 0 100%; }
    .rec-header h2 { font-size: 1.5rem; }
    .rec-slider-wrap { padding: 0 8px; }
}

/* ========== RESPONSIVE: ≤380px (Very Small) ========== */
@media (max-width: 380px) {
    .hero-illustration img { max-height: 160px; }
}

/* ========== TOUCH DEVICES ========== */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }
    .hero-btn.primary:hover { transform: none; }
    .social-links a:hover { transform: none; }
    .view-details-btn { padding: 14px 16px; font-size: 0.95rem; }
    .nav-link, .drawer-nav a { padding: 14px 18px; }
}

/* ========== LANDSCAPE MOBILE ========== */
@media (max-width: 900px) and (orientation: landscape) {
    .page-header { padding: 24px 16px; }
    .page-header-content h1 { font-size: 1.6rem; }
    .product-hero { margin: 12px 16px; padding: 20px; }
    .hero-illustration img { max-height: 180px; }
}
