* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #f6f6f6;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Changed to min-height for footer */
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e1e1e;
    color: white;
    padding: 10px 20px;
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 101; /* Above menu */
}

.img__logo {
    height: 40px;
    border-radius: 10px;
}


.search {
    display: flex;
    align-items: center;
    gap: 5px; 
}

.search-wrapper {
    position: relative; 
    flex-grow: 1; 
}

.search input {
    width: 100%; 
    padding: 7px;
    border-radius: 5px;
    border: none;
    outline: none;
    padding-right: 35px; 
}

.search-clear-btn {
    display: none; 
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #aaa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
    opacity: 0.7;
    z-index: 5;
}
.search-clear-btn.show {
    display: block; 
}
.search-clear-btn:hover {
    opacity: 1;
}

.search-submit-btn {
    display: none; 
    background: #ff9900;
    color: white;
    border: none;
    border-radius: 5px;
    width: 38px; 
    height: 38px; 
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
}
.search-submit-btn:hover {
    background: #e68a00;
}


.end__menu i {
    font-size: 22px;
    cursor: pointer;
}

.menu {
    background: #efefef;
    padding: 15px;
    width: 200px;
    height: calc(100vh - 60px); /* Adjust height based on header */
    position: fixed;
    top: 60px; /* Position below header */
    left: 0;
    overflow-y: auto;
    z-index: 99; /* Below header */
}

.menu ul {
    list-style: none;
}

.menu li {
    padding: 8px 0;
    cursor: pointer;
    transition: 0.3s;
}

.menu li:hover {
    color: #ff9900;
}

.menu li.active {
    color: #ff9900;
    font-weight: bold;
    background: rgba(255, 153, 0, 0.1);
    padding: 8px;
    border-radius: 5px;
}

.list__card {
    margin-left: 220px;
    padding: 20px;
    flex: 1; /* Allow main content to grow */
    /* Removed overflow-y: auto; container handles scroll */
    width: calc(100% - 220px); /* Adjusted width */
    max-width: calc(100% - 220px);
}

.controls {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.select-wrapper {
    position: relative;
}


.select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 12px; 
    transform: translateY(-50%);
    font-size: 10px; 
    color: #777;
    pointer-events: none; 
}

#sortSelect, #itemsPerPageSelect {
    min-width: 170px;
    padding: 8px 30px 8px 12px; 
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500; 
    background-color: #fff; 

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    cursor: pointer;
}

.current-category {
    background: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ff9900;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.23);
    padding: 10px;
    text-align: center;
    transition: all 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: scale(1.02);
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: contain; /* Changed to contain */
    border-radius: 8px;
    flex-shrink: 0;
}

.card h3 {
    font-size: 16px;
    margin: 10px 0;
    color: #333;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.card p {
    font-weight: bold;
    color: #ff9900;
    margin: 5px 0;
    flex-shrink: 0;
}

.card button {
    background: #ff9900;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-bottom: 5px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.card button:hover {
    background: #e68a00;
}

.card span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    font-weight: bold;
    padding: 5px;
    border-radius: 4px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.05);
}

.card span.green {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.card span.red {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 40px;
}

.pagination button:hover, .pagination button.active {
    background: #ff9900;
    color: white;
}

.pagination .ellipsis {
    padding: 8px 12px;
    color: #666;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease 0s, visibility 0.4s ease 0s;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup.active .popup_content {
    opacity: 1;
    transform: perspective(600px) translate(0, 0) rotateX(0deg);
}

.popup_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.popup_content {
    background: white;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 20px;
    opacity: 0;
    transform: perspective(600px) translate(0, -100%) rotateX(45deg);
    transition: all 0.5s ease 0s;
}

.popup_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.popup_close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.popup_close:hover {
    color: #ff9900;
}


.popup_header div { display: flex; align-items: center; gap: 10px; } 

.popup_share_btn {
    background: none;
    border: none;
    font-size: 20px; 
    cursor: pointer;
    color: #666;
    padding: 0 5px;
}

.popup_share_btn:hover { color: #ff9900; }

.popup_header_buttons {
    position: relative; 
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-share {
    background-color: #333; 
    color: white;
    bottom: 100%; 
    right: 0;
    margin-bottom: 10px; 

    transform: translateY(10px); 
    opacity: 0;
}

.toast-share.show {
    transform: translateY(0); 
    opacity: 1;
}

#productDescription p {
    margin-bottom: 12px;
}

#productDescription ul {
    margin-left: 25px;
    margin-bottom: 12px;
}

#productDescription li {
    margin-bottom: 5px;
}

