:root {
    --light-blue: #a6e3e9;
    --light-purple: #e3d0ff;
    --primary-gradient: linear-gradient(45deg, var(--light-blue), var(--light-purple));
    --secondary-color: #4a4a4a;
    --background-color: #ffffff;
    --accent-color: #71c9ce;
    --box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
}

header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    width: 100%;
}


.logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(45deg, #71c9ce, #b088f9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

#hero {
    height: 90vh;
    background: linear-gradient(135deg, rgba(166, 227, 233, 0.9), rgba(227, 208, 255, 0.9)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
    margin-top: 60px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6d1846, #073763);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

#hero h1, #hero p {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6d1846, #073763);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.3rem;
    font-weight: 600;
}

.cta-button {
    background: linear-gradient(135deg, #9082ff, #9082ff, #0f9ed5);
    padding: 1.2rem 2.8rem;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 2rem;
    transition: all 0.5s ease;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
    display: inline-block;
}

.cta-button span {
    background: linear-gradient(135deg, #6d1846, #073763);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

#featured-products h2, #about h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6d1846, #073763);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 2rem 0;
}

#about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.bracelets-container {
    padding-top: 55px;  /* This gives space below the header */
    max-width: 1200px;
    margin: 0 auto;
}

.keychains-container {
    padding-top: 55px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6d1846, #073763);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 3rem auto;
    padding-top: 100px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 400px));
    gap: 2rem;
    padding: 1rem;
    justify-content: center;
}

.product-card {
    width: 400px;
    height: 400px;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-card h3 {
    padding: 0;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
}

.price {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0;
    margin: 0 0 10px 0;
    text-align: center;
}

.add-to-cart {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.add-to-cart:hover {
    opacity: 1;
    transform: scale(1.02);
}

#about {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(166, 227, 233, 0.1), rgba(227, 208, 255, 0.1));
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
}

footer {
    background: linear-gradient(135deg, #71c9ce, #b088f9);
    color: white;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    padding-top: 8rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.social-icons a {
    color: white;
    font-size: 1.8rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--light-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.product-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.popup-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.popup-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.popup-details {
    padding: 20px;
}

.quantity-section {
    margin: 20px 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.quantity-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

#quantity {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

.close-popup {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
}

.add-to-cart-popup {
    background: linear-gradient(135deg, #9082ff, #0f9ed5);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
}

.view-product {
    background: linear-gradient(135deg, #9082ff, #0f9ed5);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    margin: 1rem auto;
    transition: all 0.5s ease;
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
    cursor: pointer;
    display: block;
    width: 80%;
}

.view-product:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}


.cart-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.cart-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-quantity {
    color: #666;
    font-weight: 500;
}

.cart-item-price {
    font-weight: 600;
    color: #333;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.checkout-button {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-button:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.close-cart {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
}

.remove-item {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.remove-item:hover {
    background: #ff6b81;
    transform: scale(1.1);
}

.contact-container {
    padding-top: 26px;  /* Reduced by 20px from 120px */
}

.category-title {
    margin-bottom: 40px; /* Extra breathing room below title */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 2rem;
}

.contact-info {
    background: linear-gradient(135deg, #9082ff, #0f9ed5);
    padding: 40px;
    border-radius: 20px;
    color: white;
}

.info-item {
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    margin-bottom: 15px;
}

.info-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.social-links {
    margin-top: 40px;
}

.social-links a {
    color: white;
    font-size: 24px;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.contact-form {
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    color: #666;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 12px;
    color: #9082ff;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #9082ff;
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.submit-btn {
    background: linear-gradient(135deg, #9082ff, #0f9ed5);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    margin-left: 30px;
}

.login-btn, .signup-btn {
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn, .signup-btn {
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.login-btn:hover, .signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        text-align: center;
    }

    #hero {
        height: 70vh;
        margin-top: 120px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }
}