/* style/css/touch/style.css - Полная мобильная версия */
:root {
    --primary: #005bff;
    --primary-dark: #0047cc;
    --primary-light: #e6f0ff;
    --secondary: #00d4aa;
    --accent: #f5a623;
    --danger: #ff4d4d;
    --danger-dark: #cc0000;
    --success: #00c853;
    --success-dark: #009624;
    --warning: #ffb300;
    --dark: #001a34;
    --gray-900: #242424;
    --gray-700: #4d4d4d;
    --gray-600: #666666;
    --gray-500: #808080;
    --gray-400: #999999;
    --gray-300: #b3b3b3;
    --gray-200: #cccccc;
    --gray-100: #f2f2f2;
    --gray-50: #f9f9f9;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-xl: 0 8px 32px rgba(0,0,0,0.16);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    min-height: 100vh;
    font-size: 14px;
    -webkit-tap-highlight-color: rgba(0, 91, 255, 0.1);
}

/* Header - Mobile */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--dark);
    color: var(--white);
    padding: 6px 0;
    font-size: 11px;
}

.header-top-inner {
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-links {
    display: flex;
    gap: 12px;
}

.header-top-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.header-top-links a:active {
    color: var(--white);
}

.header-main {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

/* Search Box - Mobile */
.search-box {
    width: 100%;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 16px;
    padding-right: 80px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    font-size: 14px;
    outline: none;
    -webkit-appearance: none;
}

.search-box input:focus {
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.search-btn:active {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(0.98);
}

/* Header Actions - Mobile */
.header-actions {
    display: flex;
    gap: 8px;
    justify-content: space-around;
    flex-wrap: wrap;
}

.header-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-700);
    font-size: 10px;
    position: relative;
    transition: var(--transition);
    min-height: 44px;
    min-width: 44px;
}

.header-btn:active {
    background: var(--gray-100);
    transform: scale(0.98);
}

.header-btn svg {
    width: 20px;
    height: 20px;
}

.header-btn .badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--danger);
    color: var(--white);
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 600;
}