#productDescription strong {
    color: #1e1e1e;
}

.product_info p {
    margin-bottom: 10px;
    line-height: 1.4;
}

.buy_button {
    background: #ff9900;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.buy_button:hover {
    background: #e68a00;
}

.cart_items {
    margin-bottom: 20px;
}

.cart_item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.cart_item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.cart_item_info {
    flex-grow: 1;
    margin: 0;
}

.cart_item_info p {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

.cart_item_info p:first-child {
    font-weight: 600;
    color: #222;
    font-size: 15px;
    margin-bottom: 8px;
}

.cart_item_info p:nth-child(2) {
   display: flex;
   align-items: center;
   gap: 8px;
}

.cart_item_info p:last-child {
    font-weight: bold;
    color: #333;
    margin-top: 5px;
    margin-bottom: 0;
}

.cart_item_info input[type="number"] {
    width: 55px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}
.cart_item_info input[type=number]::-webkit-outer-spin-button,
.cart_item_info input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart_remove_btn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 15px;
    transition: background 0.3s;
    white-space: nowrap;
}

.cart_remove_btn:hover {
    background: #e60000;
}


.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box; 

    padding-left: 15px; 
    padding-right: 15px;

    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.total p {
    margin: 0; 
}

.cart_clear_btn {
    background-color: #aaa;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px; 
    font-weight: normal; 
    transition: background-color 0.3s;
    flex-shrink: 0; 
}

.cart_clear_btn:hover {
    background-color: #888;
}

.fly-to-cart-img {
    position: fixed; 
    z-index: 1100;
    opacity: 1;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.7s ease-in-out;
    pointer-events: none;
}

.input {
    --background: #fff;
    --border-default: #dcdcdc;
    --border-active: #ff9900;
    --shadow-default: rgba(0, 0, 0, 0.05);
    --shadow-active: rgba(255, 153, 0, 0.2);
    --text-color: #333;
    --placeholder-color: #aaa;
    --placeholder-color-hover: #888;
    --close: #aaa;
    --close-light: #ccc;
    --close-background: #f1f1f1;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--background);
    box-shadow: inset 0 0 0 var(--border-width, 1px) var(--border, var(--border-default)), 0 1px 2px var(--shadow, var(--shadow-default));
    transition: box-shadow 0.2s, border-color 0.2s;
    --clear-x: 0px;
    --clear-swipe-left: 0px;
    --clear-swipe-x: 0;
    --clear-swipe: 0px;
    --clear-scale: 0;
    --clear-rotate: 0deg;
    --clear-opacity: 0;
    --clear-arrow-o: 1;
    --clear-arrow-x: 0px;
    --clear-arrow-y: 0px;
    --clear-arrow-offset: 4px;
    --clear-arrow-offset-second: 4px;
    --clear-line-array: 8.5px;
    --clear-line-offset: 27px;
    --clear-long-array: 8.5px;
    --clear-long-offset: 24px;
}

.input:focus-within {
    --border-width: 1.5px;
    --border: var(--border-active);
    --shadow: var(--shadow-active);
}

.input .text {
    flex-grow: 1;
}

.input .text input {
    -webkit-appearance: none;
    appearance: none;
    line-height: 24px;
    background: none;
    border: none;
    outline: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-color);
}

.input .text input::placeholder {
    color: var(--placeholder-color);
    transition: color 0.2s;
}

.input:hover .text input::placeholder {
    color: var(--placeholder-color-hover);
}

