/* =================================
   GLOBAL RESET
================================= */

*{box-sizing:border-box;}

body{
    margin:0;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background:#f7f7f7;
    padding-bottom:70px; /* for bottom nav */
}

/* =================================
   HEADER
================================= */

.tr-header{
    position:sticky;
    top:0;
    background:#fff;
    z-index:1000;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.tr-topbar{
    background:#111;
    color:#fff;
    text-align:center;
    padding:6px;
    font-size:13px;
}

.tr-header-main{
    display:flex;
    align-items:center;
    justify-content:space-between;
    max-width:1200px;
    margin:auto;
    padding:12px;
    gap:16px;
}

.tr-logo{
    font-weight:700;
    font-size:20px;
    text-decoration:none;
    color:#111;
    white-space:nowrap;
}

/* SEARCH */

.tr-search{
    flex:1;
    max-width:520px;
    position:relative; /* for live results */
}

.tr-search-form{
    display:flex;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
}

.tr-search-input{
    flex:1;
    padding:10px 12px;
    border:none;
    font-size:14px;
    outline:none;
}

.tr-search-btn{
    background:#00c56e;
    border:none;
    padding:0 16px;
    color:#fff;
    font-size:16px;
    cursor:pointer;
}

/* ACTIONS */

.tr-actions{
    display:flex;
    gap:18px;
    font-weight:600;
}

.tr-actions a{
    color:#111;
    text-decoration:none;
}

/* NAV */

.tr-nav{border-top:1px solid #eee;}

.tr-nav ul{
    display:flex;
    justify-content:center;
    gap:22px;
    list-style:none;
    margin:0;
    padding:10px;
}

.tr-nav a{
    color:#222;
    text-decoration:none;
    font-weight:600;
}

.tr-category-strip{
    border-top:1px solid #eee;
    padding:10px 0;
}

/* =================================
   HERO
================================= */

.tr-hero{
    background:#111;
    color:#fff;
    text-align:center;
    padding:80px 20px;
}

/* =================================
   PRODUCT GRID
================================= */

.tr-product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:20px;
}

/* =================================
   PRODUCT CARD
================================= */

.tr-card{
    display:block;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    text-decoration:none;
    color:#111;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    transition:.25s;
}

.tr-card:hover{
    transform:translateY(-4px);
    box-shadow:0 6px 18px rgba(0,0,0,.12);
}

.tr-card-img{
    position:relative;
    aspect-ratio:1/1;
    background:#eee;
    overflow:hidden;
}

.tr-card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .3s;
}

.tr-card:hover img{transform:scale(1.05);}

.tr-card-info{padding:10px;}

.tr-card-title{
    font-size:14px;
    font-weight:600;
    margin:0 0 6px;
    height:38px;
    overflow:hidden;
}

.tr-card-price{
    font-size:16px;
    font-weight:700;
    color:#e60023;
}

/* BADGES */

.tr-badge-sold,
.tr-badge-last{
    position:absolute;
    left:10px;
    padding:5px 8px;
    font-size:12px;
    border-radius:4px;
    color:#fff;
}

.tr-badge-sold{
    top:10px;
    background:#ff3b30;
    font-weight:700;
}

.tr-badge-last{
    bottom:10px;
    background:#ff9800;
}

/* =================================
   SHOP PAGE
================================= */

.tr-shop-wrap{
    max-width:1200px;
    margin:20px auto;
    padding:0 12px;
}

.tr-shop-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.tr-shop-title{font-size:26px; margin:0;}

.tr-shop-controls{
    display:flex;
    gap:16px;
    align-items:center;
}

.tr-shop-body{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:24px;
}

