/*
 * Pervane Dergisi - Mobile Responsive & Magazine Design Enhancements
 * Colors are inherited from main.css CSS variables — NO color changes.
 */

/* ========================================
   GLOBAL RESPONSIVE SPACING
   ======================================== */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 575px) {
    .section-padding {
        padding: 40px 0;
    }
}

/* ========================================
   HEADER MOBILE FIXES
   ======================================== */
@media (max-width: 991px) {
    .header-top-1 .header-top-wrapper {
        flex-wrap: wrap;
        gap: 5px;
        padding: 8px 0;
    }

    .header-top-1 .contact-list {
        font-size: 13px;
    }

    .header-top-1 .contact-list li {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .header-top-1 {
        display: none;
    }
}

/* Logo responsive */
.header-left .logo img {
    max-height: 70px;
    width: auto;
}

@media (max-width: 991px) {
    .header-left .logo img {
        max-height: 55px;
    }
}

@media (max-width: 575px) {
    .header-left .logo img {
        max-height: 45px;
    }
}

/* Cart & hamburger mobile */
@media (max-width: 575px) {
    .header-right .menu-cart {
        gap: 10px;
    }

    .header-right .menu-cart .cart-icon {
        font-size: 18px;
    }

    .header-humbager.ml-30 {
        margin-left: 15px !important;
    }
}

/* Cart Count Badge */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--theme);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(157, 73, 61, 0.4);
}

/* Override theme's hardcoded "0" pseudo-element on cart icon */
.header-1 .header-right .menu-cart .cart-icon::before {
    display: none !important;
}

/* Hide mobile cart in header-top — main header already has cart */
.mobile-cart-item {
    display: none !important;
}

/* ========================================
   HERO SLIDER (CAROUSEL) - MOBILE FIX
   ======================================== */
.carousel-item {
    height: 70vh;
    max-height: 600px;
    position: relative;
    overflow: hidden;
}

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

@media (max-width: 991px) {
    .carousel-item {
        height: 50vh;
        max-height: 450px;
    }
}

@media (max-width: 575px) {
    .carousel-item {
        height: 40vh;
        max-height: 300px;
    }
}

/* Carousel indicators - make them more visible and tappable */
.carousel-indicators {
    bottom: 15px;
    z-index: 5;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.6;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: var(--theme);
    border-color: var(--theme);
    transform: scale(1.2);
}

/* Carousel arrows - better visibility */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(157, 73, 61, 0.6);
    border-radius: 50%;
    opacity: 1;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--theme);
}

@media (max-width: 575px) {

    .carousel-control-prev,
    .carousel-control-next {
        width: 36px;
        height: 36px;
        margin: 0 8px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   FEATURE BOXES - MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .feature-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 0;
        background-color: transparent;
    }

    .feature-wrapper .feature-box-items {
        background-color: var(--bg);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 12px;
        width: 100%;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .feature-wrapper .feature-box-items:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .feature-wrapper .feature-box-items:not(:last-child) {
        border-right: none;
        padding-right: 0;
    }

    .feature-wrapper .feature-box-items .icon {
        width: 60px;
        height: 60px;
        font-size: 35px;
        line-height: 65px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .feature-wrapper .feature-box-items .content h3 {
        font-size: 18px;
    }

    .feature-wrapper .feature-box-items .content p {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .feature-wrapper .feature-box-items {
        padding: 16px;
        gap: 14px;
    }

    .feature-wrapper .feature-box-items .icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
        line-height: 55px;
    }

    .feature-wrapper .feature-box-items .content h3 {
        font-size: 16px;
    }
}

/* ========================================
   SECTION TITLES - RESPONSIVE
   ======================================== */
.section-title-area {
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 767px) {
    .section-title-area {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left;
    }

    .section-title-area .section-title h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .section-title-area .theme-btn.transparent-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .section-title-area .section-title h2 {
        font-size: 22px;
    }
}

/* ========================================
   SECTION HEADER — Premium Editorial Style
   ======================================== */
.mag-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.mag-section-header .mag-section-label {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mag-section-header .mag-section-label .mag-accent-line {
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, var(--theme), var(--theme2));
    border-radius: 4px;
}

.mag-section-header .mag-section-label h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.mag-section-header .mag-section-label h2 span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--theme);
    margin-bottom: 2px;
}

.mag-section-header .mag-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--theme);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 10px 24px;
    border: 2px solid var(--theme);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.mag-view-all:hover {
    background: var(--theme);
    color: #fff;
    transform: translateX(4px);
}

.mag-view-all i {
    transition: transform 0.3s ease;
}

.mag-view-all:hover i {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .mag-section-header {
        margin-bottom: 25px;
    }

    .mag-section-header .mag-section-label h2 {
        font-size: 24px;
    }

    .mag-section-header .mag-section-label h2 span {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .mag-view-all {
        padding: 8px 18px;
        font-size: 13px;
    }
}

/* ========================================
   "Son Eklenen Dergiler" — EDITORIAL COVER CARDS
   3D perspective tilt, gradient overlay, floating badge
   ======================================== */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1199px) {
    .magazine-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Magazine Cover Card */
.magazine-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
    cursor: pointer;
}

.magazine-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(157, 73, 61, 0.2);
}

/* Cover Image */
.magazine-card .magazine-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

.magazine-card .magazine-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1), filter 0.5s ease;
}

.magazine-card:hover .magazine-card-image img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

/* Gradient overlay on hover */
.magazine-card .magazine-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(157, 73, 61, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.magazine-card:hover .magazine-card-image::after {
    opacity: 1;
}

/* Floating issue badge */
.magazine-card .magazine-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--theme);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.magazine-card:hover .magazine-badge {
    background: var(--theme);
    color: #fff;
    transform: scale(1.05);
}

/* Quick-view overlay button */
.magazine-card .magazine-card-image .mag-quick-view {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--header);
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
}

.magazine-card:hover .mag-quick-view {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mag-quick-view:hover {
    background: var(--theme);
    color: #fff;
}

/* Card body */
.magazine-card .magazine-card-body {
    padding: 18px 18px 20px;
}

.magazine-card .magazine-card-body .magazine-publisher {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--theme);
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.magazine-card .magazine-card-body .magazine-publisher::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--theme);
    display: inline-block;
}

.magazine-card .magazine-card-body h3 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magazine-card .magazine-card-body h3 a {
    color: var(--header);
    text-decoration: none;
}

.magazine-card .magazine-card-body h3 a:hover {
    color: var(--theme);
}

.magazine-card .magazine-card-body .magazine-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.magazine-card .magazine-card-body .magazine-price .current-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--theme);
    letter-spacing: -0.5px;
}

.magazine-card .magazine-card-body .magazine-price .old-price {
    font-size: 14px;
    color: #bbb;
    text-decoration: line-through;
}

/* Add to cart button */
.magazine-card .magazine-card-body .magazine-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.magazine-cart-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--theme2), var(--theme));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magazine-cart-btn:hover::before {
    opacity: 1;
}

.magazine-cart-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 73, 61, 0.3);
}

.magazine-cart-btn i,
.magazine-cart-btn span {
    position: relative;
    z-index: 1;
}

/* Mobile adjustments */
@media (max-width: 575px) {
    .magazine-card .magazine-card-body {
        padding: 14px;
    }

    .magazine-card .magazine-card-body .magazine-publisher {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .magazine-card .magazine-card-body h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .magazine-card .magazine-card-body .magazine-price .current-price {
        font-size: 18px;
    }

    .magazine-card .magazine-card-body .magazine-cart-btn {
        padding: 10px 14px;
        font-size: 12px;
        border-radius: 8px;
    }

    .magazine-card .magazine-badge {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 9px;
    }

    .magazine-card .mag-quick-view {
        display: none;
    }
}

/* ========================================
   CTA BANNER — Premium Animated Design
   Diagonal stripes + glow effect
   ======================================== */
.mag-cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 60px 50px;
    background: linear-gradient(135deg, var(--theme) 0%, var(--theme2) 100%);
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* Animated diagonal stripes */
.mag-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg,
            transparent,
            transparent 30px,
            rgba(255, 255, 255, 0.03) 30px,
            rgba(255, 255, 255, 0.03) 60px);
    animation: ctaStripes 20s linear infinite;
}

