/*!
 * Tinysoft Store Stylesheet
 * Styles for the digital store and e-commerce features
 * 
 * @author Ahmed Elhamahmy
 * @version 2.0
 * @date 2025-08-04
 */

/* ==========================================================================
   Store Layout
   ========================================================================== */
.store-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.store-sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
    position: sticky;
    top: 100px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    color: #343a40;
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 123, 255, 0.15);
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-actions {
    display: flex;
    gap: 1rem;
}

.overlay-actions .btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-category {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-rating .stars {
    color: #ffc107;
    font-size: 0.875rem;
}

.product-rating .stars .text-muted {
    color: #dee2e6 !important;
}

.product-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.price {
    font-family: 'Inter', sans-serif;
}

.price .text-primary {
    font-size: 1.25rem;
    font-weight: 700;
}

.price .text-decoration-line-through {
    font-size: 1rem;
}

/* ==========================================================================
   Category Filter
   ========================================================================== */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-list a:hover,
.category-list a.active {
    background-color: #f8f9fa;
    color: #007bff;
    border-left-color: #007bff;
    transform: translateX(5px);
}

/* ==========================================================================
   Store Tools
   ========================================================================== */
.store-tools {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

.results-info {
    color: #6c757d;
    font-size: 0.875rem;
}

.sort-options .form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* ==========================================================================
   Products Grid
   ========================================================================== */
.products-grid .row {
    margin-left: -15px;
    margin-right: -15px;
}

.products-grid .col-lg-4,
.products-grid .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}

/* ==========================================================================
   Search Widget
   ========================================================================== */
.search-widget .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.search-widget .form-control {
    border: 1px solid #dee2e6;
    border-right: none;
}

.search-widget .btn {
    border: 1px solid #007bff;
    background: #007bff;
}

/* ==========================================================================
   Featured Widget
   ========================================================================== */
.featured-widget {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.featured-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.featured-widget .btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: #007bff;
    border: none;
    font-weight: 600;
}

.featured-widget .btn-light:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Pagination Custom
   ========================================================================== */
.pagination .page-link {
    font-weight: 500;
    border: 1px solid #dee2e6;
    margin: 0 2px;
    border-radius: 8px;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 8px;
}

/* ==========================================================================
   Shopping Cart Styles
   ========================================================================== */
.cart-item {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.quantity-controls .input-group {
    max-width: 140px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    text-align: center;
    border-left: none;
    border-right: none;
}

.quantity-input:focus {
    box-shadow: none;
    border-color: #007bff;
}

.item-price .current-price {
    font-size: 1.125rem;
}

.item-price .original-price {
    font-size: 0.875rem;
}

.item-price .unit-price {
    font-size: 0.75rem;
}

.remove-item {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.remove-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ==========================================================================
   Cart Summary
   ========================================================================== */
.cart-summary {
    position: sticky;
    top: 100px;
}

.cart-summary .card {
    border-radius: 12px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.summary-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-total {
    background: #f8f9fa;
    margin: 0 -1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0 0 12px 12px;
}

.security-badge {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ==========================================================================
   Payment Methods
   ========================================================================== */
.payment-methods {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-icons i {
    font-size: 2rem;
}

/* ==========================================================================
   Empty States
   ========================================================================== */
.empty-cart,
.no-products {
    padding: 4rem 2rem;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.empty-cart i,
.no-products i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 2rem;
}

.empty-cart h3,
.no-products h3 {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Product Filters
   ========================================================================== */
.filter-section {
    margin-bottom: 2rem;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #343a40;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.filter-option input[type="checkbox"] {
    margin-right: 0.5rem;
}

.filter-option label {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range input[type="number"] {
    width: 80px;
    padding: 0.375rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* ==========================================================================
   Product View Counter
   ========================================================================== */
.view-counter {
    font-size: 0.75rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* ==========================================================================
   Sale Badge
   ========================================================================