.tr-shop-sidebar{
    background:#fff;
    padding:16px;
    border-radius:8px;
    height:fit-content;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.tr-shop-products ul.products{
    display:grid !important;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:20px;
}

/* MOBILE FILTER DRAWER */

.tr-filter-toggle{
    display:none;
    background:#00c56e;
    color:#fff;
    border:none;
    padding:12px 16px;
    border-radius:6px;
    margin-bottom:12px;
}

/* =================================
   PRODUCT PAGE
================================= */

.tr-product-wrap{
    max-width:1200px;
    margin:30px auto;
    padding:0 12px;
}

.tr-product-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.tr-product-gallery img{
    width:100%;
    border-radius:10px;
}

.tr-product-title{font-size:28px; margin-bottom:10px;}

.tr-product-price{
    font-size:24px;
    font-weight:700;
    color:#e60023;
    margin-bottom:14px;
}

.tr-condition{
    background:#f5f5f5;
    padding:10px;
    border-radius:6px;
    margin-bottom:16px;
}

/* =================================
   STICKY CART (MOBILE)
================================= */

.tr-sticky-cart{
    position:fixed;
    bottom:70px; /* above bottom nav */
    left:0;
    right:0;
    background:#fff;
    padding:10px 14px;
    display:flex;
    justify-content:space-between;
    box-shadow:0 -2px 12px rgba(0,0,0,.15);
    z-index:9999;   
}

@media(min-width:768px){

    .tr-sticky-cart{display:none;}
}

.tr-sticky-btn button{
    background:#00c56e;
    border:none;
    padding:12px 20px;
    border-radius:6px;
    font-weight:700;
    color:#fff;
}

/* =================================
   MOBILE BOTTOM NAV
================================= */

.tr-bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#fff;
    display:flex;
    justify-content:space-around;
    padding:8px 0;
    box-shadow:0 -2px 12px rgba(0,0,0,.15);
    z-index:9999;
}

.tr-bottom-nav a{
    text-decoration:none;
    color:#222;
    display:flex;
    flex-direction:column;
    align-items:center;
    font-size:12px;
}

.tr-bottom-nav span{font-size:20px;}

@media(min-width:768px){
    .tr-bottom-nav{display:none;}
    body{padding-bottom:0;}
}

/* =================================
   LIVE SEARCH RESULTS
================================= */

.tr-search-results{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    box-shadow:0 4px 16px rgba(0,0,0,.12);
    border-radius:8px;
    margin-top:6px;
    z-index:2000;
}

.tr-search-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 10px;
    text-decoration:none;
    color:#222;
}

.tr-search-item img{
    width:40px;
    height:40px;
    object-fit:cover;
    border-radius:4px;
}

.tr-search-item:hover{
    background:#f5f5f5;
}

/* =================================
   MOBILE RESPONSIVE
================================= */

@media(max-width:768px){

    .tr-header-main{flex-wrap:wrap;}

    .tr-search{
        order:3;
        width:100%;
        max-width:none;
    }

    .tr-shop-body{grid-template-columns:1fr;}

    .tr-filter-toggle{display:block;}

    .tr-shop-sidebar{
        position:fixed;
        top:0;
        left:-100%;
        width:80%;
        height:100%;
        background:#fff;
        padding:20px;
        z-index:9999;
        overflow:auto;
        transition:left .3s;
    }

    .tr-shop-sidebar.active{left:0;}

    .tr-product-layout{grid-template-columns:1fr;}
}

@media(max-width:600px){

    .tr-topbar{font-size:11px; padding:5px;}
    .tr-logo{font-size:18px;}

}
/* ===== AMAZON-STYLE HEADER ===== */

