/* --- MODERN VISUAL UPGRADES --- */

/* 1. Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for grid items */
.products-grid .product-card:nth-child(1) { transition-delay: 0.1s; }
.products-grid .product-card:nth-child(2) { transition-delay: 0.2s; }
.products-grid .product-card:nth-child(3) { transition-delay: 0.3s; }
.products-grid .product-card:nth-child(4) { transition-delay: 0.4s; }

/* 2. Organic Wave Separator */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider .shape-fill {
    fill: #ffffff;
}

/* Ensure Hero handles the wave */
.hero-section, .shop-hero {
    position: relative;
    padding-bottom: 80px; /* Space for wave */
}

/* Fix text visibility */
.hero-content, .shop-hero .container {
    position: relative;
    z-index: 5; /* Text above wave */
}

/* Softer Shadows for Cards */
.product-card {
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08); /* Softer, spread out shadow */
    border: none; /* Remove border for cleaner look */
    position: relative; /* Context for wishlist btn */
    overflow: hidden; /* For image zoom */
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Wishlist Button */
.btn-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #ccc;
    font-size: 1.1rem;
}

.btn-wishlist:hover {
    transform: scale(1.1);
    background: #fff;
}

.btn-wishlist.active {
    color: #e57373; /* Red heart */
}

.btn-wishlist.active i {
    animation: heartBeat 0.4s;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: #333;
    color: #fff;
    padding: 15px 0;
    z-index: 1000;
    transition: bottom 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.cookie-banner.show {
    bottom: 0;
}

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

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
}

.btn-accept {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-accept:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* --- NEWSLETTER SECTION REMOVED --- */

/* --- FLOATING CART --- */
.floating-cart-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 990;
    animation: floatIn 0.5s ease-out 1s backwards;
}

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

.floating-cart-btn {
    background: var(--text-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s;
}

.floating-cart-btn:hover {
    transform: translateY(-5px);
    background: #333;
}

.floating-cart-btn span {
    font-size: 1rem;
}

/* Hide floating cart when main header cart is easily visible (optional) */
/* But users like having it always there on scroll */

/* --- SUCCESS MODAL STYLES --- */
.success-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.success-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #e8f5e9;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.success-card h2 {
    font-family: var(--subhead-font);
    color: var(--text-color);
    margin-bottom: 10px;
}

.success-card p {
    color: #666;
    margin-bottom: 20px;
}

.order-id-box {
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
    display: inline-block;
    border: 1px dashed #ccc;
}

.success-detail {
    font-size: 0.9rem;
    margin-bottom: 30px !important;
}
