/* =========================================================
   Teddyworld - main.css
   עיצוב כללי לכל האתר: בסיס, כותרת, עמודי תוכן ו-WooCommerce
   ========================================================= */

:root {
    --tw-bg: #f7f1ea;
    --tw-surface: #fffdfb;
    --tw-soft: #f1e7de;
    --tw-text: #2d2018;
    --tw-muted: #806f65;
    --tw-brown: #5a3019;
    --tw-brown-dark: #43210f;
    --tw-border: #eadfd6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    direction: rtl;
    background: var(--tw-bg);
    color: var(--tw-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body,
button,
input,
select,
textarea {
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--tw-brown);
}

button,
input,
select,
textarea {
    font-size: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    display: block;
    max-width: 100%;
}

.site-main {
    width: 100%;
    min-height: 50vh;
}

.site-container {
    width: calc(100% - 32px);
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 251, 247, 0.97);
    border-bottom: 1px solid var(--tw-border);
    box-shadow: 0 3px 14px rgba(63, 39, 25, 0.04);
    backdrop-filter: blur(10px);
}

.admin-bar .site-header {
    top: 32px;
}

.header-inner {
    position: relative;
    min-height: 76px;
}

.menu-button,
.cart-button {
    position: absolute;
    top: 16px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #392317;
    border: 0;
    border-radius: 50%;
}

.menu-button {
    right: 0;
    padding: 10px;
}

.menu-button:hover,
.menu-button:focus,
.cart-button:hover,
.cart-button:focus {
    background: #f3e9e0;
    color: #392317;
}

.menu-button span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 2px;
}

.site-logo {
    position: absolute;
    top: 8px;
    right: 58px;
    left: 58px;
    text-align: center;
}

.site-logo > a,
.site-logo .custom-logo-link {
    display: inline-block;
    line-height: 1.1;
}

.site-logo strong {
    display: block;
    color: #392317;
    font-size: 21px;
    font-weight: 800;
}

.site-logo small {
    display: block;
    margin-top: 3px;
    color: #6f5a4b;
    font-size: 11px;
    letter-spacing: 1px;
    direction: ltr;
}

.site-logo .custom-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 58px;
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
}

.cart-button {
    left: 0;
}

.cart-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}

.cart-count {
    position: absolute;
    top: -1px;
    left: -4px;
    z-index: 2;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--tw-brown);
    color: #ffffff;
    border-radius: 18px;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.cart-symbol {
    display: none !important;
}

/* =========================================================
   עמודי תוכן רגילים
   ========================================================= */

.default-page {
    width: 100%;
    padding: 42px 0 72px;
}

.content-card {
    width: 100%;
    padding: 34px;
    background: var(--tw-surface);
    border: 1px solid var(--tw-border);
    border-radius: 20px;
    box-shadow: 0 9px 28px rgba(61, 38, 24, 0.055);
}

.content-card h1,
.content-card h2,
.content-card h3 {
    color: var(--tw-text);
    line-height: 1.3;
}

.content-card h1 {
    margin-top: 0;
}

.page-content,
.entry-content {
    overflow-wrap: anywhere;
}

.page-content p,
.entry-content p,
.page-content li,
.entry-content li {
    color: #54463d;
    line-height: 1.85;
}

.page-content a,
.entry-content a {
    color: var(--tw-brown);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content img,
.entry-content img {
    height: auto;
}

/* =========================================================
   WooCommerce - בסיס בטוח
   ========================================================= */

.woocommerce .woocommerce-breadcrumb,
.woocommerce-breadcrumb,
.ast-breadcrumbs-wrapper,
.ast-breadcrumbs,
.breadcrumbs {
    display: none !important;
}

.woocommerce .site-main,
.woocommerce-page .site-main {
    width: 100%;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
    margin-top: 24px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    overflow: hidden;
    padding: 12px;
    background: var(--tw-surface);
    border: 1px solid var(--tw-border);
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(65, 41, 26, 0.05);
}

.woocommerce ul.products li.product a img {
    margin: 0 0 12px;
    background: var(--tw-soft);
    border-radius: 12px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--tw-text);
    font-size: 16px;
    line-height: 1.4;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--tw-brown);
    font-weight: 800;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--tw-brown);
    color: #ffffff;
    border-radius: 999px;
    font-weight: 800;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--tw-brown-dark);
    color: #ffffff;
}