.tr-header{
    position:sticky;
    top:0;
    background:#fff;
    z-index:1000;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

/* TOP BAR */

.tr-topbar{
    background:#111;
    color:#fff;
    text-align:center;
    padding:6px;
    font-size:13px;
}

/* MAIN HEADER */

.tr-header-main{
    display:flex;
    align-items:center;
    gap:16px;
    max-width:1200px;
    margin:auto;
    padding:10px 12px;
}

/* LOGO */

.tr-logo{
    font-size:22px;
    font-weight:800;
    color:#00c56e;
    text-decoration:none;
    white-space:nowrap;
}

/* SEARCH */

.tr-search-form{
    flex:1;
    display:flex;
    border:2px solid #00c56e;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
}

/* CATEGORY SELECT */

.tr-search-cat{
    border:none;
    padding:10px;
    background:#f5f5f5;
    font-size:14px;
}

/* INPUT */

.tr-search-input{
    flex:1;
    border:none;
    padding:10px 12px;
    font-size:14px;
    outline:none;
}

/* BUTTON */

.tr-search-btn{
    background:#00c56e;
    border:none;
    color:#fff;
    padding:0 16px;
    font-size:16px;
    cursor:pointer;
}

/* ACTIONS */

.tr-actions{
    display:flex;
    gap:18px;
    font-weight:600;
}

.tr-actions a{
    text-decoration:none;
    color:#111;
}

/* CATEGORY STRIP */

.tr-category-strip{
    border-top:1px solid #eee;
    padding:10px 0;
}

/* ===== MOBILE ===== */

@media(max-width:768px){

    .tr-header-main{
        flex-wrap:wrap;
    }

    .tr-search-form{
        order:3;
        width:100%;
    }

    .tr-actions{
        font-size:14px;
        gap:12px;
    }

}
/* ===== SECTIONS ===== */

.tr-section{
    max-width:1200px;
    margin:40px auto;
    padding:0 12px;
}

.tr-gray{
    background:#f5f5f5;
    padding:40px 0;
}

.tr-section-title{
    font-size:24px;
    font-weight:700;
    margin-bottom:18px;
}

/* ===== TRUST ===== */

.tr-trust{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    text-align:center;
    padding:30px 0;
    background:#111;
    color:#fff;
    font-weight:600;
}

/* ===== NEWSLETTER ===== */

.tr-newsletter{
    text-align:center;
    padding:40px 0;
}

.tr-newsletter input{
    padding:12px;
    width:280px;
    border:1px solid #ddd;
    border-radius:6px;
}

.tr-newsletter button{
    padding:12px 20px;
    background:#00c56e;
    color:#fff;
    border:none;
    border-radius:6px;
    margin-left:8px;
    font-weight:700;
}

/* MOBILE */

@media(max-width:768px){

    .tr-trust{
        grid-template-columns:1fr 1fr;
        gap:12px;
        font-size:14px;
    }

    .tr-section-title{
        font-size:20px;
    }

}
/* CATEGORY GRID */

.tr-cat-grid{
    max-width:1200px;
    margin:20px auto;
    display:grid;
    grid-template-columns:repeat(8,1fr);
    gap:12px;
    padding:0 12px;
}

.tr-cat-card{
    background:#fff;
    border-radius:10px;
    text-align:center;
    text-decoration:none;
    color:#111;
    padding:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    transition:.2s;
}

.tr-cat-card:hover{
    transform:translateY(-4px);
}

.tr-cat-card img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:8px;
}

.tr-cat-card span{
    display:block;
    margin-top:8px;
    font-weight:600;
    font-size:13px;
}

/* MOBILE */

@media(max-width:768px){
    .tr-cat-grid{
        grid-template-columns:repeat(4,1fr);
    }
}
.tr-section{
    max-width:1200px;
    margin:40px auto;
    padding:0 12px;
}

.tr-section-title{
    font-size:24px;
    font-weight:700;
    margin-bottom:20px;
}
/* ===== PREMIUM PRODUCT CARD ===== */

.tr-product-card{
    list-style:none;
}

.tr-card-inner{
    display:block;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    text-decoration:none;
    color:#111;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    transition:.25s;
    position:relative;
}

.tr-card-inner:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 28px rgba(0,0,0,.15);
}

/* IMAGE */

.tr-card-img{
    position:relative;
    aspect-ratio:1/1;
    background:#eee;
    overflow:hidden;
}

.tr-card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .4s;
}

