/* FT Shopify Sync - Shop Styles */

/* ========== Divi Integration ========== */
.ft-collection-page .entry-content,
.ft-product-page .entry-content {
    padding-top: 0;
}

/* Override Divi's default #left-area width to use full width */
body.single-ft_product #left-area,
body.tax-ft_collection #left-area {
    width: 100% !important;
    float: none !important;
}

/* Ensure our pages don't get Divi sidebar */
body.single-ft_product #sidebar,
body.tax-ft_collection #sidebar {
    display: none;
}

/* Hide Divi's sidebar separator line on our pages */
body.single-ft_product #main-content .container::before,
body.tax-ft_collection #main-content .container::before {
    display: none !important;
}

/* Restore Divi footer column borders (lost in CPT cache) */
body.single-ft_product .et_pb_column_0_tb_footer,
body.single-ft_product .et_pb_column_1_tb_footer,
body.tax-ft_collection .et_pb_column_0_tb_footer,
body.tax-ft_collection .et_pb_column_1_tb_footer {
    border-right: 1px solid #36353c;
}

/* Hide Divi's default pagination label */
body.tax-ft_collection .screen-reader-text,
body.tax-ft_collection .pagination h2,
body.tax-ft_collection .posts-navigation .screen-reader-text,
body.tax-ft_collection nav.navigation h2 {
    display: none !important;
}

/* ========== Breadcrumbs ========== */
.ft-breadcrumbs {
    padding: 25px 0 20px;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ft-breadcrumbs a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}
.ft-breadcrumbs a:hover {
    color: #36353c;
}
.ft-sep {
    margin: 0 8px;
    color: #ccc;
}
.ft-current {
    color: #36353c;
}

/* ========== VAT Notice ========== */
.ft-vat-notice {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #999;
    text-align: center;
    margin: 10px 0 40px;
    letter-spacing: 0.3px;
    padding-bottom: 0;
}

/* ========== Product Detail ========== */
.ft-product-detail {
    display: flex;
    gap: 60px;
    padding: 20px 0 80px;
    max-width: 1080px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .ft-product-detail {
        flex-direction: column;
        gap: 30px;
        padding: 10px 0 40px;
    }
}

/* Gallery */
.ft-product-gallery {
    flex: 1;
    max-width: 560px;
}
.ft-gallery-main {
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
    background: #fafafa;
}
.ft-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.ft-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ft-thumb {
    width: 72px;
    height: 72px;
    border: 1px solid #e0e0e0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: none;
    transition: border-color 0.2s;
}
.ft-thumb:hover,
.ft-thumb-active {
    border-color: #36353c;
}
.ft-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product Info */
.ft-product-info {
    flex: 1;
    max-width: 460px;
    padding-top: 10px;
}
.ft-detail-title {
    font-family: 'Playfair Display', serif;
    font-weight: normal;
    font-size: 28px;
    color: #36353c;
    margin: 0 0 15px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}
.ft-detail-price {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    color: #36353c;
    margin: 0 0 30px;
    font-weight: 400;
}

#ft-buy-button {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.ft-detail-description {
    font-family: 'PT Serif', serif;
    font-size: 15px;
    line-height: 1.8;
    color: #4c4c4c;
}
.ft-detail-description p {
    margin-bottom: 12px;
}
.ft-detail-description strong {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #36353c;
}

/* ========== Product Grid ========== */
.ft-product-grid {
    display: grid;
    gap: 30px;
    padding: 30px 0 40px;
    max-width: 1080px;
    margin: 0 auto;
}
.ft-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ft-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ft-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
    .ft-cols-3,
    .ft-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ft-cols-2,
    .ft-cols-3,
    .ft-cols-4 { grid-template-columns: 1fr; }
}

/* Product Card */
.ft-product-card {
    text-align: center;
    border: 1px solid #e8e8e8;
    transition: border-color 0.3s;
}
.ft-product-card:hover {
    border-color: #c0c0c0;
}
.ft-product-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

/* Product Image - background image for uniform sizing */
.ft-product-image {
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fafafa;
    transition: transform 0.4s ease;
}
.ft-product-link:hover .ft-product-image {
    /* subtle zoom via a wrapper approach isn't possible with bg images,
       so we use opacity instead */
    opacity: 0.92;
}
.ft-product-image img {
    display: none; /* hide any leftover img tags */
}

/* Card info area below image */
.ft-product-card-info {
    padding: 18px 15px 22px;
    border-top: 1px solid #e8e8e8;
}
.ft-product-title {
    font-family: 'Playfair Display', serif;
    font-weight: normal;
    font-size: 17px;
    color: #36353c;
    margin: 0 0 6px;
    transition: color 0.2s;
    line-height: 1.4;
}
.ft-product-link:hover .ft-product-title {
    color: #313036;
}
.ft-product-price {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: #36353c;
    margin: 0;
    font-weight: 400;
    padding-bottom: 0;
}

/* ========== Collection Archive ========== */
.ft-collection-title {
    font-family: 'Playfair Display', serif;
    font-weight: normal;
    font-size: 32px;
    color: #36353c;
    text-align: center;
    margin: 0 0 5px;
    letter-spacing: 0.5px;
}
.ft-collection-desc {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #999;
    text-align: center;
    margin: 0 0 20px;
}

/* Pagination - hide the screen-reader heading */
.pagination .screen-reader-text,
nav.navigation h2 {
    display: none !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    position: absolute !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
}
.nav-links {
    text-align: center;
    padding: 20px 0 60px;
    font-family: 'Raleway', sans-serif;
}
.nav-links a,
.nav-links .current {
    padding: 8px 14px;
    margin: 0 3px;
    text-decoration: none;
    color: #36353c;
    border: 1px solid #e0e0e0;
}
.nav-links .current {
    background: #36353c;
    color: #fff;
    border-color: #36353c;
}
