/* ==========================================
   TEKEL BAYİ - KAMPANYA YÖNETİM SİSTEMİ
   ========================================== */

/* Reset & Base */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

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

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary: #059669;
    --danger: #dc2626;
    --warning: #f59e0b;
    --dark: #1f2937;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Google Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-100);
    color: var(--dark);
    line-height: 1.6;
}

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

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

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

.login-header h1 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray-500);
    font-size: 14px;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-600);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-600);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--gray-500);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
}

.btn-outline:hover {
    border-color: var(--gray-400);
    background: var(--gray-100);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background: #111827;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

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

.admin-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: var(--white);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h1 {
    font-size: 24px;
    color: var(--dark);
}

.header-left .subtitle {
    font-size: 13px;
    color: var(--gray-500);
}

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

.user-info {
    color: var(--gray-600);
    font-size: 14px;
}

/* ==========================================
   TABS
   ========================================== */

.tabs {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tab {
    padding: 16px 24px;
    color: var(--gray-500);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ==========================================
   ADMIN CONTENT
   ========================================== */

.admin-content {
    flex: 1;
    padding: 24px;
    width: 100%;
}

/* ==========================================
   PRODUCT FORM WITH NUMPAD
   ========================================== */

.form-with-numpad {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.product-form-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    flex: 1;
    max-width: 650px;
}

/* ==========================================
   NUMPAD (Dokunmatik Klavye)
   ========================================== */

.numpad-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.numpad-label {
    background: var(--gray-400);
    color: var(--white);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    transition: background 0.2s ease;
}

.numpad-label.label-normal {
    background: var(--dark);
}

.numpad-label.label-kampanya {
    background: var(--secondary);
}

.numpad-display {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    font-size: 36px;
    font-weight: 700;
    text-align: right;
    margin-bottom: 16px;
    color: var(--dark);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex: 1;
    grid-template-rows: repeat(4, 1fr) auto;
}

.numpad-btn {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.15s ease;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.numpad-btn:hover {
    background: var(--gray-200);
}

.numpad-btn:active {
    background: var(--primary);
    color: var(--white);
    transform: scale(0.95);
}

.numpad-zero {
    grid-column: span 1;
}

.numpad-clear {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--danger);
}

.numpad-clear:hover {
    background: #fee2e2;
}

.numpad-clear:active {
    background: var(--danger);
    color: var(--white);
}

.numpad-backspace {
    background: #fff7ed;
    border-color: #fed7aa;
    color: var(--warning);
}

.numpad-backspace:hover {
    background: #ffedd5;
}

.numpad-backspace:active {
    background: var(--warning);
    color: var(--white);
}

.numpad-enter {
    grid-column: span 3;
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    padding: 24px;
    font-size: 20px;
}

.numpad-enter:hover {
    background: var(--primary-dark);
}

.numpad-enter:active {
    transform: scale(0.98);
}

/* Active input highlight */
.price-input.active-input {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.product-form-container h2 {
    margin-bottom: 24px;
    color: var(--dark);
}

.product-form .form-group input {
    max-width: 500px;
}

/* ==========================================
   IMAGE UPLOAD CARD
   ========================================== */

.image-upload-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    width: 280px;
    flex-shrink: 0;
}

.image-upload-card h3 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 16px;
    text-align: center;
}

.image-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
}

.image-upload-area:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
}

.image-upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    transform: scale(1.02);
}

.upload-placeholder {
    text-align: center;
    padding: 20px;
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.upload-placeholder p {
    color: var(--gray-500);
    font-size: 13px;
    margin: 0 0 8px;
    line-height: 1.4;
}

.upload-formats {
    font-size: 11px;
    color: var(--gray-400);
    background: var(--gray-200);
    padding: 4px 10px;
    border-radius: 20px;
}

.image-upload-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 220px;
}

.image-upload-area .remove-current-image {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px !important;
    font-size: 12px !important;
    z-index: 10;
}

