/**
 * PetNudge Shop - Styles
 * Design modern, clean, inspirat de Apple
 */

/* ============================================
   VARIABILE
   ============================================ */
:root {
    --shop-primary: #FF6B35;
    --shop-primary-dark: #E55A2B;
    --shop-secondary: #4ECDC4;
    --shop-dark: #1a1a2e;
    --shop-darker: #0f0f1a;
    --shop-light: #ffffff;
    --shop-gray: #8892b0;
    --shop-gray-light: #ccd6f6;
    --shop-success: #64ffda;
    --shop-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shop-card-bg: linear-gradient(145deg, #1a1a2e, #16213e);
}

/* ============================================
   BASE STYLES
   ============================================ */
.shop-page {
    background: var(--shop-darker);
    color: var(--shop-light);
    min-height: 100vh;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--shop-light);
}

.section-subtitle {
    text-align: center;
    color: var(--shop-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ============================================
   HEADER
   ============================================ */
.shop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--shop-light);
    font-weight: 700;
    font-size: 1.25rem;
}

.shop-logo img {
    border-radius: 10px;
}

.shop-nav {
    display: flex;
    gap: 2rem;
}

.shop-nav a {
    color: var(--shop-gray-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.shop-nav a:hover {
    color: var(--shop-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--shop-light);
    transition: all 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.shop-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: var(--shop-gradient);
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.shop-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.shop-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--shop-light), var(--shop-gray-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-hero-subtitle {
    font-size: 1.25rem;
    color: var(--shop-gray);
    margin-bottom: 2.5rem;
}

.trust-badges-hero {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--shop-success);
}

.trust-badge .trust-icon {
    font-size: 1rem;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: 5rem 2rem;
    background: var(--shop-darker);
}

.products-container {
    max-width: 1100px;
    margin: 0 auto;
}

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

/* Product Card */
.product-card {
    background: var(--shop-card-bg);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.15);
}

.product-card.popular {
    border: 2px solid var(--shop-primary);
    transform: scale(1.02);
}

.product-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--shop-primary), #FF8F5A);
    color: var(--shop-light);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Product Image */
.product-image-container {
    margin-bottom: 1.5rem;
}

.product-image-placeholder {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.1), rgba(78, 205, 196, 0.1));
    border-radius: 50%;
    border: 3px solid rgba(255, 107, 53, 0.3);
}

.size-visual {
    text-align: center;
}

.size-letter {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--shop-primary);
    line-height: 1;
}

.size-dimension {
    display: block;
    font-size: 0.9rem;
    color: var(--shop-gray);
    margin-top: 0.25rem;
}

/* Product Info */
.product-info {
    text-align: center;
}

.product-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-badge.cats {
    background: rgba(78, 205, 196, 0.2);
    color: var(--shop-secondary);
}

.product-badge.dogs {
    background: rgba(255, 107, 53, 0.2);
    color: var(--shop-primary);
}

.product-badge.large {
    background: rgba(100, 255, 218, 0.2);
    color: var(--shop-success);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--shop-light);
}

