/* HEADER BACKGROUND */
.product-hero {
    padding: 80px 15px 5px;
    background: radial-gradient(circle at top, #0b0f2a, #050816);
    text-align: center;
}
@media (max-width: 768px) {
    .product-hero {
        padding: 50px 15px 5px; /* 🔥 top reduce */
    }
}
/* TITLE */
.product-title {
    font-size: clamp(26px, 6vw, 48px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}

/* GOLD TEXT */
.product-title span {
    background: linear-gradient(90deg, #f7e27a, #c7af26);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 12px rgba(247, 226, 122, 0.4);
}

/* SUBTITLE */
.product-subtitle {
    color: #bbb;
    font-size: clamp(14px, 3.5vw, 18px);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}
/* PRODUCT TITLE STYLISH */
.product-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: #f5f5f5;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-bottom: 6px;
    /* subtle gradient glow */
    background: linear-gradient(90deg, #FFD700, #fff, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

/* 🔥 HOVER EFFECT */
.product-card:hover .card-title {
    letter-spacing: 1px;
}

/* OPTIONAL: 2 line clamp (clean UI) */
.product-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 768px) {
    .product-card .card-title {
        font-size: 13px;
    }
}
.product-card{
    position: relative;
    background: #0b0b1a;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: box-shadow 0.3s ease;
    z-index: 1;
    will-change: transform;
}

/* Glow */
.product-card::before{
    content:"";
    position:absolute;
    inset: 0; /* 🔥 FULL CARD COVER */
    opacity: 0;
    transition: 0.4s;
    z-index: -1;
    pointer-events: none;
}

/* Hover glow */
.product-card:hover::before{
    opacity: 1;
}

/* FLOAT ONLY (NO transform conflict) */
.product-card:hover{
    animation: floatSmooth 2.5s ease-in-out infinite;
    box-shadow: 0 15px 35px rgba(199,175,38,0.2);
}

@keyframes floatSmooth{
    0%{ transform: translateY(0px); }
    50%{ transform: translateY(-6px); }
    100%{ transform: translateY(0px); }
}

/* Content above glow */
.product-card > *{
    position: relative;
    z-index: 2;
}
.cart-bounce {
    animation: bounce 0.3s;
}

@keyframes bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
/* BADGE BASE */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff0000, #ff4d4d);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 0 10px rgba(255,0,0,0.5);
}

/* GOLD BORDER GLOW */
.discount-badge::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(45deg, gold, orange, gold);
    z-index: -1;
    filter: blur(6px);
    opacity: 0.6;
}

/* ANIMATION (pulse) */
.discount-badge {
    animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@media (max-width: 576px) {
    .discount-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}
/* 🔥 COMMON BUTTON STYLE */
.premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;

    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);

    transition: all 0.3s ease;
    text-decoration: none;
}
.view-btn {
    background: linear-gradient(135deg, #1a1f2b, #0d1117);
    color: #4da3ff;
    border: 1px solid rgba(77,163,255,0.3);
}

/* hover */
.view-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #4da3ff, #1f6feb);
    box-shadow: 0 0 12px rgba(77,163,255,0.6);
    transform: translateY(-2px);
}
.view-btn {
    background: linear-gradient(135deg, #1a1f2b, #0d1117);
    color: #4da3ff;
    border: 1px solid rgba(77,163,255,0.3);
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #1a1a1a, #000);
    color: #FFD700;
    border: 1px solid rgba(255,215,0,0.4);
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #000;
    box-shadow: 0 0 15px rgba(255,215,0,0.7);
    transform: translateY(-2px);
}
/* PRODUCT IMAGE FIX */
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 🔥 square fix */
    object-fit: cover;
    object-position: center;
    height: 200px;
}

@media (max-width: 576px) {
    .product-card img {
        height: 100px;
    }
}

/*-------------------product details page css--------------------*/
/* WRAPPER */
.product-detail-wrapper {
    position: relative;
}

/* IMAGE BOX */
.product-image-box {
    background: #0b0b1a;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(199,175,38,0.15);
    position: relative;
    overflow: hidden;
}

/* IMAGE */
.product-main-img {
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.product-image-box:hover .product-main-img {
    transform: scale(1.05);
}

/* CARD */
.product-detail-card {
    background: #0b0b1a;
    box-shadow: 0 10px 40px rgba(199,175,38,0.15);
    max-width: 480px;     /* 🔥 card chota */
    margin-left: auto;    /* right side align */
    padding: 25px;        /* padding kam */
    border-radius: 16px;
}

/* NAME */
.product-name {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

/* PRICE */
.price-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #888;
}

.new-price {
    color: gold;
    font-size: 20px;
    font-weight: bold;
}

.save-badge {
    background: linear-gradient(45deg, gold, orange);
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* STOCK */
.stock {
    font-weight: 500;
}

.in-stock {
    color: #28a745;
}

.out-stock {
    color: #dc3545;
}

/* DESCRIPTION */
.product-desc {
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}

/* BUTTON */
.premium-cart-btn {
    background: linear-gradient(45deg, gold, orange);
    border: none;
    color: #000;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.premium-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,215,0,0.4);
}
/* IMAGE BOX */
.product-image-box {
    width: 100%;
    max-width: 460px;
    height: 420px;          /* 🔥 FIXED HEIGHT */
    margin: auto;
    padding: 0;             /* ❌ padding hatao (gap ka main reason) */
    border-radius: 16px;
    overflow: hidden;       /* 🔥 important */
    background: #0b0b1a;
}
.product-image-box:hover img {
    transform: scale(1.05);
    transition: 0.4s;
}
/* IMAGE */
.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* 🔥 FULL COVER (no gap) */
    display: block;
}
@media (max-width: 768px) {
    .product-detail-wrapper {
        text-align: center;
    }
    .product-image-box {
        max-width: 100%;
    }
    .product-main-img {
        height: 420px;
    }
    .product-detail-card {
        max-width: 100%;
        margin: 20px auto 0;
        padding: 20px;
    }
    .product-name {
        font-size: 17px;
    }
    .new-price {
        font-size: 18px;
    }
    .product-desc {
        font-size: 13px;
    }
    .premium-cart-btn {
        width: 100%; /* full width button mobile */
    }
}
.product-detail-row {
    --bs-gutter-x: 10px; /* default 30px hota hai, isko kam kar diya */
    align-items: center;
}
@media (max-width: 576px) {

    .premium-btn {
        padding: 5px 8px;
        font-size: 11px;
        border-radius: 20px;
    }

    .add-to-cart-btn {
        padding: 5px 8px;
    }

    .product-card .d-flex {
        justify-content: space-between;
    }
}
/* SEARCH BOX */
.search-box {
    max-width: 500px;
    margin: auto;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    padding: 5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    padding-left: 15px;
}

.search-input::placeholder {
    color: #aaa;
}

.search-input:focus {
    background: transparent !important;
    color: #fff;
    box-shadow: none;
    outline: none;
}
.search-btn {
    background: linear-gradient(90deg, #f7e27a, #c7af26);
    border-radius: 50px;
    padding: 8px 20px;
    color: #000;
    font-weight: 600;
}
.search-box:focus-within {
    border: 1px solid gold;
    box-shadow: 0 0 15px rgba(255,215,0,0.4);
}