/* ===================================
   RESET Y ESTILOS GLOBALES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===================================
   HEADER
   =================================== */

.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 24px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: white;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 2px;
}

.logo-text h1 {
    margin: 0;
}

.login-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    margin: 0 auto 12px auto;
    display: block;
}

.tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.user-email {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   BUTTONS
   =================================== */

.btn-admin,
.btn-logout,
.btn-primary,
.btn-secondary,
.btn-clear,
.btn-whatsapp,
.btn-favorite,
.btn-delete,
.btn-edit {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-admin,
.btn-primary {
    background-color: #1a1a2e;
    color: white;
}

.btn-admin:hover,
.btn-primary:hover {
    background-color: #0f0f1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #1a1a2e;
    border: 1.5px solid #1a1a2e;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
}

.btn-logout {
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    font-size: 13px;
}

.btn-logout:hover {
    background-color: #c82333;
}

.btn-clear {
    background-color: #6c757d;
    color: white;
}

.btn-clear:hover {
    background-color: #5a6268;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    padding: 14px 28px;
    font-size: 16px;
    width: 100%;
    margin-top: 16px;
}

.btn-whatsapp:hover {
    background-color: #1fa856;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-favorite {
    background-color: #fff;
    color: #ff6b9d;
    border: 1.5px solid #ff6b9d;
    width: 100%;
}

.btn-favorite:hover {
    background-color: #fff5f8;
}

.btn-favorite.active {
    background-color: #ff6b9d;
    color: white;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-edit {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
}

.btn-edit:hover {
    background-color: #0056b3;
}

/* ===================================
   FILTERS
   =================================== */

.filters-section {
    display: flex;
    gap: 12px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.search-input,
.category-select,
input.form-input,
textarea.form-textarea,
select.form-input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input,
.category-select {
    flex: 1;
    min-width: 200px;
}

.search-input:focus,
.category-select:focus,
input.form-input:focus,
textarea.form-textarea:focus,
select.form-input:focus {
    outline: none;
    border-color: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

textarea.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   PRODUCTS GRID
   =================================== */

.products-section {
    margin: 40px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #1a1a2e;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    cursor: pointer;
}

.product-card-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 8px;
}

.product-card-actions .btn-primary {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
}

.btn-whatsapp-small {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-whatsapp-small:hover {
    background-color: #1fa856;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-small.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    color: #666;
}

.btn-whatsapp-small.disabled:hover {
    transform: none;
    box-shadow: none;
}

.product-image {
    width: 100%;
    height: 250px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff6b35;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.stock {
    background: #dc3545;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a2e;
    line-height: 1.4;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.4;
}

.btn-group {
    display: flex;
    gap: 8px;
}

.btn-group .btn-primary,
.btn-group .btn-secondary {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
    margin: 0;
    width: 100%;
}

/* ===================================
   PRODUCT DETAIL PAGE
   =================================== */

.breadcrumb {
    margin-bottom: 24px;
}

.breadcrumb-link {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #ff6b35;
}

.product-detail {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* GALLERY */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-main {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.stock-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #ff6b35;
    transform: scale(1.05);
}

/* PRODUCT INFO */
.product-header {
    margin-bottom: 16px;
}

.product-category {
    display: inline-block;
    color: #ff6b35;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 24px;
}

.price-amount {
    display: block;
}

.product-description {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 32px;
}

.variants-section {
    margin: 32px 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
}

.variant-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.variant-option {
    padding: 10px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.variant-option:hover {
    border-color: #1a1a2e;
}

.variant-option.active {
    background: #1a1a2e;
    color: white;
    border-color: #1a1a2e;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0;
}

.product-actions button {
    width: 100%;
}

.product-meta {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
}

.meta-label {
    color: #666;
    font-weight: 500;
}

.meta-value {
    font-weight: 600;
    color: #1a1a2e;
}

/* ===================================
   LOADING & ERROR STATES
   =================================== */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #1a1a2e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: #1a1a2e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 16px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.error-message p {
    margin: 0;
}

.error-message a {
    color: #721c24;
    text-decoration: underline;
}

/* ===================================
   FORMS
   =================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    vertical-align: middle;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.form-group.checkbox label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.form-fieldset legend {
    padding: 0 8px;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a2e;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions button {
    flex: 1;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-state {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 14px;
    margin: 16px 0;
}

/* ===================================
   LOGIN PAGE
   =================================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form {
    margin-bottom: 24px;
}

.login-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.login-info code {
    display: block;
    background: white;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    margin: 8px 0;
    font-family: monospace;
    font-size: 13px;
    color: #1a1a2e;
}

.text-small {
    font-size: 12px !important;
}

/* ===================================
   ADMIN LAYOUT
   =================================== */

.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 32px;
    margin: 32px 0;
}

.admin-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    background: transparent;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f0f0f0;
    color: #1a1a2e;
}

.nav-item.active {
    background: #f0f0f0;
    color: #1a1a2e;
    border-left-color: #ff6b35;
}

.admin-main {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #1a1a2e;
}

/* PRODUCTS LIST */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.product-item-info p {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
}

.product-item-actions {
    display: flex;
    gap: 8px;
}

.settings-content {
    max-width: 600px;
}

.setting-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
}

.setting-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.setting-item p {
    color: #666;
    margin-bottom: 16px;
    font-size: 14px;
}

.setting-success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 12px;
}

/* ===================================
   MODAL
   =================================== */

.modal {
    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: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #1a1a2e;
}

.modal-content h2 {
    font-size: 22px;
    margin-bottom: 24px;
    color: #1a1a2e;
}

/* ===================================
   EDIT IMAGES PREVIEW
   =================================== */

.edit-images-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.edit-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.edit-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

.edit-image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.edit-image-remove:hover {
    background: #a71d2a;
}

.image-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

/* ===================================
   CATEGORY INPUT GROUP
   =================================== */

.category-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.new-category-row {
    display: flex;
    gap: 8px;
}

.new-category-row .form-input {
    flex: 1;
}

.btn-small {
    padding: 8px 14px !important;
    font-size: 13px !important;
    white-space: nowrap;
}

/* ===================================
   MOBILE NAV (Admin)
   =================================== */

.admin-mobile-nav {
    display: none;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-mobile-nav .nav-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
    border-radius: 8px;
    border-left: none;
    border-bottom: 3px solid transparent;
}

.admin-mobile-nav .nav-item.active {
    border-left: none;
    border-bottom-color: #ff6b35;
}

/* ===================================
   MAIN NAVIGATION
   =================================== */

.main-nav {
    display: flex;
    gap: 4px;
}

.main-nav-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.main-nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid #ff6b35;
}

/* PAGE SECTIONS */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 32px 0;
}

.about-header {
    text-align: center;
    margin-bottom: 32px;
}

.about-logo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: contain;
    margin-bottom: 16px;
}