.input .clear {
    -webkit-appearance: none;
    position: relative;
    outline: none;
    z-index: 1;
    padding: 0;
    margin: 12px 12px 12px 0;
    border: none;
    background: var(--b, transparent);
    transition: background 0.2s;
    border-radius: 50%;
    opacity: var(--clear-opacity);
    transform: scale(var(--clear-scale)) translateZ(0);
}
.input .clear:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 12px;
    left: var(--clear-swipe-left);
    background: var(--background);
    transform-origin: 100% 50%;
    transform: translateX(var(--clear-swipe)) scaleX(var(--clear-swipe-x)) translateZ(0);
}
.input .clear svg {
    display: block;
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    outline: none;
    cursor: pointer;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: var(--close);
    transform: translateX(var(--clear-x)) rotate(var(--clear-rotate)) translateZ(0);
}
.input .clear svg path {
    transition: stroke 0.2s;
}
.input .clear svg path.arrow {
    stroke: var(--clear-arrow-stroke, var(--close));
    stroke-dasharray: 4px;
    stroke-dashoffset: var(--clear-arrow-offset);
    opacity: var(--clear-arrow-o);
    transform: translate(var(--clear-arrow-x), var(--clear-arrow-y)) translateZ(0);
}
.input .clear svg path.arrow:last-child {
    stroke-dashoffset: var(--clear-arrow-offset-second);
}
.input .clear svg path.line {
    stroke-dasharray: var(--clear-line-array) 28.5px;
    stroke-dashoffset: var(--clear-line-offset);
}
.input .clear svg path.long {
    stroke: var(--clear-arrow-stroke, var(--close));
    stroke-dasharray: var(--clear-long-array) 15.5px;
    stroke-dashoffset: var(--clear-long-offset);
    opacity: var(--clear-arrow-o);
    transform: translate(var(--clear-arrow-x), var(--clear-arrow-y)) translateZ(0);
}
.input .clear:hover {
    --b: var(--close-background);
}

.button {
    --primary: #F6F8FF;
    --primary-dark: #D1D6EE;
    --primary-darkest: #8A91B4;
    --shadow: rgba(0, 0, 0, 0.3);
    --text: #362A89;
    --text-opacity: 1;
    --success-x: -12;
    --success-stroke: 14;
    --success-opacity: 0;
    --border-radius: 7;
    --overflow: hidden;
    --x: 0;
    --y: 0;
    --rotate: 0;
    --plane-x: 0;
    --plane-y: 0;
    --plane-opacity: 1;
    --trails: rgba(255, 255, 255, 0.15);
    --trails-stroke: 57;
    --left-wing-background: var(--primary);
    --left-wing-first-x: 0;
    --left-wing-first-y: 0;
    --left-wing-second-x: 50;
    --left-wing-second-y: 0;
    --left-wing-third-x: 0;
    --left-wing-third-y: 100;
    --left-body-background: var(--primary);
    --left-body-first-x: 51;
    --left-body-first-y: 0;
    --left-body-second-x: 51;
    --left-body-second-y: 100;
    --left-body-third-x: 0;
    --left-body-third-y: 100;
    --right-wing-background: var(--primary);
    --right-wing-first-x: 49;
    --right-wing-first-y: 0;
    --right-wing-second-x: 100;
    --right-wing-second-y: 0;
    --right-wing-third-x: 100;
    --right-wing-third-y: 100;
    --right-body-background: var(--primary);
    --right-body-first-x: 49;
    --right-body-first-y: 0;
    --right-body-second-x: 49;
    --right-body-second-y: 100;
    --right-body-third-x: 100;
    --right-body-third-y: 100;
    display: block;
    cursor: pointer;
    position: relative;
    border: 0;
    padding: 10px 10px;
    min-width: 150px;
    text-align: center;
    margin: 0;
    line-height: 24px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    background: none;
    outline: none;
    color: var(--text);
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}
.button .plane,
.button .trails {
    pointer-events: none;
    position: absolute;
}
.button .plane {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    filter: drop-shadow(0 3px 6px var(--shadow));
    transform: translate(calc(var(--x) * 1px), calc(var(--y) * 1px)) rotate(calc(var(--rotate) * 1deg)) translateZ(0);
}
.button .plane .left,
.button .plane .right {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: var(--plane-opacity);
    transform: translate(calc(var(--plane-x) * 1px), calc(var(--plane-y) * 1px)) translateZ(0);
}
.button .plane .left:before, .button .plane .left:after,
.button .plane .right:before,
.button .plane .right:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: calc(var(--border-radius) * 1px);
    transform: translate(var(--part-x, 0.4%), var(--part-y, 0)) translateZ(0);
    z-index: var(--z-index, 2);
    background: var(--background, var(--left-wing-background));
    clip-path: polygon(calc(var(--first-x, var(--left-wing-first-x)) * 1%) calc(var(--first-y, var(--left-wing-first-y)) * 1%), calc(var(--second-x, var(--left-wing-second-x)) * 1%) calc(var(--second-y, var(--left-wing-second-y)) * 1%), calc(var(--third-x, var(--left-wing-third-x)) * 1%) calc(var(--third-y, var(--left-wing-third-y)) * 1%));
}
.button .plane .left:after {
    --part-x: -1%;
    --z-index: 1;
    --background: var(--left-body-background);
    --first-x: var(--left-body-first-x);
    --first-y: var(--left-body-first-y);
    --second-x: var(--left-body-second-x);
    --second-y: var(--left-body-second-y);
    --third-x: var(--left-body-third-x);
    --third-y: var(--left-body-third-y);
}
.button .plane .right:before {
    --part-x: -1%;
    --z-index: 2;
    --background: var(--right-wing-background);
    --first-x: var(--right-wing-first-x);
    --first-y: var(--right-wing-first-y);
    --second-x: var(--right-wing-second-x);
    --second-y: var(--right-wing-second-y);
    --third-x: var(--right-wing-third-x);
    --third-y: var(--right-wing-third-y);
}
.button .plane .right:after {
    --part-x: 0;
    --z-index: 1;
    --background: var(--right-body-background);
    --first-x: var(--right-body-first-x);
    --first-y: var(--right-body-first-y);
    --second-x: var(--right-body-second-x);
    --second-y: var(--right-body-second-y);
    --third-x: var(--right-body-third-x);
    --third-y: var(--right-body-third-y);
}
.button .trails {
    display: block;
    width: 33px;
    height: 64px;
    top: -4px;
    left: 16px;
    fill: none;
    stroke: var(--trails);
    stroke-linecap: round;
    stroke-width: 2;
    stroke-dasharray: 57px;
    stroke-dashoffset: calc(var(--trails-stroke) * 1px);
    transform: rotate(68deg) translateZ(0);
}
.button span {
    display: block;
    position: relative;
    z-index: 4;
    opacity: var(--text-opacity);
}
.button span.success {
    z-index: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    transform: translateX(calc(var(--success-x) * 1px)) translateZ(0);
    opacity: var(--success-opacity);
    color: var(--success);
}
.button span.success svg {
    display: inline-block;
    vertical-align: top;
    width: 16px;
    height: 16px;
    margin: 4px 8px 0 0;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 14px;
    stroke: var(--success);
    stroke-dashoffset: calc(var(--success-stroke) * 1px);
}

