/* Modern Design System - GogoBuyStore */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #f472b6;
    --success: #10b981;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, #2563eb 0%, #ec4899 100%);
}

.hidden {
    display: none !important;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Header */
header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    text-decoration: none !important;
    cursor: pointer;
}

.logo:hover,
.logo:visited,
.logo:active {
    text-decoration: none !important;
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 2rem;
}

h1.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-main);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.hero-btn:active {
    transform: scale(0.98);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

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

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.buy-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    background: var(--gradient-main);
    color: white;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.buy-btn:hover {
    opacity: 0.9;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #1e293b;
    padding: 0;
    border-radius: 1.5rem;
    max-width: 550px;
    width: 90%;
    border: 1px solid var(--glass-border);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.modal-body {
    padding: 2rem;
}

/* Stepper */
.steps-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    transition: background 0.3s;
}

.step-dot.active {
    background: var(--primary);
}

.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

/* Bank Details Styling */
.bank-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-value {
    font-family: monospace;
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: background 0.2s;
}

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

/* Step specific */
.instruction-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.instruction-icon {
    font-size: 1.5rem;
    color: var(--success);
}

.instruction-text {
    font-size: 0.9rem;
    color: #d1fae5;
}

.step-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    background: var(--gradient-main);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.step-btn.secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Product Detail Page */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem 0;
    align-items: start;
}

.product-detail-image-wrapper {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.product-detail-image-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(37, 99, 235, 0.1), transparent 30%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #e2e8f0;
    border-radius: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.product-detail-image:hover {
    transform: scale(1.03);
}

.product-detail-info {
    padding: 1rem 0;
}

.back-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

.product-title-large {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.product-specs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 41, 59, 0.7);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.spec-item i {
    color: var(--primary);
}

.price-block {
    margin-bottom: 2rem;
}

.price-large {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sw-btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.trust-badges {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-badges i {
    color: var(--success);
}

/* Copy Button Feedback */
.copy-btn.copied {
    background: var(--success) !important;
    color: white !important;
}

.copy-btn.copied i::before {
    content: "\f00c";
}

/* Enhanced Step Dots */
.step-dot {
    transition: all 0.3s ease;
}

.step-dot.active {
    width: 24px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-title-large {
        font-size: 2rem;
    }

    .price-large {
        font-size: 2.5rem;
    }

    h1.hero-title {
        font-size: 2.5rem;
    }

    .trust-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    header {
        padding: 1rem 4%;
    }

    .logo {
        font-size: 1.4rem;
    }

    main {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 0.5rem;
    }

    h1.hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    .product-info .price {
        font-size: 1.25rem;
    }

    .buy-btn {
        padding: 0.85rem;
        font-size: 0.95rem;
        /* Touch-friendly size */
        min-height: 48px;
    }

    .product-specs {
        flex-direction: column;
        gap: 0.75rem;
    }

    .spec-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .sw-btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 52px;
    }

    .product-detail-image-wrapper {
        padding: 1rem;
        border-radius: 1.25rem;
    }

    .product-title-large {
        font-size: 1.6rem;
    }

    .product-description {
        font-size: 1rem;
    }

    .price-large {
        font-size: 2rem;
    }

    .modal {
        width: 95%;
        margin: 0.5rem;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detail-value {
        font-size: 0.9rem;
        word-break: break-all;
    }

    .step-btn {
        padding: 0.9rem;
        min-height: 48px;
    }

    .bank-card {
        padding: 1rem;
    }

    .instruction-box {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-card:active {
        transform: scale(0.98);
    }

    .buy-btn:active,
    .step-btn:active {
        opacity: 0.85;
    }

    .copy-btn {
        width: 40px;
        height: 40px;
    }
}