/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff; /* Switched to white for the boutique look */
    color: #333;
    padding-top: 60px;
    letter-spacing: 0.5px;
    overflow-x: hidden;
}

/* Navbar Logic */
.gap-nav {
    background: white;
    border-bottom: 1px solid #eeeeee;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand-centered {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 4px;
    text-decoration: none;
    color: #000 !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link-gap {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    color: #000 !important;
    padding: 0 15px;
    text-decoration: none;
}

.nav-icon-link {
    color: #000;
    font-size: 1.2rem;
    margin-left: 20px;
    text-decoration: none;
}

.cart-count {
    font-size: 0.9rem;
    font-weight: bold;
}

/* Mobile Navbar Logic */
@media (max-width: 991px) {
    .navbar-brand-centered {
        position: static;
        transform: none;
        margin-right: auto;
    }
}

.hamburger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: black;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1100;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .nav-links li {
        margin: 15px 0;
    }
}


/* Fix for the "Tucked too close" feeling */
.custom-grid {
    padding: 0 6vw; /* More breathing room on the edges of the TV */
}

.product-img {
    width: 100%;
    height: 100%;
    
    /* THE FIX: 'contain' ensures the WHOLE photo is visible inside the box */
    /* If the watch is wide, it shrinks to fit, and the remaining space shows the grey background */
    object-fit: contain; 
    
    object-position: center; /* Keeps the product centered */
    transition: opacity 0.3s ease; /* No zoom, just a generic smoothness */
}

/* The "Window" for the photo */
/* The Container (Frame) */
.product-img-container {
    width: 100%;
    aspect-ratio: 3 / 4; /* Maintains consistent portrait tiles */
    border-radius: 8px; /* Inner rounding */
    overflow: hidden; /* NOTHING escapes this box */
    background-color: #f9f9f9; /* Subtle background defined against the white card */
    position: relative;
    padding: 10px; /* Internal breathing room for the photo */
}

/* Final cleanup for the mobile grid */
.card-body {
    padding: 15px 5px !important;
}

/* Hover Zoom effect - now stays inside the "cropped" container */
/* Zoom stays trapped inside the product-img-container */
/* Removed hover state zoom entirely */
.card:hover .product-img {
    transform: none !important; 
    opacity: 0.8; /* Still gives feedback, just less aggressive */
}

/* Base state lift is good, but keep it minimal */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.card-title {
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700 !important;
    color: #000;
}

.btn-dark {
    background: #000 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 15px !important;
    font-size: 0.8rem !important;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Keeping Original Button Classes but Styling Monochrome */
.btn-dark, .addToCart {
    background: #000 !important;
    color: white !important;
    border-radius: 0 !important;
    padding: 12px 15px !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    font-weight: bold;
    letter-spacing: 1px;
    border: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-dark:hover, .addToCart:hover {
    background-color: #333 !important;
}

.btn-outline-secondary {
    border: none !important;
    font-size: 0.7rem !important;
    text-transform: uppercase;
    color: #888 !important;
    background: transparent !important;
}

.btn-outline-secondary:hover {
    color: #000 !important;
}

/* Footer Styling */
footer {
    background-color: white !important;
    color: #000 !important;
    border-top: 1px solid #eee;
    padding: 60px 0 !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Fluid Container for TV Screens */
.container-fluid.custom-grid {
    padding: 0 4vw; /* Dynamic padding based on screen width */
    max-width: 100%;
}

/* Removed all hover:transform and hover:background-color states */
.card.border-0 {
    background: #ffffff !important; /* Pure white looks cleaner for contained images */
    border-radius: 12px !important;
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    
    /* Double-down on unbreakability */
    overflow: hidden; 
    border: 1px solid #eeeeee !important; /* Slight border adds necessary definition */
    
    /* Smooth lift only, no other effects */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}