.form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 15px;
}

.post {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.post p {
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.delivery-options {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.delivery-options label {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.delivery-options input[type="radio"] {
    display: none;
}

.delivery-options label:before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff;
    transition: all 0.2s ease;
}

.delivery-options input[type="radio"]:checked + label {
    background-color: #fff8e1;
    border-color: #ffcc80;
    box-shadow: 0 2px 5px rgba(255, 152, 0, 0.2);
}

.delivery-options input[type="radio"]:checked + label:before {
    border-color: #ff9900;
    background-color: #ff9900;
    box-shadow: inset 0 0 0 3px #fff;
}

.delivery-options label:hover {
    border-color: #ffb74d;
    background-color: #fffaf0;
}

.form__item{
    padding-left: 15px;
    padding-right: 15px;
}

.site-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #777;
    font-size: 14px;
    /* Removed margin-left: 0; not needed without sidebar */
    width: 100%; /* Ensure footer takes full width */
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #ff9900;
}

.footer-copyright p {
    margin: 0;
}

.form-disclaimer {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 15px;
}

.form-disclaimer a {
    color: #555;
    text-decoration: underline;
}

.form-disclaimer a:hover {
    color: #ff9900;
}

.contacts-popup-content {
    padding: 10px;
}

.contacts-about {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.contacts-about h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.contacts-about p {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
}

.contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 20px;
    color: #ff9900;
    width: 30px;
    text-align: center;
    margin-right: 15px;
}

.contact-item a {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #ff9900;
    text-decoration: underline;
}

.basket {
    position: relative;
    padding: 5px;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff9900;
    color: white;
    border-radius: 50%;
    width: 18px; 
    height: 18px; 
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #1e1e1e; 
    text-align: center; 
    line-height: 14px;  
    display: block; 
}
.toast-notification {
    position: absolute;
    bottom: -40px;
    right: 0;
    background-color: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}


.product_image_slider {
    width: 100%;
    max-width: 350px;
    height: 350px;
    margin: 0 auto 20px auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider_wrapper {
    width: 100%;
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.slider_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.slider_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    line-height: 1;
    transition: background-color 0.2s ease;
    display: none;
}

.slider_btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider_btn span {
    margin-bottom: 2px;
}

.slider_btn--prev {
    left: 10px;
}

.slider_btn--next {
    right: 10px;
}

.burger-menu-btn {
    display: none;
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f8f8f8; 
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-left: auto;
}
.price-filter label {
    font-size: 13px;
    color: #555;
}
.price-filter input[type="number"] {
    width: 70px; 
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    -moz-appearance: textfield; 
}
.price-filter input[type=number]::-webkit-outer-spin-button,
.price-filter input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.price-filter button {
    padding: 6px 12px;
    background-color: #ff9900;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}
.price-filter button:hover {
    background-color: #e68a00;
}

.reset-filter-btn {
    padding: 6px 12px;
    background-color: #6c757d; 
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}
.reset-filter-btn:hover {
    background-color: #5a6268;
}

.popup_body {
        display: flex;
        flex-direction: column;
    }

.mobile-filter-btn {
    display: none;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}
.mobile-filter-btn span {
    transition: transform 0.3s ease;
    display: inline-block; 
}
.mobile-filter-btn.open span {
    transform: rotate(180deg); 
}

.sticky-contact-bar {
    position: sticky;
    bottom: 0;
    left: 200px;
    width: calc(100% - 200px);
    background-color: #1e1e1e; 
    padding: 8px 15px;
    display: flex;
    justify-content: center; 
    gap: 25px; 
    z-index: 98; 
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.sticky-contact-bar a {
    color: #f0f0f0; 
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px; 
    transition: color 0.3s;
}

.sticky-contact-bar a:hover {
    color: #ff9900; 
}

.sticky-contact-bar i {
    font-size: 18px; 
}

@media (min-width: 768px) {
    .search input {
        width: 300px; 
        padding-right: 7px; 
    }
    .search-submit-btn {
        display: none; 
    }
    .search-clear-btn {
        display: none !important; 
    }
}


@media (max-width: 991.98px) {

    .header {
        flex-wrap: wrap;
        padding: 10px 15px;
        position: sticky;
    }

    .logo {
        order: 1;
        margin-right: auto;
    }

    .end__menu {
        order: 2;
    }

    .burger-menu-btn {
        order: 3;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: 15px;
        z-index: 105;
    }

    .burger-menu-btn span {
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s linear;
    }

    

    .search {
        order: 4;
        width: 100%;
        margin-top: 10px;
    }
    .search input {
        width: 100%;
        padding-right: 35px; 
    }
    
    .search-submit-btn {
        display: block; 
    }

    .search-clear-btn.show {
        display: block;
    }

    input[type="search"]::-webkit-search-decoration,
    input[type="search"]::-webkit-search-cancel-button,
    input[type="search"]::-webkit-search-results-button,
    input[type="search"]::-webkit-search-results-decoration {
      -webkit-appearance: none;
      display: none;
    }
    input[type="search"]::-ms-clear {  
      display: none;
      width : 0;
      height: 0;
    }

    .total {
        font-size: 16px; 
        padding-left: 10px; 
        padding-right: 10px;
    }

    .cart_clear_btn {
        padding: 5px 8px; 
        font-size: 12px;
    }

    .menu {
        position: fixed;
        top: 10px;
        left: 0;
        width: 250px;
        height: 100%;
        background: #e0e0e0;
        padding-top: 105px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 100;
        overflow-y: auto;
    }

    .menu.open {
        transform: translateX(0);
        box-shadow: 3px 0 10px rgba(0,0,0,0.2);
    }

    .burger-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .list__card {
        margin-left: 0;
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }

    .controls {
        display: none; 
        flex-direction: column; 
        align-items: center; 
        gap: 10px; 
    }

    .controls.open {
        display: flex; 
    }
    
    .mobile-filter-btn {
        display: block;
    }
    .controls .select-wrapper {
        width: 100%; 
    }

    #sortSelect, #itemsPerPageSelect {
        width: 100%;
    }

    .price-filter { 
        justify-content: center; 
        flex-wrap: wrap; 
        margin-left: 0; 
    }

    .current-category {
        font-size: 14px;
    }

    .cards {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .card {
        height: auto;
        min-height: 300px;
        padding: 8px;
    }
    .card img {
        height: 120px;
    }
     .card h3 {
         font-size: 14px;
         min-height: 40px;
         margin: 8px 0;
     }
     .card p {
         font-size: 16px;
         margin: 4px 0;
     }
     .card button {
         padding: 6px 10px;
         font-size: 13px;
     }
     .card span {
         font-size: 12px;
         padding: 4px;
     }

    .pagination button, .pagination .ellipsis {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
    }

    .popup_content {
        max-width: 95vw;
        max-height: 85vh;
        padding: 15px;
    }

    .product_image_slider {
        max-width: 100%;
        height: 280px;
    }
    .slider_wrapper img {
        height: 280px;
    }
     .slider_btn {
         width: 35px;
         height: 35px;
         font-size: 16px;
     }

    .product_info p {
        font-size: 14px;
    }

    .cart_item {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    .cart_item img {
        width: 60px;
        height: 60px;
        margin-right: 0;
        margin-bottom: 10px;
    }
     .cart_item_info { width: 100%; }
     .cart_item_info p:nth-child(2){
         justify-content: space-between;
     }
    .cart_remove_btn {
        margin-left: auto;
        margin-top: 10px;
    }

    .delivery-options {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .input .text input {
        font-size: 14px;
        padding: 10px 14px;
    }

    .site-footer {
        font-size: 13px;
        padding: 15px;
    }
     .footer-links a {
         margin: 0 8px;
     }
    .sticky-contact-bar {
        left: 0; 
        width: 100%;
        padding: 5px 10px;
        gap: 20px;
     }
     .sticky-contact-bar a {
         font-size: 12px;
     }

}

.card {
    position: relative;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff9900;
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 3;
    text-transform: uppercase;
}

.badge-sale { background-color: #dc3545; }
.badge-hit { background-color: #007bff; }
.badge-new { background-color: #28a745; }

.price-container {
    margin: 5px 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    min-height: 24px;
}

.original-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
}

.current-price {
    font-weight: bold;
    color: #ff9900;
    font-size: 18px;
}

.price-container .current-price:only-child {

}

.card p {
   margin: 0;
   padding: 0;
   font-weight: normal;
   color: initial;
}

body.body-no-scroll {
    overflow: hidden;
}

#scrollToTopBtn {
    display: none; 
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 98; 
    border: none;
    outline: none;
    background-color: #ff9900;
    color: white;
    cursor: pointer;
    padding: 0; 
    border-radius: 50%; 
    width: 45px; 
    height: 45px;
    font-size: 24px; 
    line-height: 45px; 
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: opacity 0.3s, visibility 0.3s;
    opacity: 0; 
    visibility: hidden;
}

#scrollToTopBtn.show { 
    display: block;
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn:hover {
    background-color: #e68a00; 
}


@media (max-width: 480px) {
    #scrollToTopBtn {
         bottom: 55px; 
         width: 40px;
         height: 40px;
         font-size: 20px;
         line-height: 40px;
     }
}





body {
    padding-bottom: 50px; 
}


@media (max-width: 480px) {

     body { padding-bottom: 45px; } 
}

@media (max-width: 380px) {
    .total {
        flex-direction: column; 
        gap: 10px; 
    }

    .cart_clear_btn {
        width: 100%; 
        padding: 8px 12px; 
    }
}



confirmation-content { 
    max-width: 600px; 
}

.confirmation-message {
    background-color: #e7f3fe; 
    border-left: 5px solid #2196F3; 
    padding: 15px;
    margin-bottom: 20px;
    font-size: 15px;
    border-radius: 4px;
}

.confirmation-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.confirmation-section:last-of-type { 
     border-bottom: none;
     margin-bottom: 0;
}


.confirmation-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #555;
}

.confirmation-section p,
.confirmation-section div {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}
.confirmation-section strong {
     color: #000;
}


#confirmOrderItems {
    white-space: pre-wrap; 
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    max-height: 150px; 
    overflow-y: auto; 
}

#confirmShippingInfo p { 
    margin-bottom: 5px;
}

.confirmation-close-btn {
    display: block;
    margin: 25px auto 0 auto; 
    padding: 10px 25px;
    background-color: #ff9900;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.confirmation-close-btn:hover {
    background-color: #e68a00;
}

.loader {
    display: none; 
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #888;
    font-weight: bold;
}
.loader.show {
    display: block; 
}

.cards.loading {
    opacity: 0.5; 
    pointer-events: none; 
}
.card.out-of-stock {
    opacity: 0.6; 
    order: 2; 
}

.card.out-of-stock button {
    background-color: #aaa; 
    pointer-events: none; 
    cursor: default;
}


#productCategory a {
    color: #ff9900; 
    text-decoration: none;
    font-weight: 500; 
    cursor: pointer;
    transition: color 0.2s;
}
#productCategory a:hover {
    color: #e68a00; 
    text-decoration: underline;
}

.cards p:only-child {
    grid-column: 1 / -1; 

    text-align: center;
    font-size: 16px;
    color: #777;
    padding: 40px 15px; 
}


