/* Global Styles */
:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary: #4cc9f0;
    --accent: #f72585;
    --dark: #0b0c10;
    --light: #ffffff;
    --gray: #f3f4f6;
    --text: #1f2937;
    --text-light: #6b7280;
    --border-radius: 16px;
    --shadow: 0 10px 30px -10px rgba(67, 97, 238, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    /* display: flex;
    align-items: center;
    gap: 10px; */
    margin-right: 0px;
}

.logo i {
    color: var(--primary);
}

.logo span {
    color: var(--primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.cart-btn {
    background: var(--dark);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

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

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.search-box {
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 450px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-box i {
    color: var(--primary);
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    padding: 10px 0;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Regions Filter */
.regions {
    padding: 60px 0;
}

.regions h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.region-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-light);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Products Grid */
.products {
    padding-bottom: 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    padding-bottom: 60px;
    /* Space for absolute price */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header-left h3 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.card-flag {
    font-size: 3rem;
    margin-bottom: 0;
    display: block;
    line-height: 1;
}

.product-features {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-light);
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 6px;
}

.spec-item i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* Product Detail Page Features Override */
.product-features .spec-item {
    background: none;
    padding: 0;
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 500;
    gap: 10px;
}

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

.card-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.card-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.card-price {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.7rem;
    margin-top: 0;
}

.card-price span {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #dcfce7;
    color: #166534;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Features */
.features {
    background: white;
    padding: 80px 0;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-card .icon {
    width: 70px;
    height: 70px;
    background: var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .icon {
    background: var(--primary);
    color: white;
}

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

.feature-card p {
    color: var(--text-light);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: #9ca3af;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header .country-flag {
    font-size: 4rem;
    margin-bottom: 10px;
}

.plan-selection h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.plans-grid {
    display: grid;
    gap: 15px;
}

.plan-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.plan-option:hover {
    border-color: var(--primary);
}

.plan-option.selected {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.plan-details strong {
    display: block;
    font-size: 1.1rem;
}

.plan-details span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.plan-price {
    font-weight: 700;
    color: var(--primary);
}

.modal-footer {
    margin-top: 30px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-price {
    font-size: 1.2rem;
    font-weight: 700;
}

.add-to-cart-btn {
    background: var(--dark);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Cart Items */
.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary);
}

.remove-item {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    font-size: 0.9rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-light);
    padding: 30px 0;
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--text-light);
    animation: pulse 1.5s ease-in-out infinite;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: #ef4444;
    background: #fee2e2;
    border-radius: 12px;
    margin: 20px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 0 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 0px;
    }

    .search-box {
        margin: 0 auto;
    }

    .hero-visual {
        height: auto;
        margin-top: 40px;
    }

    .hero-image {
        max-width: 300px;
    }

    .nav-controls span {
        display: none;
    }

    .globe-graphic {
        width: 200px;
        height: 200px;
    }

    .nav-controls span {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Product Detail Page Styles */
.product-detail-section {
    padding: 40px 0 80px;
    background: #fff;
}

.breadcrumb {
    padding: 0 0 10px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 10px;
    color: #d1d5db;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 20px;
}

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

.main-image {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.selector-group {
    margin-bottom: 25px;
}

.selector-label {
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    color: var(--dark);
}

.selector-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.option-btn {
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--text);
    min-width: 80px;
    text-align: center;
}

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

.option-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 30px;
}

.qty-btn {
    background: none;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

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

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-buy-now,
.btn-add-cart {
    flex: 1;
    padding: 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-buy-now {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

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

.btn-add-cart {
    background: white;
    border: 2px solid var(--dark);
    color: var(--dark);
}

.btn-add-cart:hover {
    background: var(--dark);
    color: white;
}

.product-tabs {
    margin-top: 60px;
    border-top: 1px solid #e5e7eb;
}

.tab-headers {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.tab-link {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    transition: var(--transition);
}

.tab-link.active {
    color: var(--primary);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
    line-height: 1.8;
    color: var(--text);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.spec-table th {
    width: 200px;
    color: var(--text-light);
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        position: static;
    }

    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
}