@keyframes ctaStripes {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200px 200px;
    }
}

/* Floating glow circle */
.mag-cta-banner::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -50px;
    border-radius: 50%;
    animation: ctaGlow 6s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.mag-cta-banner .mag-cta-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 200px;
}

.mag-cta-banner .mag-cta-content .mag-cta-sub {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-weight: 600;
}

.mag-cta-banner .mag-cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
}

.mag-cta-banner .mag-cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 400;
}

.mag-cta-banner .mag-cta-action {
    position: relative;
    z-index: 2;
}

.mag-cta-banner .mag-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--theme);
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mag-cta-btn:hover {
    background: var(--header);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.mag-cta-btn i {
    transition: transform 0.3s ease;
}

.mag-cta-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 767px) {
    .mag-cta-banner {
        padding: 35px 25px;
        border-radius: 16px;
        text-align: center;
        flex-direction: column;
    }

    .mag-cta-banner .mag-cta-content h2 {
        font-size: 24px;
    }

    .mag-cta-banner .mag-cta-content .mag-cta-sub {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .mag-cta-banner .mag-cta-content p {
        font-size: 14px;
    }

    .mag-cta-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* ========================================
   "Öne Çıkan Dergiler" — SWIPER ENHANCED
   Glassmorphic card overlay, cinematic hover
   ======================================== */
.book-slider {
    padding-bottom: 55px !important;
    position: relative;
}

.book-slider .swiper-pagination {
    bottom: 0;
}

.book-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--border);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.book-slider .swiper-pagination-bullet-active {
    background: var(--theme);
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

/* Enhanced swiper card */
.swiper-slide .shop-box-items {
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.swiper-slide .shop-box-items:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(157, 73, 61, 0.15);
    border-color: rgba(157, 73, 61, 0.1);
}

.swiper-slide .shop-box-items .book-thumb {
    position: relative;
    overflow: hidden;
}

.swiper-slide .shop-box-items .book-thumb img {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.swiper-slide .shop-box-items:hover .book-thumb img {
    transform: scale(1.08);
}

/* Gradient overlay for swiper */
.swiper-slide .shop-box-items .book-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.swiper-slide .shop-box-items:hover .book-thumb::after {
    opacity: 1;
}

.swiper-slide .shop-box-items .shop-content {
    padding: 18px;
}

.swiper-slide .shop-box-items .shop-content h5 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--theme);
    font-weight: 700;
    margin-bottom: 6px;
}

.swiper-slide .shop-box-items .shop-content h3 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.swiper-slide .shop-box-items .shop-button {
    padding: 0 18px 18px;
}

.swiper-slide .shop-box-items .shop-button .theme-btn {
    border-radius: 10px;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 14px;
}

@media (max-width: 575px) {
    .book-slider .swiper-slide {
        padding: 0 5px;
    }

    .swiper-slide .shop-box-items .shop-content {
        padding: 14px;
    }

    .swiper-slide .shop-box-items .shop-content h3 {
        font-size: 14px;
    }

    .swiper-slide .shop-box-items .shop-button {
        padding: 0 14px 14px;
    }

    .swiper-slide .shop-box-items .shop-button .theme-btn {
        padding: 12px 16px;
        font-size: 13px;
        min-width: auto;
    }
}

/* ========================================
   "Kilidi Açılan E-Dergiler" — EDITORIAL CARDS
   Dark gradient overlay, ribbon date, full-image cards
   ======================================== */
.e-dergi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media (max-width: 991px) {
    .e-dergi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .e-dergi-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.e-dergi-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}

.e-dergi-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Full-cover background image */
.e-dergi-card .e-dergi-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.e-dergi-card .e-dergi-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.e-dergi-card:hover .e-dergi-bg img {
    transform: scale(1.08);
}

/* Dark gradient overlay */
.e-dergi-card .e-dergi-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            rgba(157, 73, 61, 0.85) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.e-dergi-card:hover .e-dergi-overlay {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.15) 30%,
            rgba(161, 51, 34, 0.9) 100%);
}

/* Date ribbon */
.e-dergi-card .e-dergi-date {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.e-dergi-card .e-dergi-date .e-dergi-day {
    font-size: 22px;
    font-weight: 800;
    color: var(--theme);
    line-height: 1;
    display: block;
}

.e-dergi-card .e-dergi-date .e-dergi-month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
}

/* Content overlay at bottom */
.e-dergi-card .e-dergi-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 25px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.e-dergi-card:hover .e-dergi-content {
    transform: translateY(0);
}

.e-dergi-card .e-dergi-content .e-dergi-tag {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.e-dergi-card .e-dergi-content .e-dergi-tag::before {
    content: '';
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    position: absolute;
    left: 0;
    top: 50%;
}

.e-dergi-card .e-dergi-content h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.e-dergi-card .e-dergi-content h3 a {
    color: #fff;
    text-decoration: none;
}

.e-dergi-card .e-dergi-content h3 a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.e-dergi-card .e-dergi-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.e-dergi-card:hover .e-dergi-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.e-dergi-btn:hover {
    background: #fff;
    color: var(--theme);
    border-color: #fff;
}

@media (max-width: 767px) {
    .e-dergi-card {
        height: 260px;
    }

    .e-dergi-card .e-dergi-content {
        padding: 18px;
    }

    .e-dergi-card .e-dergi-content h3 {
        font-size: 17px;
    }

    .e-dergi-card .e-dergi-date {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
    }

    .e-dergi-card .e-dergi-date .e-dergi-day {
        font-size: 18px;
    }

    .e-dergi-card .e-dergi-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575px) {
    .e-dergi-card {
        height: 240px;
        border-radius: 14px;
    }

    .e-dergi-card .e-dergi-content h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .e-dergi-card .e-dergi-content .e-dergi-tag {
        font-size: 9px;
    }

    .e-dergi-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ========================================
   BREADCRUMB - RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .breadcrumb-wrapper .page-heading h1 {
        font-size: 28px;
    }

    .breadcrumb-wrapper .page-heading .breadcrumb-items {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .breadcrumb-wrapper .page-heading h1 {
        font-size: 24px;
    }

    .breadcrumb-wrapper {
        padding: 20px 0;
    }
}

/* ========================================
   DERGILER PAGE - SHOP LISTING
   ======================================== */
@media (max-width: 991px) {
    .shop-default-wrapper .main-sidebar {
        margin-top: 30px;
    }
}

/* Listing cards grid */
.shop-default-wrapper .tab-pane .row {
    gap: 0;
}

.shop-default-wrapper .shop-box-items {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    background: #fff;
}

.shop-default-wrapper .shop-box-items:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(157, 73, 61, 0.12);
}

@media (max-width: 575px) {

    .shop-default-wrapper .col-xl-3,
    .shop-default-wrapper .col-lg-4,
    .shop-default-wrapper .col-md-6 {
        padding: 0 8px;
    }

    .shop-default-wrapper .shop-box-items {
        margin-bottom: 15px;
    }

    .shop-default-wrapper .shop-box-items .shop-content h3 {
        font-size: 14px;
    }

    .shop-default-wrapper .shop-box-items .shop-button .theme-btn {
        padding: 12px 18px;
        font-size: 13px;
        min-width: auto;
        width: 100%;
        text-align: center;
    }
}

/* Sidebar search */
@media (max-width: 575px) {
    .main-sidebar .search-container {
        flex-wrap: nowrap;
    }

    .main-sidebar .search-input {
        font-size: 14px;
    }
}

/* Sorting bar - mobile */
@media (max-width: 767px) {
    .woocommerce-notices-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start !important;
    }

    .woocommerce-notices-wrapper .form-clt {
        width: 100%;
    }
}

/* ========================================
   DERGI DETAIL PAGE
   ======================================== */
.shop-details-wrapper {
    overflow: hidden;
}

/* Fix image gallery sizing */
.shop-details-image .shop-details-thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f8f8;
    border-radius: 16px;
    overflow: hidden;
    padding: 20px;
}