.product-size {
    color: var(--shop-gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.product-description {
    color: var(--shop-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 40px;
}

.product-price-container {
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--shop-light);
}

.product-shipping {
    display: block;
    font-size: 0.85rem;
    color: var(--shop-gray);
    margin-top: 0.25rem;
}

/* Buy Button */
.buy-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--shop-primary), #FF8F5A);
    border: none;
    border-radius: 12px;
    color: var(--shop-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.buy-button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.buy-button:disabled,
.buy-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.buy-button .btn-icon {
    font-size: 1.1rem;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--shop-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SPECS SECTION
   ============================================ */
.specs-section {
    padding: 5rem 2rem;
    background: var(--shop-gradient);
}

.specs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.spec-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.spec-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.spec-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--shop-light);
}

.spec-item p {
    font-size: 0.85rem;
    color: var(--shop-gray);
    line-height: 1.5;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-section {
    padding: 5rem 2rem;
    background: var(--shop-darker);
}

.how-container {
    max-width: 1000px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step-item {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--shop-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-icon {
    font-size: 3rem;
    display: block;
    margin: 1rem 0;
}

.step-item h4 {
    margin-bottom: 0.5rem;
    color: var(--shop-light);
}

.step-item p {
    color: var(--shop-gray);
    font-size: 0.9rem;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
    padding: 5rem 2rem;
    background: var(--shop-gradient);
}

.trust-container {
    max-width: 1000px;
    margin: 0 auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.trust-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-icon-large {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.trust-item h4 {
    margin-bottom: 0.5rem;
    color: var(--shop-light);
}

.trust-item p {
    color: var(--shop-gray);
    font-size: 0.9rem;
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.payment-logos img {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.payment-logos img:hover {
    opacity: 1;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 5rem 2rem;
    background: var(--shop-darker);
}

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

.faq-grid {
    display: grid;
    gap: 1.25rem;
}

.faq-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--shop-primary);
}

.faq-item h4 {
    margin-bottom: 0.75rem;
    color: var(--shop-light);
    font-size: 1rem;
}

.faq-item p {
    color: var(--shop-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(90deg, var(--shop-primary), #FF8F5A);
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--shop-light);
}

.cta-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--shop-light);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--shop-light);
    color: var(--shop-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.shop-footer {
    padding: 3rem 2rem;
    background: var(--shop-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.footer-col h4 {
    color: var(--shop-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-col p,
.footer-col a {
    color: var(--shop-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo img {
    border-radius: 8px;
}

.footer-logo span {
    font-weight: 700;
    color: var(--shop-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--shop-gray);
    font-size: 0.85rem;
}

.footer-payment {
    display: flex;
    gap: 0.5rem;
}

.footer-payment img {
    opacity: 0.5;
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.lang-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--shop-primary);
    color: var(--shop-light);
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
}

.lang-toggle:hover {
    background: var(--shop-primary-dark);
    transform: scale(1.05);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--shop-dark);
    color: var(--shop-light);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    max-width: 400px;
}

.toast-error {
    border-left: 4px solid #ff4757;
}

.toast-success {
    border-left: 4px solid var(--shop-success);
}

.toast-info {
    border-left: 4px solid var(--shop-secondary);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--shop-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: var(--shop-light);
}

.toast-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--shop-gradient);
}

.success-container {
    max-width: 600px;
    width: 100%;
}

.success-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.success-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.success-icon-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.success-icon {
    font-size: 4rem;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.success-content h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--shop-light);
}

.success-subtitle {
    color: var(--shop-gray);
    margin-bottom: 2rem;
}

.order-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.order-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
}

.order-info-icon {
    font-size: 1.5rem;
}

.order-info-content h4 {
    color: var(--shop-light);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.order-info-content p {
    color: var(--shop-gray);
    font-size: 0.85rem;
}

.next-steps-box {
    background: rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.next-steps-box h3 {
    margin-bottom: 1rem;
    color: var(--shop-success);
}

.next-steps-list {
    padding-left: 1.25rem;
    color: var(--shop-gray);
}

.next-steps-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.success-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.success-btn:hover {
    transform: scale(1.05);
}

.success-btn.primary {
    background: linear-gradient(90deg, var(--shop-primary), #FF8F5A);
    color: var(--shop-light);
}

.success-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--shop-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.support-note {
    color: var(--shop-gray);
    font-size: 0.9rem;
}

.support-note a {
    color: var(--shop-primary);
    text-decoration: none;
}

.success-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: var(--shop-gray);
}

.success-footer img {
    border-radius: 8px;
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .shop-header-container {
        padding: 0.75rem 1rem;
    }

    .shop-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--shop-darker);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .shop-nav.active {
        display: flex;
    }

    .shop-nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .shop-hero {
        padding: 6rem 1rem 3rem;
    }

    .shop-hero h1 {
        font-size: 1.75rem;
    }

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

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

    .products-section,
    .specs-section,
    .how-section,
    .trust-section,
    .faq-section {
        padding: 3rem 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card.popular {
        transform: scale(1);
    }

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

    .success-content {
        padding: 2rem 1.5rem;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-btn {
        width: 100%;
        justify-content: center;
    }

    #toast-container {
        left: 1rem;
        right: 1rem;
        transform: none;
    }

    .toast {
        max-width: 100%;
    }
}
