/* 
   Dirty Paws Luxury Dog Shampoo
   Product Bottle Styling
*/

/* Bottle Container Base Styles */
.bottle-container {
    position: relative;
    width: 200px;
    height: 300px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.bottle-container:hover {
    transform: translateY(-5px);
}

/* Base Bottle Styling */
.bottle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 260px;
    border-radius: 15px 15px 60px 60px;
    background: #fff; /* Default bottle color, will be overridden */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.bottle:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Bottle Cap Styling */
.bottle-cap {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    border-radius: 10px 10px 0 0;
    background: #444;
    z-index: 2;
    transition: all 0.3s ease;
}

.bottle:hover + .bottle-cap {
    transform: translateX(-50%) translateY(-3px);
}

/* Bottle Neck */
.bottle-neck {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 40px;
    background: inherit; /* Takes the same color as the bottle */
    border-radius: 10px 10px 0 0;
    z-index: 1;
}

/* Bottle Label */
.bottle-label {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 120px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    z-index: 2;
}

.bottle-label h3 {
    font-size: 14px;
    margin-bottom: 5px;
    font-family: var(--heading-font);
}

.bottle-label p {
    font-size: 12px;
    margin-bottom: 5px;
    font-family: var(--body-font);
}

.scent-small {
    display: flex;
    flex-direction: column;
    font-size: 9px;
    margin-top: 5px;
    color: var(--dark-color);
    opacity: 0.8;
}

.scent-small span {
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scent-small i {
    margin-right: 3px;
    color: var(--primary-color);
}

/* Shine Effect */
.bottle::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 10px;
    width: 20px;
    height: 200px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: rotate(30deg);
}

/* Scent Indicators */
.scent-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.scent-indicator i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.8);
}

/* Formula-Specific Bottle Colors */

/* 1. Sensitive Formula - Soft Lavender */
.bottle.sensitive {
    background: linear-gradient(to bottom, #E0D3ED, #B799D6);
    border: 1px solid #D4C4E5;
}

.bottle.sensitive .bottle-label {
    border-left: 3px solid #B799D6;
}

.bottle.sensitive::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 60%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 2L22 6"></path><path d="M2 22L6 18"></path><path d="M8 14L18 4"></path><path d="M8 4L4 8"></path><path d="M4 4L14 14"></path></svg>');
    background-repeat: space;
    opacity: 0.4;
    z-index: 0;
}

/* 2. Shine & Luster Formula - Golden Amber */
.bottle.shine {
    background: linear-gradient(to bottom, #FFD384, #EAAC54);
    border: 1px solid #F5C87C;
}

.bottle.shine .bottle-label {
    border-left: 3px solid #EAAC54;
}

.bottle.shine::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 60%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><path d="M12 1V3"></path><path d="M12 21v-2"></path><path d="M4.2 4.2l1.4 1.4"></path><path d="M18.4 18.4l-1.4-1.4"></path><path d="M1 12h2"></path><path d="M21 12h-2"></path><path d="M4.2 19.8l1.4-1.4"></path><path d="M18.4 5.6l-1.4 1.4"></path></svg>');
    background-repeat: space;
    opacity: 0.4;
    z-index: 0;
}

/* 3. Shedding Control Formula - Sage Green */
.bottle.shedding {
    background: linear-gradient(to bottom, #A9C6B3, #6A8D73);
    border: 1px solid #8EB599;
}

.bottle.shedding .bottle-label {
    border-left: 3px solid #6A8D73;
}

.bottle.shedding::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 60%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line></svg>');
    background-repeat: space;
    opacity: 0.4;
    z-index: 0;
}

/* Bundle Styling */
.bottle-bundle {
    position: relative;
    height: 200px;
    display: flex;
    justify-content: center;
}

/* Floating Animation for Bottles in Bundles */
@keyframes float {
    0% { transform: translateY(0px) rotate(var(--rotate-deg)); }
    50% { transform: translateY(-5px) rotate(var(--rotate-deg)); }
    100% { transform: translateY(0px) rotate(var(--rotate-deg)); }
}

.bottle-bundle .bottle-container {
    --rotate-deg: -5deg;
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

.bottle-bundle .bottle-container:nth-child(2) {
    --rotate-deg: 0deg;
    animation-delay: 0.5s;
}

.bottle-bundle .bottle-container:nth-child(3) {
    --rotate-deg: 5deg;
    animation-delay: 1s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bottle-container {
        width: 150px;
        height: 250px;
    }
    
    .bottle {
        width: 100px;
        height: 220px;
    }
    
    .bottle-cap {
        width: 50px;
        height: 30px;
    }
    
    .bottle-neck {
        width: 60px;
        height: 30px;
    }
    
    .bottle-label {
        width: 85px;
        height: 100px;
        top: 70px;
    }
}