.shop-details-image .shop-details-thumb img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.shop-details-image .nav {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.shop-details-image .nav .nav-item {
    flex: 0 0 auto;
}

.shop-details-image .nav .nav-link {
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    padding: 5px;
    transition: border-color 0.3s ease;
    width: 80px !important;
    height: 80px !important;
}

.shop-details-image .nav .nav-link.active {
    border-color: var(--theme);
}

.shop-details-image .nav .nav-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 991px) {
    .shop-details-wrapper .col-lg-5 {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .shop-details-image .shop-details-thumb {
        padding: 15px;
        border-radius: 12px;
    }

    .shop-details-image .shop-details-thumb img {
        max-height: 350px;
    }

    .shop-details-image .nav .nav-link {
        width: 60px !important;
        height: 60px !important;
        padding: 4px;
    }

    .shop-details-content .title-wrapper h2 {
        font-size: 22px;
    }

    .shop-details-content .price-list h3 {
        font-size: 22px;
    }
}

/* Quantity selector - mobile friendly */
.cart-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.cart-wrapper .quantity-basket {
    flex-shrink: 0;
}

.cart-wrapper .qty {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
}

.cart-wrapper .qty button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--header);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-wrapper .qty button:hover {
    background: var(--bg);
}

.cart-wrapper .qty input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--header);
    -moz-appearance: textfield;
    appearance: textfield;
}

.cart-wrapper .qty input::-webkit-outer-spin-button,
.cart-wrapper .qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (max-width: 575px) {
    .cart-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-wrapper .theme-btn {
        width: 100%;
        text-align: center;
    }
}

/* Description tabs - mobile */
@media (max-width: 575px) {
    .single-tab .nav .nav-link h6 {
        font-size: 14px;
    }

    .description-items p {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* ========================================
   CONTACT PAGE - MOBILE
   ======================================== */
@media (max-width: 991px) {
    .contact-wrapper .contact-content {
        margin-left: 0;
        margin-top: 30px;
    }
}

@media (max-width: 575px) {
    .contact-wrapper .contact-left-items .contact-info-area-2 {
        padding: 25px;
        border-radius: 12px;
    }

    .contact-wrapper .contact-left-items .contact-info-area-2 .contact-info-items .icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 22px;
    }

    .contact-wrapper .contact-left-items .contact-info-area-2 .contact-info-items .content h3 {
        font-size: 16px;
    }

    .contact-wrapper .contact-content h2 {
        font-size: 24px;
    }

    .contact-wrapper .contact-content .contact-form-items .form-clt input,
    .contact-wrapper .contact-content .contact-form-items .form-clt textarea {
        padding: 14px 16px;
        font-size: 14px;
    }

    .contact-wrapper .contact-content .contact-form-items .form-clt textarea {
        padding-bottom: 80px;
    }
}

/* ========================================
   FOOTER - MOBILE RESPONSIVE
   ======================================== */
.footer-section .contact-info-area {
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 767px) {
    .footer-section .contact-info-area {
        flex-direction: column;
    }

    .footer-section .contact-info-area .contact-info-items {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .footer-widgets-wrapper {
        padding: 40px 0 50px;
    }

    .footer-widgets-wrapper .single-footer-widget {
        margin-top: 20px;
    }

    .footer-widgets-wrapper .single-footer-widget .widget-head h3 {
        font-size: 20px;
    }

    .footer-widgets-wrapper .single-footer-widget .list-area li {
        font-size: 14px;
    }

    .footer-bottom .footer-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-bottom .footer-wrapper p {
        font-size: 13px;
    }
}

/* Footer logo responsive */
.single-footer-widget .widget-head img {
    max-width: 180px;
    height: auto;
}

@media (max-width: 575px) {
    .single-footer-widget .widget-head img {
        max-width: 140px;
    }
}

/* ========================================
   ABOUT PAGE - MOBILE
   ======================================== */
@media (max-width: 575px) {
    .about-section .about-content p {
        font-size: 14px;
        line-height: 1.8;
    }
}

/* ========================================
   OFFCANVAS MOBILE MENU ENHANCEMENTS
   ======================================== */
.offcanvas__info {
    max-width: 320px;
}

@media (max-width: 575px) {
    .offcanvas__info {
        max-width: 280px;
    }
}

.offcanvas__contact h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.offcanvas__contact .social-icon a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   GLOBAL TOUCH TARGET SIZES
   Minimum 44px for all interactive elements
   ======================================== */
@media (max-width: 991px) {
    .theme-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .breadcrumb-items li a,
    .list-area li a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* ========================================
   SMOOTH REVEAL ANIMATION
   ======================================== */
@keyframes fadeInUpMag {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mag-animate {
    animation: fadeInUpMag 0.6s ease forwards;
}

/* ========================================
   NO HORIZONTAL OVERFLOW
   ======================================== */
html,
body {
    overflow-x: hidden;
}

.container {
    overflow-x: hidden;
}

/* ========================================
   MAGAZINE SECTION DIVIDERS
   Subtle decorative between sections
   ======================================== */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--theme), var(--theme2));
    margin: 0 auto 30px;
    border-radius: 3px;
}

/* ========================================
   SHOP BOX ITEMS — Used in main.css template
   Mobile enhancements for existing cards
   ======================================== */
.shop-box-items {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-box-items:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(157, 73, 61, 0.12);
}

.shop-box-items .book-thumb {
    overflow: hidden;
}

.shop-box-items .book-thumb img {
    transition: transform 0.5s ease;
}

.shop-box-items:hover .book-thumb img {
    transform: scale(1.05);
}

@media (max-width: 575px) {
    .shop-box-items .shop-content {
        padding: 14px;
    }

    .shop-box-items .shop-content h3 {
        font-size: 14px;
    }

    .shop-box-items .shop-content h5 {
        font-size: 12px;
    }

    .shop-box-items .shop-button {
        padding: 0 14px 14px;
    }

    .shop-box-items .shop-button .theme-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-width: auto;
        width: 100%;
        text-align: center;
    }
}

/* Book shop wrapper (welcome page grid) */
.book-shop-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

@media (max-width: 767px) {
    .book-shop-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .book-shop-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* CTA box inside book-shop-wrapper should span full width */
.book-shop-wrapper .cta-shop-box {
    grid-column: 1 / -1;
}

/* ========================================
   MOBILE CART ICON IN HEADER-TOP
   ======================================== */
.mobile-cart-item {
    display: none;
}

.mobile-cart-item a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
}

.mobile-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--theme);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: cartPulse 0.3s ease;
}

@keyframes cartPulse {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 991px) {
    .mobile-cart-item {
        display: list-item;
    }

    .mobile-cart-item a i {
        font-size: 16px;
    }
}

/* ========================================
   FEATURE BOXES — PREMIUM MOBILE DESIGN
   Horizontal scroll cards with glassmorphic style
   ======================================== */
.feature-wrapper {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.feature-box-items {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.feature-box-items:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(157, 73, 61, 0.12);
    border-color: rgba(157, 73, 61, 0.1);
}

.feature-box-items .icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(157, 73, 61, 0.08), rgba(161, 51, 34, 0.12));
    border-radius: 12px;
    font-size: 22px;
    color: var(--theme);
    transition: all 0.3s ease;
}

.feature-box-items:hover .icon {
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    transform: scale(1.05);
}

.feature-box-items .content h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--header);
}

.feature-box-items .content p {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .feature-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        gap: 14px;
        scrollbar-width: none;
    }

    .feature-wrapper::-webkit-scrollbar {
        display: none;
    }

    .feature-box-items {
        flex: 0 0 auto;
        min-width: 260px;
        scroll-snap-align: start;
        padding: 18px 20px;
    }
}

@media (max-width: 575px) {
    .feature-box-items {
        min-width: 230px;
        padding: 16px;
        gap: 12px;
        border-radius: 12px;
    }

    .feature-box-items .icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
        border-radius: 10px;
    }

    .feature-box-items .content h3 {
        font-size: 13px;
    }

    .feature-box-items .content p {
        font-size: 11px;
    }
}

