/* OFFLOWZ - Minimal Clean Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    --primary: #2563EB;
    --secondary: #000000;
    --accent: #1E40AF;
    --light-bg: #FFFFFF;
    --light-text: #000000;
    --gray-text: #666666;
    --border-color: #E5E7EB;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: var(--light-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    button, a, .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }
}

/* Navigation */
.navbar {
    background: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo{
    width: 180px;
    max-width: 100%;
    flex-shrink: 0;
}
.logo img{
    width: 100%;
    height: auto;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--light-text);
    z-index: 1001;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

@media (max-width: 992px) {
    .nav-wrapper {
        gap: 1rem;
    }
    
    .logo {
        width: 150px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light-bg);
        flex-direction: column;
        padding: 0;
        border-bottom: 2px solid var(--border-color);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        gap: 0;
        z-index: 1000;
    }
    
    .nav-content.show {
        display: flex;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
    }
    
    .nav-cta {
        width: 100%;
        padding: 1rem;
        gap: 0.75rem;
        flex-direction: column;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

.nav-menu a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 992px) {
    .nav-cta .btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--light-bg);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--light-bg);
    transform: translateY(-2px);
}

.btn-xl {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #F9FAFB 100%);
    text-align: center;
    border-bottom: 2px solid var(--border-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: var(--light-text);
    line-height: 1.1;
}

.hero-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--gray-text);
    letter-spacing: 0.5px;
}

/* Quick Navigation */
.quick-nav {
    background: var(--light-bg);
    padding: 2rem 0;
    border-bottom: 2px solid var(--border-color);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: var(--primary);
    color: var(--light-bg);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.quick-link .icon {
    font-size: 1.5rem;
}

/* Featured Products Section */
.featured-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
    color: var(--light-text);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
    border-color: var(--primary);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #F9FAFB;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--light-bg);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 4px;
}

