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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #ffcce0 50%, #ffa6c9 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.8em;
    font-weight: 800;
    color: #ff69b4;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff1493;
}

.language-switcher {
    margin-left: 25px;
}

.language-switcher select {
    background: white;
    border: 2px solid #ffcce0;
    padding: 5px 10px;
    border-radius: 15px;
    color: #555;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.language-switcher select:hover {
    border-color: #ff69b4;
    background: #fff0f7;
}

.cart-link {
    text-decoration: none;
    color: #ff1493;
    font-weight: bold;
    background: #fff0f7;
    padding: 8px 18px;
    border-radius: 25px;
    border: 2px solid #ffcce0;
    transition: all 0.3s;
}

.cart-link:hover {
    background: #ff69b4;
    color: white;
    transform: scale(1.05);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

#content {
    padding: 0;
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)), url("../img/hero-image01.87dc2b8ea4ae.png") center/cover;
    border-radius: 0 0 50px 50px;
    margin-bottom: 60px;
    color: #333;
}

.hero-content {
    max-width: 700px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3.5em;
    color: #ff1493;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #666;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 35px;
    font-size: 1.1em;
    box-shadow: 0 10px 20px rgba(255, 20, 147, 0.3);
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 20, 147, 0.4);
}

/* Intro Section */
.intro {
    padding: 80px 20px;
    background: white;
    border-radius: 50px;
    margin: 40px 20px;
    text-align: center;
}

.intro h2 {
    font-size: 2.5em;
    color: #ff69b4;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    padding: 20px;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
    color: #333;
}

/* Featured Products */
.featured-products {
    padding: 80px 20px;
    text-align: center;
}

.featured-products h2 {
    font-size: 2.5em;
    color: #ff69b4;
    margin-bottom: 40px;
}

/* Shop Layout */
.shop-container {
    display: flex;
    gap: 40px;
    padding: 40px 20px;
}

#sidebar {
    width: 250px;
    background: white;
    padding: 30px;
    border-radius: 30px;
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

#sidebar h3 {
    color: #ff1493;
    margin-bottom: 25px;
    font-size: 1.4em;
}

#sidebar ul {
    list-style: none;
}

#sidebar li {
    margin-bottom: 15px;
}

#sidebar a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

#sidebar li.selected a {
    color: #ff69b4;
    font-weight: 700;
}

#main-shop {
    flex-grow: 1;
}

#main-shop h1 {
    margin-bottom: 30px;
    color: #ff69b4;
}

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

.item {
    background: white;
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.1);
}

.item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 15px;
}

.item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.item a {
    text-decoration: none;
    color: inherit;
}

.view-detail {
    display: inline-block;
    margin-top: 15px;
    color: #ff69b4;
    font-weight: 600;
    text-decoration: none;
}

.price {
    color: #ff1493;
    font-weight: 800;
    font-size: 1.3em;
}

/* Product Detail */
.product-detail {
    display: flex;
    gap: 60px;
    background: white;
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin: 40px 20px;
}

.image-section img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 30px;
}

.info-section {
    flex: 1;
}

.info-section h1 {
    font-size: 3em;
    color: #ff69b4;
    margin-bottom: 10px;
    font-weight: 900;
}

.info-section h2 a {
    color: #ff1493;
    text-decoration: none;
    font-size: 0.8em;
    font-weight: 600;
}

.info-section .price {
    font-size: 2.5em;
    margin: 30px 0;
}

.description {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #555;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 18px 30px; /* Reduced side padding slightly */
    border-radius: 40px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 20, 147, 0.3);
    transition: all 0.3s;
    text-align: center !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 20, 147, 0.4);
}

/* Cart Table */
table.cart {
    width: 100%;
    background: white;
    border-radius: 30px;
    border-collapse: collapse;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin: 40px 0;
}

table.cart th, table.cart td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

table.cart th {
    background: #fff0f7;
    color: #ff1493;
    font-weight: 700;
}

table.cart .num {
    text-align: right;
}

table.cart .total {
    background: #fff0f7;
    font-weight: 800;
    font-size: 1.2em;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
}

.button.light {
    background: #fff0f7;
    color: #ff1493;
    border: 2px solid #ffcce0;
}

.text-right {
    text-align: right;
}

.mt-4 { margin-top: 40px; }
.text-center { text-align: center; }

footer {
    text-align: center;
    padding: 60px 20px;
    color: #777;
    background: rgba(255, 255, 255, 0.5);
    margin-top: 60px;
}

/* New Releases Section */
.new-releases {
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    margin: 40px 20px;
    text-align: center;
}

.new-releases h2 {
    font-size: 2.5em;
    color: #ff69b4;
    margin-bottom: 40px;
}

.new-item {
    position: relative;
    overflow: hidden;
}

.badge-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff1493;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 20, 147, 0.3);
}

