body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#f8f4ee;
}

header{
    background:#4b2c16;
    color:white;
    text-align:center;
    padding:10px 15px;
    position:relative;
}

header h1{
    margin:0;
    font-size:32px;
    line-height:1.2;
}

header p{
    margin:8px 0 0;
    font-size:15px;
}

@media (max-width:768px) {
    header{
        padding:8px 10px;
    }

    header h1{
        font-size:24px;
        margin-bottom:2px;
    }

    header p{
        font-size:13px;
        margin:0;
    }
}

nav{
    background:#3a1f0d;
    text-align:center;
    padding:12px;
}

nav a{
    color:white;
    text-decoration:none;
    margin:0 15px;
    font-weight:bold;
}

main{
    max-width:1200px;
    margin:40px auto;
    padding:20px;
}

footer{
    text-align:center;
    padding:30px;
    background:white;
    margin-top:50px;
}
.hero-img{
    display:block;
    max-width:1200px;
    width:90%;
    margin:30px auto;
    border-radius:15px;
}

.best-sellers{
    padding:60px 20px;
    text-align:center;
}

.best-grid{
    display:flex;
    gap:25px;
    justify-content:center;
    align-items:stretch;
    flex-wrap:wrap;
}

.best-card{
    background:#fff;
    border-radius:15px;
    padding:20px;
    width:280px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.featured{
    width:380px;
}

.best-card img{
    width:100%;
    height:250px;
    object-fit:contain;
}

.badge{
    display:inline-block;
    background:#f8c400;
    padding:8px 15px;
    border-radius:20px;
    font-weight:bold;
    margin-bottom:15px;
}

.best-card a{
    display:block;
    background:#6b350f;
    color:white;
    text-decoration:none;
    padding:12px;
    border-radius:8px;
    margin-top:15px;
}

.products-section{
    padding:60px 20px;
    text-align:center;
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    max-width:1200px;
    margin:auto;
}

.product-card{
    background:white;
    border-radius:15px;
    padding:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    position: relative;
}

.product-card img{
    width:100%;
    height:250px;
    object-fit:contain;
}

.product-card h3{
    margin:15px 0;
}

.product-card a{
    display:block;
    background:#6b350f;
    color:white;
    text-decoration:none;
    padding:12px;
    border-radius:8px;
}

.product-card{
    background:white;
    border-radius:15px;
    padding:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    text-align:center;
}

.product-image{
    height:320px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.product-image img{
    max-width:90%;
    max-height:300px;
    object-fit:contain;
}

.site-footer{
    background:#fff;
    padding:45px 20px 20px;
    margin-top:60px;
}

.footer-container{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
    gap:35px;
}

.footer-column h3{
    font-size:14px;
    margin-bottom:15px;
    color:#3a1f0d;
}

.footer-column p,
.footer-column li{
    font-size:14px;
    color:#555;
    line-height:1.7;
}

.footer-column ul{
    list-style:none;
    padding:0;
    margin:0;
}

.footer-bottom{
    text-align:center;
    border-top:1px solid #ddd;
    margin-top:35px;
    padding-top:18px;
    font-size:14px;
    color:#777;
}
@media(max-width:600px){
    nav{
        display:flex;
        justify-content:flex-start;
        overflow-x:auto;
        flex-wrap:nowrap;
        padding:10px;
        gap:18px;
    }

    nav a{
        white-space:nowrap;
        flex:0 0 auto;
    }
}

/* Mobile product grid fix */
@media (max-width: 600px) {
    .products-section {
        padding: 10px;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        box-sizing: border-box;
    }

    .product-card img {
        width: 100%;
        height: 130px;
        object-fit: contain;
    }

    .product-card h3 {
        font-size: 14px;
        line-height: 1.2;
        min-height: 50px;
    }

    .view-btn {
        width: 100%;
        display: block;
        box-sizing: border-box;
        font-size: 14px;
        padding: 10px;
    }
}

* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.search-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.search-form input {
    width: 320px;
    max-width: 90%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

.search-form button,
.clear-search {
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    background: #7a3e12;
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
}

.clear-search {
    background: #555;
}

.search-result-text {
    text-align: center;
    margin-bottom: 15px;
}

.no-products {
    text-align: center;
    width: 100%;
    font-size: 18px;
    padding: 30px;
}

.search-container {
    max-width: 100%;
}





/* Checkout CSS */

.checkout-section {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
}

.checkout-form {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.checkout-form h3 {
    margin-top: 15px;
    margin-bottom: 15px;
    color: #5b3419;
}

.checkout-form label {
    display: block;
    font-weight: bold;
    margin-top: 14px;
    margin-bottom: 6px;
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

.checkout-form span {
    font-weight: normal;
    color: #777;
}

.checkout-form hr {
    margin: 25px 0;
    border: none;
    border-top: 1px solid #eee;
}

.place-order-btn {
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #7a3e12;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

/* End Checkout */


.confirm-product-img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 15px;
}

.summary-row.discount strong {
    color: #0a9f55;
}

.grand-total-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 14px;
   background: #ffd27a;
    color: #3a1f0d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grand-total-box span {
    font-size: 24px;
    color:#3a1f0d;
}

.grand-total-box strong {
    font-size: 24px;
}

.cod-box {
    padding: 14px;
    border-radius: 12px;
    background: #fff7e6;
    border: 1px solid #ffd27a;
}

.cod-box span {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.edit-address-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #555;
    text-decoration: none;
}

.edit-address-link:hover {
    text-decoration: underline;
}

/* ==========================================
   Coffee Cart Icon CSS
========================================== */

.coffee-cart-link {
    text-decoration: none;
    position: absolute;
    top: 18px;
    right: 18px;
}

.coffee-cart-icon {
    position: relative;
    width: 54px;
    height: 48px;
}

.cart-handle {
    position: absolute;
    left: 2px;
    top: 13px;
    width: 22px;
    height: 4px;
    background: #5b2d0c;
    transform: rotate(65deg);
    border-radius: 5px;
}

.mug {
    position: absolute;
    left: 18px;
    top: 16px;
    width: 24px;
    height: 17px;
    background: #a0522d;
    border-radius: 4px 4px 9px 9px;
    border: 2px solid #5b2d0c;
}

.mug::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 4px;
    width: 14px;
    height: 4px;
    background: #3b1d08;
    border-radius: 50%;
}

.mug-handle {
    position: absolute;
    right: -10px;
    top: 3px;
    width: 9px;
    height: 10px;
    border: 3px solid #5b2d0c;
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.steam {
    position: absolute;
    top: -15px;
    width: 4px;
    height: 13px;
    background: #8b4513;
    border-radius: 50%;
}

.steam1 {
    left: 7px;
    transform: rotate(20deg);
}

.steam2 {
    left: 15px;
    transform: rotate(-15deg);
}

.cart-base {
    position: absolute;
    left: 13px;
    top: 36px;
    width: 35px;
    height: 4px;
    background: #5b2d0c;
    border-radius: 5px;
}

.wheel {
    position: absolute;
    top: 40px;
    width: 8px;
    height: 8px;
    background: #5b2d0c;
    border-radius: 50%;
}

.wheel1 {
    left: 18px;
}

.wheel2 {
    left: 39px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e44336;
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   Top Search + Cart CSS
========================================== */

.top-search{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:10px 12px;
    margin:0;
    background:linear-gradient(135deg,#fff4e6,#ffdca8);
}

.top-search .search-form {
    display: flex;
    flex: 1;
    max-width: 520px;
    margin: 0;
    gap: 8px;
    flex-wrap: nowrap;
}

.top-search .search-form input {
    flex: 1;
    width: auto;
    max-width: none;
}

.top-search .search-form button {
    flex-shrink: 0;
    width: 50px;
}

.coffee-cart-link {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

@media(max-width:600px) {
    .top-search {
        padding: 10px;
        gap: 8px;
    }

    .top-search .search-form input {
        font-size: 14px;
        padding: 11px;
    }

    .top-search .search-form button {
        width: 45px;
        padding: 11px;
    }

    .coffee-cart-icon {
        transform: scale(0.85);
    }
}

.search-form{
    display:flex;
    gap:8px;
    margin:0;
    justify-content:center;
    flex-wrap:nowrap;
}

/* ==========================================
   Cart Page CSS
========================================== */

.cart-item {
    padding: 18px 0;
}

.cart-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.cart-qty a {
    width: 34px;
    height: 34px;
    background: #8b4513;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
}

.cart-qty span {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.remove-btn {
    display: inline-block;
    margin-top: 8px;
    color: #c0392b;
    font-weight: bold;
    text-decoration: none;
}

.confirm-product-img{
    width:90px !important;
    height:90px !important;
    min-width:90px;
    object-fit:cover;
    border-radius:10px;
    border:1px solid #ddd;
}
/* ==========================================
   Cart Total
========================================== */

.cart-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#fff8ef;
    border:2px solid #f3d7b2;
    border-radius:14px;
    padding:18px 20px;
    margin:25px 0;
}

.cart-total span:first-child{
    font-size:18px;
    font-weight:600;
    color:#6b350f;
}

.cart-total span:last-child{
    font-size:30px;
    font-weight:700;
    color:#b45309;
}

.cart-item{
    display:flex;
    align-items:center;
    gap:15px;
    background:#fff;
    border:1px solid #eee;
    border-radius:10px;
    padding:15px;
    margin-bottom:15px;
}

.cart-image{
    width:100px;
    height:100px;
    object-fit:cover;
    border-radius:8px;
    border:1px solid #ddd;
}

.cart-details{
    flex:1;
}

.cart-details h4{
    margin:0 0 10px;
    font-size:18px;
}

.price{
    color:#8B4513;
    font-size:18px;
    font-weight:bold;
}

.subtotal{
    margin-top:10px;
    font-weight:bold;
}

.checkout-section{
    background:#f6f6f6;
    padding:20px 10px;
}

.checkout-form{
    max-width:720px;
    margin:auto;
    background:#fff;
    padding:18px;
    border-radius:14px;
    box-shadow:0 4px 18px rgba(0,0,0,.08);
}

.checkout-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:12px;
    padding:15px;
    margin-bottom:15px;
}

.checkout-card h3{
    margin-top:0;
    color:#7a3f12;
}

.confirm-product{
    display:flex;
    gap:12px;
    padding:12px 0;
    border-bottom:1px solid #eee;
}

.confirm-product img{
    width:85px;
    height:85px;
    object-fit:cover;
    border-radius:10px;
    border:1px solid #ddd;
}

.confirm-details h4{
    margin:0 0 6px;
    font-size:15px;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    margin:10px 0;
}

.discount{
    color:#0a8f3c;
    font-weight:bold;
}

.total-box{
    background:#fff4e8;
    border-radius:12px;
    padding:15px;
    margin-top:15px;
}

.place-order-btn{
    width:100%;
    background:#91480f;
    color:#fff;
    border:none;
    padding:15px;
    border-radius:10px;
    font-size:17px;
    font-weight:bold;
    cursor:pointer;
}

.edit-address{
    display:block;
    text-align:center;
    margin-top:15px;
}

.total-box{
    display:flex;
    justify-content:space-between;
    align-items:center;

    background:#fff8ef;
    border:2px solid #f0c68a;

    border-radius:18px;

    padding:20px;

    margin:20px 0;
}

.total-left{
    font-size:28px;
    font-weight:700;
    color:#5b2f0b;
}

.total-right{
    font-size:48px;
    font-weight:900;
    color:#b35712;
}


.stock.available {
    color: #1b8f3b;
    font-weight: bold;
}

.stock.out {
    color: #d62828;
    font-size: 18px;
    font-weight: bold;
}

.quantity-box button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bottom-disabled {
    width: 100%;
    padding: 15px;
    background: #bdbdbd;
    color: white;
    border: none;
    font-weight: bold;
    font-size: 16px;
    cursor: not-allowed;
}

.checkout-btn{
    display:block;
    width:100%;
    padding:18px;
    margin-top:25px;
    background:linear-gradient(135deg,#b86b1b,#8d4b13);
    color:white;
    text-align:center;
    text-decoration:none;
    font-size:18px;
    font-weight:bold;
    border-radius:14px;
    box-shadow:0 6px 15px rgba(0,0,0,.18);
    transition:.25s;
}

.checkout-btn:hover{
    background:linear-gradient(135deg,#c77721,#9d5416);
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.25);
}

.free-shipping-box{
    margin-top:15px;
    padding:14px;
    background:#e8fff0;
    border:2px solid #28a745;
    color:#15803d;
    border-radius:10px;
    font-weight:bold;
    text-align:center;
    font-size:15px;
}

.delivery-estimate{
    margin:25px 0;
    padding:18px;
    background:#fff8ef;
    border:1px solid #f0c98a;
    border-radius:12px;
    text-align:left;
}

.delivery-estimate h4{
    margin:0 0 12px;
    color:#8d4b13;
    font-size:18px;
}

.delivery-estimate p{
    margin-bottom:10px;
}

.delivery-estimate ul{
    margin:0;
    padding-left:20px;
}

.delivery-estimate li{
    margin:6px 0;
    line-height:1.5;
}

.delivery-estimate small{
    display:block;
    margin-top:12px;
    color:#666;
    line-height:1.5;
}

.login-box label{
    display:block;
    margin-top:15px;
    font-weight:bold;
    color:#4b2c16;
}

.login-box input{
    width:100%;
    padding:14px;
    margin-top:6px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:15px;
    box-sizing:border-box;
}

.login-error{
    background:#ffe5e5;
    color:#b00020;
    padding:12px;
    border-radius:8px;
    font-weight:bold;
}
.product-rating{
    margin:8px 0 14px;
    color:#ff9800;
    font-size:15px;
    font-weight:600;
}

.product-rating span{
    color:#666;
    font-weight:500;
}

.product-rating{
    margin:8px 0 12px;
    color:#ff9800;
    font-size:14px;
    font-weight:600;
}

.product-rating span{
    color:#666;
    font-weight:500;
}

.wishlist-heart {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #fff;
    color: red;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-align: center;
    line-height: 34px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 18px;
}

.top-user-bar {
    width: 100%;
    background: #f8f8f8;
    padding: 8px 25px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    box-sizing: border-box;
}

.guest-links a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    margin: 0 6px;
}

.guest-links a:hover {
    color: #b8860b;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropbtn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 28px;
    background: #fff;
    min-width: 180px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    z-index: 999;
    overflow: hidden;
}

.user-dropdown-content a {
    display: block;
    padding: 11px 14px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.user-dropdown-content a:hover {
    background: #f7f7f7;
    color: #b8860b;
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

@media (max-width: 700px) {
    .top-user-bar {
        justify-content: center;
        padding: 8px 10px;
        font-size: 13px;
    }

    .user-dropbtn {
        font-size: 13px;
    }
}

/* Product card alignment polish */
.products-grid {
    align-items: stretch;
}

.product-card,
.best-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card img,
.best-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 14px;
}

.product-card h3,
.best-card h3 {
    min-height: 66px;
    margin: 8px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.product-card .product-rating,
.best-card .product-rating {
    min-height: 24px;
    margin: 0 0 14px;
}

.product-card .view-btn,
.product-card a.view-btn,
.product-card > a,
.best-card .view-btn,
.best-card a.view-btn,
.best-card > a {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .products-section {
        padding: 22px 8px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0;
    }

    .product-card {
        padding: 10px;
        border-radius: 10px;
        min-height: 318px;
    }

    .product-card img {
        height: 118px;
        margin-bottom: 10px;
    }

    .product-card h3 {
        min-height: 64px;
        font-size: 13px;
        line-height: 1.22;
        margin: 6px 0 7px;
    }

    .product-card .product-rating {
        min-height: 22px;
        font-size: 12px;
        margin-bottom: 10px;
    }

    .product-card .view-btn,
    .product-card a.view-btn,
    .product-card > a {
        min-height: 40px;
        padding: 10px 8px;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .best-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .best-card,
    .featured {
        width: 100%;
        max-width: 100%;
    }
}


/* Product card alignment polish v2 */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    align-items: stretch !important;
}

.product-card,
.best-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: 100% !important;
    min-height: 430px !important;
}

.product-card img,
.best-card img {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 0 16px !important;
    flex: 0 0 220px !important;
}

.product-card h3,
.best-card h3 {
    min-height: 76px !important;
    margin: 0 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
}

.product-card .product-rating,
.best-card .product-rating {
    min-height: 24px !important;
    margin: 0 0 14px !important;
    flex: 0 0 auto !important;
}

.product-card .view-btn,
.product-card a.view-btn,
.product-card > a,
.best-card .view-btn,
.best-card a.view-btn,
.best-card > a {
    margin-top: auto !important;
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .products-section {
        padding: 22px 8px !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    .product-card {
        min-height: 330px !important;
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .product-card img {
        height: 120px !important;
        flex-basis: 120px !important;
        margin-bottom: 10px !important;
    }

    .product-card h3 {
        min-height: 72px !important;
        font-size: 13px !important;
        line-height: 1.22 !important;
        margin-bottom: 8px !important;
    }

    .product-card .product-rating {
        min-height: 22px !important;
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    .product-card .view-btn,
    .product-card a.view-btn,
    .product-card > a {
        min-height: 40px !important;
        padding: 10px 8px !important;
        font-size: 13px !important;
    }
}

.trust-band{max-width:1200px;margin:18px auto 0;padding:0 20px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.trust-band div{background:#fff;border:1px solid #eadfd4;border-radius:10px;padding:13px;text-align:center;font-weight:800;color:#4b2c16;box-shadow:0 3px 12px rgba(0,0,0,.05)}.category-shortcuts{max-width:1200px;margin:18px auto 0;padding:0 20px;display:flex;gap:9px;overflow-x:auto}.category-shortcuts a{white-space:nowrap;background:#fff;color:#6b350f;border:1px solid #d8c8b6;border-radius:999px;padding:10px 14px;text-decoration:none;font-weight:800}.category-shortcuts a.active{background:#6b350f;color:#fff}.shop-filter-bar{max-width:1200px;margin:0 auto 22px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.shop-filter-bar select,.shop-filter-bar button,.shop-filter-bar a{min-height:42px;padding:10px 13px;border-radius:9px;border:1px solid #d8c8b6;text-decoration:none;font-weight:800}.shop-filter-bar button{background:#6b350f;color:#fff;border:0}.shop-filter-bar a{background:#fff;color:#6b350f}.stock-chip{position:absolute;top:12px;left:12px;z-index:2;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:800}.stock-chip.low{background:#fff3cd;color:#856404}.stock-chip.out{background:#fee2e2;color:#991b1b}@media(max-width:700px){.trust-band{grid-template-columns:repeat(2,1fr);padding:0 10px}.trust-band div{font-size:13px;padding:11px}.category-shortcuts{padding:0 10px}.shop-filter-bar{padding:0 8px;display:grid;grid-template-columns:1fr}.shop-filter-bar select,.shop-filter-bar button,.shop-filter-bar a{width:100%;box-sizing:border-box;text-align:center}}


/* Account dropdown stability fix */
.user-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 34px !important;
    padding-bottom: 0 !important;
}

.user-dropbtn {
    min-height: 34px !important;
    padding: 6px 8px !important;
}

.user-dropdown-content {
    top: 100% !important;
    right: 0 !important;
    min-width: 210px !important;
    z-index: 999999 !important;
}

.user-dropdown-content::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.user-dropdown:hover .user-dropdown-content,
.user-dropdown:focus-within .user-dropdown-content,
.user-dropdown.open .user-dropdown-content {
    display: block !important;
}

@media (max-width: 700px) {
    .user-dropdown {
        width: 100%;
        justify-content: center;
    }

    .user-dropdown-content {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: min(92vw, 260px) !important;
    }

    .user-dropdown-content a {
        padding: 14px 16px !important;
        font-size: 15px !important;
    }
}


/* Notification badge polish */
.notification-menu-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.notification-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e60023;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(230,0,35,.25);
}


/* mobile account menu polish */
.user-dropdown-content a {
    min-height: 42px;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .top-user-bar {
        justify-content: stretch;
        padding: 8px 10px;
    }

    .user-dropdown {
        width: 100%;
    }

    .user-dropbtn {
        width: 100%;
        min-height: 42px;
        text-align: left;
        background: #fffdf9;
        border: 1px solid #eadfce;
        border-radius: 10px;
        padding: 10px 12px;
        color: #4b2c16;
    }

    .user-dropdown-content {
        left: 0;
        right: 0;
        top: calc(100% + 6px);
        width: 100%;
        min-width: 0;
        border-radius: 10px;
        z-index: 1000000;
    }

    .user-dropdown-content a {
        padding: 13px 14px;
        font-size: 15px;
    }
}


/* Shopee-style sticky customer header */
.shop-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:#bd7a55;
    color:#fff;
    box-shadow:0 2px 10px rgba(43,18,7,.14);
}
.shop-header a{color:#fff;text-decoration:none;}
.shop-header-top{
    max-width:1320px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:8px 18px 4px;
    font-size:14px;
    font-weight:700;
}
.shop-top-left,.shop-top-right,.guest-links{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.shop-header-main{
    max-width:1320px;
    margin:0 auto;
    display:grid;
    grid-template-columns:190px minmax(220px,1fr) 72px;
    align-items:center;
    gap:18px;
    padding:10px 18px 16px;
}
.shop-logo{display:flex;flex-direction:column;line-height:1.1;min-width:0;}
.shop-logo strong{font-size:27px;font-weight:900;letter-spacing:0;white-space:nowrap;}
.shop-logo span{font-size:13px;margin-top:4px;color:#fff7ed;white-space:nowrap;}
.shop-search-form{display:flex;gap:0;margin:0;width:100%;max-width:none;}
.shop-search-form input{height:44px;border:0;border-radius:3px 0 0 3px;padding:0 14px;font-size:15px;width:100%;}
.shop-search-form button{height:44px;min-width:92px;border:0;border-radius:0 3px 3px 0;background:#8a4211;color:#fff;font-weight:900;cursor:pointer;}
.shop-cart-link{justify-self:center;position:relative;transform:scale(.9);}
.header-notification-link{display:inline-flex;align-items:center;gap:7px;font-weight:900;position:relative;}
.header-notification-link .notification-badge{background:#e60023;color:#fff;}
.user-dropdown{position:relative;display:inline-flex;align-items:center;}
.user-dropbtn{background:transparent;border:0;color:#fff;font-weight:900;font-size:14px;cursor:pointer;padding:4px 0;}
.user-dropbtn::after{content:' v';font-size:12px;}
.user-dropdown-content{display:none;position:absolute;right:0;top:calc(100% + 10px);min-width:190px;background:#fff;border:1px solid #eadfd4;border-radius:6px;box-shadow:0 12px 28px rgba(43,18,7,.18);z-index:1001;overflow:hidden;}
.user-dropdown.open .user-dropdown-content{display:block;}
.user-dropdown-content a{display:block;color:#4b2c16 !important;padding:12px 14px;font-weight:800;}
.user-dropdown-content a:hover{background:#fff4e6;}
body{scroll-padding-top:118px;}
body > header, body > nav, .top-user-bar, .top-search{display:none !important;}
@media(max-width:760px){
    .shop-header-top{padding:7px 10px 3px;font-size:12px;align-items:flex-start;}
    .shop-top-left{display:none;}
    .shop-top-right{width:100%;justify-content:space-between;gap:8px;}
    .shop-header-main{grid-template-columns:1fr auto;gap:10px;padding:8px 10px 12px;}
    .shop-logo{grid-column:1/-1;align-items:center;text-align:center;}
    .shop-logo strong{font-size:23px;}
    .shop-logo span{font-size:12px;}
    .shop-search-form{min-width:0;}
    .shop-search-form input{height:40px;font-size:13px;padding:0 10px;}
    .shop-search-form button{height:40px;min-width:66px;font-size:12px;}
    .shop-cart-link{transform:scale(.78);width:52px;}
    .user-dropbtn{max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;}
    .user-dropdown-content{right:0;top:calc(100% + 8px);min-width:170px;}
    .header-notification-link{font-size:12px;}
    body{scroll-padding-top:132px;}
}
