/* css for products */
/* =========================
   PRODUCTS SECTION
========================= */
.products-section {
    padding: 60px 16px;
    text-align: center;
    /* center all content inside section */
}

/* =========================
   GRID LAYOUT
========================= */
.products-container {
    display: grid;
    grid-template-columns: 1fr;
    /* mobile first */
    gap: 20px;
}

/* =========================
   PRODUCT CARD BASE STYLE
========================= */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* hover lift effect */
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* =========================
   PRODUCT IMAGE
========================= */
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* =========================
   PRODUCT TEXT
========================= */
.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    padding: 12px 14px 6px;
    text-align: center;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #d4af37;
    /* gold theme */
    text-align: center;
    margin-bottom: 12px;
}

/* =========================
   ADD TO CART BUTTON
========================= */
.add-to-cart-btn {
    display: block;
    width: 85%;
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 10px;
    background: #d4af37;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart-btn:hover {
    background: #b8962e;
    transform: translateY(-2px);
}

/* =========================
   SECTION TITLE
========================= */
.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #222;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

/* underline under title */
.section-title::after {
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    background: #d4af37;
    margin: 8px auto 0;
    border-radius: 10px;
}

/* =========================
   DETAILS BUTTON
========================= */
.details-btn {
    display: block;
    width: 85%;
    margin: 0 auto 10px;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #d4af37;
    color: #d4af37;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.details-btn:hover {
    background: #d4af37;
    color: #fff;
    transform: translateY(-2px);
}


/* =========================
   GOLD BORDER + GLOW
========================= */

/* basic gold border */
.product-card {
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    transition: 0.3s;
}

/* hover gold glow */
.product-card:hover {
    border-color: #d4af37;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* positioning for premium line */
.product-card {
    position: relative;
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.4);
}

/* premium gold top line */
.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f5e6a3, #d4af37);
}

/* ========== Error Box ========== */
.error-Box {
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    background-color: #fff;
    color: #c0392b;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.error-Box h3 {
    margin: 0;
    font-size: 1.1rem;
}

.divider {
    border: none;
    height: 1px;
    background: linear-gradient(to left, transparent, #ddd, transparent);
    margin: 20px 0;
}

/* =========================
   RESPONSIVE - LARGE DESKTOP
========================= */
@media (min-width: 1200px) {
    .products-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-card img {
        height: 280px;
    }
}

/* =========================
   RESPONSIVE - TABLET
========================= */
@media (min-width: 600px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card img {
        height: 240px;
    }
}

/* =========================
   RESPONSIVE - SMALL DESKTOP
========================= */
@media (min-width: 900px) {
    .products-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-card img {
        height: 260px;
    }
}