@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
}

.main-container {
  max-width: 1740px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

a
{
    text-decoration: none;
    color: #000;
}

.about-a
{
  color: #fff;
}

img
{
    object-fit: cover;
}

body
{
    background-color: #f1f1f1;
}

nav
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    color: #0f2182;
    font-weight: 600;
    font-weight: bold;
    font-size: 32px;
    text-decoration: none;
    position: relative;
}

.logo span {
    color: white; 
    -webkit-text-stroke: 1.5px #0f2182; 
    padding: 0 2px; 
}

nav .links a:not(:last-child)
{
    margin-right: 20px;
}

nav .about-btn-block button
{
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    background-color: transparent;
}

nav .about-btn-block button.about-btn
{
   font-weight: 400;
  font-size: 15px;
    background-color: #000;
    color: #fff;
    border-radius: 4px;
    margin-right: 14px;
}

header
{
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .left
{
    width: 900px;
}

header .left h1
{
    font-size: 80px;
}

header .left h1 span
{
    color: #0f2182;
}

header .left p 
{
    margin: 40px 0;
    color: #777;
}

header .left a
{
    display: flex;
    align-items: center;
    background: #000;
    width: 200px;
    padding: 8px;
    border-radius: 60px;
}

header .left a i 
{
    background-color: #fff;
    font-size: 24px;
    border-radius: 50%;
    padding: 8px;
}

header .left a span
{
    color: #fff;
    margin-left: 10px;
}

header img
{
    width: 900px;
    height: 100%;
    object-fit: contain; 
    object-position: center; 
}

h2.seperator
{
    font-size: 40px;
    margin: 60px auto 40px; 
    text-align: center;
    width: fit-content; 
    position: relative;
    color: #333; 
}


/* Контейнер для поиска и кнопки */
.search-container {
  display: flex;
  max-width: 800px;
  margin: 30px auto 50px;
  gap: 15px;
  align-items: center;
}

/* Форма поиска (адаптированная) */
.search-form {
  display: flex;
  flex: 1;
  position: relative;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(15, 33, 130, 0.15);
  transition: all 0.3s ease;
}

.search-form:focus-within {
  box-shadow: 0 8px 25px rgba(15, 33, 130, 0.25);
}

.search-form input[type="text"] {
  flex: 1;
  padding: 16px 25px;
  padding-left: 55px;
  width: 100%;
  font-size: 17px;
  border: none;
  border-radius: 50px;
  background: #fff;
  color: #333;
  outline: none;
}

.search-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 25px;
  border: none;
  border-radius: 0 50px 50px 0;
  background: #0f2182;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #0a1961;
}


.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #0f2182;
  font-size: 20px;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.search-form:focus-within .search-icon {
  opacity: 1;
  color: #0a1961;
}

/* Кнопка "Все товары" */
.all-products-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 25px;
  background: #f5f5f5;
  color: #333;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid #e0e0e0;
}

.all-products-btn:hover {
  background: #e0e0e0;
}

.all-products-btn i {
  font-size: 20px;
}






.catalog {
  margin-top: 30px;
  padding: 0 20px;
}

.catalog .category {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px;
}

/* Адаптивность для разных экранов */

.category-item {
  position: relative;
  padding: 18px 20px;
  background: #f9f9f9;
  border-radius: 12px;
  color: #222;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: visible;
}

.category-item:hover {
  background-color: #ececec;
  transform: translateY(-4px);
  z-index: 10;
}

.category-item h3 {
  font-size: 18px;
}

.category-item .brands {
  position: absolute;
  top: 50%;
  left: 7%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 220px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 999;
}

