/* Store Page - Modern & Appealing Design */

/* Store Header */
.store-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.store-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.store-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.store-header p {
    font-size: 1.25rem;
    color: white;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Banner */
.featured-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.banner-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.banner-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white;
    opacity: 0.9;
}

.btn-accent {
    background: white;
    color: #059669;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.banner-image {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Quick Categories */
.quick-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.category-card:hover,
.category-card.active {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.category-card.active {
    background: linear-gradient(135deg, #f0f7ff, #e6f3ff);
    border-color: #3b82f6;
}

.category-card.active .category-icon {
    animation: pulse 2s ease-in-out infinite;
}

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

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.category-card:nth-child(1) .category-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.category-card:nth-child(2) .category-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.category-card:nth-child(3) .category-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.category-card:nth-child(4) .category-icon { background: linear-gradient(135deg, #10b981, #059669); }

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.category-card p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Products Section */
.products-section {
    margin-bottom: 4rem;
}

.product-category {
    display: none;
    margin-bottom: 4rem;
}

.product-category.active {
    display: block;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title i {
    color: #3b82f6;
}

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

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-badge:contains("Popular") { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; }
.product-badge:contains("Best Value") { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.product-badge:contains("Best Deal") { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.product-badge:contains("Starter Kit") { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }

.product-icon,
.product-image,
.course-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    overflow: hidden;
}

/* Image styling for products and courses */
.product-image img,
.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.product-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.product-price .price {
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
}

.product-price .period {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #374151;
}

.product-features i {
    color: #10b981;
    font-size: 0.875rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-block {
    width: 100%;
}

/* Domain Search */
.domain-search-section {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.domain-search-box {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.domain-search-box input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.domain-search-box input:focus {
    border-color: #3b82f6;
}

/* Domain Search Results */
.domain-search-results {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.domain-search-results h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
}

.domain-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.domain-result {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color 0.3s ease;
    min-height: 120px;
    position: relative;
}

.domain-result:hover {
    border-color: #3b82f6;
}

.domain-result.available {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.domain-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.3;
}

.domain-status {
    font-size: 0.875rem;
    line-height: 1.2;
}
.domain-status.available {
    color: #10b981;
    font-weight: 600;
}

.domain-price {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: auto;
}

.domain-result .btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Special styling for primary searched extension */
.domain-result.primary-search {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.domain-result.primary-search .domain-name {
    color: #d97706;
    font-weight: 700;
}

.domain-result.primary-search .domain-status {
    color: #d97706;
}

/* Enhanced Cart Success Notification */
.cart-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 420px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
    animation: slideInRight 0.4s ease-out;
    overflow: hidden;
}

.cart-success-notification .notification-content {
    padding: 1.5rem;
}

.cart-success-notification .notification-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.cart-success-notification .notification-text h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-success-notification .notification-text p {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.cart-success-notification .notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cart-success-notification .btn {
    flex: 1;
    min-width: 120px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-success-notification .btn-primary {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.cart-success-notification .btn-primary:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-1px);
}

.cart-success-notification .btn-success {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.cart-success-notification .btn-success:hover {
    background: rgba(34, 197, 94, 1);
    transform: translateY(-1px);
}

.cart-success-notification .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-success-notification .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .cart-success-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .cart-success-notification .notification-actions {
        flex-direction: column;
    }
    
    .cart-success-notification .btn {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .domain-result {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    
    .domain-results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Enhanced Domain Search Results */
.search-summary {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 10px;
}

.summary-text {
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

.results-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
}

.transfer-info {
    color: #6b7280;
    margin-bottom: 1rem;
    text-align: center;
    font-style: italic;
}

.domain-result.unavailable {
    border-color: #ef4444;
    background-color: #fef2f2;
    opacity: 0.9;
}

.domain-status.unavailable {
    color: #ef4444;
    font-weight: 600;
}

.no-results-suggestions {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 16px;
    text-align: center;
}

.no-results-suggestions h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.suggestions-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.suggestions-list .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.btn-outline {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .suggestions-list {
        flex-direction: column;
        align-items: center;
    }
    
    .suggestions-list .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Course Details */
.course-details {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.course-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 1rem;
    text-align: center;
}

.quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.quantity-selector select {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
}

/* Shopping Cart */
.shopping-cart {
    position: relative;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 10px;
    transition: background 0.3s ease;
    display: inline-block; /* Ensure proper positioning context */
}

.shopping-cart:hover {
    background: rgba(59, 130, 246, 0.1);
}

.shopping-cart i {
    font-size: 1.5rem;
    color: #374151;
}

.cart-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.cart-dropdown {
    position: fixed; /* Changed from absolute to fixed */
    top: 70px; /* Fixed distance from top */
    right: 20px; /* Fixed distance from right edge */
    width: 350px;
    max-width: calc(100vw - 40px); /* Ensure it fits within viewport */
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 10000; /* Higher z-index */
    display: none;
    min-height: 200px; /* Ensure visible height */
    max-height: calc(100vh - 100px); /* Prevent overflow on small screens */
    overflow-y: auto; /* Scroll if content is too long */
}

.cart-dropdown.show {
    display: block !important;
    animation: slideDownCart 0.3s ease-out;
    /* Temporary debug styling */
    background: #ff6b6b !important;
    border: 5px solid #4ecdc4 !important;
    color: white !important;
}

/* Cart dropdown content styling */
.cart-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h4 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.clear-cart {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.cart-items {
    padding: 1rem;
    min-height: 100px;
}

.empty-cart {
    text-align: center;
    color: white;
    padding: 2rem;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

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

/* Testimonials */
.testimonials-section {
    background: #f8fafc;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.testimonial-content p {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.author-info h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Sidebar Active States */
.sidebar-nav li.active a {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: white !important;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.sidebar-nav li.active a i {
    color: white !important;
}

.sidebar-nav li.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    border-radius: 0 4px 4px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .store-header {
        padding: 2rem 1.5rem;
    }
    
    .store-header h1 {
        font-size: 2rem;
    }
    
    .featured-banner {
        padding: 2rem;
    }
    
    .banner-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .banner-text h2 {
        font-size: 1.8rem;
    }
    
    .quick-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .domain-search-box {
        flex-direction: column;
    }
    
    .testimonials-section {
        padding: 2rem 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}