/* General Styles */
:root {
    --primary-pink: #e87a9e;
    --secondary-pink: #f5c8d6;
    --dark-pink: #d05c7c;
    --light-pink: #fbecf1;
    --text-color: #222;
    --light-text: #666;
    --white: #ffffff;
    --black: #000000;
    --border-color: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--black);
}

a {
    text-decoration: none;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--black);
    position: relative;
}

.logo h1::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-pink), transparent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 16px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-pink);
}

/* Hero Section */
.hero {
    height: 200px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--black);
}

.hero-content p {
    font-size: 16px;
    color: var(--light-text);
}

/* Featured Product Section */
.featured-product {
    padding: 40px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-product h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--black);
    position: relative;
}

.featured-product h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-pink);
}

/* Product Grid and Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.digital-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.physical-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.product-card:hover .product-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-card-info {
    padding: 15px;
    text-align: center;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--black);
}

.product-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-pink);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalopen 0.3s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: var(--light-text);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-pink);
}

.modal-product {
    display: flex;
    padding: 30px;
}

.modal-product-image {
    flex: 1;
    padding-right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-product-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.modal-product-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-product-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--black);
}

.modal-product-info p {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-pink);
    margin-bottom: 30px;
}

.add-to-cart {
    background-color: var(--black);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    width: 100%;
    max-width: 200px;
}

.add-to-cart:hover {
    background-color: white;
    color: var(--black);
    border: 1px solid var(--black);
}

/* Quantity Stepper */
.quantity-container {
    margin-bottom: 25px;
}

.quantity-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.quantity-stepper {
    display: flex;
    align-items: center;
    max-width: 150px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background-color: #e5e5e5;
}

input[type="number"] {
    width: 70px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 16px;
    appearance: textfield; /* Standard property */
    -moz-appearance: textfield; /* Firefox */
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Button Group */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.add-to-cart {
    flex: 1;
    min-width: 180px;
}

.more-options {
    flex: 1;
    min-width: 180px;
    background-color: white;
    color: var(--black);
    border: 1px solid var(--border-color);
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.more-options:hover {
    background-color: #f5f5f5;
}

/* About Section */
.about {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    margin-bottom: 30px;
    font-size: 32px;
    color: var(--black);
}

.about p {
    color: var(--light-text);
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: #f9f9f9;
    padding: 60px 20px;
    margin-top: 60px;
}

.newsletter {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 40px;
}

.newsletter h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--black);
}

#newsletter-form {
    display: flex;
}

#newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

#newsletter-form button {
    background-color: var(--black);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

#newsletter-form button:hover {
    background-color: var(--primary-pink);
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

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

.footer-links a {
    color: var(--text-color);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-pink);
}

/* Payment Options Overlay */
.payment-options-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.payment-options-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {transform: translateY(20px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.close-payment-options {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: var(--light-text);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-payment-options:hover {
    color: var(--primary-pink);
}

.payment-options-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.payment-options-content p {
    margin-bottom: 10px;
    font-size: 16px;
}

.payment-options-content p:last-of-type {
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 18px;
    color: var(--primary-pink);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method-btn {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-btn:hover {
    background-color: #f9f9f9;
    border-color: var(--primary-pink);
}

.payment-method-btn span {
    font-weight: 500;
}

/* Image Zoom Functionality */
.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.zoomed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.zoomed img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.zoom-control-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.zoom-control-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 768px) {
    .zoomed img {
        max-width: 95%;
        max-height: 95%;
    }
}

/* Cart Notification */
.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -15px;
    background-color: var(--primary-pink);
    color: white;
    font-size: 12px;
    font-weight: bold;
    height: 20px;
    width: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    display: inline-block;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-count.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animation for cart count */
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-count.animate {
    animation: cartPulse 0.3s;
}

/* Cart Page Styles */
.cart-page {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.cart-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cart-container h2 {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    margin: 0;
    font-size: 28px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 20px;
}

.cart-items {
    padding: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    margin-right: 25px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 16px;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-quantity-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    max-width: 120px;
}

.cart-quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cart-quantity-btn:hover {
    background-color: #e5e5e5;
}

.cart-quantity-input {
    width: 40px;
    height: 30px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    appearance: textfield;
    -moz-appearance: textfield;
}

.cart-quantity-input::-webkit-inner-spin-button,
.cart-quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-subtotal {
    font-size: 18px;
    font-weight: 500;
    margin-left: 20px;
    min-width: 80px;
    text-align: right;
}

.cart-item-remove {
    margin-left: 20px;
    color: var(--light-text);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.2s ease;
}

.cart-item-remove:hover {
    color: var(--primary-pink);
}

.cart-summary {
    padding: 30px;
    background-color: #f9f9f9;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 20px;
    font-weight: 500;
}

.checkout-btn {
    background-color: var(--black);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--black);
}

.checkout-btn:hover {
    background-color: white;
    color: var(--black);
}

.continue-shopping {
    display: inline-block;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    color: var(--primary-pink);
    transition: color 0.2s ease;
}

.continue-shopping:hover {
    color: var(--dark-pink);
    text-decoration: underline;
}

/* Active navigation indicator */
.cart-link.active {
    color: var(--primary-pink);
    font-weight: 500;
}

/* Responsive styles for cart page */
@media screen and (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .cart-item-image {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .cart-item-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-subtotal {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .cart-item-remove {
        margin-left: 0;
        margin-top: 15px;
    }
}

/* Checkout Form Styles */
.checkout-form-container {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}

.checkout-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.order-summary {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.order-summary h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.checkout-item-details {
    display: flex;
    flex-direction: column;
}

.checkout-item-name {
    font-weight: 500;
}

.checkout-item-quantity {
    color: #777;
    font-size: 0.9em;
}

.checkout-item-price {
    font-weight: 500;
}

.submit-order-btn {
    display: block;
    width: 100%;
    background-color: var(--primary-pink);
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.submit-order-btn:hover {
    background-color: var(--primary-pink-dark);
}

.close-checkout {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #777;
}

.close-checkout:hover {
    color: var(--text-color);
}