/* ========================================
   PREMIUM EDITORIAL FOOTER
   Dark theme, gradient accent, animated socials
   ======================================== */
.mag-footer {
    background: #1a1a1a;
    color: #ccc;
    position: relative;
}

/* Top gradient accent line */
.mag-footer-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--theme) 0%, var(--theme2) 50%, var(--theme) 100%);
    background-size: 200% 100%;
    animation: footerAccent 4s ease infinite;
}

@keyframes footerAccent {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Footer grid */
.mag-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 60px 0 40px;
}

/* Brand column */
.mag-footer-brand {
    padding-right: 20px;
}

.mag-footer-logo {
    display: inline-block;
    margin-bottom: 18px;
}

.mag-footer-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.mag-footer-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
    margin-bottom: 22px;
}

/* Social icons */
.mag-footer-social {
    display: flex;
    gap: 10px;
}

.mag-social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mag-social-link:hover {
    background: var(--theme);
    border-color: var(--theme);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(157, 73, 61, 0.3);
}

/* Footer links */
.mag-footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.mag-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--theme);
    border-radius: 2px;
}

.mag-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mag-footer-links ul li {
    margin-bottom: 12px;
}

.mag-footer-links ul li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.mag-footer-links ul li a:hover {
    color: #fff;
    padding-left: 8px;
}

.mag-footer-links ul li a::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--theme);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.mag-footer-links ul li a:hover::before {
    width: 12px;
    left: -16px;
}

/* Contact items */
.mag-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.mag-footer-contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(157, 73, 61, 0.15);
    border-radius: 10px;
    color: var(--theme);
    font-size: 16px;
}

.mag-footer-contact-item span {
    display: block;
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.mag-footer-contact-item a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mag-footer-contact-item a:hover {
    color: var(--theme);
}

/* Footer bottom */
.mag-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.mag-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.mag-footer-bottom-inner p {
    color: #777;
    font-size: 13px;
    margin: 0;
}

.mag-footer-bottom-inner p a {
    color: var(--theme);
    text-decoration: none;
    font-weight: 600;
}

.mag-footer-bottom-inner p a:hover {
    color: #fff;
}

.mag-footer-bottom-links {
    display: flex;
    gap: 20px;
}

.mag-footer-bottom-links a {
    color: #777;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.mag-footer-bottom-links a:hover {
    color: #fff;
}

/* Footer responsive */
@media (max-width: 991px) {
    .mag-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
        padding: 45px 0 35px;
    }
}

@media (max-width: 767px) {
    .mag-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 35px 0 25px;
    }

    .mag-footer-brand {
        padding-right: 0;
        text-align: center;
    }

    .mag-footer-social {
        justify-content: center;
    }

    .mag-footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .mag-footer-links {
        text-align: center;
    }

    .mag-footer-links ul li a:hover {
        padding-left: 0;
    }

    .mag-footer-links ul li a::before {
        display: none;
    }

    .mag-footer-contact {
        text-align: center;
    }

    .mag-footer-contact-item {
        justify-content: center;
    }

    .mag-footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ========================================
   DUAL GRID — Side-by-Side Sections
   ======================================== */
.mag-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 991px) {
    .mag-dual-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.mag-dual-col {
    min-width: 0;
}

.mag-dual-col .mag-section-header {
    margin-bottom: 20px;
}

.mag-dual-col .mag-section-header h2 {
    font-size: 20px;
}

.mag-dual-col .mag-section-header h2 span {
    font-size: 11px;
}

@media (max-width: 575px) {
    .mag-dual-col .mag-section-header h2 {
        font-size: 17px;
    }
}

/* ========================================
   SCROLL ROW — Horizontal Scrollable Cards
   ======================================== */
.mag-scroll-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(157, 73, 61, 0.3) transparent;
}

.mag-scroll-row::-webkit-scrollbar {
    height: 5px;
}

.mag-scroll-row::-webkit-scrollbar-track {
    background: transparent;
}

.mag-scroll-row::-webkit-scrollbar-thumb {
    background: rgba(157, 73, 61, 0.3);
    border-radius: 10px;
}

.mag-scroll-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    min-width: 0;
}

.mag-scroll-card--edergi {
    flex: 0 0 280px;
}

@media (max-width: 575px) {
    .mag-scroll-card {
        flex: 0 0 180px;
    }

    .mag-scroll-card--edergi {
        flex: 0 0 240px;
    }
}

/* Magazine card inside scroll row — compact */
.mag-scroll-card .magazine-card {
    height: 100%;
}

.mag-scroll-card .magazine-card-image {
    height: 280px;
}

.mag-scroll-card .magazine-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 575px) {
    .mag-scroll-card .magazine-card-image {
        height: 220px;
    }
}

/* E-dergi card inside scroll row */
.mag-scroll-card--edergi .e-dergi-card {
    min-height: 320px;
}

@media (max-width: 575px) {
    .mag-scroll-card--edergi .e-dergi-card {
        min-height: 260px;
    }
}

/* ========================================
   MAGAZINE CARD — Premium Design
   Used in welcome, dergiler, etc.
   ======================================== */
.magazine-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.magazine-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(157, 73, 61, 0.15);
    border-color: rgba(157, 73, 61, 0.1);
}

.magazine-card-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.magazine-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.magazine-card:hover .magazine-card-image img {
    transform: scale(1.08);
}

.magazine-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--theme);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mag-quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(157, 73, 61, 0.9));
    color: #fff;
    text-align: center;
    padding: 40px 15px 15px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 2;
}

.mag-quick-view i {
    margin-right: 5px;
}

.magazine-card:hover .mag-quick-view {
    opacity: 1;
    transform: translateY(0);
}

.magazine-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.magazine-publisher {
    font-size: 11px;
    color: var(--theme);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 6px;
}

.magazine-card-body h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.magazine-card-body h3 a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}

.magazine-card-body h3 a:hover {
    color: var(--theme);
}

.magazine-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--theme);
}

.old-price {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
}

.magazine-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.magazine-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(157, 73, 61, 0.3);
    color: #fff;
}

/* ========================================
   DERGILER PAGE — Filter Bar & Listing Grid
   ======================================== */
.mag-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 35px;
}

.mag-filter-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mag-result-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.mag-result-count i {
    color: var(--theme);
    font-size: 16px;
}

.mag-result-count strong {
    color: var(--theme);
    font-weight: 700;
}

.mag-filter-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mag-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.mag-search-box i {
    position: absolute;
    left: 14px;
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
}

.mag-search-box input {
    width: 240px;
    padding: 10px 16px 10px 38px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
    background: #fafafa;
}

.mag-search-box input:focus {
    border-color: var(--theme);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(157, 73, 61, 0.08);
}

.mag-search-box input::placeholder {
    color: #bbb;
}

.mag-sort-box select {
    padding: 10px 36px 10px 14px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    background: #fafafa url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239D493D' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 12px center/12px;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
    min-width: 180px;
}

.mag-sort-box select:focus {
    border-color: var(--theme);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(157, 73, 61, 0.08);
}

@media (max-width: 767px) {
    .mag-filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
        gap: 12px;
    }

    .mag-filter-right {
        flex-direction: column;
        gap: 10px;
    }

    .mag-search-box input {
        width: 100%;
    }

    .mag-sort-box {
        width: 100%;
    }

    .mag-sort-box select {
        width: 100%;
        min-width: auto;
    }
}

/* Listing grid */
.mag-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.mag-listing-grid .magazine-card-image {
    height: 320px;
}

@media (max-width: 991px) {
    .mag-listing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .mag-listing-grid .magazine-card-image {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .mag-listing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .mag-listing-grid .magazine-card-image {
        height: 240px;
    }

    .mag-listing-grid .magazine-card-body {
        padding: 12px;
    }

    .mag-listing-grid .magazine-card-body h3 {
        font-size: 12px;
    }

    .mag-listing-grid .magazine-cart-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .mag-listing-grid .magazine-card-image {
        height: 200px;
    }

    .current-price {
        font-size: 14px;
    }
}

/* Empty state */
.mag-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #aaa;
}

.mag-empty-state i {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 16px;
}

