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

:root {
    --primary-color: #f7931a;
    --secondary-color: #4a4a4a;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
#header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 5px;
}

.logo p.domain {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 400;
}

#nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

#nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

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

.cart-link {
    position: relative;
    font-size: 20px;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Bitcoin Ticker */
.btc-ticker {
    background: linear-gradient(135deg, #f7931a 0%, #ff9500 100%);
    color: white;
    padding: 12px 0;
    font-weight: 500;
}

.ticker-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 15px;
}

.ticker-separator {
    opacity: 0.5;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.hero-feature i {
    font-size: 24px;
}

/* Alert Banner */
.alert-banner {
    background: #fff3cd;
    border-bottom: 3px solid #ffc107;
    padding: 30px 0;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.alert-content i {
    font-size: 40px;
    color: var(--primary-color);
}

.alert-content h3 {
    color: var(--secondary-color);
    font-size: 24px;
    margin-bottom: 5px;
}

.alert-link {
    color: #007bff;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #e08712;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 147, 26, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Section Header */
.section-header {
    text-align: center;
    margin: 60px 0 40px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 20px;
    background: var(--light-gray);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-specs {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.product-specs div {
    margin: 5px 0;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price-usd {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-btc {
    font-size: 14px;
    color: #666;
}

.add-to-cart-btn {
    width: 100%;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.product-detail-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.product-detail-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.product-detail-specs {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.product-detail-specs h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
    border-bottom: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
}

/* Testimonials */
.testimonials-section {
    background: var(--light-gray);
    padding: 60px 0;
    margin-top: 60px;
}

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

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author strong {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 14px;
    color: #999;
}

/* Content Box */
.content-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.about-text h3 {
    color: var(--secondary-color);
    font-size: 24px;
    margin: 30px 0 15px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--success-color);
    font-size: 18px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* FAQ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 1000px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 40px;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Cart */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--light-gray);
    padding: 10px;
}

.cart-item-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.remove-btn {
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.cart-summary {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.checkout-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.checkout-summary {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-info {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.payment-info h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.bitcoin-address {
    background: white;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin: 15px 0;
    font-size: 14px;
    border: 2px solid var(--border-color);
}

.qr-code {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
}

#qr-code-container {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#qr-code-container img {
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* Footer */
#footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

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

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 18px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.payment-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.payment-icon i {
    font-size: 40px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* Page Management */
.page {
    display: none;
    min-height: 60vh;
}

.page.active {
    display: block;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    #nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    
    #nav.active {
        max-height: 500px;
    }
    
    #nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Success Message */
.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}
