/* TechMobile Premium Store - Custom Styles */

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 20px rgba(197, 48, 48, 0.3);
}

/*** Buttons ***/
.btn {
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square { width: 32px; height: 32px; }
.btn-sm-square { width: 34px; height: 34px; }
.btn-md-square { width: 44px; height: 44px; }
.btn-lg-square { width: 56px; height: 56px; }

.btn.border-secondary {
    border: 2px solid #c53030 !important;
    color: #c53030 !important;
}

.btn.border-secondary:hover {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%) !important;
    color: white !important;
}

/*** Topbar ***/
.fixed-top {
    transition: 0.5s;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a365d 100%);
    border: 0;
}

.topbar {
    padding: 15px 20px;
    background: linear-gradient(90deg, #c53030 0%, #9b2c2c 100%);
}

.topbar .top-info,
.topbar .top-link {
    font-size: 14px;
    line-height: 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}

/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    color: #1a1a1a !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar {
    height: 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #c53030 !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        transition: 0.5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
    color: white;
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: 0.5s;
    opacity: 1;
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
}

/*** Hero Header ***/
.hero-header {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a365d 50%, #2d3748 100%);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel-item {
    position: relative;
}

.carousel-control-next,
.carousel-control-prev {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 5px 20px rgba(197, 48, 48, 0.3);
}

.carousel-control-next { margin-right: 20px; }
.carousel-control-prev { margin-left: 20px; }

.page-header {
    position: relative;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a365d 100%);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .hero-header,
    .page-header {
        margin-top: 160px !important;
    }
}

@media (max-width: 992px) {
    .hero-header,
    .page-header {
        margin-top: 120px !important;
    }
}

/*** Features ***/
.featurs .featurs-item {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.featurs .featurs-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.featurs .featurs-item .featurs-icon {
    position: relative;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1a365d 0%, #0d1b2a 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.2);
}

/*** Products ***/
.fruite .tab-class .nav-item a.active {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%) !important;
}

.fruite .tab-class .nav-item a.active span {
    color: white !important;
}

.fruite .fruite-item {
    height: 100%;
    transition: all 0.4s ease;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.fruite .fruite-item:hover {
    box-shadow: 0 20px 50px rgba(26, 54, 93, 0.15);
    transform: translateY(-8px);
}

.fruite .fruite-item .fruite-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 20px 20px 0 0;
}

.fruite .fruite-item .fruite-img img {
    transition: 0.5s;
}

.fruite .fruite-item .fruite-img img:hover {
    transform: scale(1.08);
}

/*** Pagination ***/
.pagination {
    display: inline-block;
}

.pagination a {
    color: #1a365d;
    padding: 12px 18px;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid #c53030;
    margin: 0 4px;
    border-radius: 10px;
    font-weight: 600;
}

.pagination a.active {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
    color: white;
    border: 2px solid #c53030;
}

.pagination a:hover:not(.active) {
    background: linear-gradient(135deg, #1a365d 0%, #0d1b2a 100%);
    color: white;
}

.nav.nav-tabs .nav-link.active {
    border-bottom: 3px solid #c53030 !important;
    color: #c53030 !important;
}

/*** Footer ***/
.footer {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a365d 100%);
}

.footer .footer-item .btn-link {
    line-height: 35px;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
    text-decoration: none;
}

.footer .footer-item .btn-link:hover {
    color: #c53030 !important;
    padding-left: 5px;
}

.footer .footer-item p.mb-4 {
    line-height: 35px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0d1b2a;
}

/*** Form Styles ***/
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1a365d;
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

/*** Card Styles ***/
.card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

/*** Badge Styles ***/
.badge-primary {
    background: linear-gradient(135deg, #1a365d 0%, #0d1b2a 100%);
}

.badge-secondary {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
}

/*** Alert Styles ***/
.alert-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(72, 187, 120, 0.05) 100%);
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: #276749;
    border-radius: 12px;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(197, 48, 48, 0.1) 0%, rgba(197, 48, 48, 0.05) 100%);
    border: 1px solid rgba(197, 48, 48, 0.3);
    color: #9b2c2c;
    border-radius: 12px;
}

/*** Mobile Responsive Styles ***/
@media (max-width: 767.98px) {
    /* Navbar mobile */
    .navbar {
        height: auto !important;
        min-height: 60px;
        padding: 8px 0;
    }
    
    /* Hero header mobile */
    .hero-header,
    .page-header {
        margin-top: 100px !important;
        padding: 30px 15px !important;
    }
    
    /* Features section */
    .featurs .featurs-item .featurs-icon {
        width: 70px;
        height: 70px;
    }
    
    /* Product items */
    .fruite .fruite-item {
        margin-bottom: 15px;
    }
    
    /* Buttons */
    .btn-md-square {
        width: 38px;
        height: 38px;
    }
    
    /* Back to top */
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
    
    /* Carousel controls */
    .carousel-control-next,
    .carousel-control-prev {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-next { margin-right: 10px; }
    .carousel-control-prev { margin-left: 10px; }
    
    /* Form controls */
    .form-control {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Pagination */
    .pagination a {
        padding: 8px 12px;
        font-size: 14px;
        margin: 0 2px;
    }
    
    /* Footer */
    .footer {
        padding-top: 40px !important;
    }
}

@media (max-width: 575.98px) {
    /* Extra small mobile */
    .hero-header,
    .page-header {
        margin-top: 90px !important;
        padding: 20px 10px !important;
    }
    
    .featurs .featurs-item .featurs-icon {
        width: 60px;
        height: 60px;
    }
    
    .btn-md-square {
        width: 34px;
        height: 34px;
    }
    
    .pagination a {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn, a.btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .fruite .fruite-item:hover,
    .product-card:hover,
    .card:hover {
        transform: none;
    }
}