.tr-card-inner:hover img{
    transform:scale(1.08);
}

/* BADGES */

.tr-badge-sold{
    position:absolute;
    top:10px;
    left:10px;
    background:#ff3b30;
    color:#fff;
    padding:6px 10px;
    font-size:12px;
    font-weight:700;
    border-radius:6px;
}

.tr-badge-last{
    position:absolute;
    bottom:10px;
    left:10px;
    background:#ff9800;
    color:#fff;
    padding:5px 8px;
    font-size:12px;
    border-radius:6px;
}

/* HOVER BUTTON */

.tr-card-actions{
    position:absolute;
    bottom:-60px;
    left:0;
    right:0;
    text-align:center;
    transition:.3s;
}

.tr-card-inner:hover .tr-card-actions{
    bottom:10px;
}

.tr-card-actions .button{
    background:#00c56e !important;
    border:none !important;
    padding:10px 16px !important;
    border-radius:6px !important;
    color:#fff !important;
    font-weight:700 !important;
}

/* INFO */

.tr-card-info{
    padding:12px;
}

.tr-card-title{
    font-size:14px;
    font-weight:600;
    height:38px;
    overflow:hidden;
    margin-bottom:6px;
}

.tr-card-price{
    font-size:18px;
    font-weight:700;
    color:#e60023;
}
/* =================================
   BRAND SHOWCASE
================================= */

.tr-brands{
    max-width:1200px;
    margin:40px auto;
    padding:0 12px;
}

.tr-section-title{
    font-size:24px;
    margin-bottom:20px;
    font-weight:700;
}

/* ROW */

.tr-brands-row{
    display:flex;
    gap:20px;
    overflow-x:auto;
    padding-bottom:10px;
}

/* ITEM */

.tr-brand{
    text-decoration:none;
    color:#111;
    text-align:center;
    min-width:100px;
}

/* CIRCLE */

.tr-brand-circle{
    width:90px;
    height:90px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    transition:.25s;
    margin:auto;
}

.tr-brand-circle img{
    max-width:65%;
    max-height:65%;
    object-fit:contain;
}

.tr-brand:hover .tr-brand-circle{
    transform:translateY(-6px);
    box-shadow:0 10px 24px rgba(0,0,0,.15);
}

/* NAME */

.tr-brand-name{
    display:block;
    margin-top:8px;
    font-size:13px;
    font-weight:600;
}

/* MOBILE SCROLL BAR HIDE */

.tr-brands-row::-webkit-scrollbar{
    display:none;
}
/* =================================
   RECENTLY SOLD PREMIUM
================================= */

.tr-sold{
    max-width:1200px;
    margin:40px auto;
    padding:0 12px;
}

/* HEADER */

.tr-section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}

.tr-section-head h2{
    font-size:24px;
    font-weight:700;
    margin:0;
}

.tr-view-all{
    font-weight:600;
    text-decoration:none;
    color:#00c56e;
}

/* ROW */

.tr-sold-row{
    display:flex;
    gap:18px;
    overflow-x:auto;
    padding-bottom:10px;
}

.tr-sold-row::-webkit-scrollbar{
    display:none;
}

/* CARD */

.tr-sold-card{
    min-width:170px;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    text-decoration:none;
    color:#111;
    box-shadow:0 4px 16px rgba(0,0,0,.08);
    transition:.25s;
}

.tr-sold-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 28px rgba(0,0,0,.18);
}

/* IMAGE */

.tr-sold-img{
    position:relative;
    aspect-ratio:1/1;
    background:#eee;
}

.tr-sold-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* BADGE */

.tr-sold-badge{
    position:absolute;
    top:10px;
    left:10px;
    background:#ff3b30;
    color:#fff;
    padding:6px 10px;
    font-size:12px;
    font-weight:700;
    border-radius:4px;
}

/* TITLE */

.tr-sold-title{
    padding:10px;
    font-size:13px;
    font-weight:600;
    text-align:center;
}
/* =================================
   TRENDING SECTION
================================= */

