/* ========================================
   MODERN UI COMPONENTS ENHANCEMENT
   ======================================== */

/* Modern Button Styles */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-add-cart {
    width: 100%;
    margin-top: 15px;
    padding: 12px 20px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: #e91e63;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
}

/* Icon Button Enhancement */
.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.icon-btn:hover::after {
    border-color: #e91e63;
}

.icon-btn:active {
    transform: scale(0.95);
}

/* Service Items */
.service-item {
    text-align: center;
    padding: 25px 15px;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #e91e63;
}

.service-item i {
    font-size: 2.5rem;
    color: #e91e63;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.service-item:hover i {
    transform: scale(1.1);
}

.service-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.service-item p {
    font-size: 0.85rem;
    color: #666;
}

/* Instagram Grid */
.instagram-item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.instagram-item:hover {
    transform: scale(1.05);
    z-index: 2;
}

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

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(233, 30, 99, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    font-size: 2rem;
    color: #fff;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: #fff;
    padding: 15px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.promo-banner p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.9rem;
}

.promo-banner strong {
    color: #e91e63;
    font-weight: 700;
}

/* Footer Enhancement */
.footer-col h4 {
    position: relative;
    margin-bottom: 20px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #e91e63, #ff4081);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #e91e63;
    color: #fff;
    transform: translateY(-5px);
}

.footer-links a {
    position: relative;
    padding: 5px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #e91e63;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.payment-methods i {
    font-size: 2rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.payment-methods i:hover {
    color: #e91e63;
    transform: translateY(-3px);
}

/* ========================================
   PAGINATION - SAYFALAMA
   ======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 20px;
}

.pagination-btn {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.pagination-btn:hover::before {
    width: 150px;
    height: 150px;
}

.pagination-btn:hover {
    border-color: #e91e63;
    color: #e91e63;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.2);
}

.pagination-btn:active {
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    color: #fff;
    border-color: #1a1a1a;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.pagination-btn.active:hover {
    transform: scale(1.08) translateY(-3px);
    background: linear-gradient(135deg, #e91e63, #ff4081);
    border-color: #e91e63;
    color: #fff;
}

.pagination-btn.prev,
.pagination-btn.next {
    padding: 0 16px;
}

.pagination-btn.prev i,
.pagination-btn.next i {
    font-size: 0.8rem;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    border-color: #e8e8e8;
    color: #1a1a1a;
    transform: none;
    box-shadow: none;
}

.pagination span {
    color: #999;
    font-weight: 600;
    padding: 0 5px;
}

/* Pagination Dots Style */
.pagination-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    background: #e8e8e8;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-dot:hover {
    background: #ccc;
    transform: scale(1.2);
}

.pagination-dot.active {
    width: 30px;
    background: linear-gradient(90deg, #e91e63, #ff4081);
    border-radius: 5px;
}

/* Pagination Info */
.pagination-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #666;
    margin-top: 20px;
}

.pagination-info strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Page Jumper */
.pagination-jumper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination-jumper label {
    font-size: 0.85rem;
    color: #666;
}

.pagination-jumper input {
    width: 60px;
    padding: 8px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.pagination-jumper input:focus {
    outline: none;
    border-color: #e91e63;
}

.pagination-jumper button {
    padding: 8px 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-jumper button:hover {
    background: #e91e63;
    transform: translateY(-2px);
}

/* Compact Pagination */
.pagination.compact {
    gap: 4px;
}

.pagination.compact .pagination-btn {
    min-width: 38px;
    height: 38px;
    font-size: 0.85rem;
}

/* Loading Pagination State */
.pagination.loading .pagination-btn {
    pointer-events: none;
    opacity: 0.6;
}

.pagination.loading .pagination-btn.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }
    
    .pagination-btn {
        min-width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
    
    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0 12px;
    }
    
    /* Mobile'de ara sayıları gizle */
    .pagination .hide-mobile {
        display: none;
    }
}

/* ========================================
   SHOP TOOLBAR
   ======================================== */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.shop-toolbar-left {
    font-size: 0.9rem;
    color: #666;
}

.shop-toolbar-left strong {
    color: #1a1a1a;
}

.shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-trigger:hover {
    border-color: #e91e63;
    color: #e91e63;
}

.sort-trigger i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.sort-dropdown.active .sort-trigger i {
    transform: rotate(180deg);
}

.sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.sort-dropdown.active .sort-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.85rem;
    color: #1a1a1a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-option:hover {
    background: #f8f9fa;
    color: #e91e63;
}

.sort-option.selected {
    background: #f8f9fa;
    color: #e91e63;
    font-weight: 600;
}

/* View Toggle */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f8f9fa;
    padding: 3px;
    border-radius: 10px;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    color: #1a1a1a;
}

