/* =====================================================
   Template 95 - Timber Knives Style
   Orange #e78d1f, White, Forest #3b523b
   ===================================================== */

:root {
    --orange: #e78d1f;
    --orange-dark: #c97a18;
    --forest: #3b523b;
    --forest-light: #4a634a;
    --text: #222222;
    --text-light: #555555;
    --text-muted: #888888;
    --bg: #f6f6f6;
    --bg-gray: #f7f7f7;
    --border: #e5e5e5;
    --border-light: #eeeeee;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 0px;
    --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f6f6f6;
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    /* background: var(--orange); */
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
}
/* .btn:hover { background: var(--orange-dark); } */

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition);
}
.btn-outline:hover { background: var(--orange); color: #fff; }

/* =====================================================
   Announcement Bar
   ===================================================== */
.announcement-bar {
    background: var(--orange);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* =====================================================
   Header
   ===================================================== */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.site-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.site-logo img { height: 40px; width: auto; }

.site-nav {
    display: none;
}
@media (min-width: 1024px) {
    .site-nav {
        display: flex;
        align-items: center;
        gap: 28px;
    }
}
.site-nav > li {
    position: relative;
}
.site-nav > li > a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    padding: 24px 0;
    display: block;
    position: relative;
}
.site-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition);
}
.site-nav > li > a:hover::after { width: 100%; }
.site-nav > li:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    padding: 30px 40px;
    min-width: 700px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.mega-menu-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--text);
}
.mega-menu-col h4 a {
    color: inherit;
    text-decoration: none;
}
.mega-menu-col h4 a:hover { color: var(--orange); }
.mega-menu-col a {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    padding: 5px 0;
}
.mega-menu-col a:hover { color: var(--orange); }

.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-icon {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: var(--transition);
    position: relative;
}
.header-icon:hover { color: var(--orange); }
.header-icon svg { width: 20px; height: 20px; }
.cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    width: 16px; height: 16px;
    background: var(--orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}
.mobile-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
}
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

/* Mobile menu */
.side-menu {
    position: fixed;
    top: 0; left: -100%;
    width: 85%; max-width: 360px;
    height: 100%;
    background: var(--bg);
    z-index: 1000;
    transition: left 0.35s ease;
    overflow-y: auto;
    border-right: 1px solid var(--border-light);
}
.side-menu.active { left: 0; }
.menu-header {
    height: 60px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-weight: 600;
    font-size: 0.875rem;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.menu-close {
    font-size: 24px;
    cursor: pointer;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-search {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
}
.menu-search input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    background: var(--bg);
    font-size: 0.875rem;
    color: var(--text);
}
.menu-search button {
    padding: 10px 16px;
    background: var(--text);
    color: #fff;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.menu-search button:hover { background: var(--orange); }
.menu-list { list-style: none; padding: 8px 0; }
.menu-item {
    border-bottom: 1px solid var(--border-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.menu-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    flex: 1;
    color: var(--text);
}
.menu-link:hover { background: var(--bg-gray); color: var(--orange); }
.menu-arrow {
    transition: transform 0.3s;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.menu-arrow.expanded { transform: rotate(90deg); }
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-gray);
    width: 100%;
}
.submenu.expanded { max-height: 600px; }
.submenu .menu-link { padding-left: 32px; font-weight: 500; }
.submenu .submenu .menu-link { padding-left: 48px; }

/* =====================================================
   Section Headers
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
}

/* =====================================================
   Product Grid
   ===================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.product-card {
    position: relative;
}
.product-card-img {
    background: #ffffff;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 12px;
    overflow: hidden;
}
.product-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-tag {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-title:hover { color: var(--orange); }
.product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
    background: var(--bg-gray);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
}
.footer-brand h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 300px;
}
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text);
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    padding: 5px 0;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }

/* =====================================================
   Breadcrumb
   ===================================================== */
.breadcrumb {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.breadcrumb a:hover { color: var(--orange); }

/* =====================================================
   Utilities
   ===================================================== */
.pt-20 { padding-top: 20px; }
.text-center { text-align: center; }
.mt-12 { margin-top: 48px; }
.hidden { display: none !important; }

#jq-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    display: none;
}
#jq-pop-up {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    display: none;
}
#to-top {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 44px; height: 44px;
    background: var(--orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}
#to-top.visible { opacity: 1; visibility: visible; }
#to-top:hover { background: var(--orange-dark); }


/* =====================================================
   Shared Components (Cart Popup, Overlay, Pop-up, Loading)
   ===================================================== */

/* --- Cart Popup --- */
.shop-cart {
    display: none;
    width: 350px;
    background-color: #fff;
    position: absolute;
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
    top: 52px;
    right: -10px;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    color: #222;
    padding: 0;
    z-index: 100;
}
.shop-cart::after {
    content: '';
    position: absolute;
    top: -7px;
    right: 20px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
}
.shop-cart-icon:hover .shop-cart {
    display: block;
}
.shop-cart-body {
    max-height: 360px;
    overflow-y: auto;
    padding: 16px;
}
.shop-cart-body a {
    text-decoration: none;
    color: #222;
}
.shop-cart-items {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}
.shop-cart-items:last-child {
    border-bottom: none;
}
.shop-img img {
    object-fit: contain;
    width: 50px;
    height: 50px;
}
.shop-info {
    padding: 0 10px;
    flex: 1;
    font-size: 13px;
}
.shop-delete {
    background: var(--orange);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    color: #fff;
    flex: none;
    font-size: 12px;
    line-height: 20px;
    cursor: pointer;
}
.shop-cart-total {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    font-size: 14px;
    font-weight: 600;
}
.shop-cart-subtotal {
    font-weight: 700;
    color: var(--orange);
}
.shop-cart-footer {
    padding: 12px 16px 16px;
}
.chekc_btn {
    background-color: var(--orange);
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s;
}
.chekc_btn:hover {
    background: var(--orange-dark);
}

/* --- Overlay --- */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.85);
    z-index: 1000;
}

