/**
 * ADNYS Store - Main Stylesheet
 * Domain: store.adnys.in
 */

:root {
    --primary: #0a58ca;
    --primary-dark: #084298;
    --primary-light: #3d8bfd;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar a {
    color: rgba(255,255,255,0.7);
    margin-left: 15px;
}

.top-bar a:hover {
    color: white;
}

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

.navbar {
    padding: 12px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .logo-white {
    height: 40px;
    display: block;
}

.navbar-brand .logo-black {
    display: none;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    padding: 8px 16px !important;
    font-weight: 500;
    border-radius: 8px;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.15);
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
}

.dropdown-item:hover {
    background: var(--light);
}

.search-form .input-group {
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    overflow: hidden;
}

.search-form .form-control {
    background: transparent;
    border: none;
    color: white;
    padding-left: 20px;
}

.search-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-form .form-control:focus {
    box-shadow: none;
    background: rgba(255,255,255,0.1);
}

.search-form .btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 20px;
}

/* Hero Section */
.hero-section {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    padding: 60px 0 80px;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,224L48,229.3C96,235,192,245,288,234.7C384,224,480,192,576,186.7C672,181,768,203,864,218.7C960,235,1056,245,1152,229.3C1248,213,1344,171,1392,149.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(90deg, #fff 0%, #a5d8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-illustration {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: white;
    color: var(--primary);
    padding: 20px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.floating-card.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 45%;
    right: 5%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--secondary);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--dark);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--cat-color);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--cat-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.category-card h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.category-card .product-count {
    font-size: 0.85rem;
    color: var(--secondary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: #d1d5db;
}

.product-card .offer-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Free Apps Theme - Green Border & Background */
.product-card-free {
    border: 2px solid #22c55e;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 50%);
}

.product-card-free:hover {
    border-color: #16a34a;
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.2);
}

.product-card-free .product-icon {
    background: linear-gradient(180deg, #dcfce7 0%, #f0fdf4 100%);
}

.free-badge-corner {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.free-badge-corner i {
    font-size: 0.8rem;
}

.product-icon {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 32px;
    text-align: center;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.product-info {
    padding: 20px 24px;
    flex-grow: 1;
}

.product-info .category-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.product-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1.3;
}

.product-info p {
    color: #6b7280;
    font-size: 0.88rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Pricing Badges */
.product-info .pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
}

.product-info .pricing-badge.badge-free {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    border: 1px solid #86efac;
}

.product-info .pricing-badge.badge-paid {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.product-actions {
    padding: 0 24px 24px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-actions .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-actions .btn-action-primary {
    flex: 1;
}

.product-actions .btn-action-secondary {
    flex: 1;
}

.product-actions .btn-arrow {
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 10px;
}

/* Free App Buttons */
.product-card-free .btn-outline-success {
    border: 2px solid #22c55e;
    color: #16a34a;
    background: transparent;
}

.product-card-free .btn-outline-success:hover {
    background: #f0fdf4;
    border-color: #16a34a;
}

.product-card-free .btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.product-card-free .btn-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* Paid/Custom Product Buttons */
.product-card:not(.product-card-free) .btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.product-card:not(.product-card-free) .btn-outline-primary:hover {
    background: #eff6ff;
    border-color: var(--primary-dark);
}

.product-card:not(.product-card-free) .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(10, 88, 202, 0.3);
}

.product-card:not(.product-card-free) .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #063574 100%);
    box-shadow: 0 6px 16px rgba(10, 88, 202, 0.4);
}

/* Arrow Button */
.btn-arrow {
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
}

.btn-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fafc;
}

.product-card-free .btn-arrow:hover {
    border-color: #22c55e;
    color: #16a34a;
}

/* Trending Cards */
.trending-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.trending-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.trending-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: var(--light);
    padding: 20px;
}

.trending-info {
    padding: 15px;
}

.trending-info h5 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.trending-info a {
    color: var(--primary);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: var(--dark);
}

.cta-card {
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 40px;
    color: white;
}

.cta-card h3 {
    margin-bottom: 10px;
}

.cta-card p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-logo {
    height: 40px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.main-footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.footer-contact i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-light);
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0;
}

.copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Side Offers */
.side-offers {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.side-offers-toggle {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 15px 10px;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

.side-offers-toggle .badge {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 0.7rem;
    padding: 8px 4px;
}

.side-offers-content {
    position: absolute;
    right: -320px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: var(--gradient);
    border-radius: var(--radius) 0 0 var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    color: white;
}

.side-offers.active .side-offers-content {
    right: 50px;
}

.side-offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.side-offers-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.offer-card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.offer-card:last-child {
    margin-bottom: 0;
}

.offer-discount {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.offer-info h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

.offer-info p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.offer-countdown {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Product Details */
.breadcrumb-section {
    background: white;
    border-bottom: 1px solid #eee;
}

.product-detail-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.product-header {
    display: flex;
    gap: 24px;
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.product-icon-large {
    flex-shrink: 0;
}

.product-icon-large img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 20px;
    background: var(--light);
    padding: 10px;
}

.product-header-info h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.product-header-info .lead {
    color: var(--secondary);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.meta-item {
    color: var(--secondary);
    font-size: 0.9rem;
}

.product-description {
    padding: 30px;
}

.product-description h4 {
    margin-bottom: 15px;
}

.product-sidebar {
    position: sticky;
    top: 100px;
}

.price-card,
.share-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.price-display {
    text-align: center;
    margin-bottom: 20px;
}

.price-display .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-display.free .price {
    color: var(--success);
}

.price-display .original-price {
    text-decoration: line-through;
    color: var(--secondary);
    margin-right: 10px;
}

.price-display .period {
    color: var(--secondary);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-buttons .btn {
    flex: 1;
    padding: 10px;
}

/* Filter Sidebar */
.filter-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.filter-card h5 {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-list li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--dark);
    border-radius: 8px;
    margin-bottom: 4px;
    border-left: 3px solid transparent;
}

.category-filter-list li a:hover,
.category-filter-list li a.active {
    background: var(--light);
    border-left-color: var(--primary);
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
}

.empty-state i {
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-header {
        flex-direction: column;
        text-align: center;
    }
    
    .side-offers {
        display: none;
    }
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    color: var(--primary);
}
