/* KOHV Shop Styles - Professional E-commerce Design */

/* Shop Hero Section */
.shop-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.shop-hero .container {
    position: relative;
    z-index: 2;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: #f8fafc;
}

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

/* Product Cards */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.exclusive {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.product-image {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.feature {
    font-size: 0.8rem;
    color: #059669;
    font-weight: 500;
}

.product-footer {
    display: flex;
    justify-content: between;
    align-items: center;
    gap: 1rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.currency {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.add-to-cart {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Ad Product Card */
.ad-card {
    border: 2px dashed #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.ad-card .ad-container {
    text-align: center;
    padding: 2rem;
}

/* Shopping Cart */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 1.2rem;
    text-align: center;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    color: #1e293b;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cart-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: #64748b;
    font-size: 0.8rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: #e2e8f0;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #cbd5e1;
}

.quantity-display {
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
}

.remove-item {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-item:hover {
    background: #fee2e2;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cart-total {
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.total-final {
    border-top: 2px solid #e2e8f0;
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.checkout-modal.open {
    display: flex;
}

.checkout-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.checkout-header {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: between;
    align-items: center;
}

.checkout-header h2 {
    margin: 0;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.checkout-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.checkout-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.checkout-section:last-child {
    border-bottom: none;
}

.checkout-section h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.1rem;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method:hover {
    border-color: #cbd5e1;
}

.payment-method.active {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.payment-icon {
    font-size: 1.5rem;
}

.payment-info h4 {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
    font-size: 0.9rem;
}

.payment-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
}

/* Stripe Elements */
.stripe-elements {
    margin-top: 1rem;
}

.stripe-card-element,
#card-element {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    min-height: 44px;
    transition: border-color 0.15s ease;
    font-family: Inter, sans-serif;
}

.stripe-card-element:focus,
#card-element:focus,
.stripe-card-element:focus-within,
#card-element:focus-within {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.stripe-card-element.StripeElement--invalid,
#card-element.StripeElement--invalid {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.security-icon {
    font-size: 1.5rem;
    color: #059669;
}

.security-text h4 {
    margin: 0 0 0.25rem 0;
    color: #065f46;
    font-size: 0.9rem;
}

.security-text p {
    margin: 0;
    color: #047857;
    font-size: 0.8rem;
}

/* Order Summary */
.order-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.summary-item {
    display: flex;
    justify-content: between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.success-modal.open {
    display: flex;
}

.success-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-content h2 {
    color: #059669;
    margin-bottom: 1rem;
}

.success-content p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.5;
}

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

/* Checkout Footer */
.checkout-footer {
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: between;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .checkout-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .checkout-header,
    .checkout-body,
    .checkout-footer {
        padding: 1rem;
    }

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

    .checkout-footer {
        flex-direction: column;
    }

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

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 💰 Google AdSense Styling */
.adsense-container {
    margin: 2rem 0;
    padding: 1rem;
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.adsense-container .ad-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.banner-ad {
    margin: 2rem auto;
    max-width: 728px;
}

/* AdSense Section after Hero */
.adsense-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.05) 0%, rgba(114, 137, 218, 0.03) 100%);
    border-bottom: 1px solid rgba(88, 101, 242, 0.1);
}

.adsense-section .adsense-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.1);
}

.in-feed-ad {
    grid-column: 1 / -1;
    margin: 1rem 0;
    background: rgba(88, 101, 242, 0.05);
    border: 1px solid rgba(88, 101, 242, 0.1);
}

.footer-ad {
    background: #1e293b;
    border: 1px solid rgba(88, 101, 242, 0.2);
    margin: 0;
}

.footer-ad .ad-label {
    color: #94a3b8;
}

/* AdSense Sidebar */
.adsense-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.adsense-sidebar .ad-label {
    font-size: 0.7rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile AdSense Optimizations */
@media (max-width: 768px) {
    .adsense-sidebar {
        position: static;
        transform: none;
        right: auto;
        top: auto;
        margin: 2rem auto;
        width: fit-content;
    }

    .banner-ad {
        margin: 1rem 0;
    }

    .in-feed-ad {
        margin: 1.5rem 0;
        padding: 0.75rem;
    }

    .adsense-container {
        margin: 1rem 0;
        padding: 0.75rem;
    }
}

@media (max-width: 1200px) {
    .adsense-sidebar {
        display: none;
    }
}

/* AdSense Animation */
.adsense-container {
    opacity: 0;
    animation: fadeInAd 1s ease-in-out 0.5s forwards;
}

@keyframes fadeInAd {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Ad Blocker Detection */
.adblocker-notice {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    margin: 1rem 0;
    display: none;
}

.adblocker-notice.show {
    display: block;
    animation: slideDown 0.5s ease;
}

.adblocker-notice h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.adblocker-notice p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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