/* Custom styles for iPhone Store */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* iPhone фильтры */
.iphone-filters {
    display: none;
}

.iphone-filters.show {
    display: block !important;
}

/* Стили для карточек товаров */
.product-card {
    transition: transform 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
}

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Navigation */
.navbar {
    z-index: 1030;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

.dropdown-menu {
    z-index: 1031;
}

.navbar-collapse {
    z-index: 1030;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        z-index: 1032;
    }
    
    .dropdown-menu {
        z-index: 1033;
    }
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* Hero section buttons */
.hero-section .btn {
    font-size: 1.1rem;
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Animation classes - removed */

/* Cards */
.card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Pagination */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
}

/* List View for Products */
.list-view .col-lg-4 {
    width: 100%;
}

.list-view .product-card {
    flex-direction: row;
}

.list-view .product-card .card-img-top {
    width: 200px;
    height: 280px;
    object-fit: contain;
}

.list-view .product-card .card-body {
    flex: 1;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Price Styling */
.text-primary {
    color: #007bff !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Star Rating */
.text-warning {
    color: #ffc107 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 







.product-card .carousel-item {
    height: 280px;
    touch-action: pan-y pinch-zoom;
}

.product-card .carousel-item img,
.product-card .carousel-item video {
    height: 280px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* Стили для изображений в карточках товаров */
.card-img-top {
    height: 280px;
    object-fit: contain !important;
    background-color: #f8f9fa;
    padding: 10px;
}

/* Стили для изображений в карусели товара */
.carousel-item img,
.carousel-item video {
    max-height: 500px;
    object-fit: contain !important;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

/* Контейнер для карусели */
#productCarousel {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 1rem;
}

/* Стили для карусели в карточках товаров */
.product-card .carousel {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
}

/* Анимация для карусели */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Стили для видео в карусели */
.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* Индикатор видео */
.fa-play-circle {
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 8px !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Стили для жестов */
.carousel {
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.carousel-inner {
    touch-action: pan-y pinch-zoom;
}

/* Анимация при свайпе */
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    transition: transform 0.6s ease-in-out;
}



/* Кастомные кнопки навигации */
.custom-carousel-control {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    z-index: 10 !important;
}

.custom-carousel-control:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-50%) !important;
}

.custom-carousel-control:active {
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-50%) !important;
}

.custom-carousel-control i {
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

.custom-carousel-control-prev {
    left: 15px;
}

.custom-carousel-control-next {
    right: 15px;
}

/* Адаптивность для кастомных кнопок */
@media (max-width: 768px) {
    .custom-carousel-control {
        width: 35px;
        height: 35px;
    }
    
    .custom-carousel-control i {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .custom-carousel-control {
        width: 30px;
        height: 30px;
    }
    
    .custom-carousel-control i {
        font-size: 10px;
    }
    
    .custom-carousel-control-prev {
        left: 10px;
    }
    
    .custom-carousel-control-next {
        right: 10px;
    }
}

/* Стили для миниатюр карусели */
.carousel-thumbnails {
    margin-top: 1rem;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
}

.thumbnail-item:hover {
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.thumbnail-item.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
    transform: scale(1.1);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    padding: 2px;
}

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

.thumbnail-video {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    font-size: 0.8rem;
    text-align: center;
}

.thumbnail-video i {
    font-size: 1.5rem;
}

/* Анимация для миниатюр - удалена */

/* Адаптивность для миниатюр */
@media (max-width: 768px) {
    .thumbnail-item {
        width: 70px;
        height: 70px;
    }
    
    .thumbnail-video i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-thumbnails .row {
        justify-content: center;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .thumbnail-video i {
        font-size: 0.8rem;
    }
} 