/* --- Loading Spinner --- */
.loading-spinner {
    --uib-size: 80px;
    --uib-color: var(--orange);
    --uib-speed: 1.4s;
    --uib-stroke: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5px;
    width: 100px;
    border-radius: calc(5px / 2);
    overflow: hidden;
}
.loading-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--orange);
    opacity: .1;
    transition: background-color 0.3s ease;
}
.loading-spinner::after {
    content: '';
    height: 100%;
    width: 100%;
    border-radius: calc(5px / 2);
    animation: zoom 1.4s ease-in-out infinite;
    transform: translateX(-100%);
    background-color: var(--orange);
    transition: background-color 0.3s ease;
}
@keyframes zoom {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- Pop-up (Search/Quick View) --- */
.Pop-up {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    max-width: 600px;
    width: 90%;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1001;
    overflow: hidden;
}
.Pop-up .top_header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    justify-content: flex-end;
    border-bottom: 1px solid #eee;
}
#jq-close-pop {
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s;
}
#jq-close-pop:hover {
    color: #222;
}
.Pop-up .products_box {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* ===== Quick View popup ===== */
.products_box .pro_title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text);
}
.products_box .box_price { margin-bottom: 20px; }
.products_box .discount_price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-right: 12px;
       text-decoration: line-through;
}
.products_box .price {
    font-size: 14px;
    color: var(--text-muted);
 
}
.products_box .sku_code {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.products_box .sku_code select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
    min-width: 160px;
    cursor: pointer;
}
.products_box .quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    width: fit-content;
}
.products_box .quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-gray);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s;
}
.products_box .quantity-btn:hover { background: var(--border); }
.products_box .quantity-input {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    color: var(--text);
    -moz-appearance: textfield;
}
.products_box .quantity-input::-webkit-outer-spin-button,
.products_box .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.products_box .btn {
    display: flex;
    gap: 12px;
}
.products_box .btn .button {
    flex: 1;
    padding: 14px 24px;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--orange);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.products_box .btn .button:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

/* ===== Successful toast ===== */
.successful_title {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3500;
    background: var(--text);
    color: #fff;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    animation: tkToastIn 0.3s ease, tkToastOut 0.5s ease 3s forwards;
    max-width: 90%;
}
@keyframes tkToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes tkToastOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* --- Mobile responsive cart --- */
@media (max-width: 768px) {
    .shop-cart-icon:hover .shop-cart {
        display: none;
    }
    .successful_title { top: 60px; font-size: 12px; padding: 12px 20px; }
}


/* =====================================================
   Footer (Timber Knives Dark Green)
   ===================================================== */
.tk-footer {
    background: #3b523b;
    color: #fff;
    padding: 60px 0 20px;
    font-size: 13px;
}
.tk-footer a { color: #fff; text-decoration: none; }
.tk-footer a:hover { color: var(--orange); }
.tk-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (min-width: 768px) {
    .tk-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .tk-footer-grid { grid-template-columns: 1.2fr 1.5fr 1fr 1fr; gap: 30px; }
}
.tk-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
}
.tk-desc {
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 13px;
}
.tk-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}
.tk-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}
.tk-social a:hover { background: var(--orange); color: #fff; }
.tk-subscribe-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.9);
}
.tk-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tk-subscribe-form input {
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    outline: none;
}
.tk-subscribe-form input::placeholder { color: rgba(255,255,255,0.5); }
.tk-subscribe-form button {
    padding: 12px 24px;
    background: #5a7a5a;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.tk-subscribe-form button:hover { background: #6a8a6a; }
.tk-footer-links h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.5);
}
.tk-footer-links a {
    display: block;
    padding: 5px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}
.tk-footer-links a:hover { color: var(--orange); }
.tk-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}