.mag-empty-state h3 {
    font-size: 18px;
    color: #999;
    margin-bottom: 6px;
}

.mag-empty-state p {
    font-size: 14px;
    color: #bbb;
}

/* Hide cursor-follower (safety net) */
.cursor-follower {
    display: none !important;
}

/* ========================================
   FEATURE CARDS — Standalone Cards
   Below Son Eklenen Dergiler
   ======================================== */
.mag-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.mag-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.mag-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme), var(--theme2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mag-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(157, 73, 61, 0.12);
    border-color: rgba(157, 73, 61, 0.08);
}

.mag-feature-card:hover::before {
    opacity: 1;
}

.mag-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(157, 73, 61, 0.08), rgba(161, 51, 34, 0.14));
    border-radius: 16px;
    font-size: 26px;
    color: var(--theme);
    transition: all 0.4s ease;
}

.mag-feature-card:hover .mag-feature-icon {
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(157, 73, 61, 0.25);
}

.mag-feature-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.mag-feature-card p {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .mag-feature-cards {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 30px;
    }

    .mag-feature-card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 18px 20px;
    }

    .mag-feature-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        margin: 0;
        font-size: 22px;
        border-radius: 12px;
    }

    .mag-feature-card h4 {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .mag-feature-card p {
        font-size: 12px;
    }
}

/* ========================================
   NICE-SELECT / SORT DROPDOWN FIX
   White background, black text
   ======================================== */
.nice-select .list,
.mag-sort-box .nice-select .list {
    background: #fff !important;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.nice-select .option,
.mag-sort-box .nice-select .option {
    color: #333 !important;
    background: #fff !important;
    font-size: 13px;
    padding: 8px 16px;
    min-height: auto;
    line-height: 1.6;
    transition: all 0.2s ease;
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
    background: rgba(157, 73, 61, 0.08) !important;
    color: var(--theme) !important;
}

.nice-select .option.selected {
    color: var(--theme) !important;
    font-weight: 600;
}

/* ========================================
   FLOATING MOBILE CART BUTTON
   ======================================== */
.mag-floating-cart {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 20px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(157, 73, 61, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: floatCartIn 0.5s ease forwards;
}

.mag-floating-cart i {
    font-size: 22px;
}

.mag-floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(157, 73, 61, 0.5);
    color: #fff;
}

.mag-floating-cart:active {
    transform: scale(0.95);
}

.mag-floating-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #222;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
    animation: cartBadgePop 0.4s ease;
}

@keyframes floatCartIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cartBadgePop {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 991px) {
    .mag-floating-cart {
        display: flex;
    }
}

/* ========================================
   CART PAGE — Premium Layout
   ======================================== */
.mag-cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 991px) {
    .mag-cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.mag-cart-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.mag-cart-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.mag-cart-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mag-cart-card-header h3 i {
    color: var(--theme);
    font-size: 18px;
}

.mag-cart-count {
    font-size: 12px;
    font-weight: 500;
    color: #999;
    margin-left: auto;
}

/* Cart Item Row */
.mag-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.mag-cart-item:hover {
    background: #fafafa;
}

.mag-cart-item:last-child {
    border-bottom: none;
}

.mag-cart-item-img {
    width: 80px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

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

.mag-cart-item-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.4;
}

.mag-cart-item-publisher {
    font-size: 11px;
    color: var(--theme);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.mag-cart-item-price-mobile {
    display: none;
}

.mag-cart-item-price .mag-cart-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--theme);
    white-space: nowrap;
}

/* Qty Controls */
.mag-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.mag-qty-btn {
    width: 36px;
    height: 36px;
    background: #fafafa;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mag-qty-btn:hover {
    background: var(--theme);
    color: #fff;
}

.mag-qty-input {
    width: 42px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    outline: none;
    background: #fff;
    -moz-appearance: textfield;
}

.mag-qty-input::-webkit-outer-spin-button,
.mag-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove button */
.mag-remove-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.mag-remove-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* Continue Shopping */
.mag-cart-continue {
    margin-top: 16px;
}

.mag-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme);
    text-decoration: none;
    transition: gap 0.3s;
}

.mag-continue-link:hover {
    gap: 12px;
    color: var(--theme2);
}

/* Cart Summary */
.mag-cart-summary {
    position: sticky;
    top: 100px;
}

.mag-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    font-size: 14px;
    color: #555;
}

.mag-summary-val {
    font-weight: 700;
    color: #222;
}

.mag-free-badge {
    color: #28a745 !important;
    font-weight: 700;
}

.mag-summary-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0 24px;
}

.mag-summary-total {
    font-size: 16px;
    font-weight: 800;
    padding: 16px 24px;
}

.mag-summary-total .mag-summary-val {
    color: var(--theme);
    font-size: 20px;
}

.mag-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 48px);
    margin: 8px 24px 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mag-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 73, 61, 0.35);
    color: #fff;
}

/* Bank Info */
.mag-bank-info {
    padding: 16px 24px 20px;
    border-top: 1px solid #f0f0f0;
}

.mag-bank-label {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mag-bank-label i {
    color: var(--theme);
}

.mag-bank-info p {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px;
}

.mag-iban-box {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mag-bank-name {
    font-size: 12px;
    font-weight: 700;
    color: #555;
}

.mag-iban {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.5px;
    font-family: monospace;
}

/* Empty Cart */
.mag-empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.mag-empty-cart-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(157, 73, 61, 0.08);
    border-radius: 50%;
}

.mag-empty-cart-icon i {
    font-size: 40px;
    color: var(--theme);
}

.mag-empty-cart h3 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.mag-empty-cart p {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}

/* Mobile Cart Items */
@media (max-width: 767px) {
    .mag-cart-item {
        grid-template-columns: 70px 1fr auto;
        grid-template-rows: auto auto;
        gap: 10px;
        padding: 14px 16px;
    }

    .mag-cart-item-img {
        width: 70px;
        height: 90px;
        grid-row: 1 / 3;
    }

    .mag-cart-item-info {
        grid-column: 2 / 3;
    }

    .mag-cart-item-info h4 {
        font-size: 13px;
    }

    .mag-cart-item-price {
        display: none;
    }

    .mag-cart-item-price-mobile {
        display: block;
        margin-top: 6px;
    }

    .mag-cart-item-price-mobile .mag-cart-price {
        font-size: 15px;
        font-weight: 800;
        color: var(--theme);
    }

    .mag-cart-item-qty {
        grid-column: 2 / 3;
    }

    .mag-cart-item-remove {
        grid-row: 1;
        grid-column: 3;
    }

    .mag-cart-card-header {
        padding: 14px 16px;
    }

    .mag-summary-row {
        padding: 10px 16px;
    }

    .mag-summary-divider {
        margin: 0 16px;
    }

    .mag-order-btn {
        width: calc(100% - 32px);
        margin: 8px 16px 16px;
    }

    .mag-bank-info {
        padding: 14px 16px 16px;
    }
}

/* ========================================
   ORDER MODAL — Premium Design
   ======================================== */
.mag-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mag-modal-overlay.active {
    display: flex;
}

.mag-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mag-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.mag-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.mag-modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.mag-modal-left {
    padding: 30px;
    border-right: 1px solid #f0f0f0;
}

.mag-modal-right {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mag-modal-section-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(157, 73, 61, 0.08);
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 20px;
    color: var(--theme);
}

.mag-modal-right .mag-modal-section-icon {
    margin: 0 auto 14px;
}

.mag-modal-left h3,
.mag-modal-right h3 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
}

.mag-modal-right p {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

/* Form */
.mag-form-group {
    margin-bottom: 14px;
}

.mag-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mag-form-group input,
.mag-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
    background: #fafafa;
}

.mag-form-group input:focus,
.mag-form-group textarea:focus {
    border-color: var(--theme);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(157, 73, 61, 0.08);
}

.mag-form-group textarea {
    resize: vertical;
    min-height: 70px;
}

/* Auth buttons */
.mag-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.mag-auth-login {
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
}

.mag-auth-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(157, 73, 61, 0.3);
    color: #fff;
}

.mag-auth-register {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #eee;
}

