/* Custom styling for product detail pages using Bootstrap */

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, #f75757, #dd0b0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.product-hero {
    position: relative;
    background: linear-gradient(-45deg, #f8f9fa, #e9ecef, #ffffff, #f1f3f5);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 120px 0 80px;
    border-bottom: none;
    overflow: hidden;
}

/* Subtle background blobs for hero */
.product-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(247, 87, 87, 0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.product-hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 50%;
    height: 70%;
    background: radial-gradient(circle, rgba(221, 11, 11, 0.06) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.product-hero .container {
    position: relative;
    z-index: 1;
}

.product-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -1px;
}

.product-hero p.lead {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.8;
}

.product-detail-section {
    padding: 100px 0;
}

/* Image Wrappers */
.product-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08), 0 10px 20px rgba(0,0,0,0.04);
    margin-bottom: 30px;
    transform: translateZ(0); /* Hardware acceleration */
}

.hero-image-animate {
    animation: float 6s ease-in-out infinite;
}

.product-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.product-image-wrapper:hover img {
    transform: scale(1.02);
}

/* Feature List */
.product-feature-list {
    list-style: none;
    padding: 0;
}

.product-feature-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    font-size: 1.15rem;
    color: #444;
    line-height: 1.6;
}

.product-feature-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    background: linear-gradient(135deg, #f75757, #ff7f7f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.3rem;
}

/* Feature Cards */
.product-feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.product-feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f75757, #dd0b0b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-feature-card:hover::before {
    transform: scaleX(1);
}

.product-feature-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, rgba(247, 87, 87, 0.1), rgba(221, 11, 11, 0.1));
    color: #f75757;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2.2rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.product-feature-card:hover .product-feature-icon {
    background: linear-gradient(135deg, #f75757, #dd0b0b);
    color: #fff;
    transform: rotateY(15deg) scale(1.05);
}

.product-feature-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.product-feature-card p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.7;
}

/* CTA Section */
.cta-section-product {
    background: linear-gradient(135deg, #dd0b0b, #f75757, #b30000);
    background-size: 200% 200%;
    animation: gradientBG 10s ease infinite;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.5;
}

.cta-section-product .container {
    position: relative;
    z-index: 1;
}

.cta-section-product h2 {
    color: #fff;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section-product p.lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-section-product .btn-light {
    color: #f75757;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: none;
}

.cta-section-product .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    color: #dd0b0b;
}

/* Custom Buttons */
.btn-gradient {
    background: linear-gradient(135deg, #f75757, #dd0b0b);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(247, 87, 87, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #dd0b0b, #b30000);
    color: white;
    box-shadow: 0 6px 20px rgba(247, 87, 87, 0.4);
    transform: translateY(-2px);
}