.category-item:hover .brands {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.category-item .brands p {
  margin: 6px 0;
}

.category-item .brands a {
  color: #0f2182;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.category-item .brands a:hover {
  color: #ff6600;
}

.catalog .product
{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 30px 0;
}

.catalog .product .item
{
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 18px;
    transform-origin: center;
    position: relative;
}

.catalog .product .item:hover
{
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 30px rgba(48, 79, 254, 0.15);
    z-index: 2;
}

.catalog .product .item img
{
    width: 280px;
    height: 280px;
    border-radius: 18px;
    display: block;
    transition: transform 0.3s ease;
}

.catalog .product .item:hover img
{
    transform: scale(0.98);
}


.catalog .product .item .info
{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #edecec;
}

.catalog .product .item .info h5
{
    font-size: 18px;
}

.catalog .product .item .info .btc
{
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.catalog .product .item .btc i
{
    font-size: 22px;
    color: #304ffe;
}

.catalog .product .item .btc p
{
    font-size: 14px;
    color: #304ffe;
}



.catalog .product .item .bid p
{
    font-size: 16px;
    border-radius: 10px;
}

.catalog .product .item p {
  margin-top: 6px;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}

.catalog .product .item .bid span {
  font-weight: bold;
  color: #000;
}


.all-product-h {
  margin-top: 3%;
}



footer {
  background-color: #0f2182;
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 80px;
  width: 100%; 
}

.footer-content {
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* Равномерное распределение */
  padding: 0 20px;
}

.footer-section {
  min-width: 0; /* Позволяет блокам сжиматься */
  padding: 10px;
  box-sizing: border-box;
}


.logo2 {
    color: #fff;
    font-weight: 600;
    font-weight: bold;
    font-size: 28px;
  margin-bottom: 20px;
  display: inline-block;

}

.logo2 span {
    color: #0f2182; 
    -webkit-text-stroke: 1.1px #fff; 
    padding: 0 2px; 
}

.footer-description {
  color: #c9d1f8;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #fff;
  color: #0f2182;
  transform: translateY(-3px);
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #fff;
}

.footer-links,
.footer-contacts {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #c9d1f8;
  transition: all 0.3s ease;
  font-size: 15px;
   display: block;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contacts li {
  display: flex;
align-items: center;
  margin-bottom: 15px;
  color: #c9d1f8;
  font-size: 15px;
}

.footer-contacts i {
  margin-right: 12px;
  font-size: 18px;
  min-width: 20px;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-bottom p {
  color: #c9d1f8;
  font-size: 14px;
}

.payment-methods {
  display: flex;
  gap: 15px;
}

.payment-methods i {
  font-size: 28px;
  color: #c9d1f8;
  transition: color 0.3s ease;
}

.payment-methods i:hover {
  color: #fff;
}

.admin-login-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #6c63ff;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.admin-login-btn:hover {
  background-color: #5149d1;
}




@media (max-width: 1400px) {
    header .left h1 {
        font-size: 80px;
    }
    
    header img {
        max-width: 600px;
    }
}

@media (max-width: 1200px) {
    .main-container {
        padding: 0 80px;
    }
    
    header .left h1 {
        font-size: 72px;
    }
    
    .catalog .category {
        grid-template-columns: repeat(4, 1fr);

    }
    
    .catalog .product {
        grid-template-columns: repeat(2, 1fr);
        place-items: center;
    }
    
    .category-item .brands {
        display: block;
        position: absolute;
        top: 50%;
        left: 7%;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 12px 16px;
        min-width: 220px;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 999;
    }
    
    .category-item:hover .brands {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .footer-section {
        flex: 1;
        padding: 0 15px;
    }
}



@media (max-width: 992px) {
    header .left h1 {
        font-size: 64px;
    }
    
    .catalog .category {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .catalog .product {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-section {
        flex: 0 0 calc(33.333% - 20px);
    }
    
    .footer-section:first-child {
        flex: 0 0 calc(40% - 20px);
    }
}



@media (max-width: 768px) {
   .main-container {
        padding: 0 15px;
    }

      nav {
        flex-direction: column;
        height: auto;
        padding: 20px;
        text-align: center;
    }

    nav .links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    nav .about-btn-block {
        margin-top: 10px;
    }

    header {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    header .left {
        width: 100%;
        margin: 0;
    }

    header .left h1 {
        font-size: 38px;
    }

    header .left a {
        margin: 0 auto;
    }

    header img {
        width: 100%;
        max-width: 420px;
        height: auto;
        margin-top: 40px;
    }

    .search-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .search-form {
  width: 100%;
  max-width: 100%;
  box-shadow: none;
  position: relative;
}

.search-form input[type="text"] {
  font-size: 16px;
  padding: 12px 20px 12px 45px;
  height: auto;
  width: 100%;
}

.search-btn {
  padding: 0 18px;
  font-size: 14px;
}

.search-icon {
  left: 15px;
  font-size: 18px;
}

    .catalog .category,
    .catalog .product,
    .catalog{
        grid-template-columns: 1fr;
        place-items: center;
        gap: 20px;
        padding: 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }

    .footer-section {
        flex: 1 1 100%;
        place-items: center;
        padding: 20px 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}


@media (max-width: 480px) {
    header .left h1 {
        font-size: 48px;
    }

     header img {
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }
    
    .catalog .category {
place-items: center;
        }

    .catalog .product {
        grid-template-columns: repeat(1, 1fr);
                place-items: center;
    }
    
    .search-form input[type="text"] {
        padding: 16px 25px 16px 55px;
    }
    
    .search-btn span {
        display: inline;
    }
}