/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Shop Page Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    height: 45px;
    width: auto;
}

header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav a:hover {
    color: var(--secondary-color);
}

nav a:hover::after {
    width: 80%;
}

nav a.active {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

nav a.active::after {
    width: 80%;
    background-color: var(--secondary-color);
}

/* Hero Section */
.shop-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.shop-hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shop-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Currency Grid */
.shop-section {
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--light-bg);
}

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

/* Currency Cards */
.currency-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.currency-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.currency-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.currency-card:hover .currency-image {
    transform: scale(1.05);
}

.currency-info {
    padding: 2rem;
    background: white;
    position: relative;
}

.currency-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.currency-rate {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--light-bg);
}

.currency-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-top: 1rem;
}

/* Exchange Info Section */
.exchange-info {
    background: white;
    padding: 3rem;
    margin: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.exchange-info h3 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.exchange-info p {
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #ffd700;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: #ffd700;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    flex-grow: 1;
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background-color: #ffd700;
    border: none;
    border-radius: 4px;
    color: #1a1a1a;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #ffed4a;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffd700;
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info li {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Chatbot Styles */
#chatbot {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

#chatbot-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

#chatbot-icon:hover {
    transform: scale(1.1);
}

#chatbot-dialog {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: none;
}

#chatbot-dialog iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    header h1 {
        font-size: 1.3rem;
    }

    .header-logo {
        height: 40px;
    }

    nav {
        width: 100%;
        margin: 1rem 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    nav a {
        display: block;
        padding: 0.8rem 1rem;
        text-align: center;
        background-color: var(--light-bg);
        border-radius: 8px;
    }

    nav a:hover {
        background-color: var(--secondary-color);
        color: white;
    }

    nav a::after {
        display: none;
    }

    .shop-hero {
        padding: 4rem 0;
    }

    .shop-hero h2 {
        font-size: 2.5rem;
    }

    .currency-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 1rem;
    }

    .currency-info h3 {
        font-size: 1.5rem;
    }

    .exchange-info {
        padding: 2rem;
        margin: 2rem 1rem;
    }

    .exchange-info h3 {
        font-size: 1.8rem;
    }

    #chatbot-dialog {
        width: 90%;
        right: 5%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.currency-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.currency-card:nth-child(2) {
    animation-delay: 0.2s;
}

.currency-card:nth-child(3) {
    animation-delay: 0.4s;
}

.currency-card:nth-child(4) {
    animation-delay: 0.6s;
} 