/* ====================================================
   PREMIUM PRODUCT CARD - UNIFIED & CINEMATIC
   Standardized 4:5 Aspect Ratio with Cinematic Pan Animation
==================================================== */
.premium-product-card {
    background: white;
    border: none;
    border-radius: 0;
    /* Sharp corners for luxury feel */
    position: relative;
    padding-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Soft elevated shadow */
    z-index: 2;
}

/* Image Container - Fixed 1:1 Aspect Ratio (Square) */
.premium-card-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* Square Aspect Ratio */
    overflow: hidden;
    background: #fff;
    /* White background looks cleaner */
    margin-bottom: 12px;
    /* Reduced from 20px */
    display: block;
    /* Ensure it behaves as a block */
}

/* CINEMATIC PAN ANIMATION SETUP & HOVER IMG */
.premium-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Changed back to cover as per user request to fill whole card */
    transition: transform 0.5s ease, opacity 0.4s ease-in-out;
    transform-origin: center center;
}

.premium-card-image .hover-img {
    opacity: 0;
    z-index: 2;
}

.premium-product-card:hover .premium-card-image .hover-img {
    opacity: 1;
}

/* CINEMATIC PAN HOVER EFFECT */
.premium-product-card:hover .premium-card-image img {
    transform: scale(1.05);
    /* Slight zoom only */
}

/* Badges */
.premium-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    border-radius: 0;
}

.premium-badge.sale {
    background: #000;
    color: white;
}

.sale-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Content Stying */
.premium-card-content {
    text-align: center;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center everything */
}

.premium-card-category {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 500;
    margin-top: 5px;
}

.premium-card-title {
    font-family: 'Playfair Display', serif;
    /* Serif font as per screenshot */
    font-size: 17px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
    /* ~22px per line */
    letter-spacing: 0px;
    text-transform: none;
    /* Sentence case/Capitalize */
    max-width: 90%;

    /* Strict Height Enforcement for Alignment */
    height: 45px;
    /* Exactly 2 lines (22px * 2 + wiggle room) */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.premium-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.premium-card-title a:hover {
    color: #000;
}

.premium-card-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    /* Big price as per screenshot */
    font-weight: 800;
    /* Extra bold */
    color: #cc3333;
    /* Darker red */
    margin-top: auto;
    /* Push to bottom of content area */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 5px;
    padding-top: 10px;
    /* Separation from title */
}

/* Ensure actions stay at the bottom too */
.premium-card-actions {
    margin-top: 0;
    margin-bottom: 0;
}

.premium-card-price del {
    color: #ccc;
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
}

.premium-card-price span {
    color: #cc3333;
}

.premium-card-price .sale-price {
    color: #cc3333;
    font-size: 20px;
    font-weight: 800;
}

/* Action Overlay / Buttons */
.premium-card-actions {
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
    /* Slight delay */
    display: flex;
    justify-content: center;
    gap: 10px;
}

.premium-product-card:hover .premium-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-premium-action {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 10px 20px;
    /* Matches btn-black */
    font-size: 12px;
    /* increased from 11px to be legible with larger padding */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 0;
    /* Sharp corners */
}

.btn-premium-action:hover {
    background: #fff;
    color: #000;
    border-color: #000;
}

.btn-premium-outline {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-premium-outline:hover {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: white;
}

/* Variant Thumbs within Card */
.premium-variant-thumbs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 25px;
    /* Conserve space */
}

.premium-variant-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    /* Circle swatches */
    border: 1px solid #ddd;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.premium-variant-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-variant-thumb:hover {
    transform: scale(1.1);
    border-color: #1a1a1a;
}

/* ====================================================
   UNIFIED GRID LAYOUTS
   Responsive Grids for Homepage, Products, Catalogue
==================================================== */
.longines-product-grid,
.products-grid,
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    width: 100%;
}

@media (max-width: 1200px) {

    /* Slightly smaller constraint for laptop screens */
    .longines-product-grid,
    .products-grid,
    .premium-grid {
        gap: 20px;
    }
}

@media (max-width: 576px) {

    /* Mobile: 2 Columns with tighter gaps */
    .longines-product-grid,
    .products-grid,
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .premium-product-card {
        padding-bottom: 15px;
        /* Compact padding */
    }

    .premium-card-title {
        font-size: 14px;
        /* Smaller title */
    }

    .premium-card-price {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .btn-premium-action {
        padding: 8px 12px;
        font-size: 10px;
        min-width: auto;
        width: 100%;
        /* Full width button on mobile */
    }

    .premium-card-actions {
        opacity: 1;
        /* Always visible on mobile, no hover capability */
        transform: translateY(0);
        margin-top: 5px;
    }
}