/* ==========================================
   INLINE CROP AREA
   ========================================== */

.image-crop-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crop-wrapper {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
    min-height: 220px;
    max-height: 280px;
}

.crop-wrapper img {
    display: block;
    max-width: 100%;
}

/* Cropper.js overrides */
.cropper-container {
    border-radius: var(--radius-sm);
}

.cropper-view-box,
.cropper-face {
    border-radius: 0;
}

.cropper-view-box {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.cropper-line {
    background-color: var(--primary);
}

.cropper-point {
    background-color: var(--primary);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cropper-dashed {
    border-color: rgba(255, 255, 255, 0.5);
}

.price-table-container {
    margin: 32px 0;
    overflow-x: auto;
}

.price-input-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
}

.price-input-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
}

.price-input-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
}

.price-input-table .size-label {
    font-weight: 700;
    color: var(--dark);
    min-width: 100px;
    font-size: 18px;
}

.price-input-table input {
    width: 140px;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 500;
}

.price-input-table input:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* ==========================================
   PRODUCTS LIST
   ========================================== */

.products-list-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.list-header h2 {
    color: var(--dark);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: var(--gray-600);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

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

.product-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
}

.product-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
}

.product-card-header {
    background: var(--gray-100);
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.product-card-header h3 {
    font-size: 18px;
    color: var(--dark);
}

.product-card-body {
    padding: 20px;
}

.price-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray-200);
}

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

.price-row .size {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 13px;
}

.price-row .prices {
    display: flex;
    gap: 12px;
    align-items: center;
}

.old-price {
    color: var(--gray-400);
    text-decoration: line-through;
    font-size: 13px;
}

.new-price {
    color: var(--secondary);
    font-weight: 600;
}

