/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #4a3728;
    background: linear-gradient(180deg,
            #fffef8 0%,
            #fff9e6 30%,
            #ffefd5 60%,
            #ffe4b5 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Main Container */
.products-main {
    padding-bottom: 0;
    position: relative;
}

/* Hero Section */
.products-hero {
    background: linear-gradient(135deg,
            #fffef8 0%,
            #fff9e6 20%,
            #ffefd5 40%,
            #ffe4b5 60%,
            #ffd699 80%,
            #ffcc80 100%);
    padding: 5rem 3rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Orbs */
.products-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
            rgba(255, 215, 0, 0.3) 0%,
            rgba(243, 156, 18, 0.2) 40%,
            transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.products-hero::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
            rgba(39, 174, 96, 0.15) 0%,
            rgba(46, 204, 113, 0.1) 40%,
            transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.products-title {
    font-size: 3.8rem;
    color: #3d2914;
    margin: 0 0 1.2rem 0;
    font-family: 'Georgia', serif;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.8);
}

/* Gradient highlight for title */
.products-title::after {
    content: '🧈';
    display: inline-block;
    margin-left: 15px;
    font-size: 2.5rem;
    filter: drop-shadow(2px 2px 4px rgba(211, 84, 0, 0.3));
}

.products-subtitle {
    font-size: 1.25rem;
    color: #6d4c41;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    position: relative;
    z-index: 2;
    max-width: 550px;
    padding: 20px 35px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(255, 250, 240, 0.8) 100%);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    box-shadow:
        8px 8px 25px rgba(211, 84, 0, 0.1),
        -6px -6px 20px rgba(255, 255, 255, 0.95),
        inset 3px 3px 8px rgba(255, 255, 255, 1);
}

/* Products Container */
.products-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 5rem 3rem;
    background: transparent;
    position: relative;
}

/* Top line */
.products-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg,
            transparent 0%,
            #ffd700 20%,
            #f39c12 50%,
            #ffd700 80%,
            transparent 100%);
    border-radius: 3px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product Cards */
.products-card {
    background: linear-gradient(145deg,
            #ffffff 0%,
            #fffef8 30%,
            #fff9e6 60%,
            #ffefd5 100%);
    border-radius: 40px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.95);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow:
        15px 15px 40px rgba(211, 84, 0, 0.12),
        -10px -10px 30px rgba(255, 255, 255, 0.95),
        inset 3px 3px 8px rgba(255, 255, 255, 1),
        inset -2px -2px 6px rgba(255, 215, 0, 0.05);
}

/* Card hover base effect */
.products-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        20px 20px 50px rgba(211, 84, 0, 0.2),
        -15px -15px 40px rgba(255, 255, 255, 1),
        inset 3px 3px 8px rgba(255, 255, 255, 1),
        inset -2px -2px 6px rgba(255, 215, 0, 0.1),
        0 0 40px rgba(255, 215, 0, 0.2);
}

/* Color Variations for Cards */

