/* ===================================
   MODERN UI ENHANCEMENTS
   Premium, polished design upgrade
   =================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Modern Color Palette */
    --modern-primary: #16a34a;
    --modern-primary-light: #22c55e;
    --modern-primary-dark: #15803d;
    --modern-accent: #f97316;
    --modern-dark: #0f172a;
    --modern-darker: #020617;
    --modern-light: #f8fafc;
    --modern-muted: #64748b;

    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    --gradient-shine: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    /* Enhanced Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(22, 163, 74, 0.3);

    /* Modern Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
}

/* =====================================
   TRUST BADGES SECTION
   ===================================== */

.trust-badges-section {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    padding: 20px 0;
    border-bottom: 1px solid rgba(22, 163, 74, 0.1);
}

.trust-badges-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.trust-badge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.15);
}

.trust-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--modern-dark);
}

.trust-text span {
    font-size: 0.75rem;
    color: var(--modern-muted);
}

/* =====================================
   GLOBAL MODERN ENHANCEMENTS
   ===================================== */

body {
    font-family: var(--font-main);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--modern-dark);
    -webkit-font-smoothing: antialiased;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

/* Selection Color */
::selection {
    background: rgba(22, 163, 74, 0.2);
    color: var(--modern-dark);
}

/* =====================================
   ENHANCED HEADER
   ===================================== */

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Modern Search Bar */
.search-form {
    position: relative;
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.search-form:focus-within {
    border-color: var(--modern-primary);
    box-shadow: var(--shadow-soft), 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.search-input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    font-size: 0.95rem;
    background: white;
    color: var(--modern-dark);
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* Header Actions Enhancement */
.header-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--modern-muted);
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 12px;
}

.header-action:hover {
    color: var(--modern-primary);
    background: rgba(22, 163, 74, 0.08);
}

.header-action i {
    font-size: 1.4rem;
}

.header-action .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--modern-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* =====================================
   MODERN HERO SECTION
   ===================================== */

.simple-hero {
    padding: 25px 0;
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 50%, #f8fafc 100%);
}

.simple-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 30%, #166534 60%, #16a34a 100%);
    border-radius: 24px;
    overflow: hidden;
    min-height: 340px;
    box-shadow: var(--shadow-strong);
}

.simple-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 60px;
    min-height: 340px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge::before {
    content: '✨';
}

.hero-headline {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--modern-primary);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.1), transparent);
    transition: left 0.5s;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    color: var(--modern-primary);
}

.hero-floating-product {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: modernFloat 5s ease-in-out infinite;
}

.hero-floating-product:nth-child(2) {
    width: 170px;
    height: 170px;
    animation-delay: 0.5s;
}

.hero-floating-product:nth-child(3) {
    animation-delay: 1s;
}

.hero-floating-product:hover {
    transform: scale(1.12) rotate(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modernFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-12px) rotate(2deg);
    }

    75% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

/* =====================================
   MODERN CATEGORY CARDS
   ===================================== */

.top-categories-section {
    padding: 40px 0;
    background: white;
}

.section-header-simple h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--modern-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header-simple h2 i {
    color: var(--modern-primary);
    font-size: 1.2rem;
}

.category-card-simple {
    flex-shrink: 0;
    width: 110px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card-simple:hover {
    transform: translateY(-8px);
}

.category-card-image {
    width: 110px;
    height: 110px;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: all 0.4s;
    box-shadow: var(--shadow-soft);
}

.category-card-simple:hover .category-card-image {
    border-color: var(--modern-primary);
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.2);
    background: white;
}

.category-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--modern-dark);
    transition: color 0.3s;
}

.category-card-simple:hover .category-card-name {
    color: var(--modern-primary);
}

/* =====================================
   MODERN PRODUCT CARDS - ALIGNED
   ===================================== */

.all-products-section {
    padding: 40px 0 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.products-grid-simple {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Equal height product cards using flexbox */
.product-card-simple {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s;
    z-index: 10;
}

.product-card-simple:hover::before {
    transform: scaleX(1);
}

.product-card-simple:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-6px);
    border-color: transparent;
}