.mag-auth-register:hover {
    border-color: var(--theme);
    color: var(--theme);
    background: rgba(157, 73, 61, 0.04);
}

@media (max-width: 767px) {
    .mag-modal {
        max-width: 100%;
        border-radius: 16px;
    }

    .mag-modal-body {
        grid-template-columns: 1fr;
    }

    .mag-modal-left {
        padding: 24px 20px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .mag-modal-right {
        padding: 24px 20px;
    }

    .mag-modal-left h3,
    .mag-modal-right h3 {
        font-size: 16px;
    }
}

/* ========================================
   OUT OF STOCK BUTTON
   ======================================== */
.mag-out-of-stock {
    pointer-events: none !important;
    cursor: not-allowed !important;
    background: #e0e0e0 !important;
    color: #999 !important;
    opacity: 0.7;
}

.mag-out-of-stock:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   AUTH / LOGIN PAGE — Premium Design
   ======================================== */
.mag-auth-section {
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.mag-auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

/* Left Branding Panel */
.mag-auth-brand {
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mag-auth-brand::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -60px;
    right: -80px;
}

.mag-auth-brand::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -40px;
    left: -50px;
}

.mag-auth-brand-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.mag-auth-brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    backdrop-filter: blur(10px);
}

.mag-auth-brand h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    color: #fff !important;
}

/* Success Alert (password reset) */
.mag-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mag-alert-success i {
    font-size: 16px;
}

.mag-auth-brand p {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 30px;
}

.mag-auth-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mag-auth-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.mag-auth-feat i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Right Form Panel */
.mag-auth-form-col {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mag-auth-form-header h3 {
    font-size: 26px;
    font-weight: 800;
    color: #222;
    margin-bottom: 6px;
}

.mag-auth-form-header p {
    font-size: 13px;
    color: #999;
    margin-bottom: 28px;
}

.mag-auth-field {
    margin-bottom: 18px;
}

.mag-auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mag-auth-field label i {
    color: var(--theme);
    margin-right: 4px;
}

.mag-auth-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: #fafafa;
    transition: all 0.3s ease;
}

.mag-auth-field input:focus {
    border-color: var(--theme);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(157, 73, 61, 0.06);
}

.mag-password-wrap {
    position: relative;
}

.mag-password-wrap input {
    padding-right: 48px;
}

.mag-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color 0.2s;
}

.mag-pw-toggle:hover {
    color: var(--theme);
}

/* Options row */
.mag-auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.mag-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    position: relative;
}

.mag-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--theme);
    cursor: pointer;
}

.mag-forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme);
    text-decoration: none;
    transition: color 0.2s;
}

.mag-forgot-link:hover {
    color: var(--theme2);
    text-decoration: underline;
}

/* Submit */
.mag-auth-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.mag-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 73, 61, 0.3);
}

.mag-auth-submit:active {
    transform: translateY(0);
}

/* Divider */
.mag-auth-divider {
    display: flex;
    align-items: center;
    margin: 22px 0;
    gap: 14px;
}

.mag-auth-divider::before,
.mag-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.mag-auth-divider span {
    font-size: 12px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Google */
.mag-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mag-google-btn:hover {
    border-color: #ddd;
    background: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    color: #333;
}

.mag-google-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Footer */
.mag-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

.mag-auth-footer a {
    color: var(--theme);
    font-weight: 700;
    text-decoration: none;
}

.mag-auth-footer a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 767px) {
    .mag-auth-section {
        padding: 30px 0;
        min-height: auto;
    }

    .mag-auth-wrapper {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .mag-auth-brand {
        padding: 30px 24px;
    }

    .mag-auth-brand-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 14px;
    }

    .mag-auth-brand h2 {
        font-size: 20px;
    }

    .mag-auth-brand p {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .mag-auth-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .mag-auth-feat {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1;
        min-width: calc(50% - 4px);
        justify-content: center;
    }

    .mag-auth-form-col {
        padding: 30px 24px;
    }

    .mag-auth-form-header h3 {
        font-size: 22px;
    }

    .mag-auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Field Validation Error */
.mag-field-error {
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
    padding-left: 2px;
    font-weight: 500;
}

/* ========================================
   PREMIUM MOBILE OFFCANVAS MENU
   ======================================== */

/* Override default offcanvas styles */
.offcanvas__info {
    background: #fff !important;
    border-left: none !important;
    width: 340px !important;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 400px) {
    .offcanvas__info {
        width: 100% !important;
    }
}

.offcanvas__wrapper {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.offcanvas__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 30px;
}

/* ---- Header ---- */
.mob-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--theme);
    position: sticky;
    top: 0;
    z-index: 5;
}

.mob-menu-logo img {
    height: 40px;
    width: auto;
}

.mob-menu-header .offcanvas__close {
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mob-menu-header .offcanvas__close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.mob-menu-header .offcanvas__close button {
    background: none;
    border: none;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.mob-menu-header .offcanvas__close i {
    color: #fff !important;
}

/* ---- Navigation ---- */
.mob-nav {
    padding: 16px 20px;
}

.mob-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mob-nav ul li {
    margin-bottom: 4px;
}

.mob-nav ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--header);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.mob-nav ul li a:hover {
    background: #f8f4f3;
    color: var(--theme);
    transform: translateX(4px);
}

.mob-nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(157, 73, 61, 0.08), rgba(157, 73, 61, 0.04));
    color: var(--theme);
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mob-nav ul li a:hover .mob-nav-icon {
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    transform: scale(1.05);
}

.mob-nav-arrow {
    margin-left: auto;
    font-size: 11px;
    color: #ccc;
    transition: all 0.3s ease;
}

.mob-nav ul li a:hover .mob-nav-arrow {
    color: var(--theme);
    transform: translateX(3px);
}

/* ---- Auth Buttons ---- */
.mob-auth-buttons {
    display: flex;
    gap: 10px;
    padding: 0 20px 8px;
    flex-wrap: wrap;
}

.mob-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.mob-auth-primary {
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(157, 73, 61, 0.25);
}

.mob-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(157, 73, 61, 0.35);
    color: #fff !important;
}

.mob-auth-outline {
    background: transparent;
    color: var(--theme) !important;
    border: 2px solid var(--theme);
}

.mob-auth-outline:hover {
    background: var(--theme);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ---- Contact Section ---- */
.mob-contact-section {
    padding: 16px 20px 0;
    margin-top: auto;
}

.mob-contact-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 4px;
}

.mob-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #f9f9f9;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.mob-contact-card:hover {
    background: #f4efee;
    transform: translateX(4px);
}

.mob-contact-badge {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.mob-contact-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--header);
}

/* ---- Social Row ---- */
.mob-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 20px 10px;
}

.mob-social-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
    color: var(--header);
    background: #f5f5f5;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.mob-social-btn:hover {
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(157, 73, 61, 0.3);
}

/* ---- Overlay refinement ---- */
.offcanvas__overlay.overlay-open {
    opacity: 0.5 !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ========================================
   MAGAZINE DETAIL PAGE — PREMIUM DESIGN
   ======================================== */
.mag-detail-section {
    padding: 60px 0 80px;
}

@media (max-width: 767px) {
    .mag-detail-section {
        padding: 30px 0 50px;
    }
}

/* ---- Grid Layout ---- */
.mag-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 991px) {
    .mag-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ---- Image Gallery ---- */
.mag-detail-gallery {
    position: sticky;
    top: 100px;
}

@media (max-width: 991px) {
    .mag-detail-gallery {
        position: static;
    }
}

.mag-gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 3/4;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.mag-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.mag-gallery-slide.active {
    opacity: 1;
    z-index: 1;
}

.mag-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mag-gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mag-gallery-counter i {
    font-size: 13px;
    opacity: 0.8;
}

/* Thumbnails */
.mag-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.mag-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.mag-thumb-btn {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.mag-thumb-btn.active,
.mag-thumb-btn:hover {
    border-color: var(--theme);
    opacity: 1;
    box-shadow: 0 2px 10px rgba(157, 73, 61, 0.2);
}

.mag-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 575px) {
    .mag-thumb-btn {
        width: 58px;
        height: 58px;
    }
}

/* ---- Product Info ---- */
.mag-detail-info {
    padding: 10px 0;
}

@media (max-width: 991px) {
    .mag-detail-info {
        padding: 0;
    }
}

/* Badges */
.mag-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.mag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mag-badge i {
    font-size: 13px;
}

.mag-badge-stock {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.mag-badge-out {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.mag-badge-issue {
    background: rgba(157, 73, 61, 0.08);
    color: var(--theme);
}

/* Title */
.mag-detail-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--header);
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

@media (max-width: 767px) {
    .mag-detail-title {
        font-size: 24px;
    }
}

/* Excerpt */
.mag-detail-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 24px;
}

/* Price Box */
.mag-detail-price-box {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(157, 73, 61, 0.04), rgba(157, 73, 61, 0.02));
    border-radius: 14px;
    border: 1px solid rgba(157, 73, 61, 0.08);
}

