/* ========================================
   TacticStore.com.ua - Responsive Styles
   ======================================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  :root {
    --container-width: 1320px;
  }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
  :root {
    --container-width: 1140px;
  }
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
  :root {
    --container-width: 960px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-slide-title {
    font-size: 34px;
  }
  
  .header-phone {
    font-size: 16px;
  }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
  :root {
    --container-width: 720px;
  }
  
  .top-bar {
    display: none;
  }
  
  .header .container {
    flex-wrap: wrap;
  }
  
  .search-box {
    order: 3;
    max-width: 100%;
    flex: 0 0 100%;
    margin-top: 10px;
  }
  
  .header-phone {
    display: none;
  }
  
  .nav-list {
    display: none;
  }
  
  .nav .container {
    justify-content: space-between;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-slider {
    height: 380px;
  }
  
  .hero-slide-title {
    font-size: 28px;
  }
  
  .hero-slide-content {
    padding: 0 30px;
    max-width: 500px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .advantages .container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .banners-grid {
    grid-template-columns: 1fr;
  }
  
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Catalog page */
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  
  .catalog-sidebar-filter {
    display: none;
  }
  
  .catalog-sidebar-filter.active {
    display: block;
    margin-bottom: 20px;
  }
  
  .filter-toggle-btn {
    display: flex;
  }
  
  /* Product page */
  .product-main {
    grid-template-columns: 1fr;
  }
  
  .product-gallery-main {
    height: 350px;
  }
  
  /* Cart page */
  .cart-layout {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }
  
  .cart-item-price,
  .cart-item-qty,
  .cart-item-total {
    grid-column: 2;
  }
  
  .cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  .cart-item {
    position: relative;
  }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
  :root {
    --container-width: 540px;
  }
  
  .header {
    padding: 10px 0;
  }
  
  .logo-text {
    font-size: 18px;
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .logo-subtitle {
    display: none;
  }
  
  .header-actions {
    gap: 8px;
  }
  
  .header-action-text {
    display: none;
  }
  
  .hero-slider {
    height: 320px;
  }
  
  .hero-slide-title {
    font-size: 22px;
  }
  
  .hero-slide-desc {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .hero-slide-content {
    padding: 0 20px;
    max-width: 100%;
  }
  
  .hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .category-card-img {
    height: 100px;
    font-size: 36px;
  }
  
  .category-card-name {
    font-size: 11px;
    padding: 8px 6px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-card-img {
    height: 170px;
  }
  
  .product-card-body {
    padding: 10px;
  }
  
  .product-card-title {
    font-size: 13px;
  }
  
  .product-price-current {
    font-size: 17px;
  }
  
  .product-price-old {
    font-size: 12px;
  }
  
  .product-add-cart {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .advantages .container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .advantage-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .advantage-text h4 {
    font-size: 12px;
  }
  
  .advantage-text p {
    font-size: 11px;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  /* Product page */
  .product-gallery-main {
    height: 280px;
  }
  
  .product-info h1 {
    font-size: 20px;
  }
  
  .product-info-price .current-price {
    font-size: 26px;
  }
  
  .product-info-actions {
    flex-direction: column;
  }
  
  .product-info-extra {
    flex-wrap: wrap;
  }
  
  .product-tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .product-tabs-nav a {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  /* Cart sidebar */
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
  
  .cart-item {
    grid-template-columns: 70px 1fr;
  }
  
  .cart-item-img {
    width: 70px;
    height: 70px;
  }
  
  /* Modal */
  .modal {
    padding: 20px;
    margin: 16px;
  }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
  .container {
    padding: 0 12px;
  }
  
  .logo-text {
    font-size: 15px;
  }
  
  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .search-box input {
    padding: 8px 40px 8px 12px;
    font-size: 13px;
  }
  
  .search-box button {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .hero-slider {
    height: 280px;
  }
  
  .hero-slide-title {
    font-size: 18px;
  }
  
  .hero-slide-tag {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .hero-slide-desc {
    display: none;
  }
  
  .hero-slide-btn {
    padding: 10px 20px;
    font-size: 12px;
  }
  
  .hero-arrows {
    display: none;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .category-card-img {
    height: 80px;
    font-size: 30px;
  }
  
  .category-card-name {
    font-size: 10px;
    padding: 6px 4px;
  }
  
  .category-card-count {
    font-size: 10px;
    padding-bottom: 8px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .product-card-img {
    height: 140px;
    font-size: 40px;
  }
  
  .product-card-badges {
    top: 4px;
    left: 4px;
  }
  
  .product-badge {
    font-size: 9px;
    padding: 2px 6px;
  }
  
  .product-card-actions {
    display: none;
  }
  
  .product-card-body {
    padding: 8px;
  }
  
  .product-card-category {
    display: none;
  }
  
  .product-card-title {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
  
  .product-card-rating {
    display: none;
  }
  
  .product-price-current {
    font-size: 15px;
  }
  
  .product-price-old {
    font-size: 11px;
  }
  
  .product-add-cart {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .advantages .container {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .advantage-item {
    padding: 8px;
  }
  
  .section-title {
    font-size: 18px;
    padding-left: 12px;
  }
  
  .section-header {
    margin-bottom: 16px;
  }
  
  .section-link {
    font-size: 12px;
  }
  
  .banner-card {
    height: 160px;
    padding: 20px;
  }
  
  .banner-card-title {
    font-size: 18px;
  }
  
  .banner-card-desc {
    font-size: 12px;
    margin-bottom: 10px;
  }
  
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .brand-item {
    height: 50px;
    font-size: 14px;
  }
  
  /* Breadcrumb */
  .breadcrumb {
    padding: 8px 0;
    font-size: 12px;
  }
  
  /* Catalog toolbar */
  .catalog-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .catalog-count {
    width: 100%;
  }
  
  .catalog-sort {
    margin-left: auto;
  }
  
  .catalog-view {
    display: none;
  }
  
  /* Product page */
  .product-main {
    padding: 16px;
  }
  
  .product-gallery-main {
    height: 240px;
    font-size: 50px;
  }
  
  .product-gallery-thumb {
    width: 60px;
    height: 60px;
  }
  
  .product-info h1 {
    font-size: 18px;
  }
  
  .product-info-price .current-price {
    font-size: 22px;
  }
  
  .product-qty button {
    width: 32px;
    height: 38px;
  }
  
  .product-qty input {
    width: 40px;
    height: 38px;
  }
  
  .btn-add-cart,
  .btn-buy-now {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  /* Cart */
  .cart-item {
    padding: 12px;
  }
  
  .cart-item-price {
    font-size: 15px;
  }
  
  .cart-item-total {
    font-size: 15px;
  }
  
  .cart-summary {
    padding: 16px;
  }
  
  /* Pagination */
  .pagination a,
  .pagination span {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  
  /* Mobile menu */
  .mobile-menu {
    width: 85%;
    left: -85%;
  }
}

/* Print styles */
@media print {
  .header,
  .nav,
  .footer,
  .scroll-top,
  .hero-controls,
  .hero-arrows,
  .product-card-actions,
  .cart-sidebar,
  .modal-overlay {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .container {
    max-width: 100%;
  }
}