/* 3dtribe.in Customizer - Premium Design System (index.css) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #f4f6f8; /* Light gray background like Printify */
    --bg-surface: #ffffff; /* White panels */
    --bg-card: #ffffff;
    --bg-card-hover: #f9fafb;
    
    --primary: #39b75d; /* Printify Green */
    --primary-gradient: linear-gradient(135deg, #39b75d 0%, #2ea04d 100%);
    --primary-glow: rgba(57, 183, 93, 0.25);
    
    --secondary: #1f2937; /* Dark Gray for secondary actions */
    --secondary-gradient: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    
    --text-main: #111827; /* Near black */
    --text-muted: #6b7280; /* Gray text */
    --border-color: #e5e7eb; /* Light borders */
    --border-hover: #39b75d;
    
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.2s ease-in-out;
    --glass-blur: none;
    --shadow-premium: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-cyan-glow: 0 0 0 3px rgba(57, 183, 93, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Blueprint layout style removed for SaaS theme */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Core layouts */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--text-muted);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition-smooth);
}
.hamburger-btn:hover {
    border-color: var(--primary);
    background: rgba(57, 183, 93, 0.05);
}
.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 99;
    padding: 12px 20px 20px;
    flex-direction: column;
    gap: 4px;
    animation: slideDown 0.25s ease-out;
}
.mobile-nav-drawer.open {
    display: flex;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-drawer a,
.mobile-nav-drawer button.mob-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}
.mobile-nav-drawer a:hover,
.mobile-nav-drawer button.mob-link:hover {
    background: rgba(57, 183, 93, 0.08);
    color: var(--primary);
}
.mobile-nav-drawer .mob-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* Cart Trigger */
.cart-icon-btn {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.cart-icon-btn:hover {
    background: #f9fafb;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium Buttons */
.btn-premium {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-premium:hover {
    transform: translateY(-1px);
    background: #2ea04d;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px 0;
    text-align: center;
    position: relative;
}

.hero-tag {
    background: rgba(99, 102, 241, 0.08);
    color: #818cf8;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 28px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--text-main) 40%, var(--primary) 80%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: #d1d5db;
    background: var(--bg-card-hover);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Category grid selectors */
.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 90px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    cursor: pointer;
}

.category-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.category-card:hover .category-icon {
    background: var(--primary-gradient);
    color: #0b0c10;
    box-shadow: var(--shadow-cyan-glow);
    transform: scale(1.08) rotate(5deg);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom design title blocks */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 800;
}

.section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Interactive Product Catalog Cards */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 0.95;
    border-radius: 14px;
    background: #0d0f14;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.product-image svg, .product-image img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image svg, .product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary-gradient);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.swatch-inline {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.swatch-inline:hover {
    transform: scale(1.3);
}

.product-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-main);
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.price-current {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.price-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

/* Steps section blocks */
.steps-section {
    padding: 100px 0;
    background: rgba(18, 20, 26, 0.35);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 90px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    text-align: left;
    padding: 30px;
}

.step-number {
    font-size: 40px;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.step-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* FAQs Accordion styling */
.faqs-section {
    max-width: 800px;
    margin: 0 auto 100px auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
    font-family: var(--font-display);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 150px;
    margin-top: 14px;
}

.faq-toggle-icon {
    font-size: 22px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

/* Product Details View Page */
.product-details-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    padding: 80px 0;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main-preview-container {
    width: 100%;
    aspect-ratio: 1;
    background: #0d0f14;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease;
}

.main-preview-container svg, .main-preview-container img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 16px;
}

.thumb-btn {
    width: 80px;
    height: 80px;
    background: #0d0f14;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.thumb-btn.active, .thumb-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-cyan-glow);
    transform: translateY(-2px);
}

.thumb-btn svg, .thumb-btn img {
    max-width: 80%;
    max-height: 80%;
}

.details-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

.details-meta {
    display: flex;
    gap: 18px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 30px;
}

.details-meta span {
    border-right: 1px solid var(--border-color);
    padding-right: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.details-meta span:last-child {
    border: none;
}

.details-price-row {
    margin-bottom: 36px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.details-price-row .price-current {
    font-size: 36px;
    font-weight: 900;
}

.details-price-row .price-original {
    font-size: 18px;
}

.details-description {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.config-section {
    margin-bottom: 30px;
}

.config-label {
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.swatch-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.swatch-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--bg-main);
    outline: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.swatch-btn.active {
    outline: 2px solid var(--primary);
    transform: scale(1.15);
    box-shadow: var(--shadow-cyan-glow);
}

.size-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.size-btn {
    min-width: 52px;
    height: 44px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.size-btn.active, .size-btn:hover {
    border-color: var(--primary);
    color: #08090c;
    background: var(--primary-gradient);
    box-shadow: var(--shadow-cyan-glow);
}

/* Shopping Cart UI */
.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
}

.cart-item-details h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.cart-item-details p {
    font-size: 13px;
    color: var(--text-muted);
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    background: rgba(0, 0, 0, 0.2);
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-main);
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.qty-val {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

.cart-item-price {
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
}

.remove-cart-btn {
    background: rgba(255, 59, 48, 0.05);
    border: 1px solid rgba(255, 59, 48, 0.1);
    color: var(--danger);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.remove-cart-btn:hover {
    background: var(--danger);
    color: #fff;
    transform: scale(1.05) rotate(90deg);
}

.order-summary {
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

/* Forms controls */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-cyan-glow);
    background: rgba(255, 255, 255, 0.03);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.payment-radio {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255,255,255,0.01);
    transition: var(--transition-smooth);
}

.payment-radio:hover {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.01);
}

.payment-radio input {
    accent-color: var(--primary);
}

/* Footer Section */
footer {
    background: #040507;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 800;
}

.footer-brand p {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* Responsive utilities */
@media (max-width: 992px) {
    .product-details-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cart-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
    .hero h1 {
        font-size: 42px;
    }
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }
    .cart-item-price, .qty-control, .remove-cart-btn {
        grid-column: 2;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