.product-card-footer {
    padding: 16px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================
   PRODUCT DETAIL VIEW
   ========================================== */

.product-detail-view {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.detail-header h2 {
    color: var(--dark);
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================
   PRINTABLE AREA (Yazıcı Dostu)
   ========================================== */

.print-page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* ==========================================
   THEME SELECTOR
   ========================================== */

.theme-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.theme-label {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 14px;
    margin-right: 8px;
}

.theme-btn {
    padding: 10px 24px;
    border: 2px solid;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-btn.theme-black {
    background: var(--white);
    border-color: var(--dark);
    color: var(--dark);
}

.theme-btn.theme-black:hover,
.theme-btn.theme-black.active {
    background: var(--dark);
    color: var(--white);
}

.theme-btn.theme-red {
    background: var(--white);
    border-color: #EA2027;
    color: #EA2027;
}

.theme-btn.theme-red:hover,
.theme-btn.theme-red.active {
    background: #EA2027;
    color: var(--white);
}

.theme-btn.theme-blue {
    background: var(--white);
    border-color: #1B1464;
    color: #1B1464;
}

.theme-btn.theme-blue:hover,
.theme-btn.theme-blue.active {
    background: #1B1464;
    color: var(--white);
}

/* ==========================================
   THEME VARIATIONS - RED
   ========================================== */

.theme-red-active .printable-area {
    border-color: #EA2027;
}

.theme-red-active .print-border-top,
.theme-red-active .print-border-bottom {
    background: repeating-linear-gradient(
        90deg,
        #EA2027 0px,
        #EA2027 10px,
        transparent 10px,
        transparent 15px
    );
}

.theme-red-active .brand-text h1,
.theme-red-active .footer-brand {
    color: #EA2027;
}

.theme-red-active .brand-line,
.theme-red-active .footer-line {
    background: #EA2027;
}

.theme-red-active .print-product-name h2 {
    border-color: #EA2027;
    color: #EA2027;
}

.theme-red-active .price-card {
    border-color: #EA2027;
}

.theme-red-active .price-card-size {
    color: #EA2027;
}

.theme-red-active .price-value.highlight {
    background: #EA2027;
    color: var(--white);
}

.theme-red-active .price-size-btn {
    background: #EA2027;
}

/* Minimal Template Red */
.theme-red-active .template-minimal {
    border-color: #EA2027;
}

.theme-red-active .minimal-header h1,
.theme-red-active .minimal-product-name {
    color: #EA2027;
}

.theme-red-active .minimal-product-name {
    border-color: #EA2027;
}

.theme-red-active .minimal-divider {
    background: #EA2027;
}

.theme-red-active .minimal-new {
    color: #EA2027;
}

/* Modern Template Red */
.theme-red-active .template-modern {
    border-color: #EA2027;
}

.theme-red-active .modern-brand {
    color: #EA2027;
}

.theme-red-active .modern-product {
    border-color: #EA2027;
    color: #EA2027;
}

.theme-red-active .modern-size-box {
    background: #EA2027;
}

.theme-red-active .modern-price-item {
    border-color: #EA2027;
}

.theme-red-active .modern-new-price {
    color: #EA2027;
}

.theme-red-active .modern-footer {
    border-color: #EA2027;
    color: #EA2027;
}

.theme-red-active .brand-badge {
    background: #EA2027;
}

/* Template 1 Red - New price structure */
.theme-red-active .price-new-value {
    color: #EA2027;
}

.theme-red-active .footer-row:last-child {
    border-top-color: #EA2027;
}

/* Template 2 Red - Size button */
.theme-red-active .minimal-size {
    color: #EA2027;
}

/* Gift Text Red */
.theme-red-active .gift-text {
    color: #EA2027;
}

/* ==========================================
   THEME VARIATIONS - BLUE
   ========================================== */

.theme-blue-active .printable-area {
    border-color: #1B1464;
}

.theme-blue-active .print-border-top,
.theme-blue-active .print-border-bottom {
    background: repeating-linear-gradient(
        90deg,
        #1B1464 0px,
        #1B1464 10px,
        transparent 10px,
        transparent 15px
    );
}

.theme-blue-active .brand-text h1,
.theme-blue-active .footer-brand {
    color: #1B1464;
}

.theme-blue-active .brand-line,
.theme-blue-active .footer-line {
    background: #1B1464;
}

.theme-blue-active .print-product-name h2 {
    border-color: #1B1464;
    color: #1B1464;
}

.theme-blue-active .price-card {
    border-color: #1B1464;
}

.theme-blue-active .price-card-size {
    color: #1B1464;
}

.theme-blue-active .price-value.highlight {
    background: #1B1464;
    color: var(--white);
}

.theme-blue-active .price-size-btn {
    background: #1B1464;
}

/* Template 1 Blue - New price structure */
.theme-blue-active .price-new-value {
    color: #1B1464;
}

.theme-blue-active .footer-row:last-child {
    border-top-color: #1B1464;
}

/* Minimal Template Blue */
.theme-blue-active .template-minimal {
    border-color: #1B1464;
}

.theme-blue-active .minimal-header h1,
.theme-blue-active .minimal-product-name {
    color: #1B1464;
}

.theme-blue-active .minimal-product-name {
    border-color: #1B1464;
}

.theme-blue-active .minimal-divider {
    background: #1B1464;
}

.theme-blue-active .minimal-new {
    color: #1B1464;
}

.theme-blue-active .minimal-size {
    color: #1B1464;
}

/* Gift Text Blue */
.theme-blue-active .gift-text {
    color: #1B1464;
}

/* Modern Template Blue */
.theme-blue-active .template-modern {
    border-color: #1B1464;
}

.theme-blue-active .modern-brand {
    color: #1B1464;
}

.theme-blue-active .modern-product {
    border-color: #1B1464;
    color: #1B1464;
}

.theme-blue-active .modern-size-box {
    background: #1B1464;
}

.theme-blue-active .modern-price-item {
    border-color: #1B1464;
}

.theme-blue-active .modern-new-price {
    color: #1B1464;
}

.theme-blue-active .modern-footer {
    border-color: #1B1464;
    color: #1B1464;
}

.theme-blue-active .brand-badge {
    background: #1B1464;
}

.print-templates-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}

.print-template-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.print-template-item .printable-area {
    /* A4 portrait oranı: 1:1.414 */
    aspect-ratio: 1 / 1.414;
    display: flex;
    flex-direction: column;
}

.print-btn {
    margin-top: 12px;
}

.printable-area {
    background: var(--white);
    border: 1.5px solid var(--dark);
    padding: 32px 28px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    font-family: 'Google Sans', 'Segoe UI', sans-serif;
}

/* Dekoratif Çizgiler */
.print-border-top,
.print-border-bottom {
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--dark) 0px,
        var(--dark) 10px,
        transparent 10px,
        transparent 15px
    );
    margin: 0 -30px;
}

.print-border-top {
    margin-bottom: 20px;
    margin-top: -30px;
}

.print-border-bottom {
    margin-top: 20px;
    margin-bottom: -30px;
}

/* Header */
.print-header {
    text-align: center;
    margin-bottom: 15px;
}

.print-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-text {
    text-align: left;
}

.brand-badge {
    background: var(--dark);
    color: var(--white);
    font-size: 24px;
    font-weight: 400;
    padding: 10px 16px;
    border-radius: 0;
    letter-spacing: 4px;
    font-family: 'Archivo Black', sans-serif;
}

.brand-badge-full {
    background: var(--dark);
    color: var(--white);
    font-size: 32px;
    font-weight: 400;
    padding: 16px 20px;
    letter-spacing: 6px;
    font-family: 'Archivo Black', sans-serif;
    text-align: center;
    width: 100%;
    margin-bottom: 16px;
}

/* Küçük tarih */
.print-date-small {
    font-size: 14px;
    color: #000;
    text-align: center;
    width: 100%;
    margin-top: auto;
    padding-top: 5px;
}

/* DEMİR TEKEL başlık */
.brand-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 42px;
    font-weight: 300;
    color: #000000;
    text-align: center;
    letter-spacing: 28px;
    margin-bottom: 5px;
    text-indent: 28px;
    width: 100%;
}

