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

/* CSS Variables */
:root {
    --primary-color: #ffb3d9;
    --primary-dark: #ff9ecf;
    --secondary-color: #c9a0dc;
    --accent-color: #ffd4e5;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --bg-light: #fff9fc;
    --bg-white: #ffffff;
    --border-color: #f0e6f2;
    --shadow: 0 2px 10px rgba(255, 179, 217, 0.15);
    --shadow-hover: 0 4px 20px rgba(255, 179, 217, 0.25);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

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

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

/* Header */
.header {
    background-color: var(--bg-white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.search-box {
    flex: 0 0 250px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    transition: var(--transition);
    font-size: 14px;
}

.search-input:focus {
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #fff0f7 0%, #ffe8f3 25%, #ffd4e5 50%, #e8c9f5 75%, #d4b5e8 100%);
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 179, 217, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(201, 160, 220, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Floating Abstract Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.2), rgba(201, 160, 220, 0.2));
    backdrop-filter: blur(2px);
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -30px;
    animation: float 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 20%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 18s ease-in-out infinite, morph 8s ease-in-out infinite;
}

.hero-shape-4 {
    width: 180px;
    height: 180px;
    top: 20%;
    right: 15%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: float 22s ease-in-out infinite, morph 10s ease-in-out infinite reverse;
}

/* Glow Effects */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: pulse 4s ease-in-out infinite;
}

.hero-glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 179, 217, 0.6) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation: pulse 6s ease-in-out infinite, move 15s ease-in-out infinite;
}

.hero-glow-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 160, 220, 0.6) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation: pulse 5s ease-in-out infinite reverse, move 12s ease-in-out infinite reverse;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Enhanced Typography */
.hero-title {
    font-size: 56px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(255, 179, 217, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-title-line {
    display: block;
    animation: fadeInUp 1s ease-out backwards;
}

.hero-title-line:first-child {
    animation-delay: 0.2s;
}

.hero-title-line:last-child {
    animation-delay: 0.4s;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Animated CTA Button */
.btn-hero {
    position: relative;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 179, 217, 0.4);
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before {
    width: 300px;
    height: 300px;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    border-radius: 25px;
    opacity: 0;
    animation: buttonGlow 2s ease-in-out infinite;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(5deg);
    }
    50% {
        transform: translateY(-20px) translateX(-20px) rotate(-5deg);
    }
    75% {
        transform: translateY(-40px) translateX(10px) rotate(3deg);
    }
}

@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes move {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -30px);
    }
    50% {
        transform: translate(-20px, 20px);
    }
    75% {
        transform: translate(20px, 30px);
    }
}

@keyframes buttonGlow {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-add-cart {
    width: 100%;
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-add-cart:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Categories */
.categories {
    padding: 30px 0;
    background-color: var(--bg-white);
}

.category-chips {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.chip {
    padding: 10px 25px;
    border-radius: 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.chip:hover,
.chip.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
}

/* Products Section */
.products-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Product Card */
.product-card {
    background-color: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
}

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

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-view {
    flex: 1;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 12px 20px;
}

.btn-view:hover {
    background-color: var(--primary-dark);
}

.btn-add-cart {
    flex: 1;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    color: #cccccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    font-size: 14px;
    color: #999;
}

/* Product Detail Page */
.product-detail-page {
    padding: 40px 0 60px;
    min-height: calc(100vh - 400px);
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-detail-image {
    width: 100%;
    height: 600px;
    background-color: var(--bg-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: var(--shadow);
}

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

.product-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-detail-info h1 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-detail-price {
    font-size: 38px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.product-short-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.product-actions-detail {
    display: flex;
    gap: 15px;
}

.product-actions-detail .btn {
    flex: 1;
}

.product-full-description {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.product-full-description h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.product-full-description h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.product-full-description p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.product-full-description ul,
.product-full-description ol {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 25px;
}

.product-full-description li {
    margin-bottom: 10px;
}

.product-full-description ul li::marker {
    color: var(--primary-color);
}

.product-full-description ol li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

.product-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.product-info-table tr {
    border-bottom: 1px solid var(--border-color);
}

.product-info-table td {
    padding: 15px 10px;
    color: var(--text-light);
}

.product-info-table td:first-child {
    width: 200px;
}

.product-info-table strong {
    color: var(--text-dark);
}

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

.modal:target {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-content {
    background-color: var(--bg-white);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: var(--text-dark);
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-light);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.modal-image {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
}

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

.modal-info {
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.modal-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.modal-description {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.modal-description h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-description h3:first-child {
    margin-top: 0;
}

.modal-description p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.modal-description ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.modal-description li {
    color: var(--text-light);
    line-height: 1.8;
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}

.modal-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.btn-large {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
}

/* Custom scrollbar for modal */
.modal-description::-webkit-scrollbar {
    width: 6px;
}

.modal-description::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.modal-description::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.modal-description::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .search-box {
        flex: 1;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-shape-1 {
        width: 200px;
        height: 200px;
    }

    .hero-shape-2 {
        width: 150px;
        height: 150px;
    }

    .hero-shape-3,
    .hero-shape-4 {
        width: 120px;
        height: 120px;
    }

    .hero-glow-1,
    .hero-glow-2 {
        width: 300px;
        height: 300px;
    }

    .btn-hero {
        padding: 16px 40px;
        font-size: 17px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px;
    }

    .modal-image {
        height: 350px;
    }

    .modal-description {
        max-height: 300px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-detail-image {
        height: 400px;
        padding: 30px;
    }

    .product-detail-info h1 {
        font-size: 28px;
    }

    .product-detail-price {
        font-size: 32px;
    }

    .product-full-description {
        padding: 30px;
    }

    .product-info-table td:first-child {
        width: 150px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }

    .nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-shape-1 {
        width: 150px;
        height: 150px;
        top: -50px;
        left: -30px;
    }

    .hero-shape-2 {
        width: 120px;
        height: 120px;
    }

    .hero-shape-3 {
        width: 100px;
        height: 100px;
        bottom: -30px;
    }

    .hero-shape-4 {
        width: 110px;
        height: 110px;
    }

    .hero-glow-1,
    .hero-glow-2 {
        width: 250px;
        height: 250px;
        filter: blur(60px);
    }

    .btn-hero {
        padding: 15px 35px;
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 250px;
    }

    .category-chips {
        gap: 10px;
    }

    .chip {
        font-size: 12px;
        padding: 8px 18px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-image {
        height: 280px;
    }

    .modal-info h2 {
        font-size: 22px;
    }

    .modal-price {
        font-size: 26px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }

    .product-detail-page {
        padding: 20px 0 40px;
    }

    .product-detail-image {
        height: 300px;
        padding: 20px;
    }

    .product-detail-info h1 {
        font-size: 24px;
    }

    .product-detail-price {
        font-size: 28px;
    }

    .product-short-desc {
        font-size: 14px;
    }

    .product-actions-detail {
        flex-direction: column;
    }

    .product-full-description {
        padding: 20px;
    }

    .product-full-description h2 {
        font-size: 24px;
    }

    .product-full-description h3 {
        font-size: 18px;
    }

    .product-info-table {
        font-size: 14px;
    }

    .product-info-table td {
        padding: 12px 5px;
    }

    .product-info-table td:first-child {
        width: 120px;
    }
}
