:root {
    --primary-pink: #FFB6C1;
    --secondary-pink: #FFC0CB;
    --accent-pink: #FF69B4;
    --dark-pink: #FF1493;
    --light-pink: #FFF0F5;
    --text-dark: #333;
    --text-light: #777;
    --white: #fff;
    --shadow-color: rgba(255, 105, 180, 0.2);
}

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

body {
    font-family: 'Prompt', sans-serif;
    background-color: #FFF5F8;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--accent-pink);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.main-header {
    padding: 15px 0;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-pink);
    text-decoration: none;
    letter-spacing: 1px;
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--primary-pink);
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.search-box:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 8px var(--shadow-color);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--accent-pink);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: var(--dark-pink);
}

.header-icons {
    display: flex;
    gap: 15px;
}

.header-icons a {
    color: var(--accent-pink);
    font-size: 20px;
    transition: all 0.3s;
}

.header-icons a:hover {
    color: var(--dark-pink);
}

/* Navigation */
.nav-bar {
    background-color: var(--primary-pink);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links a:hover {
    color: var(--white);
    background-color: var(--accent-pink);
}

/* Slider Banner */
.slider-banner {
    margin: 30px 0;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    height: 400px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: linear-gradient(45deg, var(--primary-pink), var(--secondary-pink), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: var(--white);
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

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

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

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.animate-fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

/* Modal Backdrop */
#deleteModal {
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

#deleteModal.hidden {
    opacity: 0;
    pointer-events: none;
}

#deleteModal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content */
#deleteModal .relative {
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

#deleteModal:not(.hidden) .relative {
    transform: scale(1) translateY(0);
}

/* Button Hover Effects */
.delete-item-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.close-modal:hover {
    transform: scale(1.05);
}

#confirmDelete:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.hero-title {
    font-size: 42px;
    margin-bottom: 20px;
    animation: slideInUp 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: slideInUp 1s ease-out 0.3s both;
}

.cta-button {
    background: var(--white);
    color: var(--accent-pink);
    padding: 18px 40px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    animation: slideInUp 1s ease-out 0.6s both;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.4);
    background: var(--light-pink);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    color: var(--accent-pink);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slider-nav:hover {
    background: var(--white);
    color: var(--dark-pink);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Categories */
.categories {
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--accent-pink);
    text-align: center;
    font-weight: bold;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-item {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
    border-color: var(--primary-pink);
}

.category-icon {
    font-size: 35px;
    color: var(--accent-pink);
    margin-bottom: 12px;
    transition: all 0.3s;
}

.category-item:hover .category-icon {
    color: var(--dark-pink);
    transform: scale(1.2);
}

.category-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

/* Products */
.products-section {
    margin-bottom: 50px;
}

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

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
    border-color: var(--primary-pink);
}

.product-card:focus {
    outline: 3px solid var(--accent-pink);
}

.product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

.product-image.primary {
    opacity: 1;
}

.product-image.hover {
    opacity: 0;
}

.product-card:hover .product-image.primary {
    opacity: 0;
}

.product-card:hover .product-image.hover {
    opacity: 1;
}

.quick-actions {
    z-index: 10;
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: all 0.3s;
}

.product-card:hover .quick-actions {
    opacity: 1;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--accent-pink);
    color: white;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: var(--white);
    display: inline-block;
}

.badge.sale {
    background-color: var(--dark-pink);
}

.badge.new {
    background-color: #4CAF50;
}

.badge.hot {
    background-color: #FF9800;
}

.product-card .product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
    z-index: 2;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--accent-pink);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.action-btn:hover {
    background: var(--accent-pink);
    color: var(--white);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-pink);
}

.original-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    color: #FFD700;
    font-size: 14px;
}

.rating-count {
    color: var(--text-light);
    margin-left: 5px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--accent-pink);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.add-to-cart:before {
    content: '\f07a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
    transition: transform 0.3s;
}

.add-to-cart:hover {
    background: var(--dark-pink);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.add-to-cart:hover:before {
    transform: translateX(-3px);
}

.add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.add-to-cart .ripple {
    position: absolute;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s linear;
}

.view-more-container {
    text-align: center;
    margin-top: 20px;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-pink);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-more-btn:hover {
    background: var(--dark-pink);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Features */
.features-section {
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
}

.feature-icon {
    font-size: 30px;
    color: var(--accent-pink);
}

.feature-title {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--accent-pink);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--white);
}

.footer-desc {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--white);
    color: var(--accent-pink);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    color: var(--light-pink);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.payment-methods {
    margin-top: 20px;
}

.payment-methods img {
    max-width: 200px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

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

@keyframes sparkle {
    0% { transform: translateX(-50px) translateY(-50px) rotate(0deg); }
    100% { transform: translateX(50px) translateY(50px) rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
