html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

html,
body {
  max-width: 100%;
}

body {
  min-width: 0;
}

img,
video,
iframe {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

.container,
.navbar,
.nav-icons,
.logo,
.logo-text,
.footer-column,
.product-card,
.cart-item,
.dashboard-content,
.checkout-card,
.contact-form-wrapper,
.auth-card {
  min-width: 0;
}

.btn,
.menu-item,
.nav-menu a,
.footer-column a,
.footer .contact-text,
.content-header,
.content-header h2,
.content-header p,
.user-name,
.user-email,
.stat-card,
.stat-info,
.stat-info h3,
.stat-info p,
.product-title,
.item-details,
.order-info,
.order-number,
.order-date,
.order-price,
.status-badge,
.notif-content,
.notif-content p,
.notif-time,
.address-body,
.checkout-delivery-card,
.summary-item,
.summary-row {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-grid,
.dashboard-sidebar,
.dashboard-menu,
.dashboard-menu .menu-item,
.dashboard-menu .menu-item span:not(.badge),
.user-profile-card,
.content-header,
.content-header > div,
.stats-grid,
.stat-card,
.stat-info,
.dashboard-row,
.recent-orders-card,
.notifications-card,
.order-item,
.notification-item,
.notif-content {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1100px) {
  .container {
    max-width: 100%;
    padding-left: 22px;
    padding-right: 22px;
  }

  .navbar {
    gap: 1rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .hero .container,
  .about-grid,
  .product-detail-grid,
  .shop-layout,
  .cart-layout,
  .checkout-layout,
  .quick-pay-layout,
  .dashboard-grid,
  .contact-main-grid {
    grid-template-columns: 1fr;
  }

  .shop-sidebar,
  .cart-sidebar,
  .dashboard-sidebar,
  .contact-sidebar {
    position: static;
  }

  .cart-sidebar,
  .contact-sidebar {
    order: -1;
  }

  .checkout-summary {
    order: -1;
  }

  .hero {
    padding: 4rem 0 3.25rem;
  }

  .hero .container {
    gap: 2.25rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-buttons,
  .hero-stats,
  .section-header {
    justify-content: center;
  }

  .hero-image-wrapper {
    height: 390px;
    max-width: 560px;
    margin: 0 auto;
  }

  .floating-card.card-1 {
    right: 0;
  }

  .floating-card.card-2 {
    left: 0;
  }

  .categories-grid,
  .features-grid,
  .contact-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .filter-box {
    margin-bottom: 0;
  }

  .dashboard-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
  }

  .dashboard-menu {
    align-self: stretch;
  }

  .dashboard-row,
  .stats-grid,
  .favorites-grid,
  .addresses-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .header {
    z-index: 1200;
    padding: 0;
  }

  .navbar {
    position: relative;
    min-height: 66px;
    padding: 0.7rem 0;
    gap: 0.75rem;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
    gap: 9px;
  }

  .logo:hover {
    transform: none;
  }

  .logo-icon {
    flex: 0 0 auto;
    font-size: 2rem;
  }

  .logo-text {
    min-width: 0;
  }

  .logo-text h1 {
    max-width: 100%;
    overflow: hidden;
    font-size: 1.12rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo-text span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-icons {
    flex: 0 0 auto;
    gap: 0.35rem;
  }

  .cart-count {
    top: -2px;
    right: -2px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
  }

  .mobile-menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(139, 111, 71, 0.14);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(74, 55, 40, 0.08);
  }

  .mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--dark-brown);
    transform-origin: center;
  }

  .mobile-menu-btn.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-btn.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-menu-btn.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: auto;
    left: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    width: min(284px, calc(100vw - 32px));
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    border: 1px solid rgba(139, 111, 71, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(74, 55, 40, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translate(-8px, -8px) scale(0.98);
    transform-origin: top left;
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.25s ease, padding 0.2s ease, visibility 0.2s ease;
  }

  .nav-menu.is-open,
  .nav-menu.active {
    max-height: min(68vh, 390px);
    padding: 8px;
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, 0) scale(1);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 0.95rem;
    text-align: right;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a.active,
  .nav-menu a:hover,
  .nav-menu a:focus-visible {
    background: var(--cream);
    color: var(--light-brown);
  }

  .account-menu-panel {
    left: -4px;
    width: min(240px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .header-search {
    min-width: 180px;
    width: min(260px, 42vw);
  }

  .promo-banner-inner {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .promo-banner-content {
    justify-content: center;
    text-align: center;
    line-height: 1.7;
  }

  .promo-banner-link {
    width: 100%;
  }

  .promo-banner-close {
    inset-block-start: 10px;
    transform: none;
  }

  .page-header {
    padding: 34px 0 28px;
  }

  .page-header h1 {
    font-size: 1.85rem;
  }

  .page-header p {
    font-size: 0.95rem;
  }

  .auth-section,
  .checkout-section,
  .cart-section,
  .shop-section,
  .product-detail-section,
  .contact-section,
  .dashboard-section,
  .about-intro,
  .stats-section,
  .values-section,
  .team-section,
  .cta-section,
  .featured-products,
  .features,
  .testimonials,
  .home-media-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .auth-card,
  .checkout-card,
  .checkout-summary,
  .order-success,
  .cart-main,
  .summary-box,
  .coupon-box,
  .shipping-box,
  .benefits-box,
  .dashboard-content,
  .profile-form-card,
  .password-card,
  .contact-form-wrapper,
  .map-wrapper,
  .social-box,
  .faq-box,
  .product-detail-info,
  .product-description-box,
  .product-video-box,
  .related-products,
  .home-media-box {
    border-radius: 10px;
    padding: 20px;
  }

  .section-header {
    align-items: center;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    text-align: center;
  }

  .section-header h2,
  .about-content h2,
  .cta-content h2,
  .form-header h2,
  .content-header h2 {
    font-size: 1.75rem;
    line-height: 1.35;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-subtitle,
  .lead,
  .section-header p,
  .cta-content p {
    font-size: 1rem;
  }

  .shop-toolbar,
  .content-header,
  .cart-header,
  .card-header,
  .admin-panel-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .shop-controls,
  .filter-buttons,
  .payment-actions,
  .form-actions,
  .cart-actions,
  .auth-actions {
    width: 100%;
  }

  .shop-controls,
  .payment-actions,
  .form-actions,
  .cart-actions,
  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-select,
  .filter-search,
  .filter-search input,
  .shop-controls .view-toggle,
  .auth-actions .btn,
  .auth-actions .auth-link,
  .payment-actions .btn,
  .form-actions .btn,
  .cart-actions .btn {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-image,
  .product-img-wrapper {
    height: 190px;
    background:
      radial-gradient(circle at 22% 18%, rgba(255, 194, 71, 0.22), transparent 32%),
      linear-gradient(135deg, #fffaf3 0%, #f7efe5 100%);
  }

  .product-image img,
  .product-img-wrapper img,
  .related-card img,
  .team-image img {
    object-fit: contain;
    padding: 14px;
    transform: none !important;
  }

  .product-card:hover .product-image img,
  .product-card:hover .product-img-wrapper img,
  .team-card:hover .team-image img {
    transform: none !important;
  }

  .product-overlay {
    position: static;
    padding: 12px 16px 0;
    background: transparent;
    transform: none;
  }

  .btn-quick-view,
  .quick-view {
    width: 100%;
  }

  .shop-sidebar,
  .dashboard-sidebar,
  .contact-main-grid,
  .form-row,
  .form-grid,
  .profile-form,
  .address-form,
  .password-form {
    grid-template-columns: 1fr;
  }

  .categories-grid,
  .features-grid,
  .stats-grid,
  .values-grid,
  .team-grid,
  .contact-info-grid,
  .dashboard-row,
  .checkout-grid,
  .products-grid,
  .products-slider,
  .favorites-grid,
  .addresses-grid,
  .related-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .checkout-grid .full,
  .form-group.full {
    grid-column: 1 / -1;
  }

  .payment-actions,
  .hero-buttons,
  .cta-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 10px;
  }

  .payment-actions form,
  .payment-actions .btn,
  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .manual-city-fields,
  .support-field-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-menu .menu-item {
    margin-bottom: 0;
  }

  .dashboard-menu .menu-item.logout {
    grid-column: 1 / -1;
  }

  .user-profile-card {
    margin-bottom: 0;
  }

  .cart-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px;
  }

  .item-image {
    width: 92px;
    height: 92px;
  }

  .item-quantity,
  .item-total {
    grid-column: 1 / -1;
  }

  .item-quantity {
    justify-self: stretch;
    justify-content: space-between;
  }

  .item-total {
    min-width: 0;
    text-align: right;
  }

  .btn-remove {
    position: absolute;
    top: 12px;
    left: 12px;
  }

  .checkout-coupon-form,
  .checkout-coupon-applied,
  .coupon-input-group,
  .coupon-applied {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-coupon-form button,
  .checkout-coupon-applied button,
  .coupon-input-group .btn {
    width: 100%;
  }

  .order-card-header,
  .order-card-footer,
  .order-item,
  .order-product-item,
  .address-header,
  .profile-avatar-section,
  .notification-card,
  .notification-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-card-footer .btn,
  .address-actions,
  .avatar-actions {
    width: 100%;
  }

  .address-actions,
  .avatar-actions {
    justify-content: flex-start;
  }

  .address-actions .btn,
  .avatar-actions .btn,
  .order-item .btn {
    width: 100%;
    justify-content: center;
  }

  .invoice-address-row,
  .checkout-delivery-card div {
    grid-template-columns: minmax(70px, 0.7fr) minmax(0, 1.3fr);
    gap: 7px;
  }

  .footer-grid,
  .footer .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .footer-grid .footer-column:first-child,
  .footer-grid .footer-column:last-child,
  .footer .contact-list li:nth-child(5),
  .footer .contact-list li:nth-child(6) {
    grid-column: 1 / -1;
  }

  .footer {
    padding-top: 34px;
  }

  .support-widget {
    right: 16px;
    left: 16px;
    bottom: 16px;
    align-items: stretch;
  }

  .support-widget-toggle {
    align-self: flex-start;
  }

  .support-widget-panel {
    width: 100%;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    border-radius: 14px;
  }

  .support-field-grid,
  .support-chat-send-row,
  .support-widget-choice button {
    grid-template-columns: 1fr;
  }

  .cart-toast {
    right: 14px;
    left: 14px;
    bottom: 88px;
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .logo {
    max-width: calc(100% - 160px);
  }

  .nav-icons.search-active {
    order: 3;
    width: 100%;
    flex: 1 0 100%;
    justify-content: flex-start;
    padding-top: 4px;
  }

  .nav-icons.search-active .header-search {
    order: -1;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .nav-menu {
    top: calc(100% + 6px);
    width: min(276px, calc(100vw - 28px));
  }

  .header-search {
    width: min(220px, 44vw);
    min-width: 150px;
  }

  .account-menu-panel {
    left: -46px;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-buttons,
  .cta-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  .hero-buttons .btn,
  .cta-buttons .btn,
  .btn-checkout,
  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-item h3 {
    font-size: 1.45rem;
  }

  .hero-image-wrapper {
    height: 300px;
  }

  .hero-banner-photo {
    inset: 26px 0 18px;
    border-radius: 12px;
  }

  .floating-card {
    max-width: calc(100% - 22px);
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
  }

  .floating-card.card-1 {
    top: 0;
  }

  .floating-card.card-2 {
    bottom: 0;
  }

  .categories-grid,
  .features-grid,
  .stats-grid,
  .values-grid,
  .team-grid,
  .contact-info-grid,
  .dashboard-row,
  .checkout-grid,
  .products-grid,
  .products-slider,
  .favorites-grid,
  .addresses-grid,
  .related-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .checkout-delivery-card div {
    grid-template-columns: minmax(62px, 0.7fr) minmax(0, 1.3fr);
    gap: 6px;
  }

  .testimonials-viewport {
    margin: 0 -6px;
  }

  .testimonial-slide {
    flex: 0 0 50%;
    padding: 0 6px;
  }

  .product-card,
  .category-card,
  .testimonial-card,
  .feature-card,
  .value-card,
  .team-card,
  .contact-info-card,
  .stat-card,
  .address-card,
  .add-address-card {
    border-radius: 10px;
  }

  .product-image,
  .product-img-wrapper {
    height: clamp(118px, 34vw, 150px);
  }

  .related-card img {
    height: 150px;
  }

  .team-image {
    height: clamp(118px, 34vw, 150px);
  }

  .product-info,
  .category-card,
  .testimonial-card,
  .feature-card,
  .value-card,
  .team-info,
  .contact-info-card,
  .stat-card,
  .address-card,
  .add-address-card {
    padding: 12px;
  }

  .categories-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }

  .categories-all-link {
    font-size: 0.82rem;
  }

  .feature-icon-wrapper {
    margin-bottom: 8px;
  }

  .feature-icon,
  .info-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    font-size: 1.2rem;
  }

  .value-icon,
  .stat-icon {
    margin-bottom: 8px;
    font-size: 1.7rem;
  }

  .category-icon {
    margin-bottom: 6px;
    font-size: 1.85rem;
  }

  .category-card h3,
  .feature-card h3,
  .value-card h3,
  .contact-info-card h3,
  .team-info h3,
  .address-card h3,
  .add-address-card h3 {
    margin-bottom: 4px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .category-card p,
  .feature-card p,
  .value-card p,
  .contact-info-card p,
  .team-info p,
  .address-card p,
  .add-address-card p {
    font-size: 0.74rem;
    line-height: 1.6;
  }

  .stat-number {
    margin-bottom: 5px;
    font-size: 1.45rem;
  }

  .stat-label {
    font-size: 0.74rem;
  }

  .product-rating {
    gap: 4px;
    margin-bottom: 6px;
  }

  .stars {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .rating-count {
    font-size: 0.68rem;
  }

  .product-title {
    display: -webkit-box;
    margin-bottom: 6px;
    overflow: hidden;
    font-size: 0.84rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-desc {
    display: none;
  }

  .product-meta {
    margin-bottom: 8px;
    padding-bottom: 8px;
    font-size: 0.72rem;
  }

  .product-weight {
    gap: 4px;
    font-size: 0.72rem;
  }

  .product-weight svg {
    width: 13px;
    height: 13px;
  }

  .stock,
  .product-stock {
    padding: 3px 7px;
    font-size: 0.66rem;
    line-height: 1.25;
  }

  .product-price {
    min-width: 0;
    margin-bottom: 8px;
  }

  .price-new,
  .product-price .price {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .price-old,
  .product-price .old-price {
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .price-new small,
  .product-price .price small {
    display: block;
    font-size: 0.6rem;
    line-height: 1.5;
  }

  .product-info > .btn-add-cart {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin-right: auto;
    padding: 0;
    border-radius: 50%;
    gap: 0;
    font-size: 0;
  }

  .product-info > .btn-add-cart svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }

  .product-info > .btn-add-cart.added {
    font-size: 1rem;
    font-weight: 900;
  }

  .product-info > .btn-add-cart.cart-action-loading svg,
  .product-footer .btn-add-cart.cart-action-loading svg {
    display: none;
  }

  .product-info > .btn-add-cart.cart-action-loading::after,
  .product-footer .btn-add-cart.cart-action-loading::after {
    margin-right: 0;
  }

  .product-footer {
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .product-footer .product-price {
    flex: 1 1 auto;
    min-width: 0;
  }

  .product-footer .btn-add-cart {
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
    transform: none;
    box-shadow: 0 8px 18px rgba(139, 111, 71, 0.2);
  }

  .product-footer .btn-add-cart::after {
    content: none;
  }

  .product-footer .btn-add-cart svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }

  .product-footer .btn-add-cart:hover,
  .product-footer .btn-add-cart:focus-visible {
    transform: translateY(-1px);
  }

  .product-footer .btn-add-cart:disabled::after {
    content: none;
  }

  .testimonial-card {
    box-shadow: 0 4px 14px rgba(74, 55, 40, 0.08);
  }

  .testimonial-rating {
    gap: 2px;
    margin-bottom: 8px;
  }

  .testimonial-rating .star {
    font-size: 0.78rem;
  }

  .testimonial-video {
    margin-bottom: 10px;
    border-radius: 7px;
  }

  .testimonial-text {
    display: -webkit-box;
    margin-bottom: 12px;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .testimonial-author {
    gap: 8px;
    padding-top: 10px;
  }

  .author-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .author-info h4 {
    font-size: 0.82rem;
  }

  .author-info p {
    font-size: 0.72rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .footer-grid .footer-column:first-child,
  .footer-grid .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .footer .contact-list li:nth-child(5),
  .footer .contact-list li:nth-child(6) {
    grid-column: 1 / -1;
  }

  .footer-column h4 {
    font-size: 0.92rem;
  }

  .footer-desc,
  .footer-column li,
  .footer-column a,
  .footer .contact-text {
    font-size: 0.82rem;
  }

  .footer .contact-list li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    min-height: 38px;
    padding: 6px;
  }

  .footer .contact-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 0.78rem;
  }

  .product-meta,
  .detail-price,
  .summary-item,
  .summary-total,
  .summary-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .product-detail-media {
    max-height: 260px;
    aspect-ratio: 4 / 3;
  }

  .product-detail-media img {
    object-fit: contain;
    padding: 14px;
    background: #fffaf3;
  }

  .product-detail-info h2 {
    font-size: 1.55rem;
  }

  .detail-cart-form,
  .package-picker,
  .price-range-values,
  .price-inputs {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .detail-cart-form {
    flex-direction: column;
  }

  .detail-cart-form input,
  .package-picker select,
  .package-picker input {
    width: 100%;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  .page-btn,
  .pagination button {
    min-width: 38px;
    height: 38px;
  }

  .dashboard-menu {
    grid-template-columns: 1fr;
  }

  .dashboard-content,
  .cart-main,
  .summary-box,
  .coupon-box,
  .shipping-box,
  .benefits-box,
  .auth-card,
  .checkout-card,
  .checkout-summary,
  .contact-form-wrapper,
  .map-wrapper,
  .social-box,
  .faq-box,
  .product-detail-info,
  .product-description-box,
  .product-video-box,
  .related-products {
    padding: 16px;
  }

  .user-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .order-product-item {
    text-align: right;
  }

  .order-product-item img {
    width: 72px;
    height: 72px;
  }

  .order-card,
  .notification-card,
  .notification-item {
    padding: 16px;
  }

  .modal-content {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
  }

  .form-control,
  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 46px;
  }

  .support-widget {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .support-widget-toggle {
    min-width: 58px;
    width: 58px;
    min-height: 54px;
    padding: 0;
  }

  .support-widget-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .footer-logo,
  .footer-column {
    text-align: right;
  }

  .about-image {
    border-radius: 12px;
  }

  .experience-badge {
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
    border-radius: 10px;
  }

  .badge-number {
    font-size: 1.75rem;
  }

  .badge-text {
    font-size: 0.78rem;
  }

  .offline-map {
    min-height: 220px;
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar {
    min-height: 60px;
    gap: 6px;
  }

  .logo {
    max-width: calc(100% - 154px);
    gap: 7px;
  }

  .logo-icon {
    font-size: 1.55rem;
  }

  .logo-text h1 {
    font-size: 0.98rem;
  }

  .logo-text span {
    display: none;
  }

  .nav-icons {
    gap: 3px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .mobile-menu-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
  }

  .mobile-menu-btn span {
    width: 18px;
  }

  .cart-count {
    width: 16px;
    height: 16px;
    font-size: 0.62rem;
  }

  .account-menu-panel {
    left: -58px;
  }

  .hero-title,
  .page-header h1,
  .section-header h2,
  .about-content h2,
  .cta-content h2,
  .content-header h2 {
    font-size: 1.55rem;
  }

  .page-header p,
  .hero-subtitle,
  .lead,
  .section-header p,
  .cta-content p {
    font-size: 0.92rem;
  }

  .hero-stats,
  .user-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-image-wrapper {
    height: 260px;
  }

  .floating-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 8px auto 0;
    animation: none;
  }

  .experience-badge {
    position: static;
    margin: 10px;
  }

  .cart-item {
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 12px;
  }

  .item-image {
    width: 74px;
    height: 74px;
  }

  .btn-remove {
    width: 34px;
    height: 34px;
  }

  .product-image,
  .product-img-wrapper {
    height: clamp(112px, 32vw, 132px);
  }

  .product-footer {
    gap: 6px;
  }

  .product-info > .btn-add-cart,
  .product-footer .btn-add-cart {
    flex-basis: 36px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }

  .shop-section .product-info > .btn-add-cart {
    flex-basis: auto;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 40px;
    margin-right: 0;
    padding: 9px 12px;
    border-radius: 8px;
    gap: 6px;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .shop-section .product-info > .btn-add-cart svg {
    display: inline-flex;
    width: 15px;
    height: 15px;
  }

  .shop-section .product-info > .btn-add-cart.added {
    font-size: 0.78rem;
  }

  .categories-grid,
  .features-grid,
  .stats-grid,
  .values-grid,
  .team-grid,
  .contact-info-grid,
  .dashboard-row,
  .checkout-grid,
  .products-grid,
  .products-slider,
  .favorites-grid,
  .addresses-grid,
  .related-grid,
  .testimonials-grid,
  .footer-grid,
  .footer .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .payment-actions,
  .hero-buttons,
  .cta-buttons {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
  }

  .checkout-delivery-card div {
    grid-template-columns: minmax(56px, 0.7fr) minmax(0, 1.3fr);
    gap: 6px;
  }

  .testimonial-slide {
    flex: 0 0 50%;
  }

  .footer-grid .footer-column:first-child,
  .footer-grid .footer-column:last-child,
  .footer .contact-list li:nth-child(5),
  .footer .contact-list li:nth-child(6) {
    grid-column: 1 / -1;
  }

  .product-info,
  .category-card,
  .testimonial-card,
  .feature-card,
  .value-card,
  .team-info,
  .contact-info-card,
  .stat-card,
  .address-card,
  .add-address-card,
  .dashboard-content,
  .cart-main,
  .summary-box,
  .coupon-box,
  .shipping-box,
  .benefits-box,
  .auth-card,
  .checkout-card,
  .checkout-summary,
  .contact-form-wrapper,
  .map-wrapper,
  .social-box,
  .faq-box,
  .product-detail-info,
  .product-description-box,
  .product-video-box,
  .related-products {
    padding: 10px;
  }

  .product-title {
    font-size: 0.78rem;
  }

  .category-card h3 {
    font-size: 0.84rem;
  }

  .feature-card h3,
  .value-card h3,
  .contact-info-card h3,
  .team-info h3,
  .address-card h3,
  .add-address-card h3 {
    font-size: 0.82rem;
  }

  .category-card p,
  .feature-card p,
  .value-card p,
  .contact-info-card p,
  .team-info p,
  .address-card p,
  .add-address-card p {
    font-size: 0.7rem;
  }

  .testimonial-text {
    font-size: 0.74rem;
  }

  .feature-icon,
  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 1.08rem;
  }

  .value-icon,
  .stat-icon {
    font-size: 1.45rem;
  }

  .filter-box,
  .recent-orders-card,
  .notifications-card,
  .order-card,
  .notification-card,
  .notification-item {
    padding: 14px;
  }

  .support-widget {
    right: 10px;
    left: 10px;
    bottom: 10px;
  }

  .support-widget-panel {
    max-height: calc(100vh - 86px);
  }
}

@media (max-width: 520px) {
  .shop-section .products-grid {
    grid-template-columns: 1fr;
  }

  .shop-section .product-image {
    height: clamp(190px, 58vw, 240px);
  }

  .shop-section .product-title {
    min-height: 0;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .logo {
    max-width: calc(100% - 150px);
    gap: 5px;
  }

  .logo-icon {
    font-size: 1.35rem;
  }

  .logo-text h1 {
    font-size: 0.9rem;
  }

  .nav-icons {
    gap: 2px;
  }

  .icon-btn {
    width: 33px;
    height: 33px;
    min-width: 33px;
  }

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

  .hero-title,
  .page-header h1,
  .section-header h2,
  .about-content h2,
  .cta-content h2,
  .content-header h2 {
    font-size: 1.38rem;
  }

  .product-image,
  .product-img-wrapper {
    height: 108px;
  }

  .nav-menu {
    width: min(260px, calc(100vw - 20px));
  }

  .categories-grid,
  .features-grid,
  .stats-grid,
  .values-grid,
  .team-grid,
  .contact-info-grid,
  .dashboard-row,
  .checkout-grid,
  .products-grid,
  .products-slider,
  .favorites-grid,
  .addresses-grid,
  .related-grid,
  .testimonials-grid,
  .footer-grid,
  .footer .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .payment-actions,
  .hero-buttons,
  .cta-buttons {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 7px;
  }

  .checkout-delivery-card div {
    grid-template-columns: minmax(48px, 0.72fr) minmax(0, 1.28fr);
    gap: 5px;
  }

  .testimonial-slide {
    flex: 0 0 50%;
  }

  .footer-grid .footer-column:first-child,
  .footer-grid .footer-column:last-child,
  .footer .contact-list li:nth-child(5),
  .footer .contact-list li:nth-child(6) {
    grid-column: 1 / -1;
  }

  .product-info,
  .category-card,
  .testimonial-card,
  .feature-card,
  .value-card,
  .team-info,
  .contact-info-card,
  .stat-card,
  .address-card,
  .add-address-card {
    padding: 8px;
  }

  .category-card h3,
  .feature-card h3,
  .value-card h3,
  .contact-info-card h3,
  .team-info h3,
  .address-card h3,
  .add-address-card h3 {
    font-size: 0.76rem;
  }

  .category-card p,
  .feature-card p,
  .value-card p,
  .contact-info-card p,
  .team-info p,
  .address-card p,
  .add-address-card p,
  .stat-label {
    font-size: 0.66rem;
  }

  .feature-icon,
  .info-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .value-icon,
  .stat-icon {
    font-size: 1.3rem;
  }

  .stat-number {
    font-size: 1.22rem;
  }

  .product-info > .btn-add-cart,
  .product-footer .btn-add-cart {
    flex-basis: 34px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .shop-section .product-info > .btn-add-cart {
    flex-basis: auto;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
  }

  .product-footer .btn-add-cart::after {
    content: none;
  }
}

@media (hover: none) {
  .product-card:hover,
  .category-card:hover,
  .feature-card:hover,
  .value-card:hover,
  .team-card:hover,
  .contact-info-card:hover,
  .stat-card:hover,
  .cart-item:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu,
  .mobile-menu-btn span,
  .floating-card,
  .hero-content,
  .hero-image {
    animation: none;
    transition: none;
  }
}