.tr-trending{
    max-width:1200px;
    margin:40px auto;
    padding:0 12px;
}

/* HOT BADGE */

.tr-hot-badge{
    position:absolute;
    top:10px;
    left:10px;
    background:#ff0000;
    color:#fff;
    padding:5px 9px;
    font-size:11px;
    font-weight:700;
    border-radius:4px;
}
/* =================================
 HERO
================================= */

.tr-hero{
    background:linear-gradient(135deg,#111,#333);
    color:#fff;
    text-align:center;
    padding:90px 20px;
}

.tr-hero h1{
    font-size:42px;
    margin-bottom:12px;
}

.tr-hero p{
    font-size:18px;
    margin-bottom:22px;
}

.tr-hero-btn{
    background:#00c56e;
    color:#fff;
    padding:14px 26px;
    border-radius:8px;
    font-weight:700;
    text-decoration:none;
}

/* =================================
 SECTION
================================= */

.tr-section{
    max-width:1200px;
    margin:40px auto;
    padding:0 12px;
}

.tr-gray{
    background:#f5f5f5;
    padding:40px 0;
}

.tr-section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}

.tr-section-head h2{
    font-size:24px;
    font-weight:700;
    margin:0;
}

.tr-section-head a{
    font-weight:600;
    color:#00c56e;
    text-decoration:none;
}

/* =================================
 TRUST STRIP
================================= */

.tr-trust{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    text-align:center;
    padding:28px 0;
    background:#111;
    color:#fff;
    font-weight:600;
}

/* =================================
 NEWSLETTER
================================= */

.tr-newsletter{
    text-align:center;
    padding:40px 0;
}

.tr-newsletter input{
    padding:12px;
    width:260px;
    border:1px solid #ddd;
    border-radius:6px;
}

.tr-newsletter button{
    padding:12px 20px;
    background:#00c56e;
    color:#fff;
    border:none;
    border-radius:6px;
    margin-left:8px;
    font-weight:700;
}

/* MOBILE */

@media(max-width:768px){

    .tr-hero h1{
        font-size:28px;
    }

    .tr-trust{
        grid-template-columns:1fr 1fr;
        gap:12px;
        font-size:14px;
    }

}
/* =================================
   FOMO / URGENCY BLOCK
================================= */

.tr-fomo{
    margin:18px 0;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.tr-fomo-item{
    background:#f5f5f5;
    padding:10px 12px;
    border-radius:6px;
    font-size:14px;
    font-weight:600;
}

/* COLORS */

.tr-fomo-item.danger{
    background:#ffe5e5;
    color:#b00020;
}

.tr-fomo-item.warning{
    background:#fff3cd;
    color:#856404;
}

.tr-fomo-item.success{
    background:#e6f4ea;
    color:#2e7d32;
}
/* BUY NOW BUTTON */

.tr-buy-now-btn{
    width:100%;
    margin-top:12px;
    background:#ff3b30;
    color:#fff;
    border:none;
    padding:14px;
    font-size:16px;
    font-weight:700;
    border-radius:8px;
    cursor:pointer;
    transition:.25s;
}

.tr-buy-now-btn:hover{
    background:#e52d24;
    transform:translateY(-1px);
}
/* PRODUCT ATTRIBUTES */

.tr-attrs{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin:16px 0;
}

.tr-attr{
    background:#f5f5f5;
    padding:10px 14px;
    border-radius:8px;
    font-size:13px;
    display:flex;
    flex-direction:column;
}

.tr-attr span{
    color:#666;
    font-size:12px;
}

.tr-attr strong{
    font-size:15px;
    font-weight:700;
}
.tr-badge-sold{
    position:absolute;
    top:10px;
    left:10px;
    background:#ff3b30;
    color:#fff;
    padding:6px 10px;
    font-size:12px;
    font-weight:700;
    border-radius:6px;
    z-index:2;
}