/* 1. Golden Butter - Default */
.products-card:nth-child(4n+1) {
    background: linear-gradient(145deg,
            #fffef8 0%,
            #fff9e6 30%,
            #ffefd5 60%,
            #ffe4b5 100%);
}

.products-card:nth-child(4n+1):hover {
    background: linear-gradient(145deg,
            #fff5d6 0%,
            #ffe4b5 50%,
            #ffd699 100%);
    box-shadow:
        20px 20px 50px rgba(255, 193, 7, 0.25),
        -15px -15px 40px rgba(255, 255, 255, 1),
        inset 3px 3px 8px rgba(255, 255, 255, 1),
        0 0 45px rgba(255, 215, 0, 0.25);
}

/* 2. Fresh Cream */
.products-card:nth-child(4n+2) {
    background: linear-gradient(145deg,
            #ffffff 0%,
            #fffef8 30%,
            #faf8f0 60%,
            #f5f0e1 100%);
}

.products-card:nth-child(4n+2):hover {
    background: linear-gradient(145deg,
            #fffef8 0%,
            #fff9e6 50%,
            #ffefd5 100%);
    box-shadow:
        20px 20px 50px rgba(160, 82, 45, 0.18),
        -15px -15px 40px rgba(255, 255, 255, 1),
        inset 3px 3px 8px rgba(255, 255, 255, 1),
        0 0 45px rgba(210, 180, 140, 0.2);
}

/* 3. Fresh Green (Organic) */
.products-card:nth-child(4n+3) {
    background: linear-gradient(145deg,
            #f0fff4 0%,
            #e8f8ed 30%,
            #dcf5e7 60%,
            #c8ebd5 100%);
}

.products-card:nth-child(4n+3):hover {
    background: linear-gradient(145deg,
            #dcf5e7 0%,
            #c8ebd5 50%,
            #b5e6c8 100%);
    box-shadow:
        20px 20px 50px rgba(39, 174, 96, 0.2),
        -15px -15px 40px rgba(255, 255, 255, 1),
        inset 3px 3px 8px rgba(255, 255, 255, 1),
        0 0 45px rgba(46, 204, 113, 0.2);
}

/* 4. Terracotta Warm */
.products-card:nth-child(4n+4) {
    background: linear-gradient(145deg,
            #fff5f0 0%,
            #ffe8dc 30%,
            #ffd8c5 60%,
            #ffc8aa 100%);
}

.products-card:nth-child(4n+4):hover {
    background: linear-gradient(145deg,
            #ffe0cc 0%,
            #ffd0b5 50%,
            #ffc0a0 100%);
    box-shadow:
        20px 20px 50px rgba(211, 84, 0, 0.2),
        -15px -15px 40px rgba(255, 255, 255, 1),
        inset 3px 3px 8px rgba(255, 255, 255, 1),
        0 0 45px rgba(230, 126, 34, 0.2);
}

/* Product Image */
.products-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg,
            #fffef8 0%,
            #fff9e6 100%);
    height: 260px;
    padding: 15px;
}

.products-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: all 0.5s ease;
    border-radius: 28px;
    box-shadow:
        inset 4px 4px 10px rgba(255, 255, 255, 0.9),
        inset -4px -4px 10px rgba(211, 84, 0, 0.05),
        5px 5px 15px rgba(211, 84, 0, 0.1);
}

.products-card:hover .products-img {
    transform: scale(1.08);
}

/* Golden overlay on hover */
.products-image-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(135deg,
            rgba(255, 215, 0, 0) 0%,
            rgba(255, 215, 0, 0.12) 50%,
            rgba(255, 215, 0, 0) 100%);
    border-radius: 28px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.products-card:hover .products-image-wrapper::after {
    opacity: 1;
}

/* Product Content */
.products-content {
    padding: 2rem 2.2rem 2.5rem;
    background: linear-gradient(180deg,
            #ffffff 0%,
            #fffef8 100%);
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Top line */
.products-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #ffd700, #f39c12);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.products-card:hover .products-content::before {
    width: 60%;
}

/* Products Header */
.products-header {
    margin-bottom: 1.2rem;
}

.products-name {
    margin: 0 0 0.8rem 0;
    font-size: 1.4rem;
    color: #3d2914;
    font-family: 'Georgia', serif;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.products-card:hover .products-name {
    color: #d35400;
}

.products-desc {
    font-size: 0.95rem;
    color: #8b5a2b;
    line-height: 1.7;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* Products Price */
.products-price {
    font-weight: 800;
    font-size: 1.6rem;
    font-family: 'Georgia', serif;
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(145deg,
            rgba(255, 248, 220, 0.9) 0%,
            rgba(255, 239, 186, 0.9) 100%);
    border-radius: 25px;
    color: #d35400;
    border: 2px solid rgba(255, 215, 0, 0.5);
    margin-bottom: 1.3rem;
    transition: all 0.3s ease;
    box-shadow:
        inset 3px 3px 6px rgba(255, 255, 255, 1),
        inset -2px -2px 4px rgba(255, 215, 0, 0.15),
        4px 4px 12px rgba(211, 84, 0, 0.12);
}

.products-card:hover .products-price {
    background: linear-gradient(135deg,
            #f39c12 0%,
            #e67e22 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
    box-shadow:
        inset 2px 2px 4px rgba(255, 255, 255, 0.4),
        6px 6px 18px rgba(211, 84, 0, 0.25);
}

/* Products Features */
.products-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem 0;
    flex-grow: 1;
}

.products-features li {
    position: relative;
    padding: 10px 15px 10px 45px;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #5d3a1a;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow:
        inset 2px 2px 4px rgba(255, 255, 255, 0.9),
        2px 2px 6px rgba(211, 84, 0, 0.05);
}

.products-features li:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow:
        inset 2px 2px 4px rgba(255, 255, 255, 1),
        4px 4px 10px rgba(211, 84, 0, 0.08);
}

.products-features li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 2px 2px 6px rgba(39, 174, 96, 0.3);
}

/* Products Button */
.products-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg,
            #d35400 0%,
            #e67e22 50%,
            #f39c12 100%);
    color: #ffffff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow:
        8px 8px 25px rgba(211, 84, 0, 0.35),
        -5px -5px 18px rgba(255, 255, 255, 0.6),
        inset 3px 3px 8px rgba(255, 255, 255, 0.4),
        inset -3px -3px 8px rgba(160, 64, 0, 0.2);
}

.products-btn::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.products-btn:hover {
    transform: translateY(-5px);
    box-shadow:
        12px 12px 35px rgba(211, 84, 0, 0.45),
        -8px -8px 25px rgba(255, 255, 255, 0.8),
        inset 3px 3px 8px rgba(255, 255, 255, 0.5),
        inset -3px -3px 8px rgba(160, 64, 0, 0.25),
        0 0 35px rgba(255, 215, 0, 0.3);
}

.products-btn:hover::after {
    transform: translateX(5px);
}

.products-btn:active {
    transform: translateY(-2px);
    box-shadow:
        5px 5px 15px rgba(211, 84, 0, 0.4),
        -3px -3px 12px rgba(255, 255, 255, 0.5),
        inset 5px 5px 12px rgba(160, 64, 0, 0.25);
}

/* Responsive Styles */

/* Large Tablets */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2.5rem;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .products-hero {
        padding: 4rem 2rem 5rem;
    }

    .products-title {
        font-size: 3.2rem;
    }

    .products-title::after {
        font-size: 2rem;
    }

    .products-subtitle {
        font-size: 1.15rem;
        padding: 18px 28px;
    }

    .products-container {
        padding: 4rem 2rem;
    }

    .products-grid {
        gap: 2rem;
    }

    .products-card {
        border-radius: 35px;
    }

    .products-image-wrapper {
        height: 240px;
        padding: 12px;
    }

    .products-img {
        border-radius: 25px;
    }

    .products-content {
        padding: 1.8rem 2rem 2.2rem;
    }
}

/* Small Tablets */
@media (max-width: 900px) {
    .products-hero {
        padding: 3.5rem 1.5rem 4.5rem;
    }

    .products-title {
        font-size: 2.8rem;
    }

    .products-title::after {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }

    .products-subtitle {
        font-size: 1.1rem;
        padding: 16px 24px;
    }

    .products-container {
        padding: 3.5rem 1.5rem;
    }

    .products-container::before {
        width: 100px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .products-name {
        font-size: 1.3rem;
    }

    .products-price {
        font-size: 1.4rem;
        padding: 8px 18px;
    }
}

/* Mobile Landscape */
@media (max-width: 680px) {
    .products-hero {
        padding: 3rem 1rem 4rem;
    }

    .products-hero::before,
    .products-hero::after {
        display: none;
    }

    .products-title {
        font-size: 2.3rem;
    }

    .products-title::after {
        font-size: 1.6rem;
    }

    .products-subtitle {
        font-size: 1rem;
        padding: 14px 20px;
        border-radius: 22px;
    }

    .products-container {
        padding: 3rem 1rem;
    }

    .products-container::before {
        width: 80px;
        height: 4px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .products-card {
        max-width: 420px;
        margin: 0 auto;
        border-radius: 32px;
        border-width: 2px;
    }

    .products-image-wrapper {
        height: 220px;
        padding: 10px;
    }

    .products-img {
        border-radius: 22px;
    }

    .products-content {
        padding: 1.6rem 1.5rem 2rem;
    }

    .products-name {
        font-size: 1.25rem;
    }

    .products-desc {
        font-size: 0.9rem;
    }

    .products-price {
        font-size: 1.3rem;
        padding: 8px 16px;
        border-radius: 20px;
    }

    .products-features li {
        padding: 8px 12px 8px 40px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .products-features li::before {
        width: 20px;
        height: 20px;
        font-size: 10px;
        left: 10px;
    }

    .products-btn {
        padding: 1.1rem 0rem;
        font-size: 0.9rem;
        width: 100%;
        border-radius: 40px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .products-hero {
        padding: 2.5rem 0.8rem 3.5rem;
    }

    .products-title {
        font-size: 2rem;
    }

    .products-title::after {
        font-size: 1.4rem;
        margin-top: 8px;
    }

    .products-subtitle {
        font-size: 0.95rem;
        padding: 12px 16px;
        border-radius: 18px;
    }

    .products-container {
        padding: 2.5rem 0.8rem;
    }

    .products-container::before {
        width: 60px;
    }

    .products-grid {
        gap: 1.8rem;
    }

    .products-card {
        border-radius: 28px;
        box-shadow:
            12px 12px 30px rgba(211, 84, 0, 0.1),
            -8px -8px 25px rgba(255, 255, 255, 0.9),
            inset 2px 2px 6px rgba(255, 255, 255, 1);
    }

    .products-image-wrapper {
        height: 200px;
        padding: 8px;
    }

    .products-img {
        border-radius: 20px;
    }

    .products-content {
        padding: 1.4rem 1.3rem 1.8rem;
    }

    .products-name {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
    }

    .products-desc {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .products-price {
        font-size: 1.2rem;
        padding: 7px 14px;
        margin-bottom: 1rem;
    }

    .products-features {
        margin-bottom: 1.5rem;
    }

    .products-features li {
        padding: 7px 10px 7px 38px;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .products-features li::before {
        width: 18px;
        height: 18px;
        font-size: 9px;
        left: 8px;
    }

    .products-btn {
        padding: 1rem 0rem;
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        border-width: 2px;
    }

    .products-btn::after {
        font-size: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .products-hero {
        padding: 2rem 0.6rem 3rem;
    }

    .products-title {
        font-size: 1.75rem;
    }

    .products-title::after {
        font-size: 1.2rem;
    }

    .products-subtitle {
        font-size: 0.88rem;
        padding: 10px 14px;
    }

    .products-container {
        padding: 2rem 0.6rem;
    }

    .products-grid {
        gap: 1.5rem;
    }

    .products-card {
        border-radius: 24px;
    }

    .products-image-wrapper {
        height: 180px;
        padding: 6px;
    }

    .products-img {
        border-radius: 18px;
    }

    .products-content {
        padding: 1.2rem 1.1rem 1.5rem;
    }

    .products-name {
        font-size: 1.05rem;
    }

    .products-desc {
        font-size: 0.82rem;
    }

    .products-price {
        font-size: 1.1rem;
        padding: 6px 12px;
    }

    .products-features li {
        padding: 6px 8px 6px 35px;
        font-size: 0.8rem;
    }

    .products-features li::before {
        width: 16px;
        height: 16px;
        font-size: 8px;
        left: 6px;
    }

    .products-btn {
        padding: 0.9rem 0rem;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .products-hero {
        padding: 2rem 2rem 2.5rem;
    }

    .products-title {
        font-size: 2.2rem;
    }

    .products-subtitle {
        padding: 12px 20px;
    }

    .products-container {
        padding: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .products-card {
        max-width: none;
    }

    .products-image-wrapper {
        height: 180px;
    }

    .products-content {
        padding: 1.3rem 1.5rem 1.5rem;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}