.woocommerce div.product {
    padding-top: 26px;
    padding-bottom: 50px;
}

.woocommerce div.product div.images img {
    background: var(--tw-soft);
    border-radius: 18px;
}

.woocommerce div.product form.cart .variations select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    min-height: 44px;
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid var(--tw-border);
    border-radius: 10px;
}

/* =========================================================
   מובייל
   ========================================================= */

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media screen and (max-width: 767px) {
    .site-container {
        width: calc(100% - 24px);
    }

    .header-inner {
        min-height: 68px;
    }

    .menu-button,
    .cart-button {
        top: 12px;
    }

    .site-logo {
        top: 7px;
        right: 52px;
        left: 52px;
    }

    .site-logo strong {
        font-size: 17px;
    }

    .site-logo small {
        font-size: 10px;
    }

    .site-logo .custom-logo {
        max-width: 160px;
        max-height: 52px;
    }

    .cart-icon {
        top: 9px;
        left: 9px;
        width: 26px !important;
        height: 26px !important;
        max-width: 26px !important;
        max-height: 26px !important;
    }

    .default-page {
        padding: 24px 0 50px;
    }

    .content-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    body.page:not(.home):not(.woocommerce-page) .page-content,
    body.page:not(.home):not(.woocommerce-page) .entry-content {
        width: 100%;
        max-width: 100%;
    }

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .woocommerce ul.products::before,
    .woocommerce ul.products::after,
    .woocommerce-page ul.products::before,
    .woocommerce-page ul.products::after {
        display: none;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 9px;
    }
}

/* =========================================================
   עמוד הבית – כרטיסי מוצרים מותאמים אישית
   ========================================================= */

.tw-home-product-card {
    overflow: hidden;
    padding: 0 !important;
    background: var(--tw-surface);
    border: 1px solid var(--tw-border);
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(65, 41, 26, 0.05);
}

.tw-home-product-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.08;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: transparent !important;
}

.tw-home-product-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.tw-home-product-info {
    padding: 14px 12px 12px;
}

.tw-home-sale-badge,
.tw-home-heart {
    position: absolute;
    z-index: 2;
}