.mag-price-current {
    font-size: 34px;
    font-weight: 800;
    color: var(--theme);
    letter-spacing: -1px;
    line-height: 1;
}

@media (max-width: 575px) {
    .mag-price-current {
        font-size: 28px;
    }
}

.mag-price-old {
    font-size: 18px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 500;
}

.mag-price-discount {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Divider */
.mag-detail-divider {
    height: 1px;
    background: #eee;
    margin-bottom: 24px;
}

/* ---- Actions (Qty + Add to Cart) ---- */
.mag-detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

/* Quantity Wrapper */
.mag-qty-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.mag-qty-btn {
    width: 46px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--header);
    transition: all 0.2s ease;
}

.mag-qty-btn:hover {
    background: var(--theme);
    color: #fff;
}

.mag-qty-input {
    width: 50px;
    height: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    font-size: 16px;
    font-weight: 700;
    color: var(--header);
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    background: transparent;
}

.mag-qty-input::-webkit-outer-spin-button,
.mag-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button */
.mag-cart-btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 52px;
}

.mag-cart-btn-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--theme2), var(--theme));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mag-cart-btn-detail:hover::before {
    opacity: 1;
}

.mag-cart-btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 73, 61, 0.35);
    color: #fff;
}

.mag-cart-btn-detail i,
.mag-cart-btn-detail span {
    position: relative;
    z-index: 1;
}

.mag-btn-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

@media (max-width: 575px) {
    .mag-detail-actions {
        flex-direction: column;
    }

    .mag-qty-wrapper {
        width: 100%;
        justify-content: center;
    }

    .mag-cart-btn-detail {
        width: 100%;
    }
}

/* ---- Feature Highlights ---- */
.mag-detail-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
}

.mag-detail-feat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    transition: background 0.3s ease;
}

.mag-detail-feat:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.mag-detail-feat:hover {
    background: #faf8f7;
}

.mag-detail-feat>i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(157, 73, 61, 0.08), rgba(157, 73, 61, 0.04));
    color: var(--theme);
    font-size: 16px;
    flex-shrink: 0;
}

.mag-detail-feat div strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 2px;
}

.mag-detail-feat div span {
    font-size: 12px;
    color: #999;
}

/* ---- Description Section ---- */
.mag-detail-desc-section {
    margin-top: 60px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
}

@media (max-width: 767px) {
    .mag-detail-desc-section {
        margin-top: 40px;
    }
}

.mag-desc-header {
    display: flex;
    background: #faf8f7;
    border-bottom: 1px solid #eee;
}

.mag-desc-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 700;
    color: var(--header);
    border-bottom: 3px solid var(--theme);
    cursor: default;
}

.mag-desc-tab i {
    color: var(--theme);
}

.mag-desc-body {
    padding: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

@media (max-width: 575px) {
    .mag-desc-body {
        padding: 20px;
        font-size: 14px;
    }
}

.mag-desc-body p {
    margin-bottom: 16px;
}

.mag-desc-body p:last-child {
    margin-bottom: 0;
}

.mag-desc-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.mag-desc-body ul,
.mag-desc-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.mag-desc-body li {
    margin-bottom: 6px;
}

/* ========================================
   HEADER TOP BAR — MODERN STYLING
   ======================================== */
.header-top-1 {
    background: var(--header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
}

.header-top-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.header-top-1 .contact-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-top-1 .contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.header-top-1 .contact-list li i {
    font-size: 13px;
    color: var(--theme);
    background: rgba(157, 73, 61, 0.15);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.header-top-1 .contact-list li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-top-1 .contact-list li a:hover {
    color: #fff;
}

.header-top-1 .list {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-top-1 .list li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.header-top-1 .list li i {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.header-top-1 .list li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-top-1 .list li a:hover {
    color: #fff;
}

@media (max-width: 575px) {
    .header-top-1 {
        display: none;
    }
}

/* ========================================
   CONTACT PAGE — PREMIUM DESIGN
   ======================================== */
.mag-contact-section {
    padding: 60px 0 80px;
}

@media (max-width: 767px) {
    .mag-contact-section {
        padding: 30px 0 50px;
    }
}

/* Contact Info Cards */
.mag-contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

@media (max-width: 767px) {
    .mag-contact-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 35px;
    }
}

.mag-contact-card-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.mag-contact-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(157, 73, 61, 0.15);
}

.mag-cc-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(157, 73, 61, 0.08), rgba(157, 73, 61, 0.04));
    color: var(--theme);
    font-size: 22px;
    margin: 0 auto 18px;
    transition: all 0.3s ease;
}

.mag-contact-card-item:hover .mag-cc-icon {
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    transform: scale(1.05);
}

.mag-contact-card-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 8px;
}

.mag-contact-card-item a {
    display: block;
    font-size: 15px;
    color: var(--theme);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.mag-contact-card-item a:hover {
    color: var(--header);
}

.mag-contact-card-item p {
    font-size: 15px;
    color: var(--header);
    font-weight: 600;
    margin-bottom: 4px;
}

.mag-contact-card-item span {
    font-size: 12px;
    color: #999;
}

/* Contact Form Wrapper */
.mag-contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    overflow: hidden;
}

@media (max-width: 991px) {
    .mag-contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Left Panel */
.mag-contact-form-left {
    padding: 40px;
    background: linear-gradient(135deg, rgba(157, 73, 61, 0.04), rgba(157, 73, 61, 0.02));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 991px) {
    .mag-contact-form-left {
        padding: 30px;
    }
}

.mag-form-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(157, 73, 61, 0.08);
    color: var(--theme);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 16px;
}

.mag-contact-form-intro h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--header);
    margin-bottom: 12px;
    line-height: 1.3;
}

@media (max-width: 575px) {
    .mag-contact-form-intro h2 {
        font-size: 22px;
    }
}

.mag-contact-form-intro p {
    font-size: 14px;
    line-height: 1.7;
    color: #777;
}

/* Social */
.mag-contact-social {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(157, 73, 61, 0.1);
}

.mag-contact-social h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mag-contact-social-links {
    display: flex;
    gap: 10px;
}

.mag-contact-social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    color: var(--header);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.mag-contact-social-links a:hover {
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 73, 61, 0.3);
}

/* Right Panel (Form) */
.mag-contact-form-right {
    padding: 40px;
}

@media (max-width: 991px) {
    .mag-contact-form-right {
        padding: 30px;
    }
}

.mag-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 575px) {
    .mag-form-row {
        grid-template-columns: 1fr;
    }
}

.mag-form-group {
    margin-bottom: 0;
}

.mag-form-full {
    margin-bottom: 20px;
}

.mag-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--header);
    margin-bottom: 6px;
}

.mag-form-group input,
.mag-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--header);
    background: #fafafa;
    transition: all 0.3s ease;
    outline: none;
}

.mag-form-group input:focus,
.mag-form-group textarea:focus {
    border-color: var(--theme);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(157, 73, 61, 0.06);
}

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

.mag-contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mag-contact-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--theme2), var(--theme));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mag-contact-submit:hover::before {
    opacity: 1;
}

.mag-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 73, 61, 0.35);
}

.mag-contact-submit span,
.mag-contact-submit i {
    position: relative;
    z-index: 1;
}

.mag-contact-submit i {
    transition: transform 0.3s ease;
}