/* Buttons - Mobile */
.btn-primary, .btn-secondary, .btn-outline, .btn-danger, .btn-success {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:active, .btn-secondary:active, .btn-outline:active, .btn-danger:active, .btn-success:active {
    transform: scale(0.98);
}

/* Container - Mobile */
.container {
    padding: 12px;
    max-width: 100%;
    margin: 0 auto;
}

.container-narrow {
    padding: 12px;
    max-width: 100%;
    margin: 0 auto;
}

/* Categories Bar - Mobile (Horizontal Scroll) */
.categories-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 8px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.categories-inner {
    padding: 0 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories-inner::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.category-chip:active {
    background: var(--primary-light);
    color: var(--primary);
    transform: scale(0.97);
}

.category-chip svg {
    width: 14px;
    height: 14px;
}

/* Hero Section - Mobile */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #003366 100%);
    color: var(--white);
    padding: 40px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 14px;
    color: var(--gray-300);
    margin-bottom: 24px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.hero-btn-primary {
    background: var(--primary);
    color: var(--white);
}

.hero-btn-primary:active {
    background: var(--primary-dark);
    transform: scale(0.98);
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:active {
    background: rgba(255,255,255,0.2);
    transform: scale(0.98);
}

/* Sections - Mobile */
.section {
    padding: 0;
}

.section_home {
    padding: 12px;
    margin-bottom: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.section-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.section-link:active {
    text-decoration: underline;
}

/* Product Grid - Mobile (2 columns) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-300) 100%);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:active .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--secondary);
    color: var(--white);
    padding: 3px 8px;
    border-radius: var(--radius-xl);
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-badge.photo-count {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    left: auto;
    right: 8px;
    top: 8px;
}

.product-info {
    padding: 10px;
}

.product-category {
    font-size: 10px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.product-old-price {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 2px;
}

.product-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-100);
}

.seller-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-name {
    font-size: 11px;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    font-size: 11px;
    color: var(--accent);
    white-space: nowrap;
}

.seller-rating svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Star Rating - Mobile */
.star {
    width: 12px;
    height: 12px;
    fill: var(--gray-300);
}

.star.filled {
    fill: var(--accent);
}

/* Main Layout - Mobile (Stack) */
.main-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar {
    position: static;
    order: 2;
}

.main-content {
    order: 1;
}

/* Sidebar - Mobile */
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

/* Promoted Sellers - Mobile */
.promoted-seller {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
}

.promoted-seller:last-child {
    border-bottom: none;
}

.promoted-seller-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.promoted-seller-info {
    flex: 1;
}

.promoted-seller-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
    font-size: 13px;
}

.promoted-seller-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--accent);
}

/* Profile - Mobile */
.profile-header {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.profile-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.profile-stat-label {
    font-size: 11px;
    color: var(--gray-500);
}

.profile-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-rating-stars {
    display: flex;
    gap: 3px;
}

.profile-rating-stars .star {
    width: 18px;
    height: 18px;
}

.profile-rating-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
}

/* Profile Navigation - Mobile (Horizontal Scroll) */
div[style*="grid-template-columns: 260px 1fr"] {
    display: flex;
    flex-direction: column;
}

div[style*="background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow"]:first-child {
    position: static;
    margin-bottom: 16px;
    padding: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

nav[style*="display: flex; flex-direction: column; gap: 4px;"] {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

nav[style*="display: flex; flex-direction: column; gap: 4px;"] a {
    white-space: nowrap;
    padding: 8px 12px;
}

/* Forms - Mobile */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    max-width: 100%;
    margin: 0 auto;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
    text-align: center;
}

.form-subtitle {
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-label span {
    color: var(--danger);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input-error {
    border-color: var(--danger) !important;
    background-color: rgba(220, 53, 69, 0.05);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    -webkit-appearance: none;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-file {
    padding: 10px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.form-file:active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: 13px;
    color: var(--gray-700);
}

.form-check-label a {
    color: var(--primary);
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:active {
    background: var(--primary-dark);
    transform: scale(0.98);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    color: var(--gray-500);
    font-size: 13px;
}

.form-footer a {
    color: var(--primary);
    font-weight: 600;
}

.form-error {
    display: block;
    color: var(--danger);
    font-size: 11px;
    margin-top: 4px;
}

/* Alerts - Mobile */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
}

/* Dashboard Grid - Mobile */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.dashboard-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.dashboard-card-icon.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.dashboard-card-icon.green {
    background: #e8f5e9;
    color: var(--success);
}

.dashboard-card-icon.orange {
    background: #fff3e0;
    color: var(--accent);
}

.dashboard-card-icon.red {
    background: #ffebee;
    color: var(--danger);
}

.dashboard-card-icon svg {
    width: 24px;
    height: 24px;
}

.dashboard-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.dashboard-card-label {
    color: var(--gray-500);
    font-size: 12px;
}

/* Data Table - Mobile (Horizontal Scroll) */
.data-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow);
    -webkit-overflow-scrolling: touch;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th {
    background: var(--gray-50);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 12px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges - Mobile */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.status-pending::before {
    background: #e65100;
}

.status-approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-approved::before {
    background: #2e7d32;
}

.status-rejected {
    background: #ffebee;
    color: #c62828;
}

.status-rejected::before {
    background: #c62828;
}

/* Cart - Mobile */
.cart-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.cart-item-image {
    width: 100%;
    height: 160px;
    border-radius: var(--radius);
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    font-size: 14px;
}

.cart-item-seller {
    font-size: 12px;
    color: var(--gray-500);
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.cart-item-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-end;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.cart-summary-row:last-child {
    border-bottom: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

/* Modal Overlay - Mobile */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: none;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:active {
    background: var(--gray-300);
    transform: scale(0.95);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-footer button {
    width: 100%;
    justify-content: center;
}

/* Chat - Mobile */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chat-message {
    display: flex;
    gap: 8px;
    max-width: 90%;
}

.chat-message.own {
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-message-content {
    background: var(--gray-100);
    padding: 10px 12px;
    border-radius: var(--radius);
    border-bottom-left-radius: 4px;
}

.chat-message.own .chat-message-content {
    background: var(--primary);
    color: var(--white);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: 4px;
}

.chat-message-text {
    margin-bottom: 4px;
    font-size: 13px;
    word-break: break-word;
}

.chat-message-time {
    font-size: 10px;
    opacity: 0.7;
}

.chat-input {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.chat-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-xl);
    outline: none;
    font-size: 14px;
    -webkit-appearance: none;
}

.chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input button:active {
    background: var(--primary-dark);
    transform: scale(0.95);
}

/* Messages Layout - Mobile */
.messages-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;
    min-height: auto;
}

.dialogs-list {
    height: auto;
    max-height: 300px;
    min-height: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.dialog-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: pointer;
}

.dialog-item:active {
    background: var(--gray-50);
}

.dialog-item.active {
    background: var(--primary-light);
}

.last-message {
    font-size: 12px;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-container {
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Typing Indicator - Mobile */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--gray-500);
}

.typing-indicator span {
    width: 3px;
    height: 3px;
    background: var(--gray-500);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-3px); }
}

/* Context Menu - Mobile */
.context-menu {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 4px 0;
    z-index: 1000;
    min-width: 160px;
}

.context-menu-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    font-size: 14px;
}

.context-menu-item:active {
    background: var(--gray-100);
}

/* Reply Panel - Mobile */
.reply-panel {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.reply-panel .reply-info {
    flex: 1;
    color: var(--gray-700);
}

.reply-panel .reply-sender {
    font-weight: 600;
    color: var(--primary);
}

.reply-panel .close-reply {
    cursor: pointer;
    padding: 4px;
    color: var(--gray-500);
}

.reply-panel .close-reply:active {
    color: var(--danger);
}

/* Edit Panel - Mobile */
.edit-panel {
    background: #fff3e0;
    border-top: 1px solid var(--gray-200);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.edit-panel .edit-info {
    flex: 1;
    color: var(--gray-700);
}

.edit-panel .close-edit {
    cursor: pointer;
    padding: 4px;
    color: var(--gray-500);
}

.edit-panel .close-edit:active {
    color: var(--danger);
}

/* Reply Container - Mobile */
.reply-container {
    margin-bottom: 6px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.03);
    border-left: 2px solid var(--primary);
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.3;
}

.reply-container .reply-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    color: var(--gray-600);
}

.reply-container .reply-header svg {
    width: 10px;
    height: 10px;
    stroke: var(--gray-500);
}

.reply-container .reply-sender {
    font-weight: 600;
    color: var(--primary);
}

/* Message Text - Mobile */
.message-text {
    padding: 10px 12px;
    border-radius: var(--radius);
    word-break: break-word;
    background: var(--gray-100);
    color: var(--gray-900);
    font-size: 13px;
}

.message-item[style*="flex-direction: row-reverse"] .message-text {
    background: var(--primary);
    color: white;
}

/* Attachments - Mobile */
.attachment-container {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 10px;
    min-width: 200px;
}

.file-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 6px;
}

/* Tabs - Mobile */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: 20px;
}

.tab {
    padding: 10px 16px;
    font-weight: 600;
    color: var(--gray-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    font-size: 13px;
}

.tab:active {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Reviews - Mobile */
.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author-info {
    display: flex;
    flex-direction: column;
}

.review-author-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 13px;
}

.review-date {
    font-size: 11px;
    color: var(--gray-500);
}

.review-rating {
    display: flex;
    gap: 3px;
    margin-top: 4px;
}

.review-text {
    color: var(--gray-700);
    line-height: 1.5;
    font-size: 13px;
}

/* Order Card - Mobile */
.order-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
}

.order-card:active {
    background: var(--gray-50);
    transform: scale(0.98);
}

.order-card > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Service Card - Mobile */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
}

.service-card:active {
    transform: scale(0.98);
}

.service-card > div {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card > div > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: auto;
}

.service-card > div > div:last-child {
    text-align: left;
}

.service-category {
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

/* Filter Links - Mobile */
.filter-link {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s;
    white-space: nowrap;
    margin-right: 8px;
    font-size: 12px;
}

.filter-link:active {
    background: var(--gray-100);
}

.filter-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.filter-count {
    background: var(--gray-200);
    color: var(--gray-600);
    padding: 1px 6px;
    border-radius: 20px;
    font-size: 10px;
}

.filter-link.active .filter-count {
    background: var(--primary);
    color: white;
}

/* Sort Buttons - Mobile */
.sort-btn {
    padding: 4px 12px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 12px;
    color: var(--gray-600);
    background: var(--gray-100);
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.sort-btn:active {
    background: var(--gray-300);
}

.sort-btn.active {
    background: var(--primary);
    color: white;
}

/* Admin Sidebar - Mobile */
.admin-sidebar-item {
    white-space: nowrap;
    transition: all 0.2s;
}

.admin-sidebar-item:active {
    background: var(--gray-100);
}

/* Separator - Mobile */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
}

.separator hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--gray-300);
}