.product-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.product-image-simple {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    overflow: hidden;
    flex-shrink: 0;
}

.product-image-simple img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-simple:hover .product-image-simple img {
    transform: scale(1.08);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.product-info-simple {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Fixed height for product name - ensures alignment */
.product-name-simple {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--modern-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 2.8em;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Price section pushed to bottom */
.product-price-simple {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    min-height: 32px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--modern-primary);
    font-family: var(--font-display);
}

.old-price {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Modern Order Button - always at bottom */
.order-now-btn-simple {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    flex-shrink: 0;
}

.order-now-btn-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.order-now-btn-simple:hover::before {
    left: 100%;
}

.order-now-btn-simple:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
}

/* =====================================
   MODERN PAGINATION
   ===================================== */

.pagination-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.page-btn {
    padding: 14px 32px;
    background: white;
    color: var(--modern-primary);
    border: 2px solid var(--modern-primary);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-soft);
}

.page-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.page-info {
    color: var(--modern-muted);
    font-weight: 600;
}

/* =====================================
   MODERN FEATURES BAR
   ===================================== */

.features-bar-simple {
    padding: 40px 0;
    background: white;
    border-top: 1px solid #f1f5f9;
}

.features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-item-simple {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--modern-dark);
    font-weight: 600;
    padding: 15px 25px;
    background: #f8fafc;
    border-radius: 50px;
    transition: all 0.3s;
}

.feature-item-simple:hover {
    background: rgba(22, 163, 74, 0.1);
    transform: translateY(-3px);
}

.feature-item-simple i {
    color: var(--modern-primary);
    font-size: 1.5rem;
}

/* =====================================
   MODERN FOOTER
   ===================================== */

.footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
}

.footer h4 {
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    padding: 5px 0;
}

.footer a:hover {
    color: var(--modern-primary-light);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--modern-primary);
    transform: translateY(-3px) scale(1.1);
}

/* =====================================
   RESPONSIVE ENHANCEMENTS
   ===================================== */

@media (max-width: 1199px) {
    .products-grid-simple {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .products-grid-simple {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-content-wrapper {
        padding: 40px;
    }
}

@media (max-width: 767px) {
    .products-grid-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Ensure cards stretch to same height in each row */
    .product-card-simple {
        height: 100%;
    }

    .product-info-simple {
        padding: 12px;
    }

    .product-name-simple {
        font-size: 0.85rem;
        min-height: 2.4em;
        max-height: 2.4em;
    }

    .current-price {
        font-size: 1.05rem;
    }

    .old-price {
        font-size: 0.8rem;
    }

    .order-now-btn-simple {
        padding: 12px;
        font-size: 0.85rem;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .hero-content-wrapper {
        padding: 30px;
        min-height: 280px;
    }

    .simple-hero-banner {
        min-height: 280px;
    }

    .feature-item-simple {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .product-card-simple:hover {
        transform: translateY(-3px);
    }

    .trust-badges-grid {
        gap: 15px;
    }

    .trust-badge-item {
        padding: 10px 16px;
        flex: 1 1 45%;
        min-width: 150px;
    }

    .trust-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .trust-text strong {
        font-size: 0.85rem;
    }

    .trust-text span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.5rem;
    }

    .hero-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .product-info-simple {
        padding: 10px;
    }

    .product-name-simple {
        font-size: 0.95rem;
        margin-bottom: 6px;
        line-height: 1.5;
        min-height: 3em;
        max-height: 3em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .current-price {
        font-size: 1.1rem;
    }

    .order-now-btn-simple {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* =====================================
   LOADING ANIMATIONS
   ===================================== */

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 0px, #e0e0e0 40px, #f0f0f0 80px);
    background-size: 200px;
    animation: shimmer 1.5s infinite linear;
}

/* =====================================
   TOAST NOTIFICATIONS
   ===================================== */

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid var(--modern-primary);
}

.toast-error {
    border-left: 4px solid #ef4444;
}