/* ============================================
   Milner Kennels - Homestead Farm Theme Styles
   ============================================ */

:root {
    --primary-color: #8B4513;
    --primary-dark: #654321;
    --secondary-color: #D2691E;
    --accent-color: #F4A460;
    --bg-dark: #E8E0C0;
    --bg-darker: #D4C8A8;
    --bg-card: #F5F0E0;
    --bg-card-hover: #F0E8D0;
    --border-color: rgba(139, 69, 19, 0.3);
    --border-hover: rgba(139, 69, 19, 0.5);
    --text-primary: #2F2F2F;
    --text-secondary: #4A4A4A;
    --text-muted: #6B6B6B;
    --gradient-1: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    --gradient-2: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
    --gradient-hero: linear-gradient(180deg, #E8E0C0 0%, #D4C8A8 50%, #E8E0C0 100%);
    --shadow-glow: 0 0 30px rgba(139, 69, 19, 0.2);
    --shadow-glow-strong: 0 0 60px rgba(139, 69, 19, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #D2B48C;
    --primary-dark: #B8860B;
    --secondary-color: #F4A460;
    --accent-color: #FFD700;
    --bg-dark: #1A1A1A;
    --bg-darker: #2D2D2D;
    --bg-card: #2A2A2A;
    --bg-card-hover: #333333;
    --border-color: rgba(210, 180, 140, 0.3);
    --border-hover: rgba(210, 180, 140, 0.5);
    --text-primary: #E8E8E8;
    --text-secondary: #C0C0C0;
    --text-muted: #999999;
    --gradient-1: linear-gradient(135deg, #D2B48C 0%, #F4A460 100%);
    --gradient-2: linear-gradient(135deg, #F4A460 0%, #D2B48C 100%);
    --gradient-hero: linear-gradient(180deg, #1A1A1A 0%, #2D2D2D 50%, #1A1A1A 100%);
    --shadow-glow: 0 0 30px rgba(210, 180, 140, 0.2);
    --shadow-glow-strong: 0 0 60px rgba(210, 180, 140, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Prevent horizontal scroll on mobile */
    overflow-x: hidden;
    width: 100%;
}

/* Ensure all containers respect viewport */
* {
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Touch improvements for mobile */
    -webkit-tap-highlight-color: rgba(139, 69, 19, 0.2);
    touch-action: manipulation;
    font-size: 16px; /* Base font size for better mobile readability */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(210, 105, 30, 0.03) 0%, transparent 50%);
}

[data-theme="dark"] body {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(210, 180, 140, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(244, 164, 96, 0.05) 0%, transparent 50%);
    -webkit-tap-highlight-color: rgba(210, 180, 140, 0.2);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(232, 224, 192, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.95);
}

/* Adjust navbar when announcement banner is visible */
body:has(.announcement-banner:not(.hidden)) .navbar {
    top: 60px;
}

body:has(.announcement-banner:not(.hidden)) .hero {
    padding-top: 140px;
}

.navbar.scrolled {
    background: rgba(232, 224, 192, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border-bottom-color: var(--border-hover);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    border-bottom-color: var(--border-hover);
}

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

.nav-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-logo a:hover .nav-logo-img {
    transform: scale(1.1);
}

.nav-logo a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-logo a:hover::after {
    width: 100%;
}

.nav-logo a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(139, 69, 19, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(139, 69, 19, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .nav-link::before {
    background: rgba(210, 180, 140, 0.2);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    margin-top: 0;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    position: relative;
}

.dropdown-menu > li > a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    position: relative;
}

.dropdown-menu > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--gradient-1);
    transition: width 0.3s ease;
    opacity: 0.1;
}

.dropdown-menu > li > a:hover::before {
    width: 100%;
}

.dropdown-menu > li > a:hover {
    color: var(--primary-color);
    padding-left: 2rem;
}

/* Nested Product Dropdown */
.product-dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 8px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-card);
    z-index: 1001;
}

.dropdown-menu > li:hover .product-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-menu > li {
    position: relative;
}

.product-dropdown a {
    display: block;
    padding: 0.625rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.product-dropdown a:hover {
    color: var(--primary-color);
    background: rgba(139, 69, 19, 0.1);
    padding-left: 2rem;
}

.dropdown-arrow {
    font-size: 0.65rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    /* Touch improvements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.theme-toggle {
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 1rem;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 1001;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--bg-darker);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.theme-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

@media (max-width: 768px) {
    .theme-toggle {
        margin-right: 0.5rem;
        padding: 0.4rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .theme-icon {
        font-size: 1.25rem;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(210, 105, 30, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    padding: 4rem 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #654321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.title-line::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    animation: expandLine 1s ease-out 0.5s forwards;
}

@keyframes expandLine {
    to {
        width: 100%;
    }
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    /* Touch improvements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px; /* Minimum touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-1);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(139, 69, 19, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.mouse {
    width: 28px;
    height: 48px;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    position: relative;
    opacity: 0.6;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 28px; }
}

/* ============================================
   Products Section
   ============================================ */

.products-section {
    padding: 6rem 0;
    position: relative;
    background: var(--bg-dark);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    font-weight: 300;
}

.script-lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.script-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* When script-card is a link */
a.script-card {
    text-decoration: none;
    color: inherit;
}

a.script-card:hover {
    text-decoration: none;
    color: inherit;
}

.script-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.script-card:hover::before {
    opacity: 0.05;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.script-card:hover .card-glow {
    opacity: 1;
}

.script-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-strong), var(--shadow-card);
}

.script-card-image-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-darker);
    position: relative;
    z-index: 1;
}

.script-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    padding: 0.5rem;
    box-sizing: border-box;
}

.script-card:hover .script-card-image {
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.card-link:hover {
    gap: 1rem;
    color: var(--accent-color);
}

/* ============================================
   About Section
   ============================================ */

.about-section {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.feature-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.feature-item h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Crypto Payment Section
   ============================================ */

.crypto-payment {
    margin: 3rem 0;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.payment-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.payment-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

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

.crypto-option {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.crypto-option:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.crypto-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 208, 0, 0.411));
}

.crypto-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;  
    font-weight: 600;
}

.crypto-address {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-all;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.copy-btn {
    background: var(--gradient-1);
    color: #000000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
}

/* ============================================
   Product Page Styles
   ============================================ */

.product-header {
    padding: 10rem 0 5rem;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(139, 69, 19, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.product-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 0.03;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-strong), var(--shadow-card);
}

.product-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Product Card Image Wrapper - for puppy photos */
.product-card-image-wrapper {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-darker);
    position: relative;
}

.product-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image-wrapper img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .product-card-image-wrapper {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .product-card-image-wrapper {
        height: 180px;
    }
}

/* ============================================
   Responsive Design - Mobile First Approach
   ============================================ */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-logo a {
        font-size: 1.25rem;
    }
    
    .nav-logo-img {
        height: 32px;
        width: 32px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: var(--shadow-card);
        padding: 0;
        gap: 0;
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        list-style: none;
    }

    .nav-menu > li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(219, 38, 38, 0.1);
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    /* Hide Script Lines dropdown on mobile - users navigate via index page links */
    /* Multiple selectors to ensure it's caught - HIGHEST PRIORITY */
    #nav-menu > li.nav-dropdown,
    ul#nav-menu > li.nav-dropdown,
    ul.nav-menu > li.nav-dropdown,
    .nav-menu li.nav-dropdown,
    .nav-menu .nav-dropdown,
    li.nav-dropdown {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-bottom: none !important;
        border-top: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }
    
    /* Also hide any links or content inside */
    #nav-menu li.nav-dropdown > a,
    #nav-menu li.nav-dropdown *,
    .nav-menu li.nav-dropdown > a,
    .nav-menu li.nav-dropdown * {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-link {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        display: block;
        width: 100%;
        font-weight: 500;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Hero Section */
    .hero {
        padding-top: 60px;
        min-height: 80vh;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Sections */
    .products-section {
        padding: 3rem 0;
    }

    .products-section .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .script-lines-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .script-card {
        padding: 2rem 1.5rem;
        min-height: 180px;
        display: flex;
        flex-direction: column;
    }

    .script-card-image-wrapper {
        height: 150px;
        margin-bottom: 1.25rem;
    }
    
    .script-card-image {
        padding: 0.4rem;
    }

    a.script-card {
        text-decoration: none;
        color: inherit;
        -webkit-tap-highlight-color: rgba(194, 14, 14, 0.2);
    }

    .script-card .card-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .script-card .card-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        flex: 1;
    }

    .script-card .card-link {
        font-size: 1rem;
        margin-top: auto;
    }

    .card-title {
        font-size: 1.5rem;
    }

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

    /* About Section */
    .about-section {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .feature-item {
        padding: 1.5rem;
        gap: 1rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-item h3 {
        font-size: 1.1rem;
    }

    /* Crypto Options */
    .crypto-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .crypto-option {
        padding: 1.5rem;
    }

    .crypto-icon {
        font-size: 2.5rem;
    }

    .crypto-name {
        font-size: 1.1rem;
    }

    .crypto-address {
        font-size: 0.8rem;
        padding: 0.75rem;
    }

    /* Product Header */
    .product-header {
        padding: 6rem 0 3rem;
    }

    .product-header .container {
        padding: 0 16px;
    }

    .product-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .product-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        padding: 0 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .product-card {
        padding: 2rem 1.5rem;
    }

    .product-card h3 {
        font-size: 1.25rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

    .footer-section a {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        display: inline-block;
    }

    /* Crypto Payment */
    .crypto-payment {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .payment-title {
        font-size: 1.5rem;
    }

    .payment-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Scroll Indicator - Hide on mobile */
    .scroll-indicator {
        display: none;
    }

    /* Adjust navbar top when announcement is visible */
    body:has(.announcement-banner:not(.hidden)) .navbar {
        top: 50px;
    }

    body:has(.announcement-banner:not(.hidden)) .hero {
        padding-top: 110px;
    }

    /* Improve touch targets for interactive elements */
    .btn,
    .nav-link,
    .copy-btn,
    button:not(input[type="submit"]):not(input[type="button"]) {
        min-height: 44px;
    }

    /* Better text readability on mobile */
    p {
        font-size: clamp(1rem, 3vw, 1.1rem);
        line-height: 1.7;
    }

    body {
        font-size: 16px; /* Base font size for better mobile readability */
    }

    /* Prevent text overflow */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Improve form inputs on mobile */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* FINAL RULE: Ensure Script Lines is completely hidden on mobile - highest priority */
    #nav-menu li.nav-dropdown,
    ul#nav-menu > li.nav-dropdown {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-bottom: none !important;
        overflow: hidden !important;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .nav-container {
        padding: 0 12px;
    }

    .nav-logo a {
        font-size: 1.2rem;
    }
    
    .nav-logo-img {
        height: 28px;
        width: 28px;
    }

    .hero {
        min-height: 70vh;
        padding-top: 50px;
    }

    .hero-content {
        padding: 1.5rem 0.75rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .products-section {
        padding: 2rem 0;
    }

    .products-section .container {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .script-card {
        padding: 1.75rem 1.25rem;
        min-height: 160px;
    }

    .script-card-image-wrapper {
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .script-card-image {
        padding: 0.3rem;
    }

    .script-card .card-title {
        font-size: 1.35rem;
        margin-bottom: 0.625rem;
    }

    .script-card .card-description {
        font-size: 0.9rem;
        margin-bottom: 0.875rem;
    }

    .script-card .card-link {
        font-size: 0.95rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-description {
        font-size: 0.85rem;
    }

    .product-header {
        padding: 5rem 0 2rem;
    }

    .product-header .container {
        padding: 0 12px;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .product-subtitle {
        font-size: 0.95rem;
    }

    .crypto-payment {
        padding: 1.5rem 1rem;
    }

    .payment-title {
        font-size: 1.25rem;
    }

    .crypto-option {
        padding: 1.25rem;
    }

    .crypto-icon {
        font-size: 2rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 0.95rem;
    }

    .footer-section a {
        font-size: 0.85rem;
    }

    /* Adjust navbar top when announcement is visible */
    body:has(.announcement-banner:not(.hidden)) .navbar {
        top: 45px;
    }

    body:has(.announcement-banner:not(.hidden)) .hero {
        padding-top: 95px;
    }

    /* Improve form inputs on mobile */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Small mobile devices (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

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