.view-btn.active {
    background: #fff;
    color: #e91e63;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-btn i {
    font-size: 0.9rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   MODERN UI RESPONSIVE FIXES
   ======================================== */

/* === MOBILE (< 480px) === */
@media (max-width: 480px) {
    /* Header Actions */
    .header-actions {
        gap: 4px;
    }

    .header-actions button {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .header-actions .badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    /* Product Card */
    .product-card {
        border-radius: 12px;
    }

    .product-badge {
        padding: 4px 10px;
        font-size: 0.65rem;
        top: 8px;
        left: 8px;
    }

    .wishlist-btn {
        width: 36px;
        height: 36px;
        top: 8px;
        right: 8px;
        font-size: 1rem;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-price .price {
        font-size: 1rem;
    }

    .color-dot {
        width: 16px;
        height: 16px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .btn-add-cart {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    /* Icon Button */
    .icon-btn {
        width: 38px;
        height: 38px;
    }

    /* Shop Toolbar */
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 0;
        gap: 12px;
    }

    .shop-toolbar-left {
        text-align: center;
        font-size: 0.85rem;
    }

    .shop-toolbar-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* View Toggle */
    .view-toggle {
        padding: 2px;
    }

    .view-btn {
        width: 32px;
        height: 32px;
    }

    /* Sort Dropdown */
    .sort-trigger {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .sort-menu {
        min-width: 160px;
    }

    /* Pagination */
    .pagination {
        padding: 15px;
        gap: 4px;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0 10px;
    }

    .pagination-info {
        padding: 12px 18px;
        font-size: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Service Item */
    .service-item {
        padding: 12px 8px;
    }

    .service-item i {
        font-size: 1.8rem;
    }

    /* Instagram Item */
    .instagram-item {
        border-radius: 8px;
    }

    .instagram-overlay i {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-col {
        margin-bottom: 25px;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
    }

    .payment-methods i {
        font-size: 1.5rem;
    }

    /* Mini Cart */
    .mini-cart-header h3 {
        font-size: 1.2rem;
    }

    .close-cart {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .cart-total {
        font-size: 1rem;
    }

    /* Newsletter */
    .newsletter-close {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .newsletter-form-wrapper {
        padding: 25px 20px;
    }

    .newsletter-form-wrapper h3 {
        font-size: 1.4rem;
    }

    .newsletter-form input {
        padding: 12px 16px;
    }

    /* Modal */
    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .quick-view-details h2 {
        font-size: 1.4rem;
    }

    .quick-view-price {
        font-size: 1.2rem;
    }

    .size-option {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    /* Quick View Actions */
    .quick-view-actions .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* Search Suggestions */
    .suggestion-tag {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* Search Results */
    .search-product-item {
        padding: 10px;
    }

    .search-product-image {
        width: 50px;
        height: 50px;
    }

    .search-product-info h4 {
        font-size: 0.85rem;
    }

    /* Category Card */
    .category-card h3 {
        font-size: 1.1rem;
    }
}

/* === TABLET (481px - 768px) === */
@media (min-width: 481px) and (max-width: 768px) {
    /* Product Card */
    .product-info {
        padding: 15px;
    }

    .product-title {
        font-size: 0.95rem;
    }

    /* Shop Toolbar */
    .shop-toolbar {
        flex-wrap: wrap;
    }

    .shop-toolbar-left {
        flex: 1;
    }

    .shop-toolbar-right {
        flex-wrap: wrap;
    }

    /* Service */
    .service-item {
        padding: 15px 12px;
    }

    /* Instagram */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === DESKTOP TABLET (769px - 992px) === */
@media (min-width: 769px) and (max-width: 992px) {
    /* Header */
    .nav-menu > li > a {
        padding: 0 10px;
        font-size: 0.85rem;
    }

    /* Product Card */
    .product-info {
        padding: 15px;
    }

    /* Shop Toolbar */
    .sort-trigger {
        padding: 9px 14px;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === PREVENT OVERFLOW === */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    .product-grid,
    .category-grid,
    .services-grid,
    .instagram-grid,
    .footer-grid {
        overflow-x: hidden;
        overflow-y: visible;
    }

    /* Fix long text */
    .product-title,
    .section-title,
    .page-header h1 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Fix buttons */
    .btn,
    .btn-add-cart {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Fix images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix modal */
    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    /* Fix search bar */
    .search-bar {
        max-width: 100vw;
    }

    .search-results {
        max-height: 60vh;
    }

    /* Additional overflow fixes */
    .hero,
    .hero-slider,
    .hero-slide {
        max-width: 100vw;
        overflow-x: clip;
    }

    .navbar {
        max-width: 100%;
        overflow-x: clip;
    }

    .nav-menu {
        max-width: 100%;
        overflow: visible;
    }

    .footer,
    .footer-grid {
        max-width: 100vw;
        overflow-x: clip;
    }
}
