/* Product Card Section with Electric Border Effect */

/* CSS Variables */
:root {
    --electric-border-color: #ffffff;
    --electric-light-color: oklch(from var(--electric-border-color) l c h);
    --gradient-color: oklch(from var(--electric-border-color) 0.3 calc(c / 2) h / 0.4);
    --color-neutral-900: #1070be;
}

/* Product Section Wrapper */
.product-section {
    padding: 80px 20px;
    background-color: oklch(0.145 0 0);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-section-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 60px;
    text-align: center;
    color: oklch(0.985 0 0);
}

.product-section-title span {
    color: var(--electric-border-color);
    font-style: italic;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    width: 100%;
    padding: 20px;
}

/* SVG positioning */
.svg-container {
    position: absolute;
    width: 0;
    height: 0;
}

/* Product Card container */
.product-card-container {
    padding: 2px;
    border-radius: 24px;
    position: relative;
    background: linear-gradient(-30deg,
            var(--gradient-color),
            transparent,
            var(--gradient-color)),
        linear-gradient(to bottom,
            var(--color-neutral-900),
            var(--color-neutral-900));
    transition: transform 0.3s ease;
}

/* .product-card-container:hover {
    transform: translateY(1px);
} */

/* Inner container */
.product-inner-container {
    position: relative;
}

/* Border layers */
.product-border-outer {
    border: 2px solid rgba(221, 132, 72, 0.5);
    border-radius: 24px;
    padding-right: 4px;
    padding-bottom: 4px;
}

.product-main-card {
    width: 100%;
    min-height: 580px;
    border-radius: 24px;
    border: 2px solid var(--electric-border-color);
    margin-top: -4px;
    margin-left: -4px;
    filter: url(#turbulent-displace);
    background: linear-gradient(to bottom,
            rgba(221, 132, 72, 0.05),
            transparent);
}

/* Glow effects */
.product-glow-layer-1 {
    border: 2px solid rgba(221, 132, 72, 0.6);
    border-radius: 24px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    filter: blur(1px);
    pointer-events: none;
}

.product-glow-layer-2 {
    border: 2px solid var(--electric-light-color);
    border-radius: 24px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    filter: blur(4px);
    pointer-events: none;
}

/* Overlay effects */
.product-overlay-1 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    opacity: 1;
    mix-blend-mode: overlay;
    transform: scale(1.1);
    filter: blur(16px);
    background: linear-gradient(-30deg,
            white,
            transparent 30%,
            transparent 70%,
            white);
    pointer-events: none;
}

.product-overlay-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    opacity: 0.5;
    mix-blend-mode: overlay;
    transform: scale(1.1);
    filter: blur(16px);
    background: linear-gradient(-30deg,
            white,
            transparent 30%,
            transparent 70%,
            white);
    pointer-events: none;
}

/* Background glow */
.product-background-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    filter: blur(32px);
    transform: scale(1.1);
    opacity: 0.3;
    z-index: -1;
    background: linear-gradient(-30deg,
            var(--electric-light-color),
            transparent,
            var(--electric-border-color));
    pointer-events: none;
}

/* Content container */
.product-content-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 40px 20px 40px;
    z-index: 10;
}

/* Product Image */
.product-image-wrapper {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.05),
            transparent);
}

.product-image-wrapper img {
    max-height: 120px;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.product-card-container:hover .product-image-wrapper img {
    transform: scale(1.05);
}

/* Product Badge */
.product-badge {
    background: radial-gradient(47.2% 50% at 50.39% 88.37%,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0) 100%),
        rgba(255, 255, 255, 0.04);
    position: relative;
    transition: background 0.3s ease;
    border-radius: 14px;
    width: fit-content;
    height: fit-content;
    padding: 8px 16px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.product-badge:hover {
    background: radial-gradient(47.2% 50% at 50.39% 88.37%,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0) 100%),
        rgba(255, 255, 255, 0.08);
}

.product-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1px;
    background: linear-gradient(150deg,
            rgba(255, 255, 255, 0.48) 16.73%,
            rgba(255, 255, 255, 0.08) 30.2%,
            rgba(255, 255, 255, 0.08) 68.2%,
            rgba(255, 255, 255, 0.6) 81.89%);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

/* Product Details */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #fff !important;
}

.product-description {
    opacity: 0.7;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #fff !important;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--electric-border-color);
    margin: 0;
    color: #fff !important;
}

.product-price-label {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 4px;
    display: block;
    color: #fff !important;
}

/* Product Divider */
.product-divider {
    margin: 20px 0;
    border: none;
    height: 1px;
    background-color: currentColor;
    opacity: 0.1;
    mask-image: linear-gradient(to right, transparent, rgb(246, 246, 246), transparent);
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            rgb(255, 255, 255),
            transparent);
}

/* Product Button */
.product-button {
    padding: 14px 32px;
    border-radius: 12px;
    border: 2px solid var(--electric-border-color);
    background: linear-gradient(135deg,
            rgba(221, 132, 72, 0.2),
            rgba(221, 132, 72, 0.1));
    color: oklch(0.985 0 0);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.product-button:hover {
    background: linear-gradient(135deg,
            rgba(221, 132, 72, 0.4),
            rgba(221, 132, 72, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(221, 132, 72, 0.3);
}

.product-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.product-button:hover::before {
    width: 300px;
    height: 300px;
}

.product-button span {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .product-content-container {
        padding: 30px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .product-section {
        padding: 60px 15px;
    }

    .product-section-title {
        font-size: 28px;
    }

    .product-content-container {
        padding: 24px;
    }

    .product-main-card {
        min-height: 450px;
    }
}