/* LETTERS PAGE SPECIFIC STYLES */

/* Letters Grid Thumbnails */
.letters-grid .thumbnail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    margin: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Mobile Optimizations for Letters Page */
@media only screen and (max-width: 1140px) {
    .letters-grid .thumbnail-item {
        padding: clamp(10px, 3vw, 20px) !important;
        margin: clamp(5px, 1.5vw, 10px) !important;
        border-radius: clamp(8px, 2vw, 12px) !important;
    }
    
    .letters-grid .thumbnail-container {
        width: clamp(80px, 20vw, 120px) !important;
        height: clamp(80px, 20vw, 120px) !important;
        margin-bottom: clamp(8px, 2vw, 12px) !important;
    }
    
    .letters-grid .thumbnail-name {
        font-size: clamp(12px, 3vw, 16px) !important;
        line-height: 1.3 !important;
        margin-top: clamp(5px, 1.5vw, 10px) !important;
    }
}

.letters-grid .thumbnail-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(230, 13, 46, 0.2);
    border: 2px solid rgba(230, 13, 46, 0.6);
    background: linear-gradient(135deg, rgba(230, 13, 46, 0.1), rgba(230, 13, 46, 0.05));
}

.letters-grid .thumbnail-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.letters-grid .thumbnail-container {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 6px 20px rgba(230, 13, 46, 0.15);
}

.letters-grid .main-product-main-image img {
    width: 100%;
    aspect-ratio: 1.5;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Responsive Image Sizing */
@media (max-width: 1024px) {
    .letters-grid .main-product-main-image img {
        aspect-ratio: 1.5;
    }
}

@media (max-width: 768px) {
    .letters-grid .main-product-img {
        aspect-ratio: 1;
    }
}

@media (max-width: 480px) {
    .letters-grid .main-product-img {
        aspect-ratio: 1;
    }
}

/* Removed hover effects */

.letters-grid .thumbnail-container img {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: saturate(1.2);
    box-sizing: border-box !important;
}

.letters-grid .thumbnail-name {
    margin-top: 15px;
    text-align: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 21.6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Standardized Product Details */
.product-category {
    color: #dd1717;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.3;
}

.product-description {
    color: #b8c5d1;
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.7;
}

.enquiry-button {
    display: inline-block;
    background-color: #dd1717;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.enquiry-button:hover {
    background-color: #c50a26;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 13, 46, 0.3);
    opacity: 0.9;
}
