/*  2.1
Developer: profygroup.com
Screen resolution: 460, 860, 1200, 1600, 1920 */


/* ====== До 1200px ====== */
@media (max-width: 1200px) {
    .header-description {
        max-width: 300px;
    }

    .description-title {
        font-size: 16px;
    }

    .description-subtitle {
        font-size: 13px;
    }

    .cart-btn {
        width: 45px;
        height: 45px;
    }

    .cart-icon {
        font-size: 16px;
    }
}

/* ====== До 992px ====== */
@media (max-width: 992px) {
    .header-content {
        gap: 20px;
    }

    .header-description {
        display: none;
    }

    .catalog-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* ====== До 768px ====== */
@media (max-width: 768px) {
    .header-content {
        padding: 15px 0;
        gap: 15px;
    }

    .header-description {
        display: none;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .logo-text {
        font-size: 20px;
    }

    .header-controls {
        gap: 10px;
    }

    .language-switcher {
        display: none;
    }

    .cart-btn {
        width: 40px;
        height: 40px;
    }

    .cart-icon {
        font-size: 14px;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }


    .mobile-menu-content {
        width: 260px;
        padding: 20px 25px 25px;
    }

    /* Footer tablet styles */
    .main-footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        text-align: center;
    }

    .nav-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    /* Scroll to top button tablet */
    .scroll-to-top {
        bottom: 25px;
        right: 25px;
        width: 48px;
        height: 48px;
        font-size: 17px;
    }

    /* Template page tablet styles */
    .template-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .template-header {
        flex-direction: column;
        gap: 25px;
    }



    .template-main-img {
        height: 300px;
    }

    .current-price {
        font-size: 32px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ====== До 480px ====== */
@media (max-width: 480px) {
    .header-content {
        justify-content: space-between;
        gap: 10px;
    }

    .header-logo {
        flex: 1;
        min-width: 0;
    }

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

    .logo-link {
        gap: 8px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .logo-text {
        font-size: 18px;
    }

    .cart-btn {
        width: 35px;
        height: 35px;
    }

    .cart-icon {
        font-size: 12px;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -2px;
        right: -2px;
    }

    .menu-btn {
        width: 35px;
        height: 35px;
    }

    .menu-line {
        width: 20px;
        height: 2px;
    }

    .mobile-menu-content {
        width: 85%;
        padding: 20px 20px 20px;
    }

    .mobile-description-title {
        font-size: 18px;
    }

    .mobile-nav-link {
        font-size: 15px;
        padding: 12px 0;
    }

    /* Footer mobile styles */
    .main-footer {
        padding: 30px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }



    .nav-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-copyright {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Product card mobile styles */
    .product-card {
        margin-bottom: 20px;
    }

    .product-image {
        height: 240px;
    }

    .product-content {
        padding: 16px;
    }


    .product-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .product-footer {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }

    .product-price {
        justify-content: center;
    }

    .btn-buy {
        width: auto;
        flex: none;
        justify-content: center;
        padding: 12px 20px;
        min-width: 120px;
    }

    .cms-logos {
        padding: 3px 5px;
        gap: 4px;
    }

    .cms-logo {
        width: 18px;
        height: 18px;
    }
}

/* ====== До 768px ====== */
@media (max-width: 768px) {
    .product-image {
        height: 220px;
    }

    .product-content {
        padding: 14px;
    }


    .product-description {
        font-size: 11px;
    }


    .price-old {
        font-size: 12px;
    }

    .btn-buy {
        font-size: 12px;
        padding: 10px 14px;
    }
}

/* ====== До 480px ====== */
@media (max-width: 480px) {
    .product-image {
        height: 200px;
    }

    .product-content {
        padding: 12px;
    }


    .product-description {
        font-size: 10px;
        -webkit-line-clamp: 1;
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .product-footer {
        gap: 10px;
    }



    .cms-logo {
        width: 16px;
        height: 16px;
    }

    .badge-new {
        font-size: 9px;
        padding: 3px 6px;
    }

    /* Footer mobile styles */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }


    .footer-copyright {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .copyright-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Scroll to top button mobile */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    /* Template page mobile styles */
    .template-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .template-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }


    .template-title {
        font-size: 24px;
    }

    .purchase-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-buy-now,
    .btn-terms {
        flex: none;
        width: 100%;
    }


    .template-main-img {
        height: 250px;
    }

    .current-price {
        font-size: 28px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Comments responsive */
    .comment-item {
        padding: 15px 0;
        gap: 12px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }

    .author-name {
        font-size: 15px;
    }

    .comment-date {
        font-size: 12px;
    }

    .comment-text p {
        font-size: 14px;
    }
}

/* Header User responsive */
@media (max-width: 768px) {
    .header-user>a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .header-user>div {
        right: -50px;
        min-width: 180px;
        padding: 12px;
    }

    .header-user_av {
        gap: 10px;
    }

    .header-user_av img {
        width: 35px;
        height: 35px;
    }

    .header-user_av span {
        font-size: 13px;
    }

    .header-user_av span span {
        font-size: 11px;
    }

    .header-user_menu a {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-user>a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .header-user>a i {
        font-size: 14px;
    }

    .header-user>div {
        right: -80px;
        min-width: 160px;
        padding: 10px;
    }

    .header-user_av {
        gap: 8px;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .header-user_av img {
        width: 30px;
        height: 30px;
    }

    .header-user_av span {
        font-size: 12px;
    }

    .header-user_av span span {
        font-size: 10px;
    }

    .header-user_menu a {
        padding: 6px 8px;
        font-size: 12px;
        gap: 8px;
    }

    .header-user_menu a i {
        width: 14px;
        font-size: 12px;
    }
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal form {
        width: 95%;
        padding: 25px;
        margin: 20px;
    }

    .modal form h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .modal-login_btn {
        flex-direction: column;
        gap: 10px;
    }

    .modal-login_btn button,
    .modal-login_btn .e-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal form {
        padding: 20px;
        margin: 15px;
    }

    .modal form h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .modal form>i {
        width: 25px;
        height: 25px;
        top: 10px;
        right: 10px;
    }

    .modal-login_lost {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 12px;
    }
}

/* User Profile responsive */
@media (max-width: 768px) {
    .celena-user_content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px;
    }

    .celena-user_profile {
        min-width: auto;
    }

    .celena-user_profile img {
        width: 100px;
        height: 100px;
    }

    .celena-user_profile h3 {
        font-size: 24px;
    }

    .celena-user_profile span {
        font-size: 14px;
    }

    .celena-user_detal {
        width: 100%;
        text-align: left;
    }

    .celena-user_detal span {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .celena-user_detal b {
        min-width: auto;
        margin-bottom: 5px;
    }

    .celena-user_edit {
        padding: 25px;
    }

    .celena-form_flex {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .celena-user {
        margin-bottom: 20px;
        border-radius: 15px;
    }

    .celena-user_content {
        padding: 20px;
        gap: 15px;
    }

    .celena-user_profile img {
        width: 80px;
        height: 80px;
    }

    .celena-user_profile h3 {
        font-size: 20px;
    }

    .celena-user_profile span {
        font-size: 13px;
        padding: 6px 12px;
    }

    .celena-user_detal span {
        font-size: 14px;
    }

    .celena-user_link .e-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .celena-user_edit {
        padding: 20px;
        border-radius: 12px;
    }

    .celena-form_flex label {
        font-size: 13px;
    }

    .celena-form_flex input,
    .celena-form_flex textarea {
        padding: 10px 14px;
        font-size: 15px;
    }

    .celena-user_edit button {
        padding: 10px 20px;
        font-size: 15px;
    }
}

/* New User Profile responsive */
@media (max-width: 768px) {
    .user-profile-page {
        padding: 15px;
    }

    .profile-header {
        padding: 30px 25px;
    }

    .profile-cover {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 25px;
    }

    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .profile-info {
        padding-top: 0;
        text-align: center;
    }

    .profile-name {
        font-size: 28px;
    }

    .profile-stats {
        justify-content: center;
        gap: 25px;
    }

    .profile-actions {
        padding-top: 25px;
        justify-content: center;
    }

    .profile-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .detail-card,
    .activity-card {
        padding: 20px;
    }

    .edit-modal-content {
        width: 95%;
        margin: 10px;
    }

    .edit-header {
        padding: 20px;
    }

    .edit-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .user-profile-page {
        padding: 10px;
    }

    .profile-header {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .profile-header::before {
        height: 100px;
    }

    .profile-avatar img {
        width: 100px;
        height: 100px;
    }

    .avatar-status {
        width: 16px;
        height: 16px;
        bottom: 6px;
        right: 6px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-role {
        font-size: 14px;
    }

    .profile-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .btn-edit,
    .btn-message {
        padding: 10px 16px;
        font-size: 13px;
    }

    .detail-card,
    .activity-card {
        padding: 15px;
        border-radius: 12px;
    }

    .detail-card h3,
    .activity-card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .detail-item {
        gap: 12px;
        padding: 10px 0;
    }

    .activity-item {
        gap: 12px;
        padding: 10px 0;
    }

    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .edit-modal-content {
        width: 95%;
        margin: 5px;
        border-radius: 12px;
    }

    .edit-header {
        padding: 15px;
    }

    .edit-header h2 {
        font-size: 20px;
    }

    .edit-close {
        width: 30px;
        height: 30px;
    }

    .edit-form {
        padding: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 15px;
    }

    .avatar-upload {
        padding: 15px;
    }

    .form-actions {
        gap: 10px;
        margin-top: 20px;
    }

    .form-actions button {
        padding: 10px 16px;
        font-size: 15px;
    }

    /* Cookie Banner mobile styles */
    .cookie-banner {
        padding: 15px;
    }

    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cookie-text {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .cookie-text i {
        align-self: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .btn-accept,
    .btn-decline {
        flex: 1;
        min-width: auto;
        padding: 10px 20px;
    }
}