/* Your custom css */

/* ══════════════════════════════════════════════════════════════
   ASTRAMART COSMETICS - UI/UX IMPROVEMENTS
   Phase 1: Mobile Experience Optimization
   Phase 2: Product Cards & Visual Design
   ══════════════════════════════════════════════════════════════ */

/* ==================== PHASE 1: MOBILE BOTTOM NAVIGATION ==================== */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.mobile-bottom-nav__list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-bottom-nav__item {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav__item--primary {
    margin-top: -20px;
}

.mobile-bottom-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav__link:hover,
.mobile-bottom-nav__link:active,
.mobile-bottom-nav__link.active {
    color: hsl(var(--base));
}

.mobile-bottom-nav__icon {
    position: relative;
    font-size: 24px;
    line-height: 1;
    margin-bottom: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-bottom-nav__icon--lg {
    font-size: 32px;
    background: linear-gradient(135deg, #c59a65, #ba8d57);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(197, 154, 101, 0.3);
}

.mobile-bottom-nav__link:active .mobile-bottom-nav__icon {
    transform: scale(0.9);
}

.mobile-bottom-nav__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.mobile-bottom-nav__badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Prevent content from hiding behind nav */
body.has-mobile-nav {
    padding-bottom: 80px;
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
    
    body.has-mobile-nav {
        padding-bottom: 0;
    }
}


/* ==================== TOUCH TARGET OPTIMIZATION ==================== */

.btn,
.product-card__btn,
.cart-item__remove,
.wishlist-btn,
.compare-btn,
.quick-view-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Better tap feedback */
.btn:active,
.product-card:active,
.mobile-bottom-nav__link:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Remove iOS highlight */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Increase input sizes on mobile to prevent iOS zoom */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
        padding: 12px 16px;
        min-height: 48px;
    }
    
    .form-control,
    .form-select {
        font-size: 16px !important;
        min-height: 48px;
    }
}


/* ==================== MOBILE CART SIDEBAR ENHANCEMENT ==================== */

.cart-sidebar-area,
.wishlist-sidebar {
    width: 100%;
    max-width: 400px;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar-area.show,
.wishlist-sidebar.show {
    transform: translateX(0);
}

@media (max-width: 575px) {
    .cart-sidebar-area,
    .wishlist-sidebar {
        width: 100vw;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        top: auto;
        bottom: 0;
        height: 90vh;
        transform: translateY(100%);
    }
    
    .cart-sidebar-area.show,
    .wishlist-sidebar.show {
        transform: translateY(0);
    }
    
    .cart-sidebar-area .top-content,
    .wishlist-sidebar .top-content {
        padding: 20px 24px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }
    
    /* Drag handle for mobile */
    .cart-sidebar-area::before,
    .wishlist-sidebar::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        z-index: 11;
    }
    
    .cart-products,
    .wish--products {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }
}

/* Cart item improvements for mobile */
@media (max-width: 767px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        background: #f9fafb;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .cart-item__image {
        width: 100%;
        max-width: 120px;
        margin-bottom: 12px;
    }
    
    .cart-item__quantity {
        width: 100%;
        justify-content: space-between;
    }
}


/* ==================== MOBILE TYPOGRAPHY ==================== */

@media (max-width: 767px) {
    h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 18px;
        line-height: 1.4;
    }
    
    p, li {
        font-size: 15px;
        line-height: 1.6;
    }
}


/* ==================== PHASE 2: MODERN PRODUCT CARD DESIGN ==================== */

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid transparent;
}

.product-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(197, 154, 101, 0.2);
}

