/* responsive-cards.css */

/* ==== Product & Brand Card Base Styles ==== */
.brand-card {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    width: 150px;
    height:150px;
    transition: all 0.3s cubic-bezier(.22,.69,.72,1.17);
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

/* ==== Card Content ==== */
.product-details, .brand-card {
    box-sizing: border-box;
    padding: 2em 1.5em;
}

.product-details h3, .brand-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8em;
    text-align: center;
    color: #fff;
    letter-spacing: -.5px;
}
.price {
    color: #667eea;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.specs span {
    color: rgba(255,255,255,0.75);
}
.buy-now {
    display: block;
    margin: 0.6em auto 0 auto;
    min-width: 120px;
    font-size: 1em;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.product-image, .brand-logo {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-image img, .brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    background-color: #fff;
    height: 100%;
    transition: transform 0.3s;
}
.product-card:hover .product-image img,
.brand-card:hover .brand-logo img {
    transform: scale(1.05);
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.brand-tags span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.81rem;
    margin-bottom: 2px;
}

/* ==== Grid Layouts ==== */

.products-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}
.brands-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2rem;
    padding: 2rem;
}


/* Large screens */
@media (min-width: 1600px) {
    .products-grid, .brands-container { gap: 3rem; }
    .product-card, .brand-card { max-width: 480px; }
    
    
    
}

/* Tablets (landscape, 900px–1200px) */
@media (max-width: 1200px) {
    .products-grid{ grid-template-columns: repeat(3,1fr); }
    .brands-container { grid-template-columns: repeat(5,1fr); }
    
    .product-card, .brand-card { max-width: 420px; }
}

/* Tablet portrait (600px–900px) */
@media (max-width: 900px) {
    .products-grid, .brands-container {
        grid-template-columns: repeat(2,1fr);
        gap: 1.5rem;
    }
    .brands-container {
        grid-template-columns: repeat(3,1fr);
        gap: 1.5rem;
    }
    .contact-container {
    display: flex
;
    flex-direction: column;
    gap: 60px;
    align-items: start;
}
}

/* Mobile up to 600px */
@media (max-width: 600px) {
    .products-grid { grid-template-columns:repeat(1,1fr); }
    .brands-container { grid-template-columns:repeat(2,1fr); }
    .product-card, .brand-card { max-width: 98vw; border-radius: 16px; }
    
    .product-details, .brand-card {
        padding: 1.2em 1em;
    }
    .brand-tags span {
        font-size: 0.96rem;
        padding: 0.32rem 0.7rem;
    }
}

/* Extra small and narrow screens */
@media (max-width: 400px) {
    .products-grid, .brands-container { gap: 1rem; grid-template-columns:repeat(1,1fr); }
    .product-card, .brand-card {
        max-width: 98vw;
        border-radius: 9px;
    }
    
    .product-details, .brand-card { padding: 0.6em 0.4em; }
    .product-details h3, .brand-card h3 { font-size: 0.98em; }
    .buy-now, .brand-tags span {
        font-size: 0.85em;
        padding: 0.65em 1.1em;
    }
}

/* Center content cleanly at all widths */
@media (max-width: 600px) {
    
    .products-grid,
    .brands-container { justify-items: center; }
    .product-card,
    .brand-card { margin: 0 auto; }
    .product-details, .brand-card { text-align: center; }
    .specs { justify-content: center; }
    .buy-now { margin: 0.7em auto 0 auto; }
}

