:root {
    --primary-purple: #603F8B;
    --primary-pink: #C5588E;
    --dark-gray: #333333;
    --light-bg: #fdfdfd;
    --white: #ffffff;
    --text-heading: #2d2d2d;
    --text-muted: #666666;
    --border-light: #eeeeee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: var(--text-heading);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 20px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: var(--white);
    transition: 0.3s;
}

.top-bar-social a:hover {
    opacity: 0.7;
}

/* Header */
header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 38px;
    width: auto;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary-pink);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icons {
    display: flex;
    gap: 18px;
    color: var(--dark-gray);
    font-size: 18px;
}

.header-icons a {
    color: inherit;
    position: relative;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-purple);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-auth {
    background-color: var(--primary-pink);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-auth:hover {
    background-color: var(--primary-purple);
    transform: translateY(-2px);
}

.user-welcome {
    font-size: 14px;
    color: var(--primary-purple);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 0;
    user-select: none;
}

.user-welcome i.fa-chevron-down {
    font-size: 10px;
    transition: 0.3s;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 1001;
    border: 1px solid var(--border-light);
}

.user-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown.active .user-welcome i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-purple);
}

.dropdown-item i {
    width: 16px;
    color: var(--primary-purple);
    font-size: 16px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

.dropdown-item.logout {
    color: #e74c3c;
}

.dropdown-item.logout i {
    color: #e74c3c;
}

@media (max-width: 992px) {
    .dropdown-menu {
        position: absolute;
        top: 60px;
        right: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--border-light);
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        width: 200px;
        background: white;
        z-index: 1000;
    }

    .user-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item {
        padding: 12px 20px;
        border-bottom: none;
    }

    .dropdown-item:hover {
        background: #f8f9fa;
    }
}

.nav-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary-pink) !important;
}

/* Footer Section */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-pink);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #fff;
    font-size: 14px;
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-purple);
    cursor: pointer;
    z-index: 1001;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.nav-overlay.active {
    display: block;
}

@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: flex;
        align-items: flex-start;
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 16px;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .header-actions {
        /* Keep icons visible or move them? */
        gap: 15px;
    }

    .user-welcome {
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
    }

    .welcome-text {
        display: none;
    }

    .user-dropdown .fa-chevron-down {
        font-size: 10px;
    }

    .header-icons {
        gap: 12px;
    }

    .btn-auth {
        padding: 6px 15px;
        font-size: 12px;
    }
}

/* Mobile Header Utility */
.mobile-only-header {
    display: none;
}

@media (max-width: 992px) {
    .mobile-only-header {
        display: flex;
    }

    .mobile-nav-item {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        font-weight: 500;
        color: var(--text-heading);
    }

    .mobile-nav-header i {
        font-size: 12px;
        transition: transform 0.3s;
    }

    .mobile-nav-header i.rotate {
        transform: rotate(90deg);
    }

    .mobile-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding-left: 15px;
    }

    .mobile-submenu.active {
        max-height: 200px;
    }

    .mobile-submenu a {
        display: block;
        padding: 10px 0;
        font-size: 14px;
        color: var(--text-muted);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-submenu a i {
        margin-right: 10px;
        width: 14px;
        text-align: center;
    }
}

.mobile-nav-item {
    display: none;
}

/* Terms & Conditions Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.terms-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.terms-modal h2 {
    margin-top: 0;
    color: var(--primary-purple);
    font-size: 24px;
    margin-bottom: 15px;
}

.terms-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 14px;
}

.terms-check input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-btns {
    display: flex;
    gap: 15px;
}

.btn-confirm {
    flex: 1;
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-confirm:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.btn-cancel {
    flex: 1;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

/* Responsive Styles for Home Page */

.about-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

@media (max-width: 768px) {

    /* About Us Stack on Mobile */
    .about-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .about-main-grid img {
        max-width: 100%;
        height: auto;
    }

    /* Hero Section Mobile Adjustments */
    .hero {
        min-height: 500px;
        /* Slightly shorter on mobile */
        text-align: center;
        /* Center text on mobile */
    }

    .hero .container>div {
        padding: 25px !important;
        /* Override inline padding style on the white card */
        margin: 0 15px;
        /* Add margin on sides so it doesn't touch edges */
    }

    .hero h1 {
        font-size: 28px !important;
        /* Smaller size */
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero h1 br {
        display: none;
        /* Hide break on mobile to let text wrap naturally */
    }

    .hero p {
        font-size: 15px !important;
        margin-bottom: 25px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-btns a {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    /* General Section Padding reduction */
    .section-padding {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 26px;
    }

    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* Top Bar Responsive */
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-info {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    /* Improve Modal on Mobile */
    .modal-content {
        width: 95% !important;
        margin: 10px !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    header .container {
        padding: 0 10px;
    }

    .logo {
        gap: 5px;
    }
}

/* Voucher Details Page */
.voucher-details-page {
    padding-top: 100px;
    background: #fdfdfd;
}

.voucher-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.voucher-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.voucher-image-container {
    height: auto;
    min-height: 200px;
    background: #f8f8f8;
    position: relative;
}

.voucher-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.discount-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.voucher-content {
    padding: 40px;
}

.pricing-breakdown {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    border-left: 5px solid var(--primary-pink);
}

.pricing-item {
    border-right: 1px solid #ddd;
    padding-right: 30px;
}

.pricing-item:last-child {
    border-right: none;
    padding-right: 0;
}

.store-sidebar {
    position: sticky;
    top: 100px;
}

/* Mobile Responsiveness for Voucher Page */
@media (max-width: 992px) {
    .voucher-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .store-sidebar {
        position: static;
    }

    .voucher-image-container {
        height: auto;
        min-height: 150px;
    }

    .voucher-content {
        padding: 25px;
    }

    .pricing-breakdown {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .pricing-item {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ddd;
        padding-bottom: 15px;
        width: 100%;
    }

    .pricing-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Hide Cart Icon on Mobile as requested */
    .cart-icon-link {
        display: none !important;
    }

    /* Make mobile-only links visible in nav */
    .mobile-only-link {
        display: block;
    }
}

/* Tawk.to Widget Mobile Adjustment */
@media (max-width: 576px) {
    #tawk-chat-widget-container {
        bottom: 80px !important;
        /* Move up to avoid bottom nav/footer overlap if any */
        right: 15px !important;
        transform: scale(0.85) !important;
        /* Make it slightly smaller */
        transform-origin: bottom right !important;
    }
}

.mobile-only-link {
    display: none;
    /* Hidden by default on desktop */
}