.badge.hot {
    background: #DC2626;
    color: var(--light-bg);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.product-code {
    color: var(--gray-text);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.product-specs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.product-specs span {
    background: #F3F4F6;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--gray-text);
    border: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.view-all {
    text-align: center;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background: #F9FAFB;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-top: 3rem;
}

.step {
    background: var(--light-bg);
    padding: 2rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.step p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 900;
}

/* Why Us Section */
.why-us {
    padding: 4rem 0;
    background: var(--light-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--light-bg);
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
    color: var(--light-text);
}

.benefit-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Success Stories */
.success-stories {
    padding: 4rem 0;
    background: #F9FAFB;
    border-top: 2px solid var(--border-color);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.story-card {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
}

.story-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--light-text);
}

.story-card p {
    padding: 0.5rem 1.5rem;
    color: var(--gray-text);
    font-style: italic;
    margin-bottom: 1rem;
}

.story-card strong {
    display: block;
    padding: 0 1.5rem 1.5rem;
    color: var(--primary);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--primary);
    text-align: center;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    color: var(--light-bg);
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.cta-section .btn-primary {
    background: var(--light-bg);
    color: var(--primary);
    border-color: var(--light-bg);
}

.cta-section .btn-primary:hover {
    background: var(--accent);
    color: var(--light-bg);
    border-color: var(--accent);
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 3rem 0 1rem;
    border-top: 2px solid var(--border-color);
    color: var(--light-bg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    color: var(--light-bg);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn-xl {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .quick-links {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 1.5rem;
    }
    
    .stories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-arrow {
        display: none;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .quick-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .quick-link {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }
    
    .quick-link .icon {
        font-size: 1.8rem;
    }
    
    .quick-link span:not(.icon) {
        font-size: 0.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: 0.5rem;
    }
    
    .btn-xl {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        padding-top: 2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .quick-link {
        padding: 0.75rem 0.5rem;
    }
    
    .quick-link .icon {
        font-size: 1.5rem;
    }
    
    .quick-link span:not(.icon) {
        font-size: 0.75rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .step {
        padding: 1.25rem;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    .step p {
        font-size: 0.85rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card h3 {
        font-size: 1.1rem;
    }
    
    .benefit-card p {
        font-size: 0.9rem;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .story-card h3 {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* TapStitch-Style Modal */
.tapstitch-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    overflow: auto;
}

.tapstitch-modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.modal-container {
    background: var(--light-bg);
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
    position: relative;
    z-index: 2001;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--light-text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

/* Gallery Section */
.product-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    width: 100%;
    max-height: 420px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-main img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Gallery controls (prev/next) */
.gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.gallery-control:hover {
    background: #ffffff;
    border-color: var(--primary);
}

.gallery-control.prev { left: 12px; }
.gallery-control.next { right: 12px; }

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.gallery-thumbnails img {
    width: 100%;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.18s, border-color 0.18s;
}

.gallery-thumbnails img.active {
    border-color: var(--primary);
    transform: scale(1.03);
}

.gallery-thumbnails img:hover { border-color: var(--primary); }

/* Product Details Section */
.product-details-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.product-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.product-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--light-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.product-meta {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin: 0;
}

/* Form Section Styling */
.form-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.form-section:last-child {
    border-bottom: none;
}

/* Validation Error State */
.form-section.error {
    border: 2px solid #dc2626;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fef2f2;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.validation-error {
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: none;
}

.validation-error::before {
    content: "⚠️ ";
}

.section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
    margin: 0 0 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-guide-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.size-guide-link:hover {
    text-decoration: underline;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--light-text);
}

.form-control {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--light-bg);
    color: var(--light-text);
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-control:hover,
.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

/* Color Text Options */
.color-text-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-text-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--light-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-text-btn:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-1px);
}

.color-text-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Size Buttons */
.size-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.size-btn {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--light-bg);
    color: var(--light-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.size-btn:hover {
    border-color: var(--primary);
    background: #f9fafb;
}

.size-btn.selected {
    background: var(--primary);
    color: var(--light-bg);
    border-color: var(--primary);
}

/* Quantity Section */
.quantity-section {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.quantity-control {
    margin-bottom: 1rem;
}

.quantity-control label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.quantity-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quantity-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.quantity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: background 0.2s;
}

.quantity-slider::-webkit-slider-thumb:hover {
    background: var(--accent);
}

.quantity-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.quantity-slider::-moz-range-thumb:hover {
    background: var(--accent);
}

.quantity-input {
    width: 80px;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary);
}

.price-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.unit-price-display,
.total-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unit-price-display span:first-child,
.total-price-display span:first-child {
    font-weight: 500;
    color: var(--gray-text);
}

.unit-price-display span:last-child,
.total-price-display span:last-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Unit Price Table */
.unit-price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.unit-price-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.unit-price-table tr:first-child td {
    padding-top: 0;
}

.unit-price-table tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

.unit-price-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

/* Customization Options */
.customization-group {
    margin-bottom: 1.5rem;
}

.customization-group:last-child {
    margin-bottom: 0;
}

.subsection-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light-text);
    margin: 0 0 1rem 0;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.radio-option input,
.checkbox-option input {
    margin-top: 0.25rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.radio-label,
.checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.radio-label strong,
.checkbox-label strong {
    font-weight: 600;
    color: var(--light-text);
}

.radio-label small,
.checkbox-label small {
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* Shipping Section */
.shipping-note {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
    margin-top: 0;
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shipping-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.shipping-option:hover {
    border-color: var(--primary);
    background: #f9fafb;
}

.shipping-option input {
    margin-top: 0.25rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.shipping-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.shipping-details strong {
    font-weight: 600;
    color: var(--light-text);
}

.shipping-details small {
    color: var(--gray-text);
    font-size: 0.85rem;
}

.shipping-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.25rem;
    display: inline-block;
    transition: color 0.3s ease, font-weight 0.3s ease, font-size 0.3s ease;
}

.shipping-price.price-update-animation {
    animation: priceFlip 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.shipping-price.free-shipping-pulse {
    animation: freePulse 0.6s ease-out;
}

@keyframes priceFlip {
    0% {
        opacity: 1;
        transform: rotateX(0deg) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: rotateX(90deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: rotateX(0deg) scale(1.05);
    }
}

@keyframes freePulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(16, 185, 129, 0));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(16, 185, 129, 0));
    }
}

/* Timeline Section */
.timeline-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    margin: 0;
}

.timeline-item {
    display: flex;
    gap: 1rem;
}

.timeline-icon {
    font-size: 2rem;
}

.timeline-item strong {
    display: block;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.timeline-item p {
    color: var(--gray-text);
    margin: 0;
    font-size: 0.95rem;
}

/* Delivery Estimate */
.delivery-estimate {
    padding: 1rem;
    background: #f0f4ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin: 0;
}

.delivery-estimate p {
    margin: 0.5rem 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.delivery-estimate p:first-child {
    font-weight: 600;
}

.estimate-date {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
}

.btn-large {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.product-details-link {
    text-align: center;
    margin-top: 1rem;
}

.product-details-link a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.product-details-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-page {
        gap: 2.5rem;
        padding: 2.5rem;
    }
    
    .color-text-options {
        gap: 0.5rem;
    }
    
    .size-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-page {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .gallery-main {
        max-height: 380px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .color-text-options {
        gap: 0.45rem;
    }

    .size-buttons {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .timeline-section {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modal-container {
        width: 100%;
        margin: 10px;
        border-radius: 12px;
        max-height: 95vh;
    }

    .product-page {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .product-header h1 {
        font-size: 1.5rem;
    }
    
    .gallery-main {
        max-height: 320px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .color-swatches {
        grid-template-columns: repeat(5, 1fr);
    }

    .size-buttons {
        grid-template-columns: repeat(4, 1fr);
    }

    .timeline-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 2rem;
    }
    
    .form-section {
        padding-bottom: 1.25rem;
    }
    
    .section-heading {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .modal-container {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .product-page {
        padding: 1rem;
        gap: 1.25rem;
    }
    
    .product-header h1 {
        font-size: 1.3rem;
    }
    
    .product-meta {
        font-size: 0.85rem;
    }
    
    .gallery-main {
        max-height: 280px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    
    .gallery-thumbnails img {
        height: 48px;
    }
    
    .color-text-options {
        gap: 0.4rem;
    }
    
    .color-text-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .size-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
    
    .size-btn {
        padding: 0.65rem;
        font-size: 0.9rem;
    }
    
    .shipping-option {
        padding: 0.85rem;
        gap: 0.75rem;
    }
    
    .timeline-section {
        padding: 1rem;
    }
    
    .timeline-icon {
        font-size: 1.75rem;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 1.8rem;
    }
    
    .btn-large {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Design Studio Responsive Styles */
@media (max-width: 992px) {
    .design-container {
        max-width: 95%;
        padding: 1rem;
    }
    
    .shirts-container {
        min-height: 320px;
    }
    
    .shirt-wrapper {
        max-width: 48%;
    }
    
    .shirt-canvas {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .design-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .shirts-container {
        flex-direction: column;
        gap: 0.75rem;
        min-height: auto;
    }
    
    .shirt-wrapper {
        max-width: 100%;
        width: 100%;
    }
    
    .shirt-canvas {
        height: 300px;
    }
    
    .design-controls {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .design-controls .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .design-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .design-container {
        padding: 0.75rem;
    }
    
    .shirt-canvas {
        height: 260px;
    }
    
    .design-close {
        font-size: 1.75rem;
    }
    
    .design-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .design-actions .btn {
        width: 100%;
    }
}


/* Design Studio Styles */
.design-studio {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
.design-studio.show {
    display: flex;
}
.design-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.design-container {
    position: relative;
    background: var(--light-bg);
    width: 95%;
    max-width: 1100px;
    border-radius: 10px;
    padding: 1rem 1rem 1.5rem;
    z-index: 3001;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.design-close {
    position: absolute;
    right: 14px;
    top: 10px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-text);
}
.design-header { display: flex; justify-content: space-between; align-items: center; }
.design-controls { display: flex; gap: 0.5rem; align-items: center; }
.design-controls input[type="file"] { margin-left: 0.5rem; }
.design-controls .active { border-color: var(--primary); background: #f3f8ff; }
.design-body { display: flex; justify-content: center; padding: 0.5rem; }
.shirts-container { display: flex; gap: 1rem; align-items: center; justify-content: center; width: 100%; min-height: 360px; }
.shirt-wrapper { width: 480px; max-width: 45%; transition: transform 0.4s ease, opacity 0.4s ease; }
.shirt-wrapper.single { max-width: 70%; }
.shirt-canvas { width: 100%; height: 420px; background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.shirt-wrapper.slide-in { transform: translateX(20px); opacity: 0; }
.shirt-wrapper.show { transform: translateX(0); opacity: 1; }
.design-actions { display:flex; justify-content:flex-end; gap:0.75rem; padding-top:0.5rem; }

/* smaller canvas on narrow screens */
@media (max-width: 768px) {
    .shirt-wrapper { max-width: 100%; }
    .shirt-canvas { height: 300px; }
    .design-container { padding: 0.75rem; }
}

/* end of file */

/* Asset overlay and controls */
.asset-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.draggable-asset {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    cursor: move;
    pointer-events: auto;
    user-select: none;
    touch-action: none;
}
.draggable-asset img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: auto;
}
.asset-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--light-bg);
    border: 2px solid var(--primary);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: auto;
}
.asset-handle.br { right: -8px; bottom: -8px; cursor: nwse-resize; }
.asset-handle.tl { left: -8px; top: -8px; cursor: nwse-resize; }
.asset-handle.tr { right: -8px; top: -8px; cursor: nesw-resize; }
.asset-handle.bl { left: -8px; bottom: -8px; cursor: nesw-resize; }
.asset-rotate {
    position: absolute;
    right: 50%;
    top: -28px;
    width: 22px;
    height: 22px;
    margin-right: -11px;
    background: var(--light-bg);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    pointer-events: auto;
}

.shirt-wrapper { position: relative; }

/* Tablet Landscape Optimizations */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* iPad Pro Portrait */
@media (min-width: 1024px) and (max-width: 1024px) and (orientation: portrait) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-arrow {
        display: none;
    }
}

/* Small Mobile Devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .btn-xl {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-cta,
    .hero-buttons,
    .btn,
    .modal-close,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in;
}

.popup-overlay.hidden {
    display: none;
}

.popup-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #000;
}

.popup-body {
    text-align: center;
}

.popup-body h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2563EB;
}

.popup-body p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* end of file */