.separator span {
    padding: 0 10px;
    color: var(--gray-500);
    font-size: 13px;
}

/* Edited Indicator - Mobile */
.edited-indicator {
    font-size: 9px;
    color: var(--gray-400);
    margin-left: 4px;
    font-style: italic;
}

/* Balance Dropdown - Mobile */
.balance-dropdown {
    position: relative;
    display: inline-block;
}

.balance-dropdown button {
    padding: 8px 12px;
    font-size: 13px;
}

/* Dispute Card - Mobile */
.dispute-card {
    cursor: pointer;
    transition: var(--transition);
}

.dispute-card:active {
    transform: scale(0.98);
}

/* Photo Upload - Mobile */
.photo-upload-container {
    margin-top: 8px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--gray-100);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-item .remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 59, 59, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
    z-index: 10;
}

.photo-item .remove-photo:active {
    background: #ff0000;
    transform: scale(1.05);
}

.photo-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.photo-upload-area:active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.photo-upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.photo-upload-area h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

/* Progress Bar - Mobile */
.upload-progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.upload-progress-item .filename {
    flex: 1;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-progress-item .progress {
    width: 50px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress-item .progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

/* Footer - Mobile */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 32px 0 20px;
    width: 100%;
}

.footer-inner {
    padding: 0 12px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}

.footer-column a:active {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-copyright {
    color: var(--gray-500);
    font-size: 11px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:active {
    background: var(--primary);
}

/* Small screens (up to 480px) */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tabs {
        justify-content: center;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .header-btn {
        padding: 4px 8px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-btn {
        text-align: center;
    }
    
    .categories-inner {
        padding: 0 8px;
    }
    
    .category-chip {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
        justify-content: center;
    }
    
    .cart-summary-row {
        font-size: 13px;
    }
    
    .cart-summary-row:last-child {
        font-size: 16px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 8px;
    }
}

/* Touch-friendly tap highlights */
a, button, .product-card, .dialog-item, .category-chip, .tab, .btn-primary, .btn-secondary, .btn-outline, .btn-danger, .btn-success {
    -webkit-tap-highlight-color: rgba(0, 91, 255, 0.1);
    touch-action: manipulation;
}

/* Larger touch targets for small buttons */
.header-btn, .search-btn, .modal-close, .notification-close, .remove-photo, .cancel-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent zoom on input focus for iOS */
input, select, textarea {
    font-size: 16px;
}

/* Better scrolling for iOS */
.dialogs-list, .messages-container, .categories-inner, .modal-body, .data-table {
    -webkit-overflow-scrolling: touch;
}

/* Animations for mobile */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.loading-indicator {
    animation: pulse 1.5s infinite;
}

.new-message-highlight {
    animation: highlight 1s ease;
}

@keyframes highlight {
    0% { background-color: var(--primary-light); }
    100% { background-color: transparent;
    }
}

/* Notification styles for mobile */
.notifications-container {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.3s ease forwards, fadeOut 0.3s ease 4.7s forwards;
    pointer-events: auto;
}

.notification-success .notification-icon { color: var(--success); }
.notification-error .notification-icon { color: var(--danger); }
.notification-warning .notification-icon { color: var(--warning); }
.notification-info .notification-icon { color: var(--primary); }

.notification-icon svg {
    width: 20px;
    height: 20px;
}

.notification-content {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
}

.notification-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:active {
    background: rgba(0,0,0,0.1);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.hidden {
    display: none;
}

/* Product Page - Mobile Fixes */
/* Product Page Layout */
.product-page-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-page-layout > div:first-child {
    order: 1;
}

.product-page-layout > div:last-child {
    order: 2;
}

/* Product Gallery - Mobile */
.product-gallery {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.product-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--gray-100);
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.product-gallery-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 12px;
    background: var(--gray-50);
}

.product-gallery-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-gallery-thumb.active {
    border-color: var(--primary);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumb:active {
    transform: scale(0.95);
}

/* Product Info - Mobile */
.product-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.product-price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-500);
}

/* Product Seller Card - Mobile */
.product-seller-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.product-seller-info {
    flex: 1;
}

.product-seller-name {
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.product-seller-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.product-seller-rating .stars {
    display: flex;
    gap: 2px;
    color: var(--accent);
}

/* Product Actions - Mobile */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.product-actions .btn-primary,
.product-actions .btn-secondary,
.product-actions .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
}

/* Product Description - Mobile */
.product-description {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.product-description h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.product-description-content {
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 14px;
}

/* Product Specifications - Mobile */
.product-specs {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.product-specs h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.spec-label {
    color: var(--gray-500);
    font-size: 13px;
}

.spec-value {
    font-weight: 500;
    color: var(--gray-900);
    font-size: 13px;
    text-align: right;
    word-break: break-word;
}

.spec-value a {
    color: var(--primary);
    text-decoration: none;
}

/* File Download Section - Mobile */
.product-file-section {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}

.product-file-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.file-name {
    font-size: 12px;
    color: var(--gray-600);
    word-break: break-all;
    flex: 1;
}

/* Guarantees - Mobile */
.product-guarantees {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.guarantee-item:last-child {
    border-bottom: none;
}

.guarantee-icon {
    width: 24px;
    height: 24px;
    color: var(--success);
    flex-shrink: 0;
}

.guarantee-text {
    font-size: 13px;
    color: var(--gray-700);
}

/* Similar Products - Mobile */
.similar-products {
    margin-top: 20px;
}

.similar-products h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.similar-product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.similar-product-card:active {
    transform: scale(0.98);
}

.similar-product-image {
    aspect-ratio: 16/10;
    background: var(--gray-100);
    overflow: hidden;
}

.similar-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-product-info {
    padding: 10px;
}

.similar-product-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

/* Breadcrumbs - Mobile */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--gray-500);
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs span {
    color: var(--gray-400);
}

/* Alert Messages - Mobile */
.alert-banner {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.alert-banner.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert-banner.info {
    background: #e3f2fd;
    color: #1565c0;
}

.alert-banner.warning {
    background: #fff3e0;
    color: #e65100;
}

/* Fix for product page grid on mobile */
@media (max-width: 768px) {
    /* Override any desktop grid layouts */
    .container > div[style*="display: grid"],
    .container > div[style*="display:grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* Fix sticky sidebar on mobile */
    div[style*="position: sticky"] {
        position: static !important;
    }
    
    /* Fix product page right column */
    .container > div > div:last-child {
        position: static !important;
    }
    
    /* Fix image gallery */
    .product-gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Fix similar products on very small screens */
    @media (max-width: 480px) {
        .similar-products-grid {
            grid-template-columns: 1fr;
        }
    }
}

/* Photo Modal for mobile */
.photo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.photo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.photo-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-prev,
.photo-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-prev {
    left: 20px;
}

.photo-modal-next {
    right: 20px;
}

.photo-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
}

/* Cart badge fix */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-900);
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.menu-money {
    display: none;
    position: absolute;
    top: 45px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.filter-service {
    display: flex;
    gap: 8px;
    overflow-x: scroll;
}