/* Product Image Container */
.product-card__thumb {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__thumb img {
    transform: scale(1.08);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge--sale {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
    }
}

.badge--new {
    background: linear-gradient(135deg, #c59a65, #ba8d57);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.badge--stock {
    background: rgba(255, 255, 255, 0.95);
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

/* Quick Actions (Wishlist, Compare, Quick View) */
.product-card__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.product-card:hover .product-card__actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card__action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #374151;
}

.product-card__action-btn:hover {
    background: #c59a65;
    color: white;
    transform: scale(1.1);
}

.product-card__action-btn.active {
    background: #c59a65;
    color: white;
}

/* Product Info Section */
.product-card__content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__category {
    font-size: 12px;
    color: #c59a65;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.product-card__title {
    font-size: 15px;
    font-weight: 600;
    color: hsl(var(--heading));
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 42px;
}

.product-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card__title a:hover {
    color: #c59a65;
}

/* Product Price */
.product-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-card__price-current {
    font-size: 20px;
    font-weight: 700;
    color: hsl(var(--heading));
}

.product-card__price-original {
    font-size: 16px;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-card__discount {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Add to Cart Button */
.product-card__cart-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #c59a65, #ba8d57);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.product-card__cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.product-card__cart-btn:hover::before {
    left: 100%;
}

.product-card__cart-btn:hover {
    background: linear-gradient(135deg, #ba8d57, #966a3c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 154, 101, 0.4);
}

/* Grid Layout Responsive */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card__content {
        padding: 12px;
    }
    
    .product-card__title {
        font-size: 14px;
        min-height: 38px;
    }
    
    .product-card__price-current {
        font-size: 18px;
    }
    
    .product-card__cart-btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* Mobile Product Quick Actions */
@media (max-width: 767px) {
    .product-card__actions {
        opacity: 1;
        transform: translateX(0);
        flex-direction: row;
        top: auto;
        bottom: 12px;
        right: 12px;
        gap: 6px;
    }
    
    .product-card__action-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        font-size: 16px;
    }
}

/* Safe Area Insets (iOS Notch) */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
    
    body.has-mobile-nav {
        padding-bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
    }
}

/* ==================== END UI/UX IMPROVEMENTS ==================== */


/* ══════════════════════════════════════════════════════════════
   HOMEPAGE MINIMALIST DESIGN - HERO BANNER & SECTIONS
   ══════════════════════════════════════════════════════════════ */

/* ==================== SPACING UTILITIES ==================== */

/* Vertical rhythm system for visual balance */
.py-40 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* Banner container spacing */
.banner-container {
    margin-bottom: 0 !important;
}

/* ==================== MINIMALIST HERO BANNER ==================== */

.hero-section {
    min-height: auto;
    padding: 0;
    margin-bottom: 0 !important;
}

.hero-slider .slider-wrapper {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 0;
}

.hero-slider .slide-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.hero-slider .slide-item img {
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slider .slide-item:hover img {
    transform: scale(1.05);
}

/* ==================== MINIMALIST SERVICES SECTION ==================== */

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.services-card {
    background: white;
    padding: 32px 24px;
    border-radius: 20px;
    border: 1px solid #f3f4f6;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.services-card:hover {
    transform: translateY(-8px);
    border-color: #c59a65;
    box-shadow: 0 20px 40px rgba(197, 154, 101, 0.12);
}

.services-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #fef3e7, #fef8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.services-card:hover .services-card__icon {
    background: linear-gradient(135deg, #c59a65, #ba8d57);
    transform: rotate(360deg) scale(1.1);
}

.services-card__icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.services-card:hover .services-card__icon::before {
    opacity: 1;
}

.services-card__icon img {
    width: 40px;
    height: 40px;
    transition: filter 0.3s ease;
}

.services-card:hover .services-card__icon img {
    filter: brightness(0) invert(1);
}

.services-card__text {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.services-card:hover .services-card__text {
    color: #c59a65;
}

.services-card .sub-title {
    font-size: 14px;
    color: #6b7280;
    transition: color 0.3s ease;
}

.services-card:hover .sub-title {
    color: #1a1a1a;
}

/* ==================== SECTION HEADERS ==================== */

.section-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.section-header .title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header .subtitle {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================== CATEGORY CARDS ENHANCED ==================== */

.category-card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.small-card-item {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.small-card-item:hover {
    transform: translateY(-6px);
}

/* ==================== TOP SELLING PRODUCTS ==================== */

.best-selling-section .best-sell-item {
    background: white;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 16px;
}

.best-selling-section .best-sell-item:hover {
    border-color: #c59a65;
    box-shadow: 0 8px 24px rgba(197, 154, 101, 0.1);
    transform: translateX(4px);
}

.best-selling-section .best-sell-inner {
    align-items: center;
    gap: 16px;
}

.best-selling-section .thumb {
    flex: 0 0 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
}

.best-selling-section .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.best-selling-section .best-sell-item:hover .thumb img {
    transform: scale(1.1);
}

.best-selling-section .content .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.best-selling-section .content .title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.best-selling-section .content .title a:hover {
    color: #c59a65;
}

.best-selling-section .price {
    font-size: 18px;
    font-weight: 700;
    color: #c59a65;
}

/* ==================== SCROLL ANIMATIONS ==================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animate-on-scroll:nth-child(1) { animation-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { animation-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { animation-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { animation-delay: 0.4s; }

/* ==================== MOBILE RESPONSIVE ==================== */

@media (max-width: 991px) {
    .hero-section {
        padding: 0;
        margin-bottom: 0 !important;
    }
    
    .section-header .title {
        font-size: 32px;
    }
    
    .services-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .hero-slider .slider-wrapper {
        padding: 12px;
        border-radius: 12px;
    }
    
    /* Mobile spacing for visual balance */
    .py-40 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .section-header {
        margin-bottom: 24px;
    }
    
    .section-header .title {
        font-size: 28px;
    }
    
    .section-header .subtitle {
        font-size: 16px;
    }
    
    .services-wrapper {
        grid-template-columns: 1fr;
    }
    
    .services-card {
        padding: 24px 20px;
    }
    
    .category-card-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .best-selling-section .best-sell-inner {
        gap: 12px;
    }
    
    .best-selling-section .thumb {
        flex: 0 0 80px;
        height: 80px;
    }
}

@media (max-width: 575px) {
    .section-header .title {
        font-size: 24px;
    }
}

/* ==================== ACCESSIBILITY ==================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== END HOMEPAGE MINIMALIST DESIGN ==================== */