* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary: #338dfb;
    --primary-dark: #4338ca;
    --dark: #000;
    --light: #f1f5f9;
    --gray: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
}

body {
    background: #fafafa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo a {
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 32px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 22px;
    color: var(--dark);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

.hamburger.open i::before {
    content: "\f00d";
}

@media (max-width:1100px) {
    .header-container {
        padding: 20px 30px;
    }
}

@media (max-width: 767px) {
    .header-container {
        padding: 20px 10px;
    }

    .logo {
        font-size: 24px;
    }

    .logo i {
        font-size: 24px;
    }

    nav {
        position: fixed;
        top: 79px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow);
        display: none;
        z-index: 99;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        list-style: none;
    }

    nav ul li {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        text-decoration: none;
        color: var(--dark);
        font-weight: 600;
        font-size: 18px;
        display: block;
        padding: 10px 0;
    }

    .hamburger {
        display: block;
    }
}

/* Hero Section */
.hero {
    background-image: url(./img/banner-1.jpeg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    padding: 68px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .hero {
        padding: 126px 0;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 215px 0;
    }
}

@media (min-width: 1424px) {
    .hero {
        padding: 280px 0;
    }
}

/* FILTER TABS */
.filter-section {
    padding: 30px 0;
}

.filter-buttons {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.results-count {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.language-filter {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-buttons select#languageFilter {
    padding: 8px 10px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #000;
    min-width: 160px;
}

.filter-buttons select#languageFilter.has-value {
    color: #111;
    font-weight: 600;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.btn {
    display: inline-block;
    background-color: white;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

@media (max-width:767px) {
    .filter-buttons {
        gap: 8px;
    }
}

/* Products Section */
.section-title {
    text-align: center;
    margin: 50px 0;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1/1;
}

.product-img {
    width: 100%;
    height: 100%;
    padding: 15px;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
    opacity: 0.9;
}

.astro-id {
    position: absolute;
    top: 22px;
    right: 22px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 10px;
    border-radius: 14px;
    font-size: 14px;
    z-index: 5;
}

.view-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity .18s, transform .18s;
    z-index: 6;
}

.product-img-wrap:hover .view-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.03);
}

/* unavailable state */
.product-card.disabled {
    opacity: 0.6;
}

.product-card.disabled .add-to-cart {
    cursor: not-allowed;
    opacity: 0.7;
}

.product-card.disabled .view-icon {
    display: none;
}

.not-available-badge {
    position: absolute;
    left: 22px;
    top: 22px;
    background: #c0392b;
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 6;
}

.product-img-wrap:hover .product-img {
    opacity: 0.7;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img img {
    border-radius: 10px;
}

.product-info {
    padding: 20px;
    position: relative;
    background: #fff;
    z-index: 2;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
    min-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-meta {
    margin-bottom: 12px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.4;
}

.product-meta span {
    display: inline-block;
    margin-right: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #fbbf24;
    font-size: 14px;
}

.product-rating i {
    margin-right: 2px;
}

.price-voice,
.price-video {
    color: #2563eb;
    font-weight: 500;
}

.price-voice::before,
.price-video::before {
    content: '•';
    margin: 0 4px;
    color: #9ca3af;
}

.price-voice:first-child::before,
.price-video:first-child::before {
    display: none;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-to-cart:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-to-cart:active {
    transform: translateY(0);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 8px;
}

.pagination button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 40px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #4b5563;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}

.pagination button.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: transparent;
    font-weight: 600;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button i {
    font-size: 12px;
}

/* Responsive Pagination */
@media (max-width: 480px) {
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination button {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

.view-btn {
    width: 100%;
    padding: 10px;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-btn:hover {
    background: #333;
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 2px solid var(--light);
}

.cart-header h3 {
    font-size: 24px;
    color: var(--dark);
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--danger);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    padding: 15px;
    align-items: center;
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #f9f9f9;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-category {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.cart-item-actions {
    display: flex;
    justify-content: end;
    margin-top: -40px;
    align-items: flex-start;
}


.remove-item {
    background: #ff4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.remove-item:hover {
    background: #cc0000;
    transform: translateY(-1px);
}

.remove-item i {
    font-size: 0.9em;
}

/* Empty cart message */
.empty-cart-message {
    text-align: center;
    padding: 30px;
    color: #666;
}

/* Cart counter */
.cart-count {
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}


.cart-footer {
    padding: 25px 20px;
    border-top: 1px solid var(--light);
    position: absolute;
    bottom: 0;
    width: 100%;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cart-total-amount {
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--primary);
    border: none;
    color: #fff;
}

.checkout-btn:hover {
    background: #000;
    border: none;
    color: #fff;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}


.astrologer-card.booked {
    opacity: 0.7;
    position: relative;
}

.booked-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.astrologer-card.booked .add-to-cart {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .cart-sidebar {
        max-width: 100%;
    }
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: white;
}

.footer-column p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #334155;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 14px;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--success);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
    z-index: 1001;
}

.notification.active {
    transform: translateY(0);
    opacity: 1;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    width: 85%;
    max-width: 1000px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    animation: fadeIn .3s ease;
    z-index: 2200;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: #f2f2f2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
}

.modal-content {
    display: flex;
}

.modal-image {
    width: 45%;
}

.modal-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.modal-details {
    padding: 40px;
    width: 55%;
}

.modal-details h2 {
    font-size: 26px;
    margin-bottom: 6px;
}

.badge {
    display: inline-block;
    background: #eee;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 18px;
}

.modal-details p {
    margin-bottom: 10px;
    font-size: 15px;
}

.price {
    margin-top: 24px;
    font-size: 18px;
    font-weight: 600;
    color: #1a73e8;
}

@media (max-width:1068px) {
    .modal-content {
        flex-direction: column;
    }

    .modal-image,
    .modal-details {
        width: 100%;
    }

    .modal-details {
        padding: 20px;
    }

}

/* Checkout page styles */
.checkot-index {
    padding-top: 50px;
    text-align: center;
}


.main-content {
    padding: 60px 0;
}

.kyc-form {
    max-width: 700px;
    margin: auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.kyc-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
}

.kyc-subtitle {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 30px;
}

.kyc-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kyc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.kyc-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.kyc-group input[type="text"],
.kyc-group input[type="email"],
.kyc-group input[type="tel"],
.kyc-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.kyc-group small {
    font-size: 12px;
    color: #6b7280;
}

.kyc-btn {
    margin-top: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

.kyc-btn:hover {
    opacity: 0.95;
    background: var(--dark);
}

.kyc-note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

.astro-booking-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    height: fit-content;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .astro-booking-form {
        padding: 24px;
    }
}