/* Akvaryumpedia Fiyat - Frontend Styles */
.akv-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Breadcrumb */
.akv-breadcrumb { font-size: 13px; color: #666; padding: 16px 0 8px; }
.akv-breadcrumb a { color: #0073aa; text-decoration: none; }
.akv-breadcrumb a:hover { text-decoration: underline; }

/* Page Title */
.akv-page-title { font-size: 24px; font-weight: 700; margin: 8px 0 16px; color: #1a1a1a; }
.akv-page-title .akv-count { font-size: 14px; color: #888; font-weight: normal; }

/* Category Pills */
.akv-category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.akv-pill { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 13px;
    border: 1px solid #ddd; color: #444; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.akv-pill:hover { border-color: #0073aa; color: #0073aa; }
.akv-pill.active { background: #0073aa; color: #fff; border-color: #0073aa; }

/* Toolbar */
.akv-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
    gap: 12px; flex-wrap: wrap; }
.akv-search-form { display: flex; gap: 6px; }
.akv-search-form input { padding: 8px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; width: 260px; }
.akv-search-form button { padding: 8px 16px; background: #0073aa; color: #fff; border: none; border-radius: 6px;
    cursor: pointer; font-size: 14px; }
.akv-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #666; }
.akv-sort a { color: #555; text-decoration: none; padding: 4px 10px; border-radius: 4px; }
.akv-sort a:hover { background: #f0f0f0; }
.akv-sort a.active { background: #0073aa; color: #fff; }

/* Product Grid */
.akv-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.akv-product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e8e8e8;
    border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s; }
.akv-product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }

.akv-card-image { height: 180px; display: flex; align-items: center; justify-content: center;
    background: #fafafa; overflow: hidden; }
.akv-card-image img { max-height: 160px; max-width: 90%; object-fit: contain; }
.akv-placeholder { font-size: 48px; }

.akv-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.akv-card-title { font-size: 14px; font-weight: 600; margin: 0 0 6px; color: #1a1a1a;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.akv-card-meta { display: flex; gap: 6px; font-size: 12px; color: #888; margin-bottom: auto; flex-wrap: wrap; }
.akv-brand, .akv-cat { padding: 2px 6px; background: #f0f0f0; border-radius: 3px; }
.akv-card-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; padding-top: 8px;
    border-top: 1px solid #f0f0f0; }
.akv-card-price { font-size: 18px; font-weight: 700; color: #28a745; }
.akv-card-store { font-size: 11px; color: #888; text-align: right; }

/* Pagination */
.akv-pagination { display: flex; justify-content: center; gap: 6px; margin: 30px 0; }
.akv-page { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border: 1px solid #ddd; border-radius: 6px; text-decoration: none; color: #444; font-size: 14px; }
.akv-page:hover { background: #f0f0f0; }
.akv-page.current { background: #0073aa; color: #fff; border-color: #0073aa; }

/* ─── Product Detail ─── */
.akv-product-header { display: flex; gap: 30px; margin-bottom: 30px; }
.akv-product-image { width: 280px; flex-shrink: 0; }
.akv-product-image img { width: 100%; border-radius: 10px; background: #fafafa; }
.akv-placeholder-lg { display: flex; width: 280px; height: 280px; align-items: center; justify-content: center;
    background: #fafafa; border-radius: 10px; font-size: 64px; }
.akv-product-info h1 { font-size: 22px; margin: 0 0 8px; }
.akv-product-meta { display: flex; gap: 16px; font-size: 14px; color: #666; margin-bottom: 12px; }
.akv-encyclopedia-link { display: inline-block; color: #0073aa; text-decoration: none; font-size: 14px; margin-bottom: 12px; }
.akv-encyclopedia-link:hover { text-decoration: underline; }

.akv-price-extremes { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.akv-extreme { font-size: 12px; padding: 4px 12px; border-radius: 20px; }
.akv-extreme small { opacity: 0.7; }
.akv-extreme-low { background: #d4edda; color: #155724; }
.akv-extreme-high { background: #f8d7da; color: #721c24; }

.akv-product-desc { font-size: 14px; color: #555; line-height: 1.6; }

/* Section */
.akv-section { margin-bottom: 30px; }
.akv-section h2 { font-size: 18px; margin-bottom: 12px; color: #1a1a1a; }

/* Chart */
.akv-chart-wrapper { height: 300px; background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 16px; }

/* Store List */
.akv-store-list { border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; }
.akv-store-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0; transition: background 0.15s; }
.akv-store-row:last-child { border-bottom: none; }
.akv-store-row:hover { background: #fafafa; }
.akv-cheapest-row { background: #f0fff4; }
.akv-cheapest-row:hover { background: #e5fded; }
.akv-out-of-stock-row { opacity: 0.5; }

.akv-store-logo { width: 40px; height: 28px; flex-shrink: 0; }
.akv-store-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.akv-store-icon { display: flex; width: 40px; height: 28px; align-items: center; justify-content: center;
    background: #e0e0e0; border-radius: 4px; font-weight: 700; font-size: 16px; color: #555; }

.akv-store-info { flex: 1; }
.akv-store-info .akv-store-name { font-weight: 600; font-size: 14px; display: block; }
.akv-stock-status { font-size: 12px; }
.akv-stock-status.in-stock { color: #28a745; }
.akv-stock-status.out-stock { color: #dc3545; }

.akv-store-price { text-align: right; min-width: 100px; }
.akv-current-price { font-size: 18px; font-weight: 700; color: #1a1a1a; display: block; }
.akv-old-price { font-size: 13px; color: #999; text-decoration: line-through; }

.akv-store-action { flex-shrink: 0; }

/* Buttons */
.akv-btn { display: inline-block; padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 600;
    text-decoration: none; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.akv-btn-primary { background: #0073aa; color: #fff; }
.akv-btn-primary:hover { background: #005a87; color: #fff; }
.akv-btn-disabled { background: #e0e0e0; color: #999; cursor: default; }

/* Shortcode: Price Box */
.akv-price-box { border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; margin: 16px 0; }
.akv-price-box-title { margin: 0; padding: 12px 16px; background: #f5f5f5; font-size: 15px; }
.akv-price-box-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; }
.akv-price-box-item:last-child { border-bottom: none; }
.akv-price-box-item.akv-cheapest { background: #f0fff4; }
.akv-price-box-item .akv-store-name { flex: 1; font-weight: 500; }
.akv-price-box-item .akv-item-price { font-weight: 700; font-size: 15px; }
.akv-price-box-item .akv-go-btn { font-size: 12px; color: #0073aa; text-decoration: none; }
.akv-price-box-item .akv-out-of-stock { font-size: 12px; color: #dc3545; }

/* Mini card grid (shortcodes) */
.akv-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.akv-product-card-mini { display: flex; flex-direction: column; align-items: center; padding: 12px;
    border: 1px solid #e8e8e8; border-radius: 8px; text-decoration: none; color: inherit; text-align: center; }
.akv-product-card-mini img { max-height: 80px; margin-bottom: 6px; }
.akv-card-name { font-size: 12px; font-weight: 600; margin-bottom: 4px; }

/* Last updated */
.akv-last-updated { font-size: 12px; color: #999; text-align: center; padding: 20px 0; }

/* Empty */
.akv-empty { text-align: center; padding: 40px 20px; color: #888; }

/* Responsive */
@media (max-width: 768px) {
    .akv-product-header { flex-direction: column; }
    .akv-product-image { width: 100%; }
    .akv-placeholder-lg { width: 100%; }
    .akv-store-row { flex-wrap: wrap; }
    .akv-toolbar { flex-direction: column; align-items: stretch; }
    .akv-search-form input { width: 100%; }
    .akv-product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ====== Fiyat Plugin Mobile Overhaul ====== */
@media(max-width:768px){
    /* #14: Product header */
    .akv-product-header{flex-direction:column;gap:16px}
    .akv-product-image{width:100%}
    .akv-placeholder-lg{width:100%;height:200px}
    .akv-product-info h1{font-size:18px}
    .akv-product-meta{flex-direction:column;gap:4px}
    
    /* Store rows compact */
    .akv-store-row{flex-wrap:wrap;gap:8px;padding:10px 14px}
    .akv-store-info{min-width:calc(100% - 56px)}
    .akv-store-price{text-align:left}
    .akv-current-price{font-size:16px}
    .akv-store-action{width:100%}
    .akv-store-action .akv-btn{width:100%;text-align:center;display:block}
    
    /* Product grid 2-col */
    .akv-product-grid{grid-template-columns:repeat(2,1fr);gap:10px}
    .akv-card-image{height:140px}
    .akv-card-body{padding:10px 12px}
    .akv-card-title{font-size:13px}
    .akv-card-price{font-size:16px}
    .akv-card-footer{flex-direction:column;align-items:flex-start;gap:2px}
    
    /* Toolbar stack */
    .akv-toolbar{flex-direction:column;align-items:stretch}
    .akv-search-form{flex-direction:column}
    .akv-search-form input{width:100%}
    .akv-search-form button{width:100%}
    .akv-sort{justify-content:center}
    
    /* Category pills scroll */
    .akv-category-pills{flex-wrap:nowrap;overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none;padding-bottom:4px}
    .akv-category-pills::-webkit-scrollbar{display:none}
    
    /* Chart */
    .akv-chart-wrapper{height:220px;padding:10px}
    
    /* Touch targets */
    .akv-pill{min-height:40px;display:inline-flex;align-items:center}
    .akv-page{min-width:40px;min-height:40px}
}
@media(max-width:480px){
    .akv-product-grid{grid-template-columns:repeat(2,1fr);gap:8px}
    .akv-card-image{height:110px}
    .akv-card-title{font-size:12px}
    .akv-card-price{font-size:14px}
    .akv-category-grid{grid-template-columns:repeat(2,1fr);gap:8px}
}