/* Şablon 1: Koyu kırmızı tema */
.template-classic .brand-badge-full {
    background: #CC0000;
    font-size: 72px;
    padding: 0;
    letter-spacing: 10px;
}

.template-classic .price-size-btn {
    background: #CC0000;
}

.template-classic .print-product-image {
    flex: 1.5;
    margin: 5px 0;
}

.template-classic .print-product-image img {
    max-height: 350px;
}

.brand-text h1 {
    font-size: 34px;
    font-weight: 400;
    color: var(--dark);
    letter-spacing: 3px;
    margin: 0;
    font-family: 'Archivo Black', sans-serif;
}

.brand-line {
    height: 3px;
    background: var(--dark);
    margin: 8px auto;
    width: 90%;
}

.print-subtitle {
    font-size: 15px;
    letter-spacing: 2px;
    color: var(--gray-600);
    font-weight: 700;
    margin: 0;
}

/* Ürün Adı */
.print-product-name {
    text-align: center;
    margin: 10px 0;
}

.print-product-name h2 {
    font-size: 30px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    padding: 14px 18px;
    border: 2px solid var(--dark);
    display: block;
    width: 100%;
    text-transform: uppercase;
    font-family: 'Google Sans', sans-serif;
    letter-spacing: 2px;
    box-sizing: border-box;
}

/* Fiyat Kartları */
.print-prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 0 0 10px;
}

.template-classic .print-prices {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.template-classic {
    background: #fff;
    font-family: 'Google Sans', 'Segoe UI', sans-serif;
    letter-spacing: 0.2px;
}

/* ==========================================
   GIFT PRODUCT LAYOUT
   ========================================== */

.print-product-image.with-gift {
    position: relative;
}

.gift-text {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.4;
    text-align: left;
    z-index: 10;
}

.print-product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
    margin: 10px 0;
    overflow: hidden;
}

