/* ==================================================
   Product Gallery Section Styles (Home Page)
   ================================================== */
.pg-section {
    padding: 50px 0;
    background-color: #0B081D;
    font-family: 'Poppins', sans-serif;
}

/* Header */
.pg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.pg-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

.pg-title span { color: #f87171; } /* Red highlight */

.pg-view-all {
    color: #f87171;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.pg-view-all:hover { color: #ef4444; }

/* Grid (4 Columns) */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card Design */
.pg-card {
    background: #16122b;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    border-color: rgba(248, 113, 113, 0.3);
}

/* Square Image Box */
.pg-img-box {
    background: #ffffff;
    border-radius: 6px;
    width: 100%;
    aspect-ratio: 1 / 1; /* নিখুঁত স্কয়ার শেপ */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.pg-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.4s ease;
}

.pg-card:hover .pg-img-box img {
    transform: scale(1.08); /* হোভার জুম ইফেক্ট */
}

/* Content */
.pg-title-link {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.3s;
}

.pg-title-link:hover { color: #f87171; }

.pg-price {
    font-size: 16px;
    font-weight: 700;
    color: #f87171;
    margin-bottom: 15px;
}

/* Buttons (Add to Cart & Buy Now) */
.pg-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.pg-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-cart {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #1e293b;
}

.btn-cart:hover {
    background: #1e293b;
    border-color: #334155;
}

.btn-buy {
    background: #ef4444; /* লাল রঙ */
    color: #ffffff;
    border: 1px solid #ef4444;
}

.btn-buy:hover {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Responsive */
@media (max-width: 1024px) { .pg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .pg-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .pg-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}
@media (max-width: 480px) {
    .pg-grid { grid-template-columns: repeat(1, 1fr); } /* মোবাইলে সিঙ্গেল কলাম */
    .pg-buttons { flex-direction: column; }
}