.about-header h2 {
    font-size: 28px;
    color: #1a1a2e;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

.about-intro {
    font-size: 18px !important;
    color: #333 !important;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
    text-align: center;
}

.stat-item {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 28px 16px;
    border-radius: 12px;
    color: white;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ff6b35;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.about-values {
    margin-top: 40px;
}

.about-values h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 24px;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.value-item {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-4px);
}

.value-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.value-item h4 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
    margin: 32px 0;
}

.contact-section h2 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.contact-intro {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.whatsapp-card {
    background: linear-gradient(135deg, #25d366 0%, #128c3e 100%);
}

.instagram-card {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.facebook-card {
    background: linear-gradient(135deg, #1877f2 0%, #0d5bbf 100%);
}

.contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    padding: 32px 0;
    margin-top: 60px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.footer p {
    margin: 8px 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }

    .main-nav-item {
        padding: 8px 14px;
        font-size: 13px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .filters-section {
        flex-direction: column;
    }

    .search-input,
    .category-select {
        min-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .product-image {
        height: 140px;
        font-size: 32px;
    }

    .product-card {
        padding: 0;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-desc {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-detail {
        padding: 20px;
    }

    .gallery-main {
        height: 300px;
    }

    .product-title {
        font-size: 22px;
    }

    .admin-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-mobile-nav {
        display: flex !important;
    }

    .admin-nav {
        flex-direction: row;
        gap: 4px;
    }

    .nav-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .product-item {
        grid-template-columns: 60px 1fr;
    }

    .product-item-image {
        width: 60px;
        height: 60px;
    }

    .product-item-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .about-section {
        padding: 24px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header {
        padding: 16px 0;
        margin-bottom: 20px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .tagline {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .product-image {
        height: 120px;
        font-size: 28px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group button {
        width: 100%;
    }

    .product-detail {
        padding: 16px;
    }

    .gallery-main {
        height: 250px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-price {
        font-size: 20px;
    }

    .form-fieldset {
        padding: 16px;
    }

    .login-card {
        padding: 24px;
    }

    .admin-main {
        padding: 16px;
    }

    .modal-content {
        padding: 20px;
    }
}
