/*======================================
        SA PRINTING HUB v2.0
======================================*/
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#ffffff;
    color:#111111;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

/*======================================
            TOP BAR
======================================*/

.top-bar{

    background:#D4AF37;

    color:#111;

    padding:10px 0;

    font-size:14px;

    font-weight:600;

}

.top-bar-content{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    flex-wrap:wrap;

}

/*======================================
        SECTION DEFAULT
======================================*/

section{

    padding:90px 0;

}

.section-title{

    text-align:center;

    margin-bottom:60px;

}

.section-title h2{

    font-size:42px;

    margin-bottom:15px;

}

.section-title p{

    color:#666;

    font-size:18px;

}

/*======================================
        BUTTONS
======================================*/

.btn{

    display:inline-block;

    background:#D4AF37;

    color:#111;

    padding:15px 35px;

    border-radius:8px;

    font-weight:600;

    transition:.3s;

}

.btn:hover{

    background:#b8911d;

}

.btn-outline{

    display:inline-block;

    border:2px solid #D4AF37;

    padding:15px 35px;

    border-radius:8px;

    margin-left:15px;

    transition:.3s;

}

.btn-outline:hover{

    background:#D4AF37;

}
/*======================================
            HEADER
======================================*/

.header{

    background:#111111;

    position:sticky;

    top:0;

    z-index:1000;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.nav-container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:85px;

}

.logo{

    color:#ffffff;

    font-size:28px;

    font-weight:800;

}

.logo span{

    color:#D4AF37;

}
.logo img{
    height:70px;
    width:auto;
    display:block;
}

.nav-menu{

    display:flex;

    gap:35px;

}

.nav-menu a{

    color:#ffffff;

    font-weight:500;

    transition:.3s;

}

.nav-menu a:hover,
.nav-menu .active{

    color:#D4AF37;

}

.nav-icons{

    display:flex;

    align-items:center;

    gap:18px;

}

.nav-icons a{

    color:#ffffff;

    transition:.3s;

}

.nav-icons a:hover{

    color:#D4AF37;

}

.whatsapp-btn{

    background:#D4AF37;

    color:#111 !important;

    padding:12px 22px;

    border-radius:8px;

    font-weight:600;

}

.whatsapp-btn:hover{

    transform:translateY(-2px);

}
/*======================================
            HERO SECTION
======================================*/

.hero{

    background:#111;

    color:#fff;

    padding:90px 0;

}

.hero-container{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:60px;

}

.hero-content{

    flex:1;

}

.hero-tag{

    display:inline-block;

    color:#D4AF37;

    font-weight:700;

    letter-spacing:2px;

    margin-bottom:20px;

}

.hero h1{

    font-size:64px;

    line-height:1.1;

    margin-bottom:25px;

}

.hero p{

    color:#ccc;

    font-size:20px;

    line-height:1.8;

    max-width:650px;

    margin-bottom:35px;

}

.hero-buttons{

    display:flex;

    gap:20px;

}

.hero-image{

    flex:1;

    display:flex;

    justify-content:center;

}

.hero-image img{

    width:100%;

    max-width:620px;

    animation:float 4s ease-in-out infinite;

}

@keyframes float{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(-12px);

    }

    100%{

        transform:translateY(0px);

    }

}
/*======================================
        TRUST FEATURES
======================================*/

.features{

    background:#fff;

    padding:35px 0;

    border-bottom:1px solid #eee;

}

.features-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

.feature-box{

    text-align:center;

    padding:20px;

    transition:.3s;

}

.feature-box:hover{

    transform:translateY(-6px);

}

.feature-box i{

    font-size:36px;

    color:#D4AF37;

    margin-bottom:15px;

}

.feature-box h3{

    font-size:20px;

    margin-bottom:10px;

    color:#111;

}

.feature-box p{

    color:#666;

    line-height:1.6;

    font-size:15px;

}
/*======================================
        SHOP BY CATEGORY
======================================*/

.categories{

    padding:90px 0;

    background:#f8f8f8;

}

.category-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:30px;

}

.category-card{

    background:#fff;

    border-radius:15px;

    padding:30px;

    text-align:center;

    transition:.35s;

    box-shadow:0 10px 25px rgba(0,0,0,.06);

}

.category-card:hover{

    transform:translateY(-10px);

    box-shadow:0 15px 35px rgba(0,0,0,.12);

}