.print-product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.template-classic .price-card {
    border: 2px solid var(--dark);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    border-radius: 0;
    background: #fff;
}

/* Şablon 1: Eski fiyat satırı - "1.100₺ Yerine" */
.template-classic .price-row-old {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.template-classic .price-old-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: line-through;
}

.template-classic .price-old-label {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
}

/* Şablon 1: Yeni fiyat satırı - "[100cl] 900₺" */
.template-classic .price-row-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.template-classic .price-size-btn {
    background: var(--dark);
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 0;
    letter-spacing: 1px;
}

.template-classic .price-new-value {
    font-size: 56px;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
}

.template-classic .price-card-discount {
    font-size: 12px;
    font-weight: 800;
    color: var(--dark);
    padding: 8px 10px;
    border: 1.5px solid var(--dark);
    text-align: center;
    border-radius: 10px;
    background: #fff;
}

/* Footer */
.print-footer {
    display: none;
}

.footer-line {
    height: 2px;
    background: var(--dark);
    margin-bottom: 12px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 16px;
}

.footer-row:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 2px solid var(--dark);
}

.footer-date-group {
    text-align: left;
}

.footer-date-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 400;
    display: block;
    margin-bottom: 2px;
}

.print-date {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-500);
    margin: 0;
}

.footer-notes {
    text-align: right;
}

.footer-notes p {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.footer-brand {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-500);
    line-height: 1.4;
}

.footer-phone {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-500);
}

.footer-branches {
    text-align: right;
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ==========================================
   TEMPLATE 2: MINIMAL
   ========================================== */

.template-minimal {
    padding: 30px 28px;
    font-family: 'Google Sans', 'Segoe UI', sans-serif;
    border: 1.5px dashed var(--dark);
    background: #fff;
}

.minimal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.minimal-header h1 {
    font-size: 34px;
    font-weight: 400;
    letter-spacing: 3px;
    text-align: left;
    margin: 0;
    color: var(--dark);
    font-family: 'Archivo Black', sans-serif;
}

.minimal-subtitle {
    text-align: left;
    font-size: 15px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--gray-600);
    margin-top: 6px;
}

.minimal-divider {
    display: none;
}

.minimal-product {
    text-align: center;
    margin: 10px 0;
}

.minimal-product-name {
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark);
    padding: 14px 18px;
    border: 2px solid var(--dark);
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Archivo Black', sans-serif;
}

.minimal-prices {
    margin: 0 0 10px;
    border: 1px solid var(--gray-300);
    border-radius: 0;
    overflow: hidden;
}

.minimal-price-row {
    display: flex;
    align-items: center;
    padding: 18px 14px;
    border-bottom: 1px dashed var(--gray-300);
    gap: 10px;
}

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

.minimal-size {
    font-size: 28px;
    font-weight: 900;
    min-width: 90px;
    color: var(--dark);
}

.minimal-dots {
    flex: 1;
    border-bottom: 1px dotted var(--gray-400);
    margin: 0 12px;
    height: 1px;
}

.minimal-price-group {
    display: flex;
    gap: 16px;
    align-items: baseline;
}

.minimal-old {
    font-size: 24px;
    color: var(--dark);
    text-decoration: line-through;
}

.minimal-old-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.minimal-new {
    font-size: 42px;
    font-weight: 900;
    color: var(--dark);
}

.minimal-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 14px;
}

.minimal-footer p {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 10px;
}

/* ==========================================
   TEMPLATE 3: MODERN
   ========================================== */

.template-modern {
    padding: 30px 26px;
    border: 1.5px solid var(--dark);
    background: #fff;
    color: var(--dark);
    font-family: 'Google Sans', 'Segoe UI', sans-serif;
}

.modern-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.modern-brand {
    font-size: 34px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #0f172a;
    text-align: left;
    font-family: 'Archivo Black', sans-serif;
}

.modern-subtitle {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gray-600);
    text-align: left;
    margin-top: 4px;
}