@media screen and (max-width: 767px) {
    .tw-home-product-image {
        aspect-ratio: 1 / 1.12;
    }

    .tw-home-product-info {
        padding: 13px 10px 11px;
    }


/* =========================================================
   Footer
   ========================================================= */

.tw-footer {
    width: 100%;
    padding: 42px 0 24px;
    background: #efe5dc;
    color: var(--tw-text);
    border-top: 1px solid var(--tw-border);
}

.tw-footer .site-container{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.tw-footer-brand{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.tw-footer-brand strong{
    color:var(--tw-text);
    font-size:24px;
    font-weight:800;
}

.tw-footer-brand span{
    margin-top:4px;
    color:var(--tw-muted);
    direction:ltr;
}

.tw-footer-navigation{
    width:100%;
    margin-top:28px;
    padding:22px 0;
}

.tw-footer-menu{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:14px 28px;
    margin:0;
    padding:0;
    list-style:none;
}
    
.tw-footer-menu a{
    color:var(--tw-text);
    font-weight:700;
}

.tw-footer-contact{
    width:100%;
    margin-top:8px;
    padding:24px 0;
    border-top:1px solid #dbcbbf;
    border-bottom:1px solid #dbcbbf;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.tw-footer-contact span{
    color:var(--tw-muted);
    margin-bottom:6px;
}

.tw-footer-contact a{
    color:var(--tw-brown);
    font-size:16px;
    font-weight:800;
    direction:ltr;
    unicode-bidi:isolate;
}

.tw-footer-bottom{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:22px;
}

.tw-footer-copyright,
.tw-footer-security{
    color:var(--tw-muted);
    font-size:13px;
}

@media (max-width:767px){
    .tw-footer-menu{
        flex-direction:column;
    }
    .tw-footer-bottom{
        flex-direction:column;
        gap:6px;
        text-align:center;
    }
    /* =========================================================
   Footer – צמצום מרווחים במובייל
   ========================================================= */

@media screen and (max-width: 767px) {

    .tw-footer {
        padding: 26px 0 18px;
    }

    .tw-footer .site-container {
        gap: 0;
    }

    .tw-footer-brand {
        margin: 0;
    }

    .tw-footer-brand strong {
        font-size: 22px;
        line-height: 1.2;
    }

    .tw-footer-brand span {
        margin-top: 2px;
        font-size: 13px;
    }

    .tw-footer-navigation {
        margin-top: 18px;
        padding: 16px 0;
    }

    .tw-footer-menu {
        gap: 10px;
    }

    .tw-footer-menu a {
        font-size: 14px;
        line-height: 1.35;
    }

    .tw-footer-contact {
        margin-top: 0;
        padding: 18px 6px;
    }

    .tw-footer-contact span {
        margin-bottom: 3px;
        font-size: 13px;
    }

    .tw-footer-contact a {
        font-size: 14px;
        line-height: 1.3;
    }

    .tw-footer-bottom {
        padding-top: 16px;
        gap: 2px;
    }

    .tw-footer-copyright,
    .tw-footer-security {
        font-size: 12px;
        line-height: 1.4;
    }
    /* ריווח בצדדים לעמודי מדיניות, החזרות ותוכן רגיל */
body.page:not(.home):not(.woocommerce-page) .site-main > article {
    width: min(1100px, calc(100% - 48px));
    margin-inline: auto;
}

/* התאמה למובייל */
@media (max-width: 768px) {
    body.page:not(.home):not(.woocommerce-page) .site-main > article {
        width: calc(100% - 32px);
    }
}
/* ========================================
   תפריט שלושת הקווים
======================================== */

.tw-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;

    background: rgba(38, 27, 22, 0.4);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.tw-menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tw-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;

    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;

    padding: 0 26px 32px;

    background: #fffaf6;
    box-shadow: -12px 0 40px rgba(48, 31, 23, 0.16);

    overflow-y: auto;

    transform: translateX(105%);
    transition: transform 0.32s ease;
}

.tw-mobile-menu.is-open {
    transform: translateX(0);
}

.tw-mobile-menu-header {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(70, 50, 40, 0.12);
}

.tw-mobile-menu-title {
    color: #33251f;
    font-size: 20px;
    font-weight: 700;
}

.tw-menu-close {
    width: 42px;
    height: 42px;
    padding: 0;

    border: 0;
    background: transparent;

    color: #33251f;
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}

.tw-mobile-menu-list {
    margin: 18px 0 0;
    padding: 0;

    list-style: none;
}

.tw-mobile-menu-list li {
    margin: 0;

    border-bottom: 1px solid rgba(70, 50, 40, 0.11);
}

.tw-mobile-menu-list a {
    display: block;

    padding: 18px 2px;

    color: #33251f;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: right;
    text-decoration: none;

    transition:
        color 0.2s ease,
        padding-right 0.2s ease;
}

.tw-mobile-menu-list a:hover,
.tw-mobile-menu-list a:focus,
.tw-mobile-menu-list .current-menu-item > a {
    color: #a66f56;
    padding-right: 7px;
}

body.tw-menu-open {
    overflow: hidden;
}
}
}