.category-card img{

    width:150px;

    height:150px;

    object-fit:contain;

    margin:auto;

    margin-bottom:20px;

}

.category-card h3{

    color:#111;

    font-size:22px;

    font-weight:700;

}

.category-card:hover h3{

    color:#D4AF37;

}
/*======================================
        RESPONSIVE HEADER
======================================*/

.menu-toggle{

    display:none;

    color:#fff;

    font-size:28px;

    cursor:pointer;

}

/* Tablet */

@media(max-width:992px){

    .nav-menu{

        gap:20px;

    }

    .whatsapp-btn{

        display:none;

    }

}

/* Mobile */

@media(max-width:768px){

    .top-bar{

        display:none;

    }

    .menu-toggle{

        display:block;

    }

    .navbar{

        display:none;

    }

    .nav-icons{

        gap:12px;

    }

    .logo img{

        height:50px;

    }

    .hero-container{

        flex-direction:column;

        text-align:center;

    }

    .hero h1{

        font-size:42px;

    }

    .hero p{

        margin:auto;

        margin-bottom:30px;

    }

    .hero-buttons{

        justify-content:center;

        flex-wrap:wrap;

    }

    .features-grid{

        grid-template-columns:1fr;

    }

    .category-grid{

        grid-template-columns:1fr 1fr;

    }

}

/* Small Mobile */

@media(max-width:480px){

    .category-grid{

        grid-template-columns:1fr;

    }

    .hero h1{

        font-size:34px;

    }

    .section-title h2{

        font-size:30px;

    }

}
/*==========================
      HOW IT WORKS
==========================*/

.how-it-works{

    padding:100px 0;

    background:#111;

    color:#fff;

}

.steps-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

    margin-top:60px;

}

.step-card{

    background:#1b1b1b;

    padding:40px 25px;

    border-radius:15px;

    text-align:center;

    transition:.3s;

    border:1px solid #222;

}

.step-card:hover{

    transform:translateY(-10px);

    border-color:#d4af37;

}

.step-icon{

    width:80px;

    height:80px;

    background:#d4af37;

    color:#111;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    margin:auto;

    font-size:30px;

    margin-bottom:25px;

}

.step-card h3{

    margin-bottom:15px;

    font-size:24px;

}

.step-card p{

    color:#bbb;

    line-height:1.8;

}

@media(max-width:992px){

.steps-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:576px){

.steps-grid{

grid-template-columns:1fr;

}

}
.how-it-works .section-title h2{
    color:#ffffff !important;
}

.how-it-works .section-title p{
    color:#cccccc !important;
}

.how-it-works .section-title span{
    color:#D4AF37 !important;
}

.step-card h3{
    color:#ffffff;
}
/*======================================
        WHY CHOOSE US
======================================*/

.why-us{

    background:#ffffff;

    padding:100px 0;

}

.why-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.why-card{

    background:#fff;

    padding:40px 30px;

    text-align:center;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.3s;

}

.why-card:hover{

    transform:translateY(-10px);

}

.why-card i{

    font-size:45px;

    color:#D4AF37;

    margin-bottom:20px;

}

.why-card h3{

    margin-bottom:15px;

    color:#111;

}

.why-card p{

    color:#666;

    line-height:1.7;

}
/*======================================
            SHOP PAGE
======================================*/

.shop-page{

    padding:100px 0;

    background:#f8f8f8;

}

.shop-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:30px;

}

.shop-card{

    background:#fff;

    border-radius:15px;

    padding:25px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.3s;

}

.shop-card:hover{

    transform:translateY(-8px);

}

.shop-card img{

    width:180px;

    height:180px;

    object-fit:contain;

    margin:auto;

}

.shop-card h3{

    margin:20px 0 10px;

}

.shop-card p{

    color:#D4AF37;

    font-weight:600;

    margin-bottom:20px;

}
/*====================================
        CUSTOMIZE PAGE
====================================*/

.customize-page{

padding:100px 0;

background:#f8f8f8;

}

.customize-wrapper{

display:grid;

grid-template-columns:1fr 1fr;

gap:50px;

align-items:start;

}