.modern-product-wrapper {
    margin: 10px 0;
}

.modern-product {
    font-size: 30px;
    font-weight: 400;
    color: #0f172a;
    padding: 14px 18px;
    border: 2px solid #0f172a;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #fff;
    text-align: center;
    width: 100%;
    font-family: 'Archivo Black', sans-serif;
}

.modern-prices {
    margin: 15px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modern-price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border: 1.5px solid #0f172a;
    margin: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

.modern-price-item:last-child {
    margin-bottom: 0;
}

.modern-size-box {
    background: #0f172a;
    color: var(--white);
    padding: 14px 18px;
    font-size: 24px;
    font-weight: 800;
    border-radius: 0;
}

.modern-price-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    justify-content: flex-end;
}

.modern-old-price {
    font-size: 24px;
    color: var(--dark);
    text-decoration: line-through;
}

.modern-old-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.modern-new-price {
    font-size: 48px;
    font-weight: 900;
    color: #0f172a;
}

.modern-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 3px solid #0f172a;
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
}

/* ==========================================
   PRINT STYLES (A4)
   ========================================== */

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body {
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        margin: 0 !important;
    }

    .admin-header,
    .tabs,
    .print-page-actions,
    .theme-selector {
        display: none !important;
    }

    .admin-container,
    .admin-content {
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        background: white !important;
        max-width: 100% !important;
    }

    .print-templates-wrapper {
        display: block !important;
        gap: 0 !important;
    }

    .printable-area {
        border: 1.5px solid #000 !important;
        padding: 18mm 16mm !important;
        flex: 1 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        width: calc(210mm - 20mm) !important;
        min-height: calc(297mm - 20mm) !important;
        height: calc(297mm - 20mm) !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
    }

    .print-border-top,
    .print-border-bottom {
        margin: 0 -25px !important;
        background: repeating-linear-gradient(
            90deg,
            #000 0px,
            #000 10px,
            transparent 10px,
            transparent 15px
        ) !important;
    }

    .print-border-top {
        margin-top: -25px !important;
        margin-bottom: 15px !important;
    }

    .print-border-bottom {
        margin-bottom: -25px !important;
        margin-top: 15px !important;
    }

    .brand-text h1,
    .print-product-name h2,
    .price-card-size,
    .footer-brand {
        color: #000 !important;
    }

    .brand-line,
    .footer-line,
    .print-product-name h2,
    .price-card,
    .price-card-discount,
    .footer-brand {
        border-color: #000 !important;
    }

    .brand-line,
    .footer-line {
        background: #000 !important;
    }

    .price-value.highlight {
        color: #000 !important;
    }

    .price-size-btn {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background: #000 !important;
        color: #fff !important;
    }

    /* Template 2: Minimal Print */
    .template-minimal {
        border: 1.5px solid #000 !important;
    }

    .minimal-header h1,
    .minimal-product-name,
    .minimal-size,
    .minimal-new {
        color: #000 !important;
    }

    .minimal-divider {
        background: #000 !important;
    }

    /* Template 3: Modern Print */
    .template-modern {
        border: 1.5px solid #000 !important;
    }

    .modern-badge,
    .modern-size-box,
    .modern-discount {
        background: #000 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .modern-brand,
    .modern-product,
    .modern-new-price,
    .modern-footer {
        color: #000 !important;
    }

    .modern-product,
    .modern-price-item,
    .modern-footer {
        border-color: #000 !important;
    }

    /* Hide print buttons */
    .print-btn {
        display: none !important;
    }

    /* Gift Text Print */
    .gift-text {
        color: #000 !important;
    }
}

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

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

    .header-right {
        width: 100%;
        justify-content: center;
    }

    .tabs {
        overflow-x: auto;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-actions {
        width: 100%;
    }

    .detail-actions .btn {
        flex: 1;
    }

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

    .printable-area {
        padding: 20px;
    }

    .print-table th,
    .print-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
}