.mag-contact-submit:hover i {
    transform: translateX(4px);
}

/* ========================================
   ABOUT PAGE — PREMIUM DESIGN
   ======================================== */
.mag-about-section {
    padding: 60px 0 80px;
}

@media (max-width: 767px) {
    .mag-about-section {
        padding: 30px 0 50px;
    }
}

/* Hero Intro */
.mag-about-hero {
    text-align: center;
    margin-bottom: 50px;
}

@media (max-width: 767px) {
    .mag-about-hero {
        margin-bottom: 30px;
    }
}

.mag-about-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(157, 73, 61, 0.08), rgba(157, 73, 61, 0.04));
    color: var(--theme);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 25px;
    margin-bottom: 20px;
}

.mag-about-hero-badge i {
    font-size: 14px;
}

.mag-about-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--header);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

@media (max-width: 767px) {
    .mag-about-hero-title {
        font-size: 30px;
    }
}

.mag-about-hero-subtitle {
    font-size: 17px;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 575px) {
    .mag-about-hero-subtitle {
        font-size: 15px;
    }
}

/* Content Card */
.mag-about-content-card {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

@media (max-width: 767px) {
    .mag-about-content-card {
        margin-bottom: 30px;
    }
}

.mag-about-accent {
    width: 6px;
    min-height: 100%;
    background: linear-gradient(180deg, var(--theme), var(--theme2));
    flex-shrink: 0;
}

.mag-about-body {
    padding: 40px;
    font-size: 15px;
    line-height: 1.85;
    color: #555;
}

@media (max-width: 575px) {
    .mag-about-body {
        padding: 24px 20px;
        font-size: 14px;
    }
}

.mag-about-body p {
    margin-bottom: 16px;
}

.mag-about-body p:last-child {
    margin-bottom: 0;
}

.mag-about-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
}

.mag-about-body ul,
.mag-about-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.mag-about-body li {
    margin-bottom: 6px;
}

.mag-about-body strong {
    color: var(--header);
}

/* Stats Row */
.mag-about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
    .mag-about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.mag-about-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.mag-about-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: rgba(157, 73, 61, 0.15);
}

.mag-about-stat>i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(157, 73, 61, 0.08), rgba(157, 73, 61, 0.04));
    color: var(--theme);
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mag-about-stat:hover>i {
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
}

.mag-about-stat div strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 2px;
}

.mag-about-stat div span {
    font-size: 13px;
    color: #999;
}

/* =========================================================
   MAGAZINE LISTING PAGE — Premium Redesign
   ========================================================= */

.mag-listing-section {
    padding: 50px 0 70px;
}

/* ---------- Toolbar ---------- */
.mag-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.mag-toolbar-left {
    flex-shrink: 0;
}

.mag-toolbar-count {
    font-size: 13px;
    color: #888;
}

.mag-toolbar-count strong {
    color: var(--theme);
    font-weight: 700;
}

.mag-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.mag-toolbar-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 7px 12px;
    transition: border-color .3s;
    max-width: 200px;
    flex: 1;
    min-width: 0;
}

.mag-toolbar-search:focus-within {
    border-color: var(--theme);
    background: #fff;
}

.mag-toolbar-search i {
    color: #bbb;
    font-size: 12px;
    flex-shrink: 0;
}

.mag-toolbar-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 100%;
    min-width: 0;
    color: #333;
}

/* Sort — native select + nice-select override */
.mag-toolbar-sort {
    flex-shrink: 0;
}

.mag-toolbar-sort select {
    border: 1px solid #e8e8e8;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    color: #555;
    outline: none;
    cursor: pointer;
    transition: border-color .3s;
}

.mag-toolbar-sort select:focus {
    border-color: var(--theme);
}

/* nice-select override inside toolbar */
.mag-toolbar-sort .nice-select {
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    height: auto;
    line-height: 1;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    color: #555;
    min-height: unset;
    float: none;
    width: auto;
    min-width: 140px;
}

.mag-toolbar-sort .nice-select:focus,
.mag-toolbar-sort .nice-select.open {
    border-color: var(--theme);
}

.mag-toolbar-sort .nice-select .current {
    font-size: 13px;
}

.mag-toolbar-sort .nice-select .list {
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    min-width: 100%;
}

.mag-toolbar-sort .nice-select .option {
    font-size: 13px;
    padding: 8px 14px;
    min-height: unset;
    line-height: 1.4;
}

.mag-toolbar-sort .nice-select .option.selected,
.mag-toolbar-sort .nice-select .option:hover {
    background: var(--theme);
    color: #fff;
}

/* ---------- Card Grid ---------- */
.mag-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ---------- Card ---------- */
.mag-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.35s ease;
    position: relative;
}

.mag-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
    border-color: var(--theme);
}

/* -- Image -- */
.mag-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f5f0ee;
}

.mag-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mag-card:hover .mag-card__image img {
    transform: scale(1.06);
}

/* Issue Badge */
.mag-card__issue {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--theme);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    z-index: 3;
}

/* Lock Overlay (for locked magazines) */
.mag-card__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s;
}

.mag-card--locked:hover .mag-card__lock-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.mag-card__lock-overlay i {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Unlock Badge (for open magazines) */
.mag-card__unlock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(34, 139, 34, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 3;
    backdrop-filter: blur(4px);
}

.mag-card__unlock-badge i {
    font-size: 10px;
}

/* Hover Actions Overlay */
.mag-card__actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 4;
    transition: opacity 0.3s;
}

.mag-card:hover .mag-card__actions {
    opacity: 1;
}

.mag-card__action-btn {
    background: var(--theme);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    transform: translateY(10px);
    box-shadow: 0 4px 15px rgba(157, 73, 61, 0.4);
}

.mag-card:hover .mag-card__action-btn {
    transform: translateY(0);
}

.mag-card__action-btn:hover {
    background: var(--theme2);
    color: #fff;
}

/* ---------- Card Body ---------- */
.mag-card__body {
    padding: 16px;
}

.mag-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mag-card__publisher {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.mag-card__status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mag-card__status--locked {
    background: #fee2e2;
    color: #dc2626;
}

.mag-card__status--open {
    background: #dcfce7;
    color: #16a34a;
}

.mag-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 42px;
}

.mag-card__title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.mag-card__title a:hover {
    color: var(--theme);
}

/* Price */
.mag-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mag-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mag-card__price-current {
    font-size: 18px;
    font-weight: 800;
    color: var(--theme);
}

.mag-card__price-old {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
}

/* Footer with buttons */
.mag-card__footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mag-card__cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: linear-gradient(135deg, var(--theme), var(--theme2));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.mag-card__cart-btn:hover {
    box-shadow: 0 4px 15px rgba(157, 73, 61, 0.35);
    transform: translateY(-1px);
    color: #fff;
}

.mag-card__cart-btn--disabled {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.mag-card__read-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9f0;
    color: #16a34a;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    flex-shrink: 0;
}

.mag-card__read-btn:hover {
    background: #16a34a;
    color: #fff;
}

/* ---------- Empty State ---------- */
.mag-listing-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: #999;
}

.mag-listing-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

.mag-listing-empty h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 6px;
}

.mag-listing-empty p {
    font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .mag-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .mag-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .mag-listing-section {
        padding: 35px 0 50px;
    }

    .mag-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }

    .mag-toolbar-right {
        flex-direction: column;
    }

    .mag-toolbar-search {
        max-width: 100%;
    }

    .mag-toolbar-search input {
        width: 100%;
    }

    .mag-toolbar-sort select {
        width: 100%;
    }

    .mag-toolbar-sort .nice-select {
        width: 100%;
        min-width: unset;
    }

    .mag-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mag-card__body {
        padding: 12px;
    }

    .mag-card__title {
        font-size: 13px;
        min-height: auto;
    }

    .mag-card__price-current {
        font-size: 15px;
    }

    .mag-card__cart-btn {
        font-size: 11px;
        padding: 8px 6px;
    }

    .mag-card__cart-btn span {
        display: none;
    }

    .mag-card__read-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

@media (max-width: 479px) {
    .mag-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mag-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}