.customize-form{

background:#fff;

padding:35px;

border-radius:15px;

box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.form-group{

margin-bottom:20px;

}

.form-group label{

display:block;

font-weight:600;

margin-bottom:8px;

}

.form-group input,
.form-group select,
.form-group textarea{

width:100%;

padding:14px;

border:1px solid #ddd;

border-radius:10px;

font-family:Poppins,sans-serif;

font-size:15px;

}

.preview-box{

background:#fff;

padding:35px;

border-radius:15px;

text-align:center;

box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.preview-box img{

width:280px;

margin:auto;

margin-bottom:20px;

}

.preview-box h3{

margin-bottom:15px;

}

@media(max-width:992px){

.customize-wrapper{

grid-template-columns:1fr;

}

}
/*==========================
      PRODUCT PAGE
==========================*/

.product-page{

padding:100px 0;

background:#fff;

}

.product-wrapper{

display:grid;

grid-template-columns:1fr 1fr;

gap:60px;

align-items:center;

}

.product-image{

background:#f7f7f7;

padding:40px;

border-radius:15px;

text-align:center;

}

.product-image img{

width:100%;

max-width:420px;

margin:auto;

}

.product-category{

color:#d4af37;

font-weight:600;

letter-spacing:1px;

}

.product-details h1{

font-size:42px;

margin:15px 0;

}

.price{

color:#d4af37;

margin-bottom:20px;

}

.product-desc{

line-height:1.8;

margin-bottom:25px;

}

.option{

margin-bottom:25px;

}

.option label{

display:block;

margin-bottom:8px;

font-weight:600;

}

.option input{

width:120px;

padding:12px;

border:1px solid #ddd;

border-radius:8px;

}

.product-buttons{

display:flex;

gap:20px;

margin:30px 0;

flex-wrap:wrap;

}

.product-features p{

margin-bottom:12px;

font-weight:500;

}

.related-products{

padding:80px 0;

background:#f8f8f8;

}

@media(max-width:992px){

.product-wrapper{

grid-template-columns:1fr;

}

}
/*==========================
      PRODUCT PAGE
==========================*/

.product-page{

padding:100px 0;

background:#fff;

}

.product-wrapper{

display:grid;

grid-template-columns:1fr 1fr;

gap:60px;

align-items:center;

}

.product-image{

background:#f7f7f7;

padding:40px;

border-radius:15px;

text-align:center;

}

.product-image img{

width:100%;

max-width:420px;

margin:auto;

}

.product-category{

color:#d4af37;

font-weight:600;

letter-spacing:1px;

}

.product-details h1{

font-size:42px;

margin:15px 0;

}

.price{

color:#d4af37;

margin-bottom:20px;

}

.product-desc{

line-height:1.8;

margin-bottom:25px;

}

.option{

margin-bottom:25px;

}

.option label{

display:block;

margin-bottom:8px;

font-weight:600;

}

.option input{

width:120px;

padding:12px;

border:1px solid #ddd;

border-radius:8px;

}

.product-buttons{

display:flex;

gap:20px;

margin:30px 0;

flex-wrap:wrap;

}

.product-features p{

margin-bottom:12px;

font-weight:500;

}

.related-products{

padding:80px 0;

background:#f8f8f8;

}

@media(max-width:992px){

.product-wrapper{

grid-template-columns:1fr;

}

}
/*==========================
        ABOUT PAGE
==========================*/

.about-page{

padding:100px 0;

background:#fff;

}

.about-grid{

display:grid;

grid-template-columns:1fr 1fr;

gap:60px;

align-items:center;

}

.about-image img{

width:100%;

border-radius:20px;

}

.about-content h3{

font-size:34px;

margin-bottom:20px;

}

.about-content p{

line-height:1.9;

margin-bottom:20px;

color:#555;

}

.about-features{

margin:30px 0;

}

.feature-item{

margin-bottom:15px;

font-weight:600;

}

.feature-item i{

color:#D4AF37;

margin-right:10px;

}

@media(max-width:992px){

.about-grid{

grid-template-columns:1fr;

}

}
/*==========================
      CONTACT PAGE
==========================*/

.contact-page{

padding:100px 0;

background:#fff;

}

.contact-grid{

display:grid;

grid-template-columns:1fr 1.2fr;

gap:50px;

}

.contact-box{

background:#f8f8f8;

padding:25px;

margin-bottom:20px;

border-radius:15px;

transition:.3s;

}

.contact-box:hover{

transform:translateY(-5px);

}

.contact-box i{

font-size:32px;

color:#D4AF37;

margin-bottom:15px;

}

.contact-box h3{

margin-bottom:10px;

}

.contact-box a{

color:#111;

font-weight:600;

}

.contact-form{

background:#f8f8f8;

padding:35px;

border-radius:15px;

}

.contact-form input,
.contact-form textarea{

width:100%;

padding:15px;

margin-bottom:20px;

border:1px solid #ddd;

border-radius:10px;

font-family:Poppins,sans-serif;

}

.map-section{

padding:80px 0;

background:#f7f7f7;

}

.map-placeholder{

background:#fff;

padding:70px;

border-radius:20px;

text-align:center;

box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.map-placeholder i{

font-size:70px;

color:#D4AF37;

margin-bottom:20px;

}

@media(max-width:992px){

.contact-grid{

grid-template-columns:1fr;

}

}
/*==========================
      TRACK ORDER
==========================*/

.track-order-page{

padding:100px 0;

background:#fff;

}

.track-box{

max-width:700px;

margin:50px auto;

background:#f8f8f8;

padding:40px;

border-radius:15px;

text-align:center;

}

.track-box form{

display:flex;

gap:15px;

flex-wrap:wrap;

justify-content:center;

}

.track-box input{

flex:1;

min-width:250px;

padding:15px;

border:1px solid #ddd;

border-radius:10px;

font-family:Poppins,sans-serif;

}

.tracking-status{

margin-top:70px;

text-align:center;

}

.status-timeline{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:25px;

margin-top:40px;

}

.status{

background:#f8f8f8;

padding:25px;

border-radius:15px;

}

.circle{

width:70px;

height:70px;

background:#ddd;

border-radius:50%;

display:flex;

align-items:center;

justify-content:center;

margin:auto;

margin-bottom:20px;

font-size:28px;

color:#555;

}

.completed .circle{

background:#D4AF37;

color:#111;

}

@media(max-width:768px){

.status-timeline{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:500px){

.status-timeline{

grid-template-columns:1fr;

}

}
/*==========================
        CART PAGE
==========================*/

.cart-page{

padding:100px 0;

background:#fff;

}

.cart-wrapper{

display:grid;

grid-template-columns:2fr 1fr;

gap:40px;

align-items:start;

}

.cart-table table{

width:100%;

border-collapse:collapse;

background:#fff;

}

.cart-table th{

background:#111;

color:#fff;

padding:18px;

}

.cart-table td{

padding:20px;

border-bottom:1px solid #eee;

text-align:center;

}

.product-info{

display:flex;

align-items:center;

gap:15px;

text-align:left;

}

.product-info img{

width:80px;

border-radius:10px;

}

.cart-table input{

width:70px;

padding:10px;

text-align:center;

}

.cart-summary{

background:#f8f8f8;

padding:30px;

border-radius:15px;

position:sticky;

top:100px;

}

.cart-summary h3{

margin-bottom:20px;

}

.cart-summary p{

display:flex;

justify-content:space-between;

margin:20px 0;

}

.grand-total{

font-size:22px;

font-weight:700;

color:#D4AF37;

}

.cart-summary .btn{

width:100%;

margin-top:20px;

text-align:center;

}

@media(max-width:992px){

.cart-wrapper{

grid-template-columns:1fr;

}

.cart-table{

overflow-x:auto;

}

}
/*==========================
      CHECKOUT PAGE
==========================*/

.checkout-page{

padding:100px 0;

background:#fff;

}

.checkout-wrapper{

display:grid;

grid-template-columns:2fr 1fr;

gap:40px;

align-items:start;

}

.checkout-form{

background:#f8f8f8;

padding:35px;

border-radius:15px;

}

.form-row{

display:grid;

grid-template-columns:1fr 1fr;

gap:20px;

margin-bottom:20px;

}

.checkout-form input,
.checkout-form textarea{

width:100%;

padding:15px;

border:1px solid #ddd;

border-radius:10px;

font-family:Poppins,sans-serif;

margin-bottom:20px;

}

.payment-options{

margin:20px 0;

}

.payment-options label{

display:block;

margin-bottom:15px;

font-weight:500;

}

.checkout-summary{

background:#f8f8f8;

padding:30px;

border-radius:15px;

position:sticky;

top:100px;

}

.checkout-summary h3{

margin-bottom:20px;

}

.checkout-summary p{

display:flex;

justify-content:space-between;

margin:20px 0;

}

@media(max-width:992px){

.checkout-wrapper{

grid-template-columns:1fr;

}

.form-row{

grid-template-columns:1fr;

}

}
/*==========================
      CART BADGE
==========================*/

.cart-icon{

position:relative;

display:inline-flex;

align-items:center;

justify-content:center;

}

.cart-count{

position:absolute;

top:-8px;

right:-10px;

min-width:20px;

height:20px;

padding:0 6px;

background:#D4AF37;

color:#111;

font-size:11px;

font-weight:700;

border-radius:50px;

display:flex;

align-items:center;

justify-content:center;

line-height:1;

}
.category-banner{

background:#111;

color:#fff;

padding:80px 0;

text-align:center;

}

.category-banner h1{

font-size:48px;

margin-bottom:15px;

}

.category-banner p{

color:#ddd;

font-size:18px;

max-width:700px;

margin:auto;

}
/*=========================
ORDER SUCCESS
=========================*/

.success-page{

padding:100px 0;

background:#f8f8f8;

}

.success-box{

max-width:700px;

margin:auto;

background:#fff;

padding:60px;

border-radius:15px;

text-align:center;

box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.success-icon{

font-size:90px;

color:#28a745;

margin-bottom:25px;

}

.success-box h1{

font-size:40px;

margin-bottom:20px;

}

.success-box p{

font-size:18px;

line-height:1.8;

margin-bottom:35px;

color:#555;

}

.success-buttons{

display:flex;

justify-content:center;

gap:20px;

flex-wrap:wrap;

}

@media(max-width:768px){

.success-box{

padding:35px 25px;

}

.success-box h1{

font-size:30px;

}

}
.review-box{

background:#fff;

padding:20px;

border:1px solid #ddd;

border-radius:10px;

margin:20px 0;

}

.review-top{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:10px;

}

.review-top h4{

margin:0;

}

.review-top span{

font-size:13px;

color:#888;

}

.stars{

font-size:22px;

margin-bottom:10px;

color:#D4AF37;

}
<section class="related-products">

<div class="container">

<div class="section-title">

<span>You May Like</span>

<h2>Related Products</h2>

</div>

<div class="shop-grid">

<?php while($item=mysqli_fetch_assoc($relatedProducts)): ?>

<div class="shop-card">

<img
src="<?= BASE_URL ?>assets/images/products/<?= htmlspecialchars($item['image']); ?>"
alt="<?= htmlspecialchars($item['name']); ?>">

<h3><?= htmlspecialchars($item['name']); ?></h3>

<p>

Starting From Rs. <?= number_format($item['price']); ?>

</p>

<a
href="<?= BASE_URL ?>pages/product-details.php?id=<?= $item['id']; ?>"
class="btn">

View Details

</a>

</div>

<?php endwhile; ?>

</div>

</div>

</section>



<section class="customer-reviews">

<div class="container">

<h2>Customer Reviews</h2>

<br>

<?php if(mysqli_num_rows($reviewResult)>0): ?>

<?php while($review=mysqli_fetch_assoc($reviewResult)): ?>

<div class="review-box">

<div class="review-top">

<strong>

<?= htmlspecialchars($review['customer_name']); ?>

</strong>

<span>

<?= date("d M Y",strtotime($review['created_at'])); ?>

</span>

</div>

<div class="stars">

<?php

for($i=1;$i<=5;$i++){

    echo ($i<=$review['rating']) ? "⭐" : "☆";

}

?>

</div>

<p>

<?= nl2br(htmlspecialchars($review['review'])); ?>

</p>

</div>

<?php endwhile; ?>

<?php else: ?>

<div class="review-box">

No reviews yet.

Be the first customer to review this product.

</div>

<?php endif; ?>



<hr style="margin:50px 0;">

<h2>Write A Review</h2>

<br>

<form method="POST">

<input
type="text"
name="review_name"
placeholder="Your Name"
required
style="width:100%;padding:12px;margin-bottom:15px;">

<select
name="rating"
required
style="width:100%;padding:12px;margin-bottom:15px;">

<option value="">Select Rating</option>

<option value="5">⭐⭐⭐⭐⭐ Excellent</option>

<option value="4">⭐⭐⭐⭐ Very Good</option>

<option value="3">⭐⭐⭐ Good</option>

<option value="2">⭐⭐ Fair</option>

<option value="1">⭐ Poor</option>

</select>

<textarea
name="review"
rows="5"
placeholder="Write your review..."
required
style="width:100%;padding:12px;margin-bottom:15px;"></textarea>

<button
type="submit"
name="submit_review"
class="btn">

Submit Review

</button>

</form>

</div>

</section>

</main>

<?php include '../includes/footer.php'; ?>