/* ===============================
   SHOP PAGE LAYOUT
================================ */

.shop-layout{
    display:grid;
    grid-template-columns:250px 1fr;
    gap:40px;
    align-items:start;
}

.shop-sidebar{
    background:#ffffff;
    padding:20px;
    border-radius:8px;
    height:fit-content;
}

.shop-products{
    width:100%;
}
.product-card a{
text-decoration:none;
color:inherit;
display:block;
}

/* ===============================
   TOOLBAR
================================ */

.shop-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    flex-wrap:wrap;
    gap:15px;
}

.shop-search-form{
    display:flex;
    gap:10px;
}

.search-input{
    padding:8px 12px;
    width:240px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:14px;
}

.search-input:focus{
    outline:none;
    border-color:#2e7d32;
}

.search-btn{
    padding:8px 14px;
    border:1px solid #2e7d32;
    background:transparent;
    color:#2e7d32;
    border-radius:6px;
    cursor:pointer;
    transition:0.2s;
}

.search-btn:hover{
    background:#2e7d32;
    color:white;
}

.shop-sort{
    font-size:14px;
    padding:6px 10px;
    border-radius:4px;
}


/* ===============================
   PRODUCTS GRID
================================ */

.products-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.results-count{
    font-size:14px;
    color:#2e7d32;
    margin-bottom:10px;
}


/* ===============================
   PRODUCT CARD
================================ */

.product-card{
    background:#ffffff;
    border-radius:8px;
    padding:15px;
    box-shadow:0 2px 8px rgba(0,0,0,0.06);
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    transition:transform 0.2s ease;
}

.product-card:hover{
    transform:translateY(-3px);
}

.product-card img{
    width:100%;
    height:180px;
    object-fit:contain;
    margin-bottom:10px;
}

.product-card h3{
    font-size:15px;
    margin-bottom:8px;
    min-height:40px;
}

.product-price{
    font-weight:bold;
    font-size:16px;
    margin-bottom:10px;
}

.product-card button{
    padding:10px;
    font-size:14px;
    border:1px solid #2e7d32;
    background:transparent;
    color:#2e7d32;
    border-radius:5px;
    cursor:pointer;
    transition:0.2s ease;
}

.product-card button:hover{
    background:#2e7d32;
    color:white;
}


/* ===============================
   PAGINATION
================================ */

.pagination-wrapper{
    margin-top:30px;
}


/* ===============================
   RESPONSIVE
================================ */

/* Tablet */
@media (max-width:1024px){

.products-grid{
    grid-template-columns:repeat(3,1fr);
}

.shop-layout{
    grid-template-columns:220px 1fr;
}

}

/* Phone */
@media (max-width:768px){

.shop-layout{
    grid-template-columns:1fr;
}

.shop-sidebar{
    margin-bottom:20px;
}

.products-grid{
    grid-template-columns:repeat(2,1fr);
}

.search-input{
    width:160px;
}

}

/* Small phone */
@media (max-width:480px){

.products-grid{
    grid-template-columns:1fr;
}

.shop-toolbar{
    flex-direction:column;
    align-items:flex-start;
}

.search-input{
    width:100%;
}

}
.category-parent{
    font-weight:600;
    margin-top:10px;
}

.sub-category{
    display:block;
    margin-left:15px;
    font-size:14px;
}
.category-parent{
    font-weight:600;
    margin-top:10px;
    cursor:pointer;
}

.subcategory-group{
    display:none;
    margin-left:15px;
}

.sub-category{
    display:block;
    font-size:14px;
    margin:4px 0;
}

.category-parent{
    font-weight:600;
    margin-top:10px;
    cursor:pointer;
    color:#333;
}

.sub-category{
    display:block;
    margin-left:15px;
    font-size:14px;
    color:#333;
}

.filter-option{
    color:#333;
}

.hero {
    display: flex;
    align-items: center;
    height: 85vh;
    padding: 0 60px;
    background: #f8fafc;
}

/* LEFT SIDE */
.hero-left {
    flex: 1;
    max-width: 500px;
}

.hero-left h1 {
    font-size: 48px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.hero-left p {
    margin-top: 20px;
    font-size: 18px;
    color: #475569;
}

/* RIGHT SIDE IMAGE */
.hero-right {
    flex: 1;
    background: url('/images/hero-people.jpg') no-repeat center;
    background-size: cover;
    height: 100%;
    border-radius: 20px;
    position: relative;
}

/* FADE EFFECT */
.hero-right::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, #f8fafc, transparent);
}

/* BUTTONS */
.hero-buttons {
    margin-top: 25px;
}

.btn-primary {
    background: #2563eb;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    margin-right: 10px;
}

.btn-secondary {
    border: 1px solid #2563eb;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    color:  #2563eb;;
}
.hero-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 999px;
    padding: 6px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: 0.3s;
}

/* hover effect */
.hero-search:focus-within {
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

/* input */
.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 999px;
}

/* button */
.hero-search button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

/* button hover */
.hero-search button:hover {
    background: #1d4ed8;
}

.floating-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ff7a00;
    background: linear-gradient(90deg, #ff7a00, #ff9500);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 16px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.view-cart-btn {
    background: white;
    color: #ff7a00;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s ease;
}

.view-cart-btn:hover {
    background: #fff4e6;
    color: #e66a00;
}
body {
    padding-bottom: 80px;
}