@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* CSS Custom Properties for easy theming */
:root {
    --primary-color: #ec8620;
    --secondary-color: #20bcec;
    --text-color: #333;
    --light-bg: #edf2f4;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
    --shadow-hover: 0 10px 25px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --border-radius: 6px;
}

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

body {
    background: #fff;
    display: flex;
    max-width: 100vw;
    overflow-x: hidden !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container {
    margin-top: 80px;
    max-width: 48rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.7rem;
    letter-spacing: -1px;
    font-weight: 700;
    line-height: normal;
    color: #000;
    width: 90%;
    text-align: center;
    margin: 0 auto;
    line-height: 1.4;
    animation: slideInDown 1s ease-out 0.2s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    h1 {
        font-size: 28px;
    }
}

.share-btns {
    display: none;
}

.intro-author {
    text-align: center;
    color: #2b2d42;
    font-size: 12px;
    text-transform: uppercase;
    margin: 20px auto;
    animation: fadeIn 1s ease-out 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.main-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: .75rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: zoomIn 1s ease-out 0.6s both;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.main-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.about-element {
    padding-top: 10px;
    padding-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.about-title {
    font-size: 1.125rem;
    font-weight: normal;
    line-height: 1.3;
    color: #333;
    margin-bottom: 10px;
}

.about-text,
.product-about {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6em;
    color: #333;
    margin-bottom: 20px;
    margin-top: 0;
}

.product-about-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.product-about-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.product-about-link:hover::after {
    width: 100%;
}

.product-about-link:hover {
    color: var(--secondary-color);
}

.products-element {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    border-top: 3px solid var(--border-color);
    animation: fadeInUp 1s ease-out 1s both;
}

.product-element:first-child {
    border-top: none;
}

.product-element {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 10px;
    padding: 20px;
    border-top: 3px solid var(--border-color);
    transition: var(--transition);
    animation: slideInRight 0.8s ease-out both;
}

.product-element:nth-child(1) {
    animation-delay: 1.2s;
}

.product-element:nth-child(2) {
    animation-delay: 1.4s;
}

.product-element:nth-child(3) {
    animation-delay: 1.6s;
}

.product-element:nth-child(4) {
    animation-delay: 1.8s;
}

.product-element:nth-child(5) {
    animation-delay: 2.0s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-element:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-number {
    padding: 5px 10px;
    width: 30px;
    background: var(--light-bg);
    font-size: 1.125rem;
    border-radius: .5rem;
    font-weight: bolder;
    color: #333;
    transition: var(--transition-fast);
    display: inline-block;
}

.product-element:hover .product-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.product-info {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.product-link {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
    position: relative;
}

.product-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.product-link:hover::after {
    width: 100%;
}

.product-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.product-img {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    margin: 10px 0 20px 0;
    transition: var(--transition);
}

.product-img:hover {
    transform: scale(1.02);
}

.product-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.product-img:hover img {
    transform: scale(1.1);
}

.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 10px);
    border-radius: var(--border-radius);
    display: flex;
    padding: 30px;
    gap: 15px;
    color: #fff;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 30%,
            rgba(0, 0, 0, 0.3) 60%,
            rgba(0, 0, 0, 0.1) 100%);
    opacity: 0.5;
    transition: var(--transition);
    backdrop-filter: blur(1px);
    transform: translateY(10px);
}

.product-img:hover .img-overlay {
    opacity: 1;
    backdrop-filter: blur(2px);
    transform: translateY(0);
}

.img-overlay-text-rating {
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.img-overlay-text-discount {
    display: flex;
    align-items: center;
    gap: 15px;
    width: fit-content;
    font-size: 18px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.product-img:hover .img-overlay-text-discount {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
}

.img-overlay-text-discount-prc {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    display: inline-block;
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    border-radius: 6px;
    animation: pulse 2s infinite;
    text-shadow: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.product-img:hover .img-overlay-text-discount-prc {
    font-size: 18px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.img-overlay-text-discount-prc:before {
    content: "Discount: ";
    color: #ff6b6b;
    font-size: 16px;
    line-height: 28px;
    height: 28px;
}

.img-overlay-text-discount-prc:after {
    content: "!  🔥";
    color: #ff6b6b;
    font-size: 16px;
    line-height: 28px;
    height: 28px;
}

.img-overlay-text-discount-text {
    display: none;
}

.img-overlay-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 8px;
    width: fit-content;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    transition: var(--transition);
}

.product-img:hover .img-overlay-stars {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
}

span.img-overlay-text-rating {
    font-weight: 600;
    font-size: 16px;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.product-img:hover span.img-overlay-text-rating {
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

span.img-overlay-text-description {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.8;
    transition: var(--transition);
}

.product-img:hover span.img-overlay-text-description {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.img-overlay-stars svg {
    width: 22px;
    height: 22px;
    transition: var(--transition-fast);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.img-overlay-stars svg:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.product-to-button-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
    height: 60px;
    background: var(--primary-color);
    box-shadow: var(--shadow);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-to-button-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.product-to-button-link:hover::before {
    left: 100%;
}

.product-to-button-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
    background: var(--secondary-color);
}

.link-icon {
    width: 40px;
    height: 40px;
    transition: var(--transition-fast);
}

.product-to-button-link:hover .link-icon {
    transform: scale(1.05);
}

.search-icon {
    width: 20px;
    height: 20px;
}

/* Enhanced Header */
header {
    width: 100vw;
    overflow-x: hidden !important;
    display: flex;
    justify-content: center;
    padding-top: 20px;
    align-items: center;
    flex-direction: column;
    box-shadow: var(--shadow);
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    width: 68rem;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.header-logo img {
    width: 100px;
    height: auto;
    transition: var(--transition-fast);
}

.header-logo img:hover {
    transform: scale(1.05);
}

.header-search-product {
    position: relative;
    width: 450px;
}

.header-search-product input {
    width: 100%;
    height: 35px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 0 10px;
    transition: var(--transition);
    font-size: 16px;
}

.header-search-product input:focus {
    outline: none;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(32, 188, 236, 0.1);
}

.header-search-product button {
    position: absolute;
    right: 9px;
    top: 9px;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.header-search-product button:hover {
    transform: scale(1.1);
}

.header-search-product button svg {
    width: 18px;
    height: 18px;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-socials a {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #de9c5a;
    transition: var(--transition-fast);
}

.header-socials a:hover {
    background: #00000010;
    transform: translateY(-2px);
}

.header-menu-wrapper {
    margin-top: 10px;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ff80002f;
}

.header-menu {
    height: 50px;
    width: 1250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.header-menu-item {
    list-style: none;
}

.header-menu-link {
    text-decoration: none;
    color: #743a01;
    font-size: 16px;
    position: relative;
    transition: var(--transition-fast);
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

.header-menu-link:hover {
    color: var(--primary-color);
    background: rgba(236, 134, 32, 0.1);
}

.header-menu-link-span {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.header-menu-link:hover .header-menu-link-span {
    width: 100%;
}

/* Enhanced Footer */
footer {
    margin-top: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100vw;
    display: flex;
    align-items: center;
    flex-direction: column;
    background: #ff800019;
}

.footer-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.footer-logo {
    width: 150px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    transition: var(--transition-fast);
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    width: 400px;
    flex-wrap: wrap;
    gap: 5px;
}

.footer-link {
    text-decoration: none;
    width: 150px;
    color: #000;
    transition: var(--transition-fast);
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

.footer-link:hover {
    color: var(--primary-color);
    background: rgba(236, 134, 32, 0.1);
    transform: translateX(5px);
}

.footer-copyright {
    font-size: 12px;
    color: #000;
    margin-top: 40px;
}

.page-count {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Simple Burger Menu */
.header-menu-burger {
    display: none;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.header-menu-burger:hover {
    background: rgba(236, 134, 32, 0.1);
}

.header-menu-burger svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.header-menu-burger.active svg {
    transform: rotate(90deg);
}

/* Media Queries */
@media (max-width: 1400px) {
    .header-menu {
        width: 90vw;
        justify-content: space-evenly;
        gap: 10px;
    }

    .header-container {
        width: 90vw;
    }
}

@media (max-width: 1100px) {
    body {
        width: 100vw;
    }

    header {
        flex-direction: row;
        padding-bottom: 20px;
    }

    .header-container {
        width: 20vw;
    }

    .header-menu-wrapper {
        background: none;
        width: 50vw;
    }

    .header-menu {
        width: 50vw;
        justify-content: space-evenly;
        gap: 0;
    }

    .header-menu-item {
        width: 100px;
    }

    .header-search-product {
        display: none;
    }

    .header-socials {
        display: none;
    }

    .container {
        width: 90vw;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-links {
        width: 100%;
    }

    .footer-link {
        width: 100%;
    }

    .footer-copyright {
        margin-top: 10px;
    }
}

@media (max-width: 800px) {
    body {
        width: 100vw;
    }

    .header-logo img {
        width: 80px;
    }

    .header-container {
        gap: 10px;
        width: 90vw;
        justify-content: space-between;
    }

    .header-menu-wrapper {
        position: relative;
        width: auto;
        height: auto;
    }

    .header-menu-burger {
        display: block !important;
    }

    .header-menu {
        opacity: 0;
        visibility: hidden;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        transition: var(--transition);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow);
        transform: translateY(-20px);
    }

    .header-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header-menu-item {
        margin: 15px 0;
        width: auto;
    }

    .header-menu-link {
        font-size: 18px;
        padding: 10px 20px;
    }

    header {
        width: 100vw;
        transition: var(--transition);
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    h1 {
        font-size: 24px;
    }

    .about-title {
        font-size: 18px;
    }

    .about-text,
    .product-about {
        font-size: 18px;
    }

    .product-number {
        font-size: 20px;
        width: auto;
        height: auto;
    }

    .product-info {
        font-size: 20px;
    }

    .product-link {
        font-size: 20px;
    }

    .product-to-button-link {
        font-size: 15px;
    }

    .link-icon {
        width: 30px;
        height: 30px;
    }

    .product-img {
        height: 50vw;
    }

    .img-overlay {
        padding: 15px;
        height: calc(100% + 10px);
        gap: 10px;
    }

    .img-overlay-text-discount-prc {
        font-size: 14px;
        padding: 3px 6px;
    }

    .img-overlay-text-discount-prc:before {
        font-size: 14px;
        line-height: 1.2;
        height: auto;
    }

    .img-overlay-text-discount-prc:after {
        font-size: 14px;
        line-height: 1.2;
        height: auto;
    }

    .img-overlay-text-discount {
        font-size: 14px;
        flex-wrap: wrap;
        padding: 6px 10px;
        gap: 8px;
        margin-bottom: 10px;
    }

    .img-overlay-text-rating {
        font-size: 14px;
    }

    .img-overlay-text-description {
        font-size: 12px;
    }

    .img-overlay-stars {
        margin-top: 8px;
        flex-wrap: wrap;
        padding: 8px 10px;
        gap: 4px;
        margin-bottom: 8px;
    }

    .img-overlay-text-rating-wrapper {
        display: block;
        width: 100%;
    }

    .img-overlay-stars svg {
        width: 16px;
        height: 16px;
    }

    .img-overlay-text-rating {
        font-size: 14px;
    }

    .product-img:hover .img-overlay-text-rating {
        font-size: 15px;
    }

    .product-img:hover .img-overlay-text-description {
        font-size: 13px;
    }

    .product-img:hover .img-overlay-text-discount-prc {
        font-size: 15px;
        padding: 4px 7px;
    }

    .product-img:hover .img-overlay-text-discount {
        padding: 7px 11px;
    }

    .product-img:hover .img-overlay-stars {
        padding: 9px 11px;
    }

    footer {
        margin-top: 0;
    }

    .footer-container {
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        width: 150px;
    }
}

/* Loading animations for better UX */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Search Results Styles */
.search-results-section {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease-out;
}

.search-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.clear-search-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.clear-search-link:hover {
    color: #d17a1a;
    text-decoration: underline;
}

.search-results-count {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.no-results-message {
    text-align: center;
    padding: 2rem 1rem;
}

.no-results-text {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.no-results-suggestion {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.no-results-suggestion a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.no-results-suggestion a:hover {
    color: #d17a1a;
    text-decoration: underline;
}

/* Responsive adjustments for search results */
@media (max-width: 800px) {
    .search-results-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .search-results-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .no-results-text {
        font-size: 1.1rem;
    }
}