/* Gallery Styles */
.main-image {
    margin-bottom: 20px;
}

.image-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: #ff69b4;
    transform: scale(1.05);
}

/* Search Bar */
.search-bar form {
    display: flex;
    background: #fff;
    border: 2px solid #ffcce0;
    border-radius: 25px;
    padding: 2px 5px 2px 15px;
    align-items: center;
    transition: all 0.3s;
}

.search-bar form:focus-within {
    border-color: #ff69b4;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.1);
}

.search-bar input {
    border: none;
    outline: none;
    padding: 8px 0;
    width: 200px;
    font-family: inherit;
    color: #555;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #ff69b4;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Auth Styles */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    text-align: center;
}

.auth-container h1 {
    color: #ff69b4;
    margin-bottom: 30px;
}

.auth-container form p, .order-form p {
    margin-bottom: 20px;
    text-align: left;
}

.auth-container input[type="text"],
.auth-container input[type="password"],
.auth-container input[type="email"],
.order-form input[type="text"],
.order-form input[type="email"],
.order-form input[type="number"],
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 12px 20px;
    border-radius: 20px;
    border: 2px solid #ffcce0;
    margin-top: 5px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

.auth-container input:focus, .order-form input:focus {
    border-color: #ff69b4;
}

.auth-container .add-to-cart-btn {
    width: 100%;
    margin-top: 20px;
}

/* Checkout Page Styles */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin: 40px 0;
}

.checkout-form-section {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.checkout-summary-section {
    background: #fff0f7;
    padding: 30px;
    border-radius: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-info h3 {
    color: #ff1493;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.order-info ul {
    list-style: none;
    margin-bottom: 20px;
}

.order-info li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ffcce0;
    color: #555;
}

.summary-totals {
    margin-top: 20px;
}

.summary-totals p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
}

.summary-totals .total-price {
    font-size: 1.4em;
    font-weight: 900;
    color: #ff1493;
    margin-top: 15px;
    border-top: 2px solid #ffcce0;
    padding-top: 15px;
}

.order-form h3 {
    color: #ff69b4;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.order-form .submit-btn {
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .checkout-summary-section {
        order: -1;
        position: static;
    }
}

.profile-actions {
    margin-top: 30px;
}

/* Force square thumbnails and detail images */
.image-section .main-image img,
.image-section .image-gallery img.thumbnail {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    object-fit: cover !important;
}

.image-section .image-gallery img.thumbnail {
    width: 80px !important;
    height: 80px !important;
}

/* Responsive Design */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .header-container, main {
        max-width: 95%;
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2.8em;
    }

    .product-detail {
        padding: 40px;
        gap: 30px;
    }

    .info-section h1 {
        font-size: 2.2em;
    }
}

/* Smartphone (max-width: 768px) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .logo {
        margin-bottom: 0;
        order: 1;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        background: white;
        padding: 20px 0;
        gap: 15px;
        margin-top: 10px;
        border-top: 2px solid #fff0f7;
    }

    .nav-links.active {
        display: flex;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .nav-links a, .language-switcher {
        margin: 5px;
    }

    .nav-links a {
        margin-left: 0;
    }

    .hero {
        height: auto;
        min-height: 50vh;
        border-radius: 0 0 30px 30px;
        padding: 40px 0;
        margin-bottom: 40px;
    }

    .hero-content {
        max-width: 90%;
        padding: 25px;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1em;
    }

    .intro {
        margin: 20px 15px;
        padding: 40px 15px;
    }

    .intro h2, .featured-products h2, .new-releases h2 {
        font-size: 1.8em;
    }

    .shop-container {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

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

    .item {
        padding: 15px;
    }

    .item h3 {
        font-size: 1em;
    }

    .product-detail {
        flex-direction: column;
        padding: 25px;
        margin: 20px 15px;
        gap: 30px;
    }

    .image-section img {
        max-width: 100%;
    }

    .info-section h1 {
        font-size: 2em;
    }

    /* Cart Table Mobile Optimization */
    .cart-responsive {
        overflow-x: auto;
    }

    table.cart th, table.cart td {
        padding: 10px 5px;
        font-size: 0.9em;
    }

    .search-bar input {
        width: 150px;
    }

    .auth-container {
        margin: 30px 15px;
        padding: 25px;
    }
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-selector .qty-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.quantity-selector .qty-btn:hover {
    background-color: #e0e0e0;
}

.quantity-selector .quantity-input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    -moz-appearance: textfield;
}

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

.cart .quantity-selector {
    margin-bottom: 0;
    justify-content: center;
}

.cart .quantity-selector .quantity-input {
    width: 40px;
}

.cart-add-form {
    display: flex;
    flex-direction: column;
}

.add-to-cart-btn {
    max-width: 200px;
}

/* Extra Small (max-width: 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .nav-links {
        font-size: 0.9em;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-section h1 {
        font-size